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, or refresh: run npx skillpacks init from the project root to install the base skills project-local (.claude/skills + .codex/skills) and enable base_skills in .agents/project.json. Use npx skillpacks refresh instead when the project is already initialized and you only need to recreate roots from .agents/project.json.
status: run npx skillpacks status to report the project designation, enabled packs, and installed skills.
doctor: run npx skillpacks doctor to report project skill-install drift (read-only). It compares installed .claude/skills and .codex/skills copies against their canonical sources via the .agentic-skills-managed marker's source_sha. Report STALE skills with the printed fix command, unknown skills as needing a refresh to enable tracking, missing skills whose source is gone, and pinned skills as frozen. Run npx skillpacks doctor --fix to clean generated skill-root drift.
uninstall-global: run npx skillpacks uninstall-global only after confirming the user wants legacy repo-managed base installs removed from ~/.claude/skills and ~/.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: run npx skillpacks --help.
- 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, run scripts/pack.sh refresh (or npx skillpacks refresh) after this base initialization to recreate local pack skill roots.
- If the active session still cannot see a newly installed or refreshed skill, report the skill-visibility reload path:
- Claude Code: run
/reload-skills first; /clear starts a new empty-context conversation and can pick up the refreshed registry; restart if the top-level .claude/skills directory 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.
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.json exists, run scripts/pack.sh refresh to recreate local pack skill roots from committed project state, then report the project type, enabled packs, and installed skills. If refresh fails, report the failure and the exact command the user can retry.
- If
.agents/project.json is 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/, and tasks/ 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, or cancel. 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 is npx skillpacks install <pack...>.
- For
install, refresh, and guided setup installs, report:
.agents/project.json project type and enabled packs
- any
enabled_skills entries when present, including the skill name and source pack
- any
project_scopes entries when present, including the path, project_type, packs, and purpose
- local skill roots created or removed under
.claude/skills and .codex/skills
- any skipped roots caused by non-repo-managed targets
- shipping guidance:
.agents/project.json is the committed project designation and should be committed when pack configuration changed; .claude/skills/** and .codex/skills/** are generated local skill roots recreated by scripts/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, or business-ops for SaaS, marketplaces, productivity apps, internal/admin tools, business workflows, and enterprise applications. business-app is a compatibility alias for all four.
- Use
creator-foundation, youtube-ops, and remotion separately for creator-media work; creator-media is a compatibility alias for foundation plus YouTube operations.
- Use
project-fleet for control repositories that manage downstream repos, spec-store portfolios, or spin-offs.
- Use
code-quality as an additive pack for behavior-preserving refactors, type hygiene, import honesty, dependency-boundary cleanup, and module organization.
- Use
alignment-loop for lightweight operator-agent calibration before committing to a full spec-interview pipeline.
- Use
game for video games, prototypes, playable entertainment, game engines, store pages, playtest loops, and game assets.
- Use
devtool for SDKs, CLIs, APIs, libraries, infrastructure products, developer platforms, and documentation-first developer workflows.
- PoketoWork kanban packs (
business-app-kanban, devtool-kanban, game-kanban, and poketowork-kanban) are hibernated while Poketo.work is being rebuilt. Do not recommend or install kanban packs until they are reactivated.
- Use
exec-loop for the plan-exec-ship execution workflow (ship, run, ship-end).
- Use
agent-work-admin for roadmap management, phase planning, and spec-drift auditing.
- Use
product-design for UX exploration, prototyping, feature/spec/UI interviews, brainstorming, and design systems.
- Use
code-review for expert reviews, slim audits, dead-code scans, and regression checks.
- Use
code-debug for investigation, debugging, and request tracing.
- Use
release-ops for branch lifecycle management, deployment, and releases.
- Use
product-testing for UAT journeys and dogfooding.
- Use
docs-health for project hygiene auditing and dev-docs reconciliation.
- Use
research-admin for research and documentation queue management.
- Use
skill-dev for building, interviewing, and creating agentic skills.
- Use
guided-walkthrough for step-by-step guides and UAT walkthroughs.
- Use
session-analytics for session history analysis and incident triage.
- Use
teardown for project teardowns and decommissioning.
- Use
code-maintenance for migrations and package updates.
- Use
gitops for git sync and feature-based commit workflows.
- Use
context-transfer for session handoffs.
- Use
agent-bridge for delegating work to other agents.
- Use
repo-maintenance for bootstrapping new repos.
- Use
website-polish for icon and web asset handling.
- Use
report-gen for generating HTML report websites.
- Use
knowledge-check for quiz-style knowledge reviews.
- Use
exec-profile for execution profile patching.
- Use
alignment-page-admin for compiling central alignment pages.
- Treat
monorepo and code-quality as 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 npm skillpacks CLI); 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/skills and .codex/skills, not into ~/.claude/skills or ~/.codex/skills.
- Do not overwrite real directories or files under
.claude/skills or .codex/skills that are not repo-managed.
- Treat packs as project-local capabilities managed through the Guided Pack Setup above or
scripts/pack.sh (npx skillpacks under the hood).
- Stop and report exact errors if
npx skillpacks fails.
- Do not install
packs/* as base skills in any mode.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
1---2name: init-agentic-skills3description: 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.4---56# Init Agentic Skills78Invoke as `$init-agentic-skills`.910Make 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.1112## Process13141. Parse `$ARGUMENTS`:15 - No args, `init`, or `refresh`: run `npx skillpacks init` from the project root to install the base skills project-local (`.claude/skills` + `.codex/skills`) and enable `base_skills` in `.agents/project.json`. Use `npx skillpacks refresh` instead when the project is already initialized and you only need to recreate roots from `.agents/project.json`.16 - `status`: run `npx skillpacks status` to report the project designation, enabled packs, and installed skills.17 - `doctor`: run `npx skillpacks doctor` to report project skill-install drift (read-only). It compares installed `.claude/skills` and `.codex/skills` copies against their canonical sources via the `.agentic-skills-managed` marker's `source_sha`. Report `STALE` skills with the printed fix command, `unknown` skills as needing a refresh to enable tracking, `missing` skills whose source is gone, and `pinned` skills as frozen. Run `npx skillpacks doctor --fix` to clean generated skill-root drift.18 - `uninstall-global`: run `npx skillpacks uninstall-global` only after confirming the user wants legacy repo-managed base installs removed from `~/.claude/skills` and `~/.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.19 - `help`, `--help`, or `-h`: run `npx skillpacks --help`.202. Report the command run, the project skill directories, installed counts, and any warnings about non-repo-managed collisions.213. Explain pack access separately:22 - Do not install `packs/*` as base skills.23 - 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.24 - If a project already has `.agents/project.json`, run `scripts/pack.sh refresh` (or `npx skillpacks refresh`) after this base initialization to recreate local pack skill roots.254. If the active session still cannot see a newly installed or refreshed skill, report the skill-visibility reload path:26 - Claude Code: run `/reload-skills` first; `/clear` starts a new empty-context conversation and can pick up the refreshed registry; restart if the top-level `.claude/skills` directory did not exist at session start or the skill is still invisible.27 - Codex: start a fresh Codex CLI session if the `$` skill list remains stale.2829## Guided Pack Setup3031Run this when the user wants to enable domain packs in a project and has not named an explicit pack list.32331. If `.agents/project.json` exists, run `scripts/pack.sh refresh` to recreate local pack skill roots from committed project state, then report the project type, enabled packs, and installed skills. If `refresh` fails, report the failure and the exact command the user can retry.342. If `.agents/project.json` is missing, inspect the repository before asking the user:35 - Run `scripts/pack.sh recommend`.36 - Check top-level files and directories, package manifests, app/framework configs, source layout, docs, existing `research/`, `specs/`, and `tasks/` files.37 - Classify likely packs using the Pack Selection rules below.38 - Present a concise recommendation with evidence.39 - 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`, or `cancel`. Include kanban only as an explicit opt-in when there is evidence of PoketoWork usage or the user asked for kanban.40 - Stop after the checkpoint. Do not install anything until the user explicitly confirms a choice in a later message.41 - 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 is `npx skillpacks install <pack...>`.423. For `install`, `refresh`, and guided setup installs, report:43 - `.agents/project.json` project type and enabled packs44 - any `enabled_skills` entries when present, including the skill name and source pack45 - any `project_scopes` entries when present, including the path, `project_type`, packs, and purpose46 - local skill roots created or removed under `.claude/skills` and `.codex/skills`47 - any skipped roots caused by non-repo-managed targets48 - shipping guidance: `.agents/project.json` is the committed project designation and should be committed when pack configuration changed; `.claude/skills/**` and `.codex/skills/**` are generated local skill roots recreated by `scripts/pack.sh refresh`, and generated skill roots must not be staged or committed4950Do not create `.agents/project.json` without user confirmation during guided setup.5152## Pack Decision Checkpoint5354Use this format when Codex needs user confirmation and `request_user_input` is unavailable:5556```57## Pack Decision Checkpoint5859Detected:60- [evidence]6162Recommendation: `<pack>` because [reason].6364Choose one:651. `<pack>` (Recommended) — [impact/tradeoff]662. `<alternate-pack>` — [impact/tradeoff]673. `<pack> <matching-kanban-pack>` — [impact/tradeoff]684. `cancel` — leave the project unconfigured6970Reply with a number or an exact pack list to install.71```7273## Pack Selection7475- Use `business-discovery`, `customer-lifecycle`, `business-growth`, or `business-ops` for SaaS, marketplaces, productivity apps, internal/admin tools, business workflows, and enterprise applications. `business-app` is a compatibility alias for all four.76- Use `creator-foundation`, `youtube-ops`, and `remotion` separately for creator-media work; `creator-media` is a compatibility alias for foundation plus YouTube operations.77- Use `project-fleet` for control repositories that manage downstream repos, spec-store portfolios, or spin-offs.78- Use `code-quality` as an additive pack for behavior-preserving refactors, type hygiene, import honesty, dependency-boundary cleanup, and module organization.79- Use `alignment-loop` for lightweight operator-agent calibration before committing to a full spec-interview pipeline.80- Use `game` for video games, prototypes, playable entertainment, game engines, store pages, playtest loops, and game assets.81- Use `devtool` for SDKs, CLIs, APIs, libraries, infrastructure products, developer platforms, and documentation-first developer workflows.82- PoketoWork kanban packs (`business-app-kanban`, `devtool-kanban`, `game-kanban`, and `poketowork-kanban`) are hibernated while Poketo.work is being rebuilt. Do not recommend or install kanban packs until they are reactivated.83- Use `exec-loop` for the plan-exec-ship execution workflow (ship, run, ship-end).84- Use `agent-work-admin` for roadmap management, phase planning, and spec-drift auditing.85- Use `product-design` for UX exploration, prototyping, feature/spec/UI interviews, brainstorming, and design systems.86- Use `code-review` for expert reviews, slim audits, dead-code scans, and regression checks.87- Use `code-debug` for investigation, debugging, and request tracing.88- Use `release-ops` for branch lifecycle management, deployment, and releases.89- Use `product-testing` for UAT journeys and dogfooding.90- Use `docs-health` for project hygiene auditing and dev-docs reconciliation.91- Use `research-admin` for research and documentation queue management.92- Use `skill-dev` for building, interviewing, and creating agentic skills.93- Use `guided-walkthrough` for step-by-step guides and UAT walkthroughs.94- Use `session-analytics` for session history analysis and incident triage.95- Use `teardown` for project teardowns and decommissioning.96- Use `code-maintenance` for migrations and package updates.97- Use `gitops` for git sync and feature-based commit workflows.98- Use `context-transfer` for session handoffs.99- Use `agent-bridge` for delegating work to other agents.100- Use `repo-maintenance` for bootstrapping new repos.101- Use `website-polish` for icon and web asset handling.102- Use `report-gen` for generating HTML report websites.103- Use `knowledge-check` for quiz-style knowledge reviews.104- Use `exec-profile` for execution profile patching.105- Use `alignment-page-admin` for compiling central alignment pages.106- Treat `monorepo` and `code-quality` as overlays. Pair overlays with a domain pack unless the user explicitly wants only the overlay behavior.107- For workflow ordering, lead-in recommendations, and overlay dependencies, read `docs/pack-workflow-matrix.md`.108109## Mixed Monorepos110111Use one repo-level `.agents/project.json` with a primary default plus scoped overrides:112113```json114{115 "project_type": "devtool",116 "enabled_packs": ["devtool", "business-discovery", "customer-lifecycle", "business-growth"],117 "skill_pack_version": 1,118 "project_scopes": [119 {120 "path": "apps/pitwall-local",121 "project_type": "devtool",122 "packs": ["devtool"],123 "purpose": "Pitwall Local / OSS developer utility work."124 },125 {126 "path": "apps/pitwall-calcllm",127 "project_type": "business-app",128 "packs": ["business-discovery", "customer-lifecycle", "business-growth"],129 "purpose": "CalcLLM-powered connected edition research, GTM, monetization, and SaaS product work."130 },131 {132 "path": "packages/calcllm-sync",133 "project_type": "business-app",134 "packs": ["business-discovery", "customer-lifecycle", "business-growth"],135 "purpose": "Connected-edition sync and SaaS integration work."136 }137 ]138}139```140141When 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.142143## Constraints144145- Drive installation through `npx skillpacks` (the npm `skillpacks` CLI); do not recreate install logic by hand or reintroduce a user-home/global install path.146- Base skills are project-local: they install into the current project's `.claude/skills` and `.codex/skills`, not into `~/.claude/skills` or `~/.codex/skills`.147- Do not overwrite real directories or files under `.claude/skills` or `.codex/skills` that are not repo-managed.148- Treat packs as project-local capabilities managed through the Guided Pack Setup above or `scripts/pack.sh` (`npx skillpacks` under the hood).149- Stop and report exact errors if `npx skillpacks` fails.150- Do not install `packs/*` as base skills in any mode.151152## Default Shipping Contract153154Follow the shared shipping contract convention in CLAUDE.md.