Installable agent skill repository for researching modern macOS private frameworks with a repeatable, evidence-backed workflow.
macos-private-framework-research helps agents discover private-framework dependencies, extract dyld shared cache images, reconstruct Objective-C/Swift interfaces, triage underspecified signatures, and run an LLM-assisted type-inference loop with static validation.
Primary entrypoint:
macos-private-framework-research/SKILL.md
Reference checkouts are optional source signposts. Avoid initializing them from git clone --recurse-submodules --shallow-submodules: Git runs recursive submodule checkout with --no-single-branch, which makes high-ref repositories fetch every branch/tag tip at depth 1.
Use a two-step checkout when reference sources are needed:
git clone -o zhutao100 https://github.com/zhutao100/macos-private-framework-research-skill.git
cd macos-private-framework-research-skill
git submodule update --init --recursive --depth 1 --single-branch --jobs 4reference-checkout/hammerspoon is opt-in because the recursive clone path is especially large. Initialize it only when needed:
git submodule update --init --depth 1 --single-branch --checkout -- reference-checkout/hammerspoonUser-scoped install for Codex CLI and other Open Agent Skills-compatible clients:
macos-private-framework-research/scripts/install_codex_skill.sh --replaceRepository-scoped install:
macos-private-framework-research/scripts/install_codex_skill.sh --scope repo --replaceManual install:
mkdir -p "$HOME/.agents/skills"
cp -R macos-private-framework-research "$HOME/.agents/skills/"Inventory host, dyld cache, and tools:
macos-private-framework-research/scripts/macos_private_framework_inventory.py \
--output /tmp/macos-pf-inventory.md \
--json-output /tmp/macos-pf-inventory.jsonResolve optional non-built-in toolchains only when a workflow needs them:
macos-private-framework-research/scripts/resolve_toolchains.py ipsw dyld-shared-cache-extractorDiscover private-framework usage by a system app or client binary:
macos-private-framework-research/scripts/discover_private_frameworks.py \
--output /tmp/disk-utility-private-frameworks.md \
--json-output /tmp/disk-utility-private-frameworks.json \
"/System/Applications/Utilities/Disk Utility.app"Extract a framework from the dyld shared cache:
macos-private-framework-research/scripts/extract_dyld_framework.sh \
--framework DiskManagement \
--output-dir /tmp/macos-private-frameworksUse --enrich-objc-stubs only when extraction-time enrichment is needed; run ipsw class-dump separately for bounded header output.
Build a capped framework manifest before loading raw dependency, symbol, or string dumps:
macos-private-framework-research/scripts/framework_macho_manifest.py \
--framework DiskManagement \
--json-output /tmp/DiskManagement.manifest.json \
--markdown-output /tmp/DiskManagement.manifest.md \
--cache-evidenceCollect focused entitlement evidence before loading raw plist dumps:
macos-private-framework-research/scripts/collect_code_entitlements.py \
--focus-pattern 'diskmanagement|mach-lookup|xpc|sandbox' \
--output /tmp/DiskManagement.entitlements.md \
--json-output /tmp/DiskManagement.entitlements.json \
/path/to/candidate-binaryProbe candidate C symbols and Objective-C classes without calling them:
macos-private-framework-research/scripts/dlopen_symbol_probe.swift \
--image /System/Library/PrivateFrameworks/DiskManagement.framework/DiskManagement \
--symbol CandidateFunction \
--class CandidateClass \
--jsonTriage reconstructed headers for underspecified method signatures:
macos-private-framework-research/scripts/objc_header_triage.py \
--headers /tmp/DiskManagement.headers \
--output /tmp/DiskManagement.candidates.md \
--json-output /tmp/DiskManagement.candidates.jsonMarkdown reports are bounded by default for agent ingestion; JSON outputs remain complete.
Build an LLM-ready MOTIF-style inference context for one candidate:
macos-private-framework-research/scripts/build_motif_context.py \
--candidate-json /tmp/DiskManagement.candidates.json \
--candidate-id 1 \
--headers /tmp/DiskManagement.headers \
--binary /tmp/macos-private-frameworks/System/Library/PrivateFrameworks/DiskManagement.framework/Versions/A/DiskManagement \
--output /tmp/DiskManagement.candidate-1.context.json \
--prompt-output /tmp/DiskManagement.candidate-1.prompt.mdLint candidate reconstructed headers before treating them as evidence:
macos-private-framework-research/scripts/objc_signature_linter.py \
--headers /tmp/DiskManagement.inferred.headers \
--output /tmp/DiskManagement.lint.md \
--json-output /tmp/DiskManagement.lint.json \
--compileRepository validation:
macos-private-framework-research/scripts/validate_skill_repo.py .
macos-private-framework-research/scripts/resolve_toolchains.py --json-output /tmp/macos-pf-toolchains.json \
>/tmp/macos-pf-toolchains.md
macos-private-framework-research/scripts/framework_macho_manifest.py --framework IntelligenceFlow --cache-evidence \
--json-output /tmp/macos-pf-framework-manifest.json \
--markdown-output /tmp/macos-pf-framework-manifest.md
macos-private-framework-research/scripts/collect_code_entitlements.py --focus-pattern 'intelligenceflow|biome|mach-lookup' \
--output /tmp/macos-pf-entitlements.md \
--json-output /tmp/macos-pf-entitlements.json \
/System/Library/PrivateFrameworks/IntelligenceFlowRuntime.framework/Versions/A/intelligenceflowd
python3 -m py_compile macos-private-framework-research/scripts/*.py
bash -n macos-private-framework-research/scripts/*.sh
macos-private-framework-research/scripts/dlopen_symbol_probe.swift --help >/tmp/macos-pf-dlopen-help.txt
zsh -n framework-surveys/intelligenceflow-agent-survey/scripts/*.zsh
python3 -m py_compile framework-surveys/intelligenceflow-agent-survey/scripts/*.py
zsh -n framework-surveys/skylight-agent-survey/tools/*.zsh
python3 -m py_compile framework-surveys/skylight-agent-survey/tools/*.pyOn a macOS host, also run the inventory script, a small app/binary discovery pass, and survey header verifiers when touching the survey packages.
framework-surveys/intelligenceflow-agent-survey/scripts/verify_intelligenceflow_presence_header.zsh \
/tmp/intelligenceflow-presence-verify.json
swift framework-surveys/skylight-agent-survey/tools/dlopen_probe_symbols.swift --json \
>/tmp/skylight-dlsym-probe.json
framework-surveys/skylight-agent-survey/tools/verify_skylight_readonly_header.zsh \
/tmp/skylight-readonly-verify.json