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 Claude 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 Claude 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 资源文件 1
- 参考文档CHANGELOG.md3.6 KB
03 SKILL.md 正文
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. - 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.
- Use
AskUserQuestionto ask which pack or packs to install. Include the recommended pack first. Include kanban only as an explicit opt-in when there is evidence of PoketoWork usage or the user asked for kanban. - 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...>. - If the user cancels or asks for more detail, do not install anything.
- 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 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.