thachvd-kit 1.0.32 → 1.0.34

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 thachvd
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 thachvd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -8,13 +8,16 @@ Workflow skills are intentionally not copied into projects. Install [Superpowers
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
+ `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 project-focused. It does not install external workflow skills or create a second workflow engine.
19
+
20
+ For an existing project that already has refined `.agent/docs/*`, use `thachvd-kit upgrade` instead of re-running `init --yes`. `upgrade` only adds/updates thachvd-kit managed policy blocks and removes a small set of obsolete generated defaults; it preserves project-specific knowledge.
18
21
 
19
22
  ## Generated Files
20
23
 
@@ -45,7 +48,46 @@ Superpowers is the primary workflow backend:
45
48
 
46
49
  For bugs, use `systematic-debugging`: reproduce, inspect, test hypotheses, add regression protection, fix the root cause, and verify.
47
50
 
48
- For a trivial one-file change with no behavior or contract change, use the client's fast path. State the narrow scope and verification before editing. If the scope grows, return to brainstorming and planning.
51
+ 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.
52
+
53
+ ## Engineering Policy
54
+
55
+ The generated context optimizes for the **smallest sufficient change**, not the fewest lines of code.
56
+
57
+ - Preserve required behavior, product and architectural contracts, UX/accessibility, security/data integrity, compatibility/performance, and maintainability before optimizing for simplicity.
58
+ - Reuse an existing project abstraction when it satisfies the contract. Do not bypass it merely because a lower-level primitive is shorter.
59
+ - Avoid speculative abstractions and unrelated refactors.
60
+ - 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.
61
+ - 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.
62
+
63
+ ## Global Tool Routing
64
+
65
+ `thachvd-kit global` patches a managed block into:
66
+
67
+ - Antigravity: `~/.gemini/GEMINI.md`
68
+ - Codex: `~/.codex/AGENTS.override.md` when a non-empty override exists, otherwise `~/.codex/AGENTS.md`
69
+
70
+ 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.
71
+
72
+ Useful variants:
73
+
74
+ ```bash
75
+ thachvd-kit global --dry-run
76
+ thachvd-kit global --antigravity-only
77
+ thachvd-kit global --codex-only
78
+ ```
79
+
80
+ ## Safe Project Upgrade
81
+
82
+ For projects initialized by an older version:
83
+
84
+ ```bash
85
+ cd existing-project
86
+ thachvd-kit upgrade --dry-run
87
+ thachvd-kit upgrade
88
+ ```
89
+
90
+ `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.
49
91
 
50
92
  ## Integrations
51
93
 
@@ -55,14 +97,14 @@ Install it separately for each AI client. The official guide contains the curren
55
97
 
56
98
  ### codebase-memory-mcp
57
99
 
58
- Use it for symbol search, call paths, architecture, and impact analysis:
100
+ Use it for structural discovery when symbol ownership, call paths, architecture, or impact are not already obvious:
59
101
 
60
102
  ```bash
61
103
  npm install -g codebase-memory-mcp
62
104
  codebase-memory-mcp cli index_repository --repo-path .
63
105
  ```
64
106
 
65
- The index is local state. Keep it out of git unless the team explicitly chooses to share a snapshot.
107
+ The index is local state. Keep it out of git unless the team explicitly chooses to share a snapshot. If another structural index such as CodeGraph already provides sufficient evidence, avoid querying both for the same question.
66
108
 
67
109
  ### RTK
68
110
 
@@ -78,13 +120,15 @@ Examples: `rtk git status`, `rtk npm test`, `rtk git log`. If it is not installe
78
120
 
79
121
  ```text
80
122
  thachvd-kit init [--yes]
123
+ thachvd-kit upgrade [--dry-run]
124
+ thachvd-kit global [--dry-run] [--antigravity-only|--codex-only]
81
125
  thachvd-kit setup [--no-setup-mcp] [--no-setup-hook] [--no-install-rtk] [--no-index]
82
126
  thachvd-kit doctor
83
127
  thachvd-kit prompt
84
128
  thachvd-kit --help
85
129
  ```
86
130
 
87
- `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.
131
+ `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, not a shell command this tool can run. `doctor` is read-only and reports missing integrations without changing the machine.
88
132
 
89
133
  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.
90
134