thachvd-kit 1.0.33 → 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 +21 -21
- package/README.md +36 -2
- package/bin/cli.js +1651 -1651
- package/bin/entry.js +58 -0
- package/bin/global.js +103 -0
- package/bin/upgrade.js +86 -0
- package/package.json +3 -3
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
|
-
`
|
|
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
|
|
|
@@ -57,6 +60,35 @@ The generated context optimizes for the **smallest sufficient change**, not the
|
|
|
57
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.
|
|
58
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.
|
|
59
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.
|
|
91
|
+
|
|
60
92
|
## Integrations
|
|
61
93
|
|
|
62
94
|
### Superpowers
|
|
@@ -88,13 +120,15 @@ Examples: `rtk git status`, `rtk npm test`, `rtk git log`. If it is not installe
|
|
|
88
120
|
|
|
89
121
|
```text
|
|
90
122
|
thachvd-kit init [--yes]
|
|
123
|
+
thachvd-kit upgrade [--dry-run]
|
|
124
|
+
thachvd-kit global [--dry-run] [--antigravity-only|--codex-only]
|
|
91
125
|
thachvd-kit setup [--no-setup-mcp] [--no-setup-hook] [--no-install-rtk] [--no-index]
|
|
92
126
|
thachvd-kit doctor
|
|
93
127
|
thachvd-kit prompt
|
|
94
128
|
thachvd-kit --help
|
|
95
129
|
```
|
|
96
130
|
|
|
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
|
|
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.
|
|
98
132
|
|
|
99
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.
|
|
100
134
|
|