init-agentic-skills
Make the base agentic-skills available in a project by installing them project-local with npx skillpacks init, report and fix skill-install drift, clean up legacy user-home installs, and run guided setup for project-local domain packs. Use when Codex needs to enable base skills for a project, repair stale installs, confirm initialization status, remove old global installs, or set up and route domain packs.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- init-agentic-skills
- type
- ops
- version
- v0.12
- description
- Make the base agentic-skills available in a project by installing them project-local with npx skillpacks init, report and fix skill-install drift, clean up legacy user-home installs, and run guided setup for project-local domain packs. Use when Codex needs to enable base skills for a project, repair stale installs, confirm initialization status, remove old global installs, or set up and route domain packs.
- argument-hint
- [init|status|doctor|refresh|uninstall-global]
02 资源文件 59
- 参考文档agents/openai.yaml342 B
- 资产文件assets/presets/anime-command-screen.json4.3 KB
- 资产文件assets/presets/bitten-word-title.json3.7 KB
- 资产文件assets/presets/crt-decrypt-title.json4.6 KB
- 资产文件assets/presets/didone-city-title.json3.7 KB
- 资产文件assets/presets/echo-halftone-portrait.json3.4 KB
- 资产文件assets/presets/glyph-tracking-terminal.json3.3 KB
- 资产文件assets/presets/hyphen-bridge-wordmark.json3.4 KB
- 资产文件assets/presets/justified-manifesto.json3.6 KB
- 资产文件assets/presets/liquid-art-reveal.json3.2 KB
- 资产文件assets/presets/particle-burst-title.json3.6 KB
- 资产文件assets/presets/perspective-photo-wall.json3.7 KB
- 资产文件assets/presets/photocopy-explainer.json4.7 KB
- 资产文件assets/presets/red-beat-words.json4.0 KB
- 资产文件assets/presets/scan-glitch-wordmark.json3.7 KB
- 资产文件assets/presets/type-specimen-grid.json4.8 KB
- 资产文件assets/presets/typeface-strobe.json4.7 KB
- 资产文件assets/presets/word-corridor.json3.5 KB
- 参考文档CHANGELOG.md3.7 KB
- 参考文档evals/trigger_eval.json856 B
- 其他examples/demo/.gitignore46 B
- 资产文件examples/demo/assets/fonts/alfa-slab-one.woff211.3 KB
- 资产文件examples/demo/assets/fonts/anton.woff211.7 KB
- 资产文件examples/demo/assets/fonts/big-shoulders-stencil-900.woff214.3 KB
- 资产文件examples/demo/assets/fonts/bodoni-moda-900.woff214.0 KB
- 资产文件examples/demo/assets/fonts/michroma.woff211.3 KB
- 资产文件examples/demo/assets/fonts/monoton.woff216.1 KB
- 资产文件examples/demo/assets/fonts/pacifico.woff221.8 KB
- 资产文件examples/demo/assets/fonts/rubik-mono-one.woff26.9 KB
- 资产文件examples/demo/assets/fonts/unifraktur-maguntia.woff221.8 KB
- 参考文档examples/demo/compositions/corridor.html8.9 KB
- 参考文档examples/demo/compositions/slam.html5.8 KB
- 参考文档examples/demo/compositions/strobe.html6.9 KB
- 参考文档examples/demo/compositions/zine.html10.8 KB
- 参考文档examples/demo/hyperframes.json318 B
- 参考文档examples/demo/index.html2.6 KB
- 参考文档examples/demo/meta.json79 B
- 参考文档examples/demo/package.json293 B
- 参考文档examples/demo/README.md4.8 KB
- 参考文档README.md6.5 KB
- 参考文档references/anime-command-screen.md4.8 KB
- 参考文档references/bitten-word-title.md3.9 KB
- 参考文档references/crt-decrypt-title.md4.8 KB
- 参考文档references/didone-city-title.md4.7 KB
- 参考文档references/echo-halftone-portrait.md4.3 KB
- 参考文档references/glyph-tracking-terminal.md4.6 KB
- 参考文档references/hyphen-bridge-wordmark.md4.1 KB
- 参考文档references/justified-manifesto.md4.4 KB
- 参考文档references/liquid-art-reveal.md4.2 KB
- 参考文档references/particle-burst-title.md4.2 KB
- 参考文档references/perspective-photo-wall.md5.0 KB
- 参考文档references/photocopy-explainer.md4.6 KB
- 参考文档references/red-beat-words.md4.1 KB
- 参考文档references/scan-glitch-wordmark.md4.7 KB
- 参考文档references/shared-type-craft.md5.2 KB
- 参考文档references/sources.md11.4 KB
- 参考文档references/type-specimen-grid.md4.8 KB
- 参考文档references/typeface-strobe.md4.4 KB
- 参考文档references/word-corridor.md4.5 KB
03 SKILL.md 正文
Init Agentic Skills
Invoke as $init-agentic-skills.
Make the base agentic-skills available by installing them project-local into the current project's .claude/skills and .codex/skills. Installation is distributed through the npm skillpacks package — there is no user-home (global) install path. Active installs are repo-managed directories that expose the canonical SKILL.md and exclude archive/; pinned installs intentionally point at archive/<version>. Keep domain packs project-local too; use the Guided Pack Setup below, or npx skillpacks install <pack-or-skill> when packs are needed.
Process
- Parse
$ARGUMENTS:- No args,
init, orrefresh: runnpx skillpacks initfrom the project root to install the base skills project-local (.claude/skills+.codex/skills) and enablebase_skillsin.agents/project.json. Usenpx skillpacks refreshinstead when the project is already initialized and you only need to recreate roots from.agents/project.json. status: runnpx skillpacks statusto report the project designation, enabled packs, and installed skills.doctor: runnpx skillpacks doctorto report project skill-install drift (read-only). It compares installed.claude/skillsand.codex/skillscopies against their canonical sources via the.agentic-skills-managedmarker'ssource_sha. ReportSTALEskills with the printed fix command,unknownskills as needing a refresh to enable tracking,missingskills whose source is gone, andpinnedskills as frozen. Runnpx skillpacks doctor --fixto clean generated skill-root drift.uninstall-global: runnpx skillpacks uninstall-globalonly after confirming the user wants legacy repo-managed base installs removed from~/.claude/skillsand~/.codex/skills. This cleans up installs created by the retired user-home init path; it removes only skillpacks-owned installs and leaves unmanaged directories untouched.help,--help, or-h: runnpx skillpacks --help.
- No args,
- Report the command run, the project skill directories, installed counts, and any warnings about non-repo-managed collisions.
- Explain pack access separately:
- Do not install
packs/*as base skills. - In the project that needs domain workflows, run the Guided Pack Setup below, or
npx skillpacks install <pack-or-skill>from the project shell for an explicit pack or individual pack skill. - If a project already has
.agents/project.json, runscripts/pack.sh refresh(ornpx skillpacks refresh) after this base initialization to recreate local pack skill roots.
- Do not install
- If the active session still cannot see a newly installed or refreshed skill, report the skill-visibility reload path:
- Claude Code: run
/reload-skillsfirst;/clearstarts a new empty-context conversation and can pick up the refreshed registry; restart if the top-level.claude/skillsdirectory did not exist at session start or the skill is still invisible. - Codex: start a fresh Codex CLI session if the
$skill list remains stale.
- Claude Code: run
Guided Pack Setup
Run this when the user wants to enable domain packs in a project and has not named an explicit pack list.
- If
.agents/project.jsonexists, runscripts/pack.sh refreshto recreate local pack skill roots from committed project state, then report the project type, enabled packs, and installed skills. Ifrefreshfails, report the failure and the exact command the user can retry. - If
.agents/project.jsonis missing, inspect the repository before asking the user:- Run
scripts/pack.sh recommend. - Check top-level files and directories, package manifests, app/framework configs, source layout, docs, existing
research/,specs/, andtasks/files. - Classify likely packs using the Pack Selection rules below.
- Present a concise recommendation with evidence.
- Present a plain-text Pack Decision Checkpoint (template below): show 2-4 numbered choices, mark the recommended choice, explain the tradeoff for each, and ask the user to reply with a number, exact pack list,
status, orcancel. Include kanban only as an explicit opt-in when there is evidence of PoketoWork usage or the user asked for kanban. - Stop after the checkpoint. Do not install anything until the user explicitly confirms a choice in a later message.
- After the user confirms, run the source-checkout helper
scripts/pack.sh install <pack...>. For package consumers outside this checkout, the equivalent project-shell route isnpx skillpacks install <pack...>.
- Run
- For
install,refresh, and guided setup installs, report:.agents/project.jsonproject type and enabled packs- any
enabled_skillsentries when present, including the skill name and source pack - any
project_scopesentries when present, including the path,project_type, packs, and purpose - local skill roots created or removed under
.claude/skillsand.codex/skills - any skipped roots caused by non-repo-managed targets
- shipping guidance:
.agents/project.jsonis the committed project designation and should be committed when pack configuration changed;.claude/skills/**and.codex/skills/**are generated local skill roots recreated byscripts/pack.sh refresh, and generated skill roots must not be staged or committed
Do not create .agents/project.json without user confirmation during guided setup.
Pack Decision Checkpoint
Use this format when Codex needs user confirmation and request_user_input is unavailable:
## Pack Decision Checkpoint
Detected:
- [evidence]
Recommendation: `<pack>` because [reason].
Choose one:
1. `<pack>` (Recommended) — [impact/tradeoff]
2. `<alternate-pack>` — [impact/tradeoff]
3. `<pack> <matching-kanban-pack>` — [impact/tradeoff]
4. `cancel` — leave the project unconfigured
Reply with a number or an exact pack list to install.
Pack Selection
- Use
business-discovery,customer-lifecycle,business-growth, orbusiness-opsfor SaaS, marketplaces, productivity apps, internal/admin tools, business workflows, and enterprise applications.business-appis a compatibility alias for all four. - Use
creator-foundation,youtube-ops, andremotionseparately for creator-media work;creator-mediais a compatibility alias for foundation plus YouTube operations. - Use
project-fleetfor control repositories that manage downstream repos, spec-store portfolios, or spin-offs. - Use
code-qualityas an additive pack for behavior-preserving refactors, type hygiene, import honesty, dependency-boundary cleanup, and module organization. - Use
alignment-loopfor lightweight operator-agent calibration before committing to a full spec-interview pipeline. - Use
gamefor video games, prototypes, playable entertainment, game engines, store pages, playtest loops, and game assets. - Use
devtoolfor SDKs, CLIs, APIs, libraries, infrastructure products, developer platforms, and documentation-first developer workflows. - PoketoWork kanban packs (
business-app-kanban,devtool-kanban,game-kanban, andpoketowork-kanban) are hibernated while Poketo.work is being rebuilt. Do not recommend or install kanban packs until they are reactivated. - Use
exec-loopfor the plan-exec-ship execution workflow (ship, run, ship-end). - Use
agent-work-adminfor roadmap management, phase planning, and spec-drift auditing. - Use
product-designfor UX exploration, prototyping, feature/spec/UI interviews, brainstorming, and design systems. - Use
code-reviewfor expert reviews, slim audits, dead-code scans, and regression checks. - Use
code-debugfor investigation, debugging, and request tracing. - Use
release-opsfor branch lifecycle management, deployment, and releases. - Use
product-testingfor UAT journeys and dogfooding. - Use
docs-healthfor project hygiene auditing and dev-docs reconciliation. - Use
research-adminfor research and documentation queue management. - Use
skill-devfor building, interviewing, and creating agentic skills. - Use
guided-walkthroughfor step-by-step guides and UAT walkthroughs. - Use
session-analyticsfor session history analysis and incident triage. - Use
teardownfor project teardowns and decommissioning. - Use
code-maintenancefor migrations and package updates. - Use
gitopsfor git sync and feature-based commit workflows. - Use
context-transferfor session handoffs. - Use
agent-bridgefor delegating work to other agents. - Use
repo-maintenancefor bootstrapping new repos. - Use
website-polishfor icon and web asset handling. - Use
report-genfor generating HTML report websites. - Use
knowledge-checkfor quiz-style knowledge reviews. - Use
exec-profilefor execution profile patching. - Use
alignment-page-adminfor compiling central alignment pages. - Treat
monorepoandcode-qualityas overlays. Pair overlays with a domain pack unless the user explicitly wants only the overlay behavior. - For workflow ordering, lead-in recommendations, and overlay dependencies, read
docs/pack-workflow-matrix.md.
Mixed Monorepos
Use one repo-level .agents/project.json with a primary default plus scoped overrides:
{
"project_type": "devtool",
"enabled_packs": ["devtool", "business-discovery", "customer-lifecycle", "business-growth"],
"skill_pack_version": 1,
"project_scopes": [
{
"path": "apps/pitwall-local",
"project_type": "devtool",
"packs": ["devtool"],
"purpose": "Pitwall Local / OSS developer utility work."
},
{
"path": "apps/pitwall-calcllm",
"project_type": "business-app",
"packs": ["business-discovery", "customer-lifecycle", "business-growth"],
"purpose": "CalcLLM-powered connected edition research, GTM, monetization, and SaaS product work."
},
{
"path": "packages/calcllm-sync",
"project_type": "business-app",
"packs": ["business-discovery", "customer-lifecycle", "business-growth"],
"purpose": "Connected-edition sync and SaaS integration work."
}
]
}
When a task clearly names a scoped path, route to that scope's project_type and packs. When no scope matches, use the top-level project_type as the default.
Constraints
- Drive installation through
npx skillpacks(the npmskillpacksCLI); do not recreate install logic by hand or reintroduce a user-home/global install path. - Base skills are project-local: they install into the current project's
.claude/skillsand.codex/skills, not into~/.claude/skillsor~/.codex/skills. - Do not overwrite real directories or files under
.claude/skillsor.codex/skillsthat are not repo-managed. - Treat packs as project-local capabilities managed through the Guided Pack Setup above or
scripts/pack.sh(npx skillpacksunder the hood). - Stop and report exact errors if
npx skillpacksfails. - Do not install
packs/*as base skills in any mode.
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.