thachvd-kit 1.0.33 → 1.0.35

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.
package/README.md CHANGED
@@ -1,20 +1,31 @@
1
1
  # thachvd-kit
2
2
 
3
- `thachvd-kit` bootstraps project context for AI coding agents. It creates shared entry files and scan-based documentation so an agent can understand the repository quickly.
3
+ `thachvd-kit` bootstraps project context for AI coding agents. It creates shared entry files and scan-based documentation so an agent can understand the repository quickly, and it installs/checks [Matt Pocock's promoted skills](https://github.com/mattpocock/skills) — the single workflow layer for planning, implementation, debugging, architecture, and review.
4
4
 
5
- Workflow skills are intentionally not copied into projects. Install [Superpowers](https://github.com/obra/superpowers#installation) through the official plugin surface for the AI client each member uses.
5
+ Skill bodies are intentionally not vendored into this kit or copied globally. `thachvd-kit skills install` delegates to the upstream `skills` CLI and installs the promoted set project-locally under `.agents/skills/`.
6
6
 
7
7
  ## Quick Start
8
8
 
9
9
  ```bash
10
10
  npm install -g thachvd-kit
11
+ thachvd-kit global
11
12
  cd your-project
12
13
  thachvd-kit init
13
14
  thachvd-kit setup
14
15
  thachvd-kit doctor
15
16
  ```
16
17
 
17
- `init` is safe and project-focused. It does not install external tools, modify global AI skill folders, or create a second workflow engine.
18
+ For an existing project:
19
+
20
+ ```bash
21
+ thachvd-kit upgrade
22
+ thachvd-kit setup
23
+ thachvd-kit doctor
24
+ ```
25
+
26
+ `global` installs a managed tool-routing block into the current user's Antigravity and Codex global instruction files while preserving unrelated user content. `init` is safe and project-focused: it does not install external tools, install skills, or create a second workflow engine. For an existing project that already has refined `.agent/docs/*`, use `thachvd-kit upgrade` instead of re-running `init --yes` — it only adds/updates thachvd-kit's managed policy blocks and removes a small set of obsolete generated defaults, preserving project-specific knowledge (see Safe Project Upgrade below). `setup` installs the promoted Matt Pocock skill set by default (`--no-install-skills` to skip) alongside MCP/RTK tooling.
27
+
28
+ After the first skill install, run `/setup-matt-pocock-skills` once inside your AI client to configure the issue tracker, triage labels, and generated docs location — thachvd-kit does not simulate that skill.
18
29
 
19
30
  ## Generated Files
20
31
 
@@ -26,24 +37,25 @@ thachvd-kit doctor
26
37
  - `.agent/docs/architecture.md`: architecture notes to refine over time.
27
38
  - `.agent/docs/conventions.md`: coding and verification conventions.
28
39
  - `.agent/docs/workflow.md`: the project workflow contract.
29
- - `.agent/docs/tooling.md`: Superpowers, MCP, RTK, and Playwright setup.
40
+ - `.agent/docs/tooling.md`: Matt Pocock skills, MCP, RTK, and Playwright setup.
30
41
  - `.agent/docs/getting-started.md`: member onboarding guide.
31
42
  - `.agent/docs/index-project-prompt.md`: durable prompt for the first project scan.
32
43
 
33
- `init` does not generate `.agent/skills`, `.agent/workflows`, `.agent/agents`, Forge commands, or client-specific skill copies. `setup` can optionally add a Claude Code Stop hook (see below); it never adds workflow content of its own.
44
+ `init` does not generate `.agent/skills`, `.agent/workflows`, `.agent/agents`, or client-specific skill copies — skills are installed by `thachvd-kit setup`/`skills install` into `.agents/skills/` instead. `setup` can optionally add a Claude Code Stop hook (see below); it never adds workflow content of its own.
34
45
 
35
46
  ## Workflow
36
47
 
37
- Superpowers is the primary workflow backend:
48
+ [Matt Pocock's promoted skills](https://github.com/mattpocock/skills) (`skills/engineering/` + `skills/productivity/`) are the workflow layer, installed project-locally under `.agents/skills/`:
38
49
 
39
- 1. `brainstorming` for unclear requirements.
40
- 2. `using-git-worktrees` for isolated work.
41
- 3. `writing-plans`, then explicit approval.
42
- 4. `test-driven-development` and `executing-plans` or `subagent-driven-development`.
43
- 5. `requesting-code-review` and `verification-before-completion`.
44
- 6. `finishing-a-development-branch`.
45
-
46
- For bugs, use `systematic-debugging`: reproduce, inspect, test hypotheses, add regression protection, fix the root cause, and verify.
50
+ - Ambiguous feature or design: `/grill-with-docs`, then optionally `/to-spec` for a durable contract.
51
+ - Normal feature: `/grill-with-docs` -> `/to-spec` -> `/implement`.
52
+ - Large feature needing decomposition: add `/to-tickets` before `/implement`.
53
+ - Huge, multi-session uncertainty: `/wayfinder`.
54
+ - Bug or failing behavior: `/diagnosing-bugs`.
55
+ - Test-driven implementation: `/tdd`.
56
+ - Architecture survey: `/improve-codebase-architecture` (`/codebase-design` for the design vocabulary).
57
+ - Pre-completion review: `/code-review`.
58
+ - Unsure which skill fits? Run `/ask-matt`.
47
59
 
48
60
  Fast-path eligibility is based on risk and contract surface, not file count. A localized, mechanically obvious, low-risk change with focused verification can use the client fast path; a one-file security, schema, payment, concurrency, or public-contract change should not.
49
61
 
@@ -57,11 +69,50 @@ The generated context optimizes for the **smallest sufficient change**, not the
57
69
  - Do not split code solely to satisfy a hard line-count target; prefer cohesive modules and split only for a concrete design or maintenance benefit.
58
70
  - Use the cheapest reliable context source. Read known local code directly; use structural tooling for unknown ownership, call paths, architecture, or impact; avoid duplicate retrieval when one source already provides enough evidence.
59
71
 
72
+ ## Global Tool Routing
73
+
74
+ `thachvd-kit global` patches a managed block into:
75
+
76
+ - Antigravity: `~/.gemini/GEMINI.md`
77
+ - Codex: `~/.codex/AGENTS.override.md` when a non-empty override exists, otherwise `~/.codex/AGENTS.md`
78
+
79
+ The managed block encourages one structural index for structural questions, direct `rg`/`grep` for exact-text or narrow searches, RTK for verbose shell output, and duplicate-retrieval avoidance. It does not ban `rg` or raw commands when those are the cheaper or diagnostically necessary operation.
80
+
81
+ Useful variants:
82
+
83
+ ```bash
84
+ thachvd-kit global --dry-run
85
+ thachvd-kit global --antigravity-only
86
+ thachvd-kit global --codex-only
87
+ ```
88
+
89
+ ## Safe Project Upgrade
90
+
91
+ For projects initialized by an older version:
92
+
93
+ ```bash
94
+ cd existing-project
95
+ thachvd-kit upgrade --dry-run
96
+ thachvd-kit upgrade
97
+ ```
98
+
99
+ `upgrade` does not rescan the repository or regenerate architecture/project knowledge. It preserves custom content and manages only marked policy blocks plus a small list of known obsolete defaults such as the old 300-line rule and `MCP First` wording.
100
+
60
101
  ## Integrations
61
102
 
62
- ### Superpowers
103
+ ### Matt Pocock Skills
104
+
105
+ The promoted engineering + productivity catalog from [mattpocock/skills](https://github.com/mattpocock/skills), installed project-locally (never globally) under `.agents/skills/`:
106
+
107
+ ```bash
108
+ thachvd-kit skills install # install the promoted set (--dry-run to preview)
109
+ thachvd-kit skills check # read-only: report what's installed
110
+ thachvd-kit skills update # re-add each promoted skill individually to update it (slower: one clone per skill)
111
+ ```
112
+
113
+ The manifest (`bin/matt-skills.js`) mirrors upstream's `skills/engineering/` + `skills/productivity/` catalog and deliberately excludes `skills/in-progress`, `skills/misc`, and `skills/deprecated`. Installation targets the Codex and Antigravity agent identifiers of the upstream `skills` CLI, both of which resolve to `.agents/skills/`.
63
114
 
64
- Install it separately for each AI client. The official guide contains the current commands for Claude Code, Antigravity, Codex App, Codex CLI, and Cursor.
115
+ After the first install, run `/setup-matt-pocock-skills` once inside your AI client — it configures the issue tracker, triage labels, and generated docs location. thachvd-kit does not simulate that skill.
65
116
 
66
117
  ### codebase-memory-mcp
67
118
 
@@ -88,15 +139,20 @@ Examples: `rtk git status`, `rtk npm test`, `rtk git log`. If it is not installe
88
139
 
89
140
  ```text
90
141
  thachvd-kit init [--yes]
91
- thachvd-kit setup [--no-setup-mcp] [--no-setup-hook] [--no-install-rtk] [--no-index]
142
+ thachvd-kit upgrade [--dry-run]
143
+ thachvd-kit global [--dry-run] [--antigravity-only|--codex-only]
144
+ thachvd-kit setup [--no-setup-mcp] [--no-setup-hook] [--no-install-rtk] [--no-index] [--no-install-skills]
92
145
  thachvd-kit doctor
93
146
  thachvd-kit prompt
147
+ thachvd-kit skills install [--dry-run]
148
+ thachvd-kit skills check
149
+ thachvd-kit skills update [--dry-run]
94
150
  thachvd-kit --help
95
151
  ```
96
152
 
97
- `setup` configures MCP entries for detected clients, prints official Superpowers installation guidance, and adds a Claude Code Stop hook that checks for Plan/Review/Verification evidence before a feature or refactor can be reported as done (skip with `--no-setup-hook`). The hook only checks for evidence; it never prescribes which skill must produce it, so it works whether that evidence came from Superpowers or from a manual process. It also auto-installs missing npm-based MCP packages (`codebase-memory-mcp`, `context7-mcp`, `playwright-mcp`), indexes the current repository with `codebase-memory-mcp` (skip with `--no-index`), and installs `rtk` via `cargo` when `cargo` is available (skip with `--no-install-rtk`). Superpowers itself cannot be auto-installed by this CLI — it is installed through each AI client's own plugin command (e.g. `/plugin install ...` typed in the client's chat), not a shell command this tool can run. `doctor` is read-only and reports missing integrations without changing the machine.
153
+ `init` generates project context for a new project; `upgrade` and `global` are the safe, additive-only paths for an existing project or machine (see Safe Project Upgrade and Global Tool Routing above). `setup` installs the promoted Matt Pocock skill set by default (skip with `--no-install-skills`), configures MCP entries for detected clients, and adds a Claude Code Stop hook that checks for Plan/Review/Verification evidence before a feature or refactor can be reported as done (skip with `--no-setup-hook`). The hook only checks for evidence; it never prescribes which skill must produce it, so it works whether that evidence came from a Matt Pocock skill or a manual process. `setup` also auto-installs missing npm-based MCP packages (`codebase-memory-mcp`, `context7-mcp`, `playwright-mcp`), indexes the current repository with `codebase-memory-mcp` (skip with `--no-index`), and installs `rtk` via `cargo` when `cargo` is available (skip with `--no-install-rtk`). `doctor` is read-only and reports missing integrations, including the promoted skill set, without changing the machine.
98
154
 
99
- The project-indexing prompt is saved by `init`, so installing Superpowers or RTK afterward cannot make it disappear. Run `thachvd-kit prompt` whenever you need to print it again.
155
+ The project-indexing prompt is saved by `init`, so installing skills or RTK afterward cannot make it disappear. Run `thachvd-kit prompt` whenever you need to print it again.
100
156
 
101
157
  ## Development
102
158