skill-inventory
Inventory downstream repository Claude and Codex skill installs from a control-repo manifest, classify managed local skill-copy drift against canonical agentic-skills sources, and produce report-only Markdown or JSON guidance without refreshing, deleting, or mutating downstream repos.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- skill-inventory
- type
- ops
- version
- v0.1
- description
- Inventory downstream repository Claude and Codex skill installs from a control-repo manifest, classify managed local skill-copy drift against canonical agentic-skills sources, and produce report-only Markdown or JSON guidance without refreshing, deleting, or mutating downstream repos.
- argument-hint
- [--manifest <path>] [--repo <path>] [--format markdown|json]
- required_conventions
- [ "alignment-page" ]
02 资源文件 4
- 参考文档agents/openai.yaml262 B
- 参考文档ALIGNMENT-PAGE.md51.6 KB
- 参考文档CHANGELOG.md363 B
- 脚本scripts/skill-inventory.sh17.4 KB
03 SKILL.md 正文
Skill Inventory
Invoke as $skill-inventory.
Use this skill from a control repository that manages downstream repositories and needs to know whether copied local skill roots are current, stale, pinned, unmanaged, or missing their canonical source.
V1 Contract
Report-only — do not modify tracked files.
- Do not run
scripts/pack.sh refresh. - Do not run delete, cleanup, remove, prune, or reinstall commands.
- Do not edit
.claude/skills/**,.codex/skills/**,.agents/project.json, or any file inside downstream repositories. - Do not add an apply route in v1. Suggest exact follow-up commands only after the inventory report shows what is needed.
- Only write control-repo artifacts:
tasks/skill-inventory.md,alignment/skill-inventory-{topic}.html, task notes, prompt history, and normal shipping docs.
Process
-
Read repo instructions first:
AGENTS.md,CLAUDE.md, or the local equivalent. -
Capture the visible
$skill-inventoryinvocation underprompts/skill-inventory/before substantive work, following the repo prompt-history convention. -
Resolve downstream repos from a manifest before scanning. Default manifest search order:
tasks/downstream-repos.mdtasks/fleet-queue.mdtasks/repo-seeding.md
-
Require a Markdown table column named
Local PathorPathfor local checkout paths. Remote-onlyowner/repocells are not scannable; ask for a local path instead of guessing. -
Run the bundled scanner from this skill directory. Default output is the durable Markdown report:
bash scripts/skill-inventory.sh --out tasks/skill-inventory.md --format markdownUseful variants:
bash scripts/skill-inventory.sh --manifest tasks/downstream-repos.md --out tasks/skill-inventory.md bash scripts/skill-inventory.sh --repo ../downstream-app --out - bash scripts/skill-inventory.sh --format json --out - -
The scanner sources the control repo's canonical
scripts/skill-links.shand usesskill_install_statusfor status classification. Do not reimplement the drift semantics manually. -
Review the report and build
alignment/skill-inventory-{topic}.htmlusingALIGNMENT-PAGE.mdwhen producing a durable report. The page must render the report, evidence, assumptions, action hints, and approval gates without context loss. -
End with:
- Next work: the most specific inventory follow-up, usually adding missing local paths or reviewing stale rows.
- Recommended next command: usually
$skill-inventory --manifest <path>to rerun after manifest fixes, or$project-fleet --statuswhen no inventory remediation is needed.
Status Categories
Use the exact categories emitted by skill_install_status:
ok: managed copy matches the canonical source content.stale: canonical source content changed since the managed copy was installed.unknown: marker exists but lackssource_sha; refresh is needed later to enable deterministic tracking.missing-source: marker points to a source directory that no longer exists.pinned: symlinked install, usually toarchive/<version>, intentionally frozen.not-managed: skill directory is not an agentic-skills managed install.
Report Expectations
tasks/skill-inventory.md should include:
- control repo, manifest path, generated timestamp, and report-only notice;
- repo-level totals across Claude and Codex skill roots;
- per-agent rows for
.claude/skills/*and.codex/skills/*; - installed and canonical version fields when available;
- source path evidence for managed or pinned installs;
- action hints for
stale,unknown, andmissing-source, including exact suggested follow-ups such asscripts/pack.sh refresh; - a clear statement that the scan did not run refresh, delete, cleanup, install, or other mutation commands.
If no local paths are found, the scanner must fail non-destructively and print a manifest template with a Local Path column.
Alignment Page
Follow the shared alignment-page convention via the packaged convention resolver; output path is alignment/skill-inventory-{topic}.html. By default, report results inline and write only this skill's normal durable artifacts; create an alignment page only when explicitly requested or when a concrete clarification/review need cannot be handled cleanly inline.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
04 同仓库更多 Skills
source-checkout-allowed
Valid source-checkout-only fixture.
deck-install-valid
Valid deck install fixture.
codex-pack-guard-valid
Valid Codex Pack Availability Guard fixture.
codex-missing-skill-valid
Valid Codex missing skill fallback fixture.
codex-base-skill-fallback-valid
Valid Codex base skill fallback fixture.
claude-pack-guard-valid
Valid Claude Pack Availability Guard fixture.