Scripts Reference

Compact command index for all scripts in this repository.

Install & Base

Command Description
npx skillpacks initInstall managed base skill directories into the current project's local .claude/skills/ and .codex/skills/ roots and record base_skills: true in .agents/project.json
`npx skillpacks cleanup [--all\--global] [--dry-run]`Remove or preview deprecated skillpacks state: stale BIP config below the current directory by default, or legacy user-home base installs plus projects below the user home with --global
npx skillpacks pin ship v0.0Pin a project-local base skill to an archived version

Project Packs

Command Description
scripts/pack.sh listList available packs
scripts/pack.sh recommendSuggest a pack based on repository contents
scripts/pack.sh install <pack-or-skill>Install a pack or individual skill into the current project
scripts/pack.sh remove <pack-or-skill>Remove an installed pack or skill
scripts/pack.sh refreshRe-copy all installs from canonical sources, clearing drift
scripts/pack.sh statusShow current project designation and installed packs
scripts/pack.sh doctorRead-only drift report (ok / stale / unknown / pinned / missing-source)
scripts/pack.sh which <skill>Show which pack provides a skill and whether it is installed
scripts/pack.sh pin <skill> <ver>Pin a skill to an archived version
scripts/pack.sh unpin <skill>Return a pinned skill to track-latest
scripts/pack.sh set-mode <mode>Set agent mode: claude-only, codex-only, hybrid, or unset
scripts/pack.sh set-update-mode <mode>Set drift update mode: warn, auto, or unset
scripts/pack.sh list-packsInternal: print enabled packs (used by Codex $exec routing)

Mode & Handoff

Command Description
scripts/agent-mode.shResolve effective agent mode (env > project.json > empty)
scripts/approved-plan.sh checkInspect approval-packet lifecycle and validity
scripts/approved-plan.sh consumeMark an approved packet as consumed
scripts/approved-plan.sh mark-staleManually mark a packet as stale

Skill Hygiene

Command Description
./scripts/skill-deps.sh --brokenFind broken cross-references between skills
./scripts/skill-pack-routing-audit.shAudit routing contract consistency
./scripts/skill-versions.sh --missingFind skills missing version metadata
bash scripts/skill-archive.sh <skill-dir>Archive current SKILL.md before a version bump
bash scripts/skill-archive-audit.shAudit archive integrity
bash scripts/skill-archive-audit.sh --strictStrict archive integrity (non-zero exit on any issue)

Base Skill Management

Command Description
npx skillpacks initInstall managed base skills into the current project's local .claude/skills/ and .codex/skills/ roots
npx skillpacks doctorCheck project-local base skill drift
npx skillpacks refreshRe-copy project-local managed base skills, clearing drift
npx skillpacks pin <skill> <version>Pin a project-local base skill to an archived version
`npx skillpacks cleanup [--all\--global] [--dry-run]`Remove or preview deprecated skillpacks state; use --global for legacy user-home base installs

Testing & Benchmarks

Command Description
pnpm --dir tests testRun unit and integration tests (no model calls)
pnpm --dir tests test:liveRun live agent behavior tests (Claude + Codex)
pnpm --dir tests test:live:claudeRun live tests (Claude only)
pnpm --dir tests test:live:codexRun live tests (Codex only)

Public Export Generation

Command Description
node scripts/generate-skills-catalog-export.mjsGenerate committed public skills-catalog exports
scripts/validate-skills-catalog-export.shValidate committed public skills-catalog exports are fresh
npm run exports:checkPackage-script wrapper for the export validator

Alignment Page Management

Command Description
node scripts/open-html-page.mjs <html-path-or-url> --browser autoOpen or focus a local HTML page with best-effort cross-platform browser handling
node scripts/upgrade-alignment-page.mjsRegenerate per-skill ALIGNMENT-PAGE.md from convention
node scripts/audit-alignment-pages.mjs [--root <path>]Read-only convention audit for active alignment/*.html pages
node scripts/inject-tts.mjs [--dir <subdir>] [--force] [<page>]Inject the Brief Me TTS include into pages (default alignment/; --dir interrogation for interrogation pages)

Interrogation Page Management

Command Description
node scripts/upgrade-interrogation-page.mjs [--check] [--dry-run]Regenerate per-skill INTERROGATION-PAGE.md from docs/interrogation-page-convention.md for participating skills; --check is the repo-state drift gate
node scripts/audit-interrogation-pages.mjs [--root <path>]Read-only convention audit for active interrogation/*.html pages (TTS, metadata, ≥1 open input, confidence gate, round naming, answer sidecar)