nitm-ai-dev-toolkit 5.1.2 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  # Cursor Skills
2
2
 
3
- This folder is for skills installed via `npx -y skills add <owner/repo> --skill '*' --agent github-copilot cursor`.
3
+ This folder is for skills installed via `npx -y skills add <owner/repo> --skill <confirmed name> --agent github-copilot cursor`.
4
4
 
5
5
  ## About Skills
6
6
 
@@ -12,13 +12,13 @@ Install skills from [skills.sh](https://skills.sh/) using the `-a cursor` flag:
12
12
 
13
13
  ```bash
14
14
  # For Cursor only
15
- npx -y skills add -a cursor <owner/repo> --skill '*' --agent github-copilot cursor
15
+ npx -y skills add -a cursor <owner/repo> --skill <confirmed name> --agent github-copilot cursor
16
16
 
17
17
  # For multiple agents (e.g., Cursor + GitHub Copilot)
18
- npx -y skills add -a cursor -a github-copilot <owner/repo> --skill '*' --agent github-copilot cursor
18
+ npx -y skills add -a cursor -a github-copilot <owner/repo> --skill <confirmed name> --agent github-copilot cursor
19
19
  ```
20
20
 
21
- **Tip:** The skills CLI automatically detects installed agents. If you omit `-a cursor`, you'll be prompted to choose from detected agents. Use `--skill '*' --agent github-copilot cursor` to avoid skill-selection prompts when installing from a repo.
21
+ **Tip:** The skills CLI automatically detects installed agents. If you omit `-a cursor`, you'll be prompted to choose from detected agents. Use `--skill <confirmed name> --agent github-copilot cursor` when installing one named skill from a repo.
22
22
 
23
23
  **Important:** Always use `-a cursor` to install only for Cursor (or add multiple `-a` flags if you use multiple agents). This prevents creating unnecessary configuration files for other agents.
24
24
 
@@ -37,14 +37,14 @@ Universal workflow skills are pre-installed in `.agents/skills/`. These include:
37
37
 
38
38
  ```bash
39
39
  # Frontend skills
40
- npx -y skills add -a cursor onmax/nuxt-skills --skill '*' --agent github-copilot cursor
41
- npx -y skills add -a cursor vercel-labs/agent-skills --skill '*' --agent github-copilot cursor
40
+ npx -y skills add -a cursor onmax/nuxt-skills --skill vue --agent github-copilot cursor
41
+ npx -y skills add -a cursor vercel-labs/agent-skills --skill vercel-react-best-practices --agent github-copilot cursor
42
42
 
43
43
  # Security skills
44
- npx -y skills add -a cursor trailofbits/skills --skill '*' --agent github-copilot cursor
44
+ npx -y skills add -a cursor trailofbits/skills --skill <confirmed name> --agent github-copilot cursor
45
45
 
46
46
  # Framework-specific
47
- npx -y skills add -a cursor better-auth/skills --skill '*' --agent github-copilot cursor
47
+ npx -y skills add -a cursor better-auth/skills --skill <confirmed name> --agent github-copilot cursor
48
48
  ```
49
49
 
50
50
  See the main README.md for a full list of recommended skills.
@@ -1,6 +1,6 @@
1
1
  # GitHub Copilot Skills
2
2
 
3
- This folder is for skills installed via `npx -y skills add <owner/repo> --skill '*' --agent github-copilot cursor` when using GitHub Copilot.
3
+ This folder is for skills installed via `npx -y skills add <owner/repo> --skill <confirmed name> --agent github-copilot cursor` when using GitHub Copilot.
4
4
 
5
5
  ## About Skills
6
6
 
@@ -12,13 +12,13 @@ Install skills from [skills.sh](https://skills.sh/) using the `-a github-copilot
12
12
 
13
13
  ```bash
14
14
  # For GitHub Copilot only
15
- npx -y skills add -a github-copilot <owner/repo> --skill '*' --agent github-copilot cursor
15
+ npx -y skills add -a github-copilot <owner/repo> --skill <confirmed name> --agent github-copilot cursor
16
16
 
17
17
  # For multiple agents (e.g., Copilot + Cursor)
18
- npx -y skills add -a github-copilot -a cursor <owner/repo> --skill '*' --agent github-copilot cursor
18
+ npx -y skills add -a github-copilot -a cursor <owner/repo> --skill <confirmed name> --agent github-copilot cursor
19
19
  ```
20
20
 
21
- **Tip:** The skills CLI automatically detects installed agents. If you omit `-a github-copilot`, you'll be prompted to choose from detected agents. Use `--skill '*' --agent github-copilot cursor` to avoid skill-selection prompts when installing from a repo.
21
+ **Tip:** The skills CLI automatically detects installed agents. If you omit `-a github-copilot`, you'll be prompted to choose from detected agents. Use `--skill <confirmed name> --agent github-copilot cursor` when installing one named skill from a repo.
22
22
 
23
23
  **Important:** Always use `-a github-copilot` to install only for GitHub Copilot (or add multiple `-a` flags if you use multiple agents). This prevents creating unnecessary configuration files for other agents.
24
24
 
@@ -9,3 +9,7 @@ description: "Review currently staged files before committing"
9
9
  |-------|-------------|
10
10
  | `reviewer` | Standard pre-commit review — correctness, style, patterns |
11
11
  | `oracle` | Complex staged change — trade-offs, security, scalability |
12
+
13
+ Read and follow `.claude/prompt-snippets/review-staged.md` before executing this command.
14
+
15
+ $ARGUMENTS
@@ -117,11 +117,13 @@ The CLI runs the same patch flow without an AI session: `npx nitm-ai-dev-toolkit
117
117
 
118
118
  For each category, compare template files against project files:
119
119
 
120
- a. **Classify each file**:
121
- - **🆕 New**: Exists in template but not in project → candidate for addition
122
- - **📝 Updated**: Exists in both but template has newer content → candidate for merge
123
- - **✅ Current**: Exists in both and content matches → no action needed
124
- - **🔧 Customized**: Exists in both, project version has non-placeholder customizations → careful merge
120
+ a. **Classify each file** (relevance-aware; never a wholesale copy). `npx nitm-ai-dev-toolkit patch --dry-run` makes this classification and prints each reason. Read that plan before deciding anything, and see Relevance and Retirement in `bootstrap.md`:
121
+ - **add**: missing, and it applies to this project (tracker, Playwright, Prisma, UI, and MCP relevance)
122
+ - **update**: the toolkit wrote it and the project has not changed it since; the new template replaces it
123
+ - **current**: identical to the template; no action
124
+ - **needs review**: differs from the template (locally changed), or missing while relevance is undecided; never overwritten, and never added without a decision
125
+ - **not relevant**: does not apply to this project; never added. A present copy is a retirement candidate
126
+ - **retired**: listed in `.nitm/retired.json`; never added, updated or overwritten
125
127
  - **⚠️ Missing in Template**: Exists in project but not in template → project-specific, keep as-is except the approved obsolete toolkit Ponytail removal above
126
128
 
127
129
  b. **For updated files, generate a structured diff**:
@@ -132,7 +134,7 @@ The CLI runs the same patch flow without an AI session: `npx nitm-ai-dev-toolkit
132
134
 
133
135
  c. **Smart Merge Rules**:
134
136
  - **Never overwrite** project-specific values that replaced `{{PLACEHOLDER}}`
135
- - **Always add** new files that don't exist in the project
137
+ - **Add only** files classified *add*. Never add a not-relevant or retired file, and never add a file whose relevance is undecided without the operator's decision
136
138
  - **Merge structural additions** into existing customized files
137
139
  - **Flag for review** any removals from files that have been customized
138
140
  - **Preserve custom agents/skills** that were added by the project
@@ -146,13 +148,13 @@ The CLI runs the same patch flow without an AI session: `npx nitm-ai-dev-toolkit
146
148
  **Project Type**: repo | monorepo
147
149
  **Categories Scanned**: [list]
148
150
 
149
- ### 🆕 New Files (X files)
151
+ ### 🆕 Add (X files; apply to this project)
150
152
 
151
153
  | File | Category | Description |
152
154
  | ---------------------------- | -------- | ------------------------ |
153
155
  | `.cursor/rules/new-rule.mdc` | Rules | New coding standard rule |
154
156
 
155
- ### 📝 Updated Files (X files)
157
+ ### 📝 Update (X files; unchanged since the toolkit wrote them)
156
158
 
157
159
  | File | Changes | Risk |
158
160
  | ------------------------------- | ----------------------------- | -------------- |
@@ -162,16 +164,30 @@ The CLI runs the same patch flow without an AI session: `npx nitm-ai-dev-toolkit
162
164
 
163
165
  [No action needed]
164
166
 
165
- ### 🔧 Customized Files Requiring Review (X files)
167
+ ### 🔧 Needs Review (X files; locally changed or undecided; not written)
166
168
 
167
169
  | File | Template Changes | Project Customizations | Merge Strategy |
168
170
  | ----------- | ----------------- | ---------------------------- | -------------- |
169
171
  | `AGENTS.md` | New section added | Has project-specific content | Manual merge |
170
172
 
173
+ ### 🚫 Not Relevant or Retired (X files; not written)
174
+
175
+ | File | Reason | Action |
176
+ | -------------------------------------- | ----------------------------------- | ----------------------------------- |
177
+ | `.claude/commands/playwright-test.md` | No Playwright setup detected | Keep out; retire if present (approval) |
178
+ | `.agents/skills/linear-cli/SKILL.md` | Project tracker is GitHub | Retire in `.nitm/retired.json` |
179
+
180
+ ### 🩹 Harness Wrappers to Review (X files; proposals only)
181
+
182
+ | Wrapper | Finding | Proposal |
183
+ | --------------------------- | ------------------------------------ | ----------------------------------------- |
184
+ | `.claude/rules/api-server.md` | Policy text outside the snippet link | Move the text into its snippet; keep a thin link |
185
+
171
186
  ### Summary
172
187
 
173
- - **Auto-apply**: X new files + Y updated files with no conflicts
174
- - **Review needed**: Z customized files with structural changes
188
+ - **Auto-apply**: X add + Y update entries, as printed by `patch`
189
+ - **Review needed**: Z needs-review files and W wrapper proposals
190
+ - **Not written**: N not-relevant or retired entries
175
191
  - **No action**: W files already current
176
192
  ```
177
193
 
@@ -179,9 +195,9 @@ The CLI runs the same patch flow without an AI session: `npx nitm-ai-dev-toolkit
179
195
  - If `--dry-run` flag: Output the report without making changes
180
196
  - Otherwise: Present the report and ask the user to confirm with (Y/n)
181
197
  - On confirmation:
182
- a. **New files**: Copy directly from template
183
- b. **Updated files (no customization)**: Replace with template version
184
- c. **Updated files (customized)**: Apply structural additions while preserving project values
198
+ a. **Add and update**: run `npx nitm-ai-dev-toolkit patch`. It writes only the add and update entries it printed; do not copy template files by hand
199
+ b. **Retirements**: after approval, record each path in `.nitm/retired.json` with a reason and date. Do not delete files to retire them
200
+ c. **Needs review**: propose a merge per file (structural additions, preserved project values) and apply it only after the operator approves that file. Wrappers that inline policy: propose moving the content into the snippet and reducing the wrapper to a thin link (see Thin Wrapper Policy in `bootstrap.md`)
185
201
  d. **OpenCode plugins**: Apply only the approved obsolete Ponytail cleanup above after backing up the known obsolete toolkit copies and local config; preserve all unrelated local/global plugins. Never add Ponytail to project config.
186
202
  e. **Toolkit version**: Keep the `.toolkit-version` value the CLI writes for the verified target version (the installed package version, 4.0.0 or later; never hard-coded) only after the approved migration and OpenCode preflight pass (or OpenCode is confirmed out of scope).
187
203
  f. **Git commit**: Stage and commit all changes with message:
@@ -104,7 +104,7 @@ For each file: read → extract body after frontmatter → write to snippet dest
104
104
 
105
105
  **Parallelizable**: Process rules, commands, and agents independently.
106
106
 
107
- Replace each file's body with a wrapper that preserves frontmatter and references the snippet:
107
+ Replace each file's body with a thin wrapper (see Thin Wrapper Policy in `bootstrap.md`) that preserves frontmatter and references the snippet. Move any policy text into the snippet first; the wrapper keeps only the link, a title and at most five key points:
108
108
 
109
109
  | File Type | Frontmatter to Keep | Reference Line |
110
110
  | --------------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------- |
@@ -188,7 +188,7 @@ For the v3 route, merge only relevant native OpenCode host fields; preserve exis
188
188
  - Back up the local config and known obsolete toolkit-owned `.opencode/plugins/ponytail.js`, `.opencode/plugins/ponytail.mjs`, and `.opencode/plugins/ponytail.ts` copies; obtain approval before removing only those copies. Preserve unrelated local plugins.
189
189
  - The OpenCode Ponytail plugin (`@dietrichgebert/ponytail`) is installed globally by the operator. Never add or pin it in the local `plugins` array. Check whether it is installed globally; if not, tell the operator to install it globally. Do not edit global config or overwrite global plugins. Keep `opentmux` commented as V1-only; do not copy local Ponytail source, port APIs, or introduce bridges. Runtime integration remains untested.
190
190
 
191
- 3. **Create wrappers with explicit snippet-read instructions** — one file per snippet:
191
+ 3. **Create wrappers with explicit snippet-read instructions** — only for entries the patch plan classifies *add* (never retired or not-relevant snippets), each one thin (see Thin Wrapper Policy in `bootstrap.md`), one file per snippet:
192
192
 
193
193
  | Directory | Source Snippets | Wrapper Body |
194
194
  | ------------------------- | -------------------------- | ------------------------------------ |
@@ -210,12 +210,13 @@ For the v3 route, merge only relevant native OpenCode host fields; preserve exis
210
210
 
211
211
  ### 8. Install Pre-Commit Hook
212
212
 
213
- Install the CHANGELOG/secrets enforcement hook to run before every commit:
213
+ Install the CHANGELOG/secrets enforcement hook before every commit, only with the operator's approval, only in a git repository, and never over an existing `.git/hooks/pre-commit`. If one exists, show the difference and propose chaining or merging instead:
214
214
 
215
215
  1. Copy `scripts/pre-commit-check.sh` from the template to the target project's `scripts/` directory
216
216
  2. Install as a git hook:
217
217
 
218
218
  ```bash
219
+ # only when .git/hooks/pre-commit does not exist yet
219
220
  cp scripts/pre-commit-check.sh .git/hooks/pre-commit
220
221
  chmod +x .git/hooks/pre-commit
221
222
  ```
@@ -228,10 +229,12 @@ This enforces:
228
229
 
229
230
  Use `git commit --no-verify` to bypass.
230
231
 
231
- ### 9. Install Project Hooks
232
+ ### 9. Install Project Hooks (only with approval)
232
233
 
233
- 1. Create `hooks/` directory in the target project
234
- 2. Copy all files from the template's `hooks/*` directory (preserve sub-structure)
234
+ The `hooks/` files are Claude Code plugin hooks (`${CLAUDE_PLUGIN_ROOT}`) and the Ponytail runtime. They fire only when installed through the Ponytail plugin, not from project settings. Copy only the files the operator approves for a project that uses that plugin, and never overwrite an existing hook file.
235
+
236
+ 1. Create `hooks/` in the target project when copying
237
+ 2. Copy the approved files from the template's `hooks/*` directory (preserve sub-structure); skip any file that already exists
235
238
  3. Make `.js` files executable on Unix: `chmod +x hooks/*.js`
236
239
 
237
240
  ### 10. Clean Up Duplicate Skills
@@ -27,6 +27,28 @@ Analyze the project structure and customize AI instruction templates for this co
27
27
  - Codex MCP uses native `[mcp_servers.name]` TOML, not `.mcp.json`. Treat other harness MCP templates as references only; do not activate servers, copy credentials, or install hooks automatically.
28
28
  - Update and audit only confirmed harness targets. For Codex-only setup, `AGENTS.md`, `.agents/skills/`, and `.codex/config.toml` are the native targets. `--env codex` also includes `.github/instructions/` and `.claude/rules-snippets/` solely as AGENTS-linked standards and their wrapper sources, not automatically loaded rules or evidence of Copilot/Claude use; other harness command, agent, and config directories are excluded. The remaining tool-specific examples below are conditional.
29
29
 
30
+ ## Thin Wrapper Policy
31
+
32
+ Canonical policy lives only in `.claude/rules-snippets/`, `.claude/prompt-snippets/`, and `.claude/agents-snippets/`. Every harness wrapper (`.claude/{rules,commands,agents}/`, `.cursor/{rules,commands,agents}/`, `.github/{instructions,prompts,agents}/`, `.opencode/{rules,commands,agents}/`, and Codex and Copilot entry files) is a thin link to its snippet: frontmatter, a title, the link line, at most five key points, and optionally one short summary line. Its agent-dispatch table is activation metadata and may stay.
33
+
34
+ - **Create or change policy in the snippet first, then the wrapper.** Never write a wrapper with a copy of the policy, and never let a wrapper diverge from its snippet.
35
+ - **Skills that restate a snippet's policy point to the snippet** (or, where the skill is the source, the snippet points to the skill). Keep one source of policy text.
36
+ - **Existing wrappers that inline policy or diverge from their snippet** are reported (`npx nitm-ai-dev-toolkit doctor` lists them). Propose moving the content into the snippet and reducing the wrapper to a link. Change nothing without the operator's approval.
37
+
38
+ ## Relevance and Retirement
39
+
40
+ The template ships files for every stack, tracker and test tool. Decide what applies to this project; do not copy the whole template.
41
+
42
+ - **Relevance comes from the project:** the tracker (git origin host, or `"trackers"` in `.nitm/retired.json`), Playwright, Prisma, the UI framework, and whether MCP servers are configured. `npx nitm-ai-dev-toolkit patch --dry-run` prints each template file's classification with its reason (add, update, needs review, not relevant, retired). Use that plan; do not copy template files by hand.
43
+ - **Retire what does not apply** by recording it in `.nitm/retired.json` after the operator agrees, with a reason and date:
44
+
45
+ ```json
46
+ { "retired": [{ "path": ".agents/skills/linear-cli", "reason": "GitHub Issues is the tracker", "date": "2026-10-27" }] }
47
+ ```
48
+
49
+ A directory path retires every file under it. Patch and upgrade never re-add retired paths, and doctor reports them as retired, not missing. Never delete files to retire them; that removes nothing from the template.
50
+ - **Override tracker detection** with `"trackers": ["github"]` (or `[]` for none) when the git origin does not name the tracker, for example a Linear project hosted on GitHub.
51
+
30
52
  ## Process
31
53
 
32
54
  > **Merge, don't clobber.** If a target file already exists and carries project-specific content — customized agents, rules, skills, or `{{PLACEHOLDER}}` values already replaced — preserve it. Add missing structure; never overwrite a customized file with template defaults. When a template change conflicts with an existing customization, merge the addition and flag it for the user rather than replacing the file. For incremental updates after the first bootstrap, prefer `/bootstrap-patch`, which is purpose-built for meticulous merging.
@@ -503,13 +525,18 @@ Before recommending skills, identify the running harness from session/runtime in
503
525
  - Example: confirmed Cursor and Copilot → `-a cursor -a github-copilot`
504
526
  - If no harness is confirmed, ask before installing (or let the CLI prompt); do not infer from scaffold directories
505
527
 
506
- ### Step 7: AI Agent Skills Recommendation
528
+ ### Step 7: AI Agent Skills by Need
529
+
530
+ Recommend skills from [skills.sh](https://skills.sh/) and [agentskills.io](https://agentskills.io/) only for needs this project has: its tracker, framework, language, and test tooling. Never install a whole repository with `--skill '*'`. The toolkit already ships the core workflow skills (TDD, debugging, planning, review) in `.agents/skills/`, so do not recommend them again.
507
531
 
508
- Based on detected ecosystem and frameworks, recommend relevant skills from [skills.sh](https://skills.sh/) and [agentskills.io](https://agentskills.io/).
532
+ **Rules for every recommendation:**
533
+ - One named skill per install (`--skill <name>`). Confirm the name exists in its source repository first (its README or skill listing). If you cannot confirm it, leave that install out and say so.
534
+ - List the detected need next to each skill. Recommend nothing without a need.
535
+ - Install nothing before the operator approves that skill. Approving one skill does not approve the others.
509
536
 
510
537
  **Important:** Use the detected agent flags from Step 6 in all `npx skills add` commands. This prevents creating unnecessary configurations for agents the user doesn't have installed.
511
538
 
512
- **Core Skills (Always Recommend):**
539
+ **Generic workflow skills (optional; the toolkit already ships equivalents):**
513
540
 
514
541
  | Skill Repository | Purpose |
515
542
  | -------------------------- | ---------------------------------------------------------- |
@@ -531,9 +558,9 @@ This template bundles issue tracker skills in `.agents/skills/`. Verify the corr
531
558
 
532
559
  1. **Map tracker → expected CLI skill:** Jira → `acli`, GitHub Issues → `gh-cli`, Linear → `linear-cli`
533
560
  2. **Verify presence:** Check `.agents/skills/issue-tracker/SKILL.md` and `.agents/skills/{expected-cli}/SKILL.md` exist
534
- 3. **Warn on mismatch:** If a *different* CLI skill is present, warn the user and offer to prune
535
- 4. **Prune unused CLI skills:** On confirmation, delete mismatched skill directory and update AGENTS.md Skills table
536
- 5. **If missing:** Warn and offer to copy from the template bundle
561
+ 3. **Warn on mismatch:** If a *different* CLI skill is present, warn the user and offer to retire it in `.nitm/retired.json` (the patch plan then leaves it out)
562
+ 4. **Remove only with approval:** Deleting a skill directory needs explicit approval, a backup copy, and an updated AGENTS.md Skills table. Retiring it (step 3) needs no deletion
563
+ 5. **If missing:** `patch --dry-run` shows whether the matching CLI skill applies; add it only when the operator approves
537
564
 
538
565
  **Framework-Specific Skills:**
539
566
 
@@ -566,13 +593,13 @@ This template bundles issue tracker skills in `.agents/skills/`. Verify the corr
566
593
  | React | `vercel-labs/agent-skills` | `npx -y skills add {{AGENT_FLAGS}} vercel-labs/agent-skills --skill "vercel-react-best-practices"` |
567
594
  | Vue | `onmax/nuxt-skills` (vue) | `npx -y skills add {{AGENT_FLAGS}} onmax/nuxt-skills --skill "vue"` |
568
595
  | Nuxt | `onmax/nuxt-skills` (nuxt) | `npx -y skills add {{AGENT_FLAGS}} onmax/nuxt-skills --skill "nuxt"` |
569
- | Expo | `expo/skills` | `npx -y skills add {{AGENT_FLAGS}} expo/skills --skill '*'` |
570
- | TypeScript | `pproenca/dot-skills` (typescript) | `npx -y skills add {{AGENT_FLAGS}} pproenca/dot-skills --skill '*'` |
571
- | Advanced Types | `wshobson/agents` (ts-advanced-types) | `npx -y skills add {{AGENT_FLAGS}} wshobson/agents --skill '*'` |
596
+ | Expo | `expo/skills` | `npx -y skills add {{AGENT_FLAGS}} expo/skills --skill <name confirmed in the repository>` |
597
+ | TypeScript | `pproenca/dot-skills` (typescript) | `npx -y skills add {{AGENT_FLAGS}} pproenca/dot-skills --skill "typescript"` |
598
+ | Advanced Types | `wshobson/agents` (ts-advanced-types) | `npx -y skills add {{AGENT_FLAGS}} wshobson/agents --skill "ts-advanced-types"` |
572
599
 
573
600
  **Skill Creation for Unsupported Frameworks:**
574
601
 
575
- Use `npx -y skills add {{AGENT_FLAGS}} anthropics/skills --skill '*'` (includes `skill-creator`) to create custom skills.
602
+ To create a custom skill for an unsupported framework, install only `skill-creator` from `anthropics/skills`: `npx -y skills add {{AGENT_FLAGS}} anthropics/skills --skill "skill-creator"`.
576
603
 
577
604
  **Present Recommendation:**
578
605
 
@@ -584,12 +611,10 @@ Using flags: {{AGENT_FLAGS}}
584
611
 
585
612
  Based on your project ({{FRAMEWORK}}/{{LANGUAGE}}):
586
613
 
587
- ### Core Skills (recommended for all projects)
614
+ ### Approved installs (none until the operator approves each one)
588
615
 
589
616
  ```bash
590
- npx -y skills add {{AGENT_FLAGS}} obra/superpowers --skill '*'
591
- npx -y skills add {{AGENT_FLAGS}} trailofbits/skills --skill '*'
592
- npx -y skills add {{AGENT_FLAGS}} softaworks/agent-toolkit --skill '*'
617
+ npx -y skills add {{AGENT_FLAGS}} <owner/repo> --skill <confirmed name> # one line per approved skill
593
618
  `````
594
619
 
595
620
  ### Issue Tracker Skills (bundled — {{ISSUE_TRACKER}})
@@ -597,7 +622,7 @@ npx -y skills add {{AGENT_FLAGS}} softaworks/agent-toolkit --skill '*'
597
622
  ```
598
623
  ✅ .agents/skills/issue-tracker/SKILL.md (shared strategy)
599
624
  ✅ Matching CLI reference: .agents/skills/acli/SKILL.md, .agents/skills/gh-cli/SKILL.md, or .agents/skills/linear-cli/SKILL.md
600
- ⚠️ Prune any issue-tracker CLI skills that do not match {{ISSUE_TRACKER}} (if any)
625
+ ⚠️ Retire any issue-tracker CLI skills that do not match {{ISSUE_TRACKER}} (if any; record them in .nitm/retired.json)
601
626
  ```
602
627
 
603
628
  ````
@@ -605,12 +630,12 @@ npx -y skills add {{AGENT_FLAGS}} softaworks/agent-toolkit --skill '*'
605
630
  ### Framework-Specific Skills
606
631
 
607
632
  ```bash
608
- npx -y skills add {{AGENT_FLAGS}} {{FRAMEWORK_SKILL_REPO}} --skill '*'
633
+ npx -y skills add {{AGENT_FLAGS}} {{FRAMEWORK_SKILL_REPO}} --skill <confirmed name>
609
634
  ```
610
635
 
611
- ### Install All?
636
+ ### Approve Each Skill
612
637
 
613
- Would you like to install these skills now? (Y/n)
638
+ Install only the skills named here, nothing else. Which of these should be installed? (name each one, or none)
614
639
 
615
640
  ````
616
641
 
@@ -662,7 +687,7 @@ Populate this example with only files actually changed and skills actually insta
662
687
  6. Create custom skills at https://agentskills.io/specification
663
688
  ```
664
689
 
665
- ### Step 8: Skills Review & Cleanup
690
+ ### Step 8: Skill Review & Retirement
666
691
 
667
692
  After bootstrap completion, review all installed skills for relevance:
668
693
 
@@ -710,22 +735,18 @@ After bootstrap completion, review all installed skills for relevance:
710
735
  | php | PHP patterns | No PHP files found - TypeScript project |
711
736
  | swift-development | SwiftUI patterns | No iOS/Swift code detected |
712
737
 
713
- ### 🚫 Remove Unnecessary Skills?
738
+ ### 🚫 Retire Unnecessary Skills?
714
739
 
715
740
  These skills don't match your detected tech stack and may clutter AI context.
716
741
 
717
- Remove flagged skills? (Y/n)
742
+ Retire flagged skills? (Y/n)
718
743
  ```
719
744
 
720
745
  **On Confirmation:**
721
746
 
722
747
  ```bash
723
- # Remove unnecessary skills
724
- rm -rf .github/skills/django-expert/
725
- rm -rf .cursor/skills/php/
726
- rm -rf .github/skills/swift-development/
727
-
728
- # Update AGENTS.md to remove references
748
+ # Retire each approved skill in .nitm/retired.json (see Relevance and Retirement); patch then leaves it out.
749
+ # Delete a directory only after separate approval and a backup, then update the AGENTS.md references.
729
750
  ```
730
751
 
731
752
  **Post-Cleanup Report:**
@@ -733,7 +754,7 @@ rm -rf .github/skills/swift-development/
733
754
  ```markdown
734
755
  ## ✅ Skill Cleanup Complete
735
756
 
736
- Removed {{N}} unnecessary skills:
757
+ Retired {{N}} unnecessary skills (recorded in .nitm/retired.json):
737
758
 
738
759
  - django-expert
739
760
  - php
@@ -801,10 +822,12 @@ Create recommended instructions? (Y/n)
801
822
 
802
823
  **On Confirmation (only if Copilot is confirmed in use):**
803
824
 
804
- Generate missing Copilot instruction files with appropriate templates; skip creation for a Codex-only audit even when shared reference standards are present:
825
+ Write the policy of each missing Copilot instruction into `.claude/rules-snippets/<name>.md` first, then create `.github/instructions/<name>.instructions.md` as a thin wrapper (see Thin Wrapper Policy); skip creation for a Codex-only audit even when shared reference standards are present:
805
826
 
806
827
  **Copilot Example: Framework Instruction Template (only if confirmed in use)**
807
828
 
829
+ The body below is the shared snippet, `.claude/rules-snippets/<name>.md`. Write it there first. The `.github/instructions/<name>.instructions.md` file is then a thin wrapper: its frontmatter, a title, a link to the snippet, and at most five key points. Never copy this body into the wrapper.
830
+
808
831
  ```markdown
809
832
  ---
810
833
  applyTo: "src/**"
@@ -1,6 +1,6 @@
1
1
  # Claude Code Skills
2
2
 
3
- This folder is for skills installed via `npx -y skills add -a claude-code <owner/repo> --skill '*'`.
3
+ This folder is for skills installed via `npx -y skills add -a claude-code <owner/repo> --skill <confirmed name>`.
4
4
 
5
5
  ## About Skills
6
6
 
@@ -12,10 +12,10 @@ Install skills from [skills.sh](https://skills.sh/) using the `-a claude-code` f
12
12
 
13
13
  ```bash
14
14
  # For Claude Code only
15
- npx -y skills add -a claude-code <owner/repo> --skill '*'
15
+ npx -y skills add -a claude-code <owner/repo> --skill <confirmed name>
16
16
 
17
17
  # For multiple agents (e.g., Claude Code + GitHub Copilot)
18
- npx -y skills add -a claude-code -a github-copilot <owner/repo> --skill '*'
18
+ npx -y skills add -a claude-code -a github-copilot <owner/repo> --skill <confirmed name>
19
19
  ```
20
20
 
21
21
  **Tip:** The skills CLI automatically detects installed agents. If you omit `-a claude-code`, you'll be prompted to choose from detected agents.
@@ -37,14 +37,14 @@ Universal workflow skills are pre-installed in `.agents/skills/`. These include:
37
37
 
38
38
  ```bash
39
39
  # Frontend skills
40
- npx -y skills add -a claude-code onmax/nuxt-skills --skill '*'
41
- npx -y skills add -a claude-code vercel-labs/agent-skills --skill '*'
40
+ npx -y skills add -a claude-code onmax/nuxt-skills --skill vue
41
+ npx -y skills add -a claude-code vercel-labs/agent-skills --skill vercel-react-best-practices
42
42
 
43
43
  # Security skills
44
- npx -y skills add -a claude-code trailofbits/skills --skill '*'
44
+ npx -y skills add -a claude-code trailofbits/skills --skill <confirmed name>
45
45
 
46
46
  # Framework-specific
47
- npx -y skills add -a claude-code better-auth/skills --skill '*'
47
+ npx -y skills add -a claude-code better-auth/skills --skill <confirmed name>
48
48
  ```
49
49
 
50
50
  See the main README.md for a full list of recommended skills.
@@ -1,6 +1,6 @@
1
1
  # Cursor Skills
2
2
 
3
- This folder is for skills installed via `npx -y skills add <owner/repo> --skill '*' --agent github-copilot cursor`.
3
+ This folder is for skills installed via `npx -y skills add <owner/repo> --skill <confirmed name> --agent github-copilot cursor`.
4
4
 
5
5
  ## About Skills
6
6
 
@@ -12,13 +12,13 @@ Install skills from [skills.sh](https://skills.sh/) using the `-a cursor` flag:
12
12
 
13
13
  ```bash
14
14
  # For Cursor only
15
- npx -y skills add -a cursor <owner/repo> --skill '*' --agent github-copilot cursor
15
+ npx -y skills add -a cursor <owner/repo> --skill <confirmed name> --agent github-copilot cursor
16
16
 
17
17
  # For multiple agents (e.g., Cursor + GitHub Copilot)
18
- npx -y skills add -a cursor -a github-copilot <owner/repo> --skill '*' --agent github-copilot cursor
18
+ npx -y skills add -a cursor -a github-copilot <owner/repo> --skill <confirmed name> --agent github-copilot cursor
19
19
  ```
20
20
 
21
- **Tip:** The skills CLI automatically detects installed agents. If you omit `-a cursor`, you'll be prompted to choose from detected agents. Use `--skill '*' --agent github-copilot cursor` to avoid skill-selection prompts when installing from a repo.
21
+ **Tip:** The skills CLI automatically detects installed agents. If you omit `-a cursor`, you'll be prompted to choose from detected agents. Use `--skill <confirmed name> --agent github-copilot cursor` when installing one named skill from a repo.
22
22
 
23
23
  **Important:** Always use `-a cursor` to install only for Cursor (or add multiple `-a` flags if you use multiple agents). This prevents creating unnecessary configuration files for other agents.
24
24
 
@@ -37,14 +37,14 @@ Universal workflow skills are pre-installed in `.agents/skills/`. These include:
37
37
 
38
38
  ```bash
39
39
  # Frontend skills
40
- npx -y skills add -a cursor onmax/nuxt-skills --skill '*' --agent github-copilot cursor
41
- npx -y skills add -a cursor vercel-labs/agent-skills --skill '*' --agent github-copilot cursor
40
+ npx -y skills add -a cursor onmax/nuxt-skills --skill vue --agent github-copilot cursor
41
+ npx -y skills add -a cursor vercel-labs/agent-skills --skill vercel-react-best-practices --agent github-copilot cursor
42
42
 
43
43
  # Security skills
44
- npx -y skills add -a cursor trailofbits/skills --skill '*' --agent github-copilot cursor
44
+ npx -y skills add -a cursor trailofbits/skills --skill <confirmed name> --agent github-copilot cursor
45
45
 
46
46
  # Framework-specific
47
- npx -y skills add -a cursor better-auth/skills --skill '*' --agent github-copilot cursor
47
+ npx -y skills add -a cursor better-auth/skills --skill <confirmed name> --agent github-copilot cursor
48
48
  ```
49
49
 
50
50
  See the main README.md for a full list of recommended skills.
@@ -1,6 +1,6 @@
1
1
  # GitHub Copilot Skills
2
2
 
3
- This folder is for skills installed via `npx -y skills add <owner/repo> --skill '*' --agent github-copilot cursor` when using GitHub Copilot.
3
+ This folder is for skills installed via `npx -y skills add <owner/repo> --skill <confirmed name> --agent github-copilot cursor` when using GitHub Copilot.
4
4
 
5
5
  ## About Skills
6
6
 
@@ -12,13 +12,13 @@ Install skills from [skills.sh](https://skills.sh/) using the `-a github-copilot
12
12
 
13
13
  ```bash
14
14
  # For GitHub Copilot only
15
- npx -y skills add -a github-copilot <owner/repo> --skill '*' --agent github-copilot cursor
15
+ npx -y skills add -a github-copilot <owner/repo> --skill <confirmed name> --agent github-copilot cursor
16
16
 
17
17
  # For multiple agents (e.g., Copilot + Cursor)
18
- npx -y skills add -a github-copilot -a cursor <owner/repo> --skill '*' --agent github-copilot cursor
18
+ npx -y skills add -a github-copilot -a cursor <owner/repo> --skill <confirmed name> --agent github-copilot cursor
19
19
  ```
20
20
 
21
- **Tip:** The skills CLI automatically detects installed agents. If you omit `-a github-copilot`, you'll be prompted to choose from detected agents. Use `--skill '*' --agent github-copilot cursor` to avoid skill-selection prompts when installing from a repo.
21
+ **Tip:** The skills CLI automatically detects installed agents. If you omit `-a github-copilot`, you'll be prompted to choose from detected agents. Use `--skill <confirmed name> --agent github-copilot cursor` when installing one named skill from a repo.
22
22
 
23
23
  **Important:** Always use `-a github-copilot` to install only for GitHub Copilot (or add multiple `-a` flags if you use multiple agents). This prevents creating unnecessary configuration files for other agents.
24
24
 
@@ -9,3 +9,7 @@ description: "Review currently staged files before committing"
9
9
  |-------|-------------|
10
10
  | `reviewer` | Standard pre-commit review — correctness, style, patterns |
11
11
  | `oracle` | Complex staged change — trade-offs, security, scalability |
12
+
13
+ Read and follow `.claude/prompt-snippets/review-staged.md` before executing this command.
14
+
15
+ $ARGUMENTS