thachvd-kit 1.0.26 → 1.0.28

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.
@@ -0,0 +1,92 @@
1
+ # Getting Started With This Kit
2
+
3
+ Read this after `thachvd-kit init`. The kit gives every member one entry point, then selects only the process and expertise the task needs.
4
+
5
+ ## Client Command Map
6
+
7
+ | Client | Task router | Simple fix | Bug fix | Feature spec | Release |
8
+ |---|---|---|---|---|---|
9
+ | Codex | `/prompts:task` | `/prompts:simple` | `/prompts:debug` | `/prompts:spec` | `/prompts:release` |
10
+ | Antigravity | `/task` | `/simple` | `/debug` | `/spec` | `/release` |
11
+ | Claude Code | `/task` | `/simple` | `/debug` | `/spec` | `/release` |
12
+ | Cursor | `/task` | `/simple` | `/debug` | `/spec` | `/release` |
13
+
14
+ Codex reads custom prompts from `~/.codex/prompts`. Antigravity reads workspace workflows from `.agent/workflows`. Claude Code reads project skills from `.claude/skills/<name>/SKILL.md`. Cursor reads commands from `.cursor/commands`.
15
+
16
+ ## Start Every Task With The Router
17
+
18
+ In Codex, use `/prompts:task <request>` before editing whenever the route is not already obvious. Other clients can read `.agent/workflows/task.md` directly. It must produce:
19
+
20
+ ```text
21
+ ROUTE: question | simple | feature | bug | review | release | multi-domain
22
+ WORKFLOW: [exact .agent/workflows/<name>.md file]
23
+ SKILLS: [matching skills, or none]
24
+ AGENTS: [matching specialist agents, or none]
25
+ GATE: fast-path | standard
26
+ NEXT: [the next command or action]
27
+ ```
28
+
29
+ A workflow is the process and its gates. A skill is the method or checklist. An agent is the specialist role. Chat alone is not a route: the member must select the route and invoke the matching workflow or explicitly choose the question path.
30
+
31
+ ## Route Matrix
32
+
33
+ | Situation | Command | Gate | Required next step |
34
+ |---|---|---|---|
35
+ | Explain, inspect, or brainstorm only | direct answer or `/brainstorm` | none | no code until the request becomes actionable |
36
+ | One obvious local fix | `/prompts:simple <request>` in Codex | fast-path | inspect -> edit -> focused verify |
37
+ | New behavior, multi-file change, unclear scope, or >~30 min | `/prompts:task` -> `/brainstorm` -> `/prompts:spec` when needed -> `/plan` | standard | wait for approval before implementation |
38
+ | Bug, regression, failing test, or unknown error | `/prompts:debug <symptom>` in Codex | bug | reproduce -> isolate -> regression test -> fix -> verify |
39
+ | Pre-merge or independent review | `/review` | review | five-axis review; resolve blocking findings |
40
+ | Version, tag, npm publish, or deployment | `/prompts:release` in Codex | release | release checklist; never fast-path |
41
+ | Frontend + backend + data/security together | `/orchestrate` | standard | plan -> approval -> specialist work -> integration verify |
42
+
43
+ ## Standard Feature Flow
44
+
45
+ The gated sequence is Spec -> Plan -> Implement -> Review: `/prompts:task` -> `/brainstorm` -> `/prompts:spec` when scope is ambiguous or multi-file -> `/plan` -> user approves the plan -> implementation -> `/test` -> `/review` -> final verification -> commit/push.
46
+
47
+ The plan is a gate, not a suggestion. Do not start product-code implementation before explicit approval. Load only the relevant specialist agent and skills, such as `$frontend-design`, `$api-design`, or `$webapp-testing`.
48
+
49
+ ## Bug Fix Flow
50
+
51
+ Use Codex `/prompts:debug <symptom>`, not the feature flow, when something is failing or the root cause is unknown:
52
+
53
+ 1. Capture the exact symptom, environment, reproduction, and expected result.
54
+ 2. Inspect the relevant code path with MCP/codegraph when available.
55
+ 3. Form and test a small number of hypotheses; do not patch by guesswork.
56
+ 4. Add or update a regression test that fails before the fix when practical.
57
+ 5. Make the smallest root-cause fix.
58
+ 6. Run focused tests, then broader verification when the blast radius is shared.
59
+ 7. Use `/review` when the fix touches multiple files, contracts, security, or release behavior.
60
+
61
+ Load `$systematic-debugging`, the `debugger` agent, and `testing-patterns` for this route.
62
+
63
+ ## Simple Fast Path
64
+
65
+ Use Codex `/prompts:simple <request>` only when the change is one obvious file, the result is unambiguous, and it changes no behavior, API, schema, security, CI, dependency, workflow, or release contract. Before editing, state:
66
+
67
+ ```text
68
+ FAST_PATH: simple-fix
69
+ REASON: [why Spec/Plan/Review are not needed]
70
+ SCOPE: [file or narrow area]
71
+ ```
72
+
73
+ This bypasses only Spec, Plan, and the feature/refactor Review gate. It never bypasses inspection, focused verification, or reporting evidence. If the scope expands, stop and re-route with Codex `/prompts:task`.
74
+
75
+ ## Command And Skill Map
76
+
77
+ - `/brainstorm`: clarify intent and tradeoffs; no code.
78
+ - Codex `/prompts:spec`: define requirements and acceptance criteria; no code.
79
+ - `/plan`: create an approved implementation plan; no code before approval.
80
+ - `/enhance` or `/create`: implement an approved feature with the relevant specialist agent.
81
+ - Codex `/prompts:debug`: systematic root-cause investigation and regression protection.
82
+ - `/test`: add or run tests and assess coverage.
83
+ - `/review`: five-axis review before completion or merge.
84
+ - Codex `/prompts:release`: verify, version, tag, publish, and verify npm output.
85
+ - `$clean-code` and `$verification-before-completion`: default implementation hygiene.
86
+ - `$webapp-testing`: browser/UI verification; use Playwright when available.
87
+
88
+ ## Enforcement
89
+
90
+ Claude Code has a project Stop hook in `.claude/settings.json` for standard feature/refactor work. An explicit `FAST_PATH: simple-fix` is accepted only when the simple criteria are met; it still requires verification. Codex, Antigravity, and Cursor use the same written rules through `AGENTS.md`, `.cursorrules`, and `.agent/rules/GEMINI.md`.
91
+
92
+ Full details live in `AGENTS.md`, `.agent/docs/workflow.md`, and the matching file under `.agent/workflows/`.
@@ -1,6 +1,6 @@
1
1
  # Project Rules
2
2
 
3
- Generated by thachvd-kit on 2026-06-16.
3
+ Generated by thachvd-kit on 2026-08-13.
4
4
 
5
5
  ## Summary
6
6
 
@@ -26,6 +26,18 @@ Generated by thachvd-kit on 2026-06-16.
26
26
  - Test: `npm test`
27
27
  - Lint: `npm run lint`
28
28
 
29
+ ## Available MCP Tools
30
+
31
+ Use these tools as first-class search and verification methods — prefer them over shell commands or file reads.
32
+
33
+ | MCP | When to Use |
34
+ |-----|-------------|
35
+ | `codegraph` | Explore symbols, trace call chains, find usages — use BEFORE reading files |
36
+ | `context7` | Look up library/framework docs, API signatures, migration guides |
37
+ | `playwright` | Verify UI behavior, take screenshots, test forms and navigation |
38
+
39
+ > Check `.agent/docs/tooling.md` for setup details and additional MCP servers.
40
+
29
41
  ## Agent Routing
30
42
 
31
43
  | Task Type | Agent | Primary Skills |
@@ -8,7 +8,7 @@ Use Playwright for browser and UI verification when a task touches web behavior.
8
8
 
9
9
  - Check availability: `npx playwright --version`
10
10
  - Install browsers: `npx playwright install`
11
- - Codex MCP CLI setup: `codex mcp add playwright -- npx -y @playwright/mcp`
11
+ - Codex MCP CLI setup: `codex mcp add playwright -- playwright-mcp`
12
12
  - Auto setup: `thachvd-kit`
13
13
  - Kit helper: `python .agent/skills/webapp-testing/scripts/playwright_runner.py <url> --screenshot`
14
14
 
@@ -18,8 +18,7 @@ Codex `config.toml` example:
18
18
 
19
19
  ```toml
20
20
  [mcp_servers.context7]
21
- command = "npx"
22
- args = ["-y", "@upstash/context7-mcp"]
21
+ command = "context7-mcp"
23
22
  startup_timeout_sec = 20
24
23
  tool_timeout_sec = 120
25
24
 
@@ -30,8 +29,7 @@ startup_timeout_sec = 20
30
29
  tool_timeout_sec = 120
31
30
 
32
31
  [mcp_servers.playwright]
33
- command = "npx"
34
- args = ["-y", "@playwright/mcp"]
32
+ command = "playwright-mcp"
35
33
  startup_timeout_sec = 20
36
34
  tool_timeout_sec = 120
37
35
  ```
@@ -70,16 +68,14 @@ Gemini CLI / Antigravity `mcp_config.json` example:
70
68
  "args": ["serve", "--mcp"]
71
69
  },
72
70
  "context7": {
73
- "command": "npx",
74
- "args": ["-y", "@upstash/context7-mcp"]
71
+ "command": "context7-mcp"
75
72
  },
76
73
  "filesystem": {
77
74
  "command": "npx",
78
75
  "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/project"]
79
76
  },
80
77
  "playwright": {
81
- "command": "npx",
82
- "args": ["-y", "@playwright/mcp"]
78
+ "command": "playwright-mcp"
83
79
  }
84
80
  }
85
81
  }
@@ -103,8 +99,7 @@ Claude Code user config example:
103
99
  },
104
100
  "context7": {
105
101
  "type": "stdio",
106
- "command": "npx",
107
- "args": ["-y", "@upstash/context7-mcp"]
102
+ "command": "context7-mcp"
108
103
  },
109
104
  "filesystem": {
110
105
  "type": "stdio",
@@ -113,8 +108,7 @@ Claude Code user config example:
113
108
  },
114
109
  "playwright": {
115
110
  "type": "stdio",
116
- "command": "npx",
117
- "args": ["-y", "@playwright/mcp"]
111
+ "command": "playwright-mcp"
118
112
  }
119
113
  }
120
114
  }
@@ -4,10 +4,24 @@
4
4
 
5
5
  1. Read AGENTS.md.
6
6
  2. Read .agent/docs/project.md.
7
- 3. Classify the request: question, survey, simple fix, feature, refactor, debug, UI, security, or deploy.
7
+ 3. Route the request with Codex `/prompts:task <request>` when the path is not obvious; otherwise read `.agent/workflows/task.md` directly.
8
8
  4. Read only the relevant docs under .agent/agents, .agent/skills, .claude/skills, and .agent/workflows.
9
9
  5. Check if MCP servers (like `codegraph`) are active/available and prioritize using them as the primary entry point to search and locate files, symbols, and code blocks.
10
10
 
11
+ ## Route Matrix
12
+
13
+ | Situation | Command | Workflow / gate |
14
+ |---|---|---|
15
+ | Question or analysis only | direct answer | no edits |
16
+ | One obvious local fix | Codex `/prompts:simple` | `.agent/workflows/simple.md`, fast-path |
17
+ | Bug, regression, failing test, or unknown error | Codex `/prompts:debug` | `.agent/workflows/debug.md`, evidence-first |
18
+ | New behavior, multi-file change, or unclear scope | `/brainstorm` -> Codex `/prompts:spec` when needed -> `/plan` | spec/plan approval -> implement -> review |
19
+ | Pre-merge review | `/review` | `.agent/workflows/review.md`, five-axis |
20
+ | npm version, tag, publish, or deployment | Codex `/prompts:release` | `.agent/workflows/release.md`, release gate |
21
+ | Several specialist domains | `/orchestrate` | plan -> approval -> parallel work -> integration verify |
22
+
23
+ If a task is not clearly simple, use the standard flow. Never use the fast path for behavior, API, schema, security, CI, dependency, workflow, or release changes.
24
+
11
25
  ## Skill Selection
12
26
 
13
27
  - Prefer native skill discovery when the client exposes it.
@@ -21,6 +35,16 @@
21
35
 
22
36
  ## Implementation Flow
23
37
 
38
+ For Codex `/prompts:simple` fixes, state the fast-path decision before editing:
39
+
40
+ ```text
41
+ FAST_PATH: simple-fix
42
+ REASON: [why Spec/Plan/Review are not needed]
43
+ SCOPE: [file or narrow area]
44
+ ```
45
+
46
+ Then:
47
+
24
48
  1. State assumptions and success criteria when the task is not trivial.
25
49
  2. Inspect dependent files before editing.
26
50
  3. Make the smallest coherent change.
@@ -28,6 +52,24 @@
28
52
  5. Run verification (prioritize using Playwright MCP for web/UI changes to automate verification and capture screenshots).
29
53
  6. Summarize changed files and verification evidence.
30
54
 
55
+ For bugs, use Codex `/prompts:debug` with `$systematic-debugging`, the `debugger` agent, and `testing-patterns`: reproduce, isolate the root cause, add regression protection, make the smallest fix, and verify.
56
+
57
+ For features or refactors, this flow runs *inside* the gated flow defined in AGENTS.md (spec -> plan -> implement -> review) — steps 3-5 above are the "Implement" phase, and step 6 is not a substitute for the mandatory `.agent/workflows/review.md` gate.
58
+
59
+ ## Definition of Done (feature or refactor)
60
+
61
+ A feature/refactor task is only complete when all of the following hold — not when code compiles or tests pass:
62
+
63
+ The Spec checkbox may be skipped only when the documented Codex `/prompts:simple` fast-path protocol is stated and its criteria are met.
64
+
65
+ - [ ] `.agent/workflows/spec.md` exit criteria met (or explicitly skipped as a trivial/self-contained change)
66
+ - [ ] `.agent/workflows/plan.md` produced a plan file, approved by the user
67
+ - [ ] Tests added/updated for the changed behavior and passing
68
+ - [ ] `.agent/workflows/review.md` five-axis review completed with all 🔴 BLOCKING items resolved or accepted with rationale
69
+ - [ ] Changed files and verification evidence summarized to the user
70
+
71
+ Do not report a feature/refactor task as done if any box above is unchecked — say explicitly which gate is still open.
72
+
31
73
  ## When To Update Docs
32
74
 
33
75
  - Update .agent/docs/architecture.md when structure, boundaries, or entry points change.
@@ -27,13 +27,29 @@ Antigravity-compatible entry rules for thachvd-kit projects.
27
27
 
28
28
  Load only the agent, skill, or workflow files relevant to the current task.
29
29
 
30
- ## Execution
31
-
32
- - Questions and analysis: answer directly; do not edit code.
33
- - Simple fix: inspect dependencies, make the smallest change, verify.
34
- - Feature or refactor: state assumptions, define success criteria, plan, implement, verify.
35
- - UI work: use relevant frontend design skills before editing.
36
- - Security or deploy work: run the matching checklist before claiming done.
30
+ ## Execution
31
+
32
+ - Route every task before editing. Use `/task <request>` when the correct path is not obvious.
33
+ - Workspace workflows are available as `/task`, `/simple`, `/debug`, `/spec`, and `/release` from `.agent/workflows/`.
34
+ - Questions and analysis: answer directly; do not edit code.
35
+ - Simple fix: use `/simple <request>` only for one-file, unambiguous changes with no behavior or contract change.
36
+ - Bug or failing behavior: use `/debug <symptom>` and follow the evidence-first root-cause flow.
37
+ - Feature or refactor: use `/brainstorm` for discovery, `/spec` for ambiguous or multi-file scope, then `/plan`, wait for approval, implement, test, and `/review`.
38
+ - Pre-merge review: use `/review`.
39
+ - Release or npm publish: use `/release`; never use the simple fast path.
40
+ - UI work: use relevant frontend design skills before editing.
41
+ - Security or deploy work: run the matching checklist before claiming done.
42
+
43
+ ### Fast Path (`/simple`)
44
+
45
+ The fast path bypasses only Spec, Plan, and the feature/refactor Review gate for a trivial change. It never bypasses inspection or verification. State `FAST_PATH: simple-fix`, the reason, and the narrow scope before editing. Re-route with `/task` if the scope expands.
46
+
47
+ ### Gated Flow (feature or refactor)
48
+
49
+ 1. **Spec** — `.agent/workflows/spec.md` when scope is ambiguous, multi-file, or >~30 min. Skip only for single-line/self-contained fixes. Wait for human confirmation at its exit criteria.
50
+ 2. **Plan** — `.agent/workflows/plan.md`. Wait for explicit user approval before implementing.
51
+ 3. **Implement** — smallest coherent change per the approved plan, with focused tests.
52
+ 4. **Review** — `.agent/workflows/review.md` (five-axis). All 🔴 BLOCKING items resolved or explicitly accepted before calling the task done.
37
53
 
38
54
  ## Standards
39
55
 
@@ -0,0 +1,42 @@
1
+ ---
2
+ description: Release the thachvd-kit npm package with verification, versioning, tagging, publishing, and registry checks.
3
+ ---
4
+
5
+ # /release - Npm Release
6
+
7
+ Use this workflow only after the implementation workflow is complete and the release commit is the only intended change.
8
+
9
+ ## Release Gate
10
+
11
+ - [ ] Working tree is clean before starting.
12
+ - [ ] Change is already reviewed and pushed to `main`.
13
+ - [ ] `npm run release:verify` passes.
14
+ - [ ] The next version is correct and has not been published.
15
+ - [ ] npm authentication is available with `npm whoami`.
16
+ - [ ] Rollback/response plan is known: npm versions cannot be overwritten or reused.
17
+
18
+ ## Commands
19
+
20
+ ```bash
21
+ git status --short --branch
22
+ npm run release:verify
23
+ npm run release:patch
24
+ git push origin main --follow-tags
25
+ npm whoami
26
+ npm run release:publish
27
+ npm view thachvd-kit version
28
+ npx thachvd-kit@<published-version> --help
29
+ ```
30
+
31
+ `npm run release:patch` runs `preversion`, which executes the release verification, then `npm version patch` updates the package metadata and creates the version commit/tag. Do not run `npm publish` until the version and dry-run contents are correct.
32
+
33
+ ## Version Rules
34
+
35
+ - Patch: backward-compatible fixes, docs, tests, and internal workflow improvements.
36
+ - Minor: backward-compatible new CLI behavior or user-facing capability.
37
+ - Major: breaking CLI, configuration, package, or generated-artifact contract.
38
+ - Beta/prerelease: publish with a non-`latest` dist-tag, for example `npm publish --tag beta`.
39
+
40
+ ## Bypass Rules
41
+
42
+ Questions and simple fixes bypass Spec/Plan/Review only when they do not change behavior or a shared contract. Publishing never bypasses `release:verify`, versioning, tagging, authentication, or registry verification.
@@ -0,0 +1,42 @@
1
+ ---
2
+ description: Fast path for one-file, unambiguous fixes with no behavior or shared-contract change.
3
+ ---
4
+
5
+ # /simple - Fast Path
6
+
7
+ $ARGUMENTS
8
+
9
+ Codex UI command: `/prompts:simple`. The `/simple` name below describes the workflow; it is not a built-in Codex slash command.
10
+
11
+ ## Use Only When
12
+
13
+ - The change is limited to one obvious file or one tiny local edit.
14
+ - The expected result is unambiguous.
15
+ - No behavior, API, schema, security, CI, dependency, workflow, or release contract changes.
16
+
17
+ ## Explicit Bypass
18
+
19
+ Start the response with:
20
+
21
+ ```text
22
+ FAST_PATH: simple-fix
23
+ REASON: [why Spec/Plan/Review are not needed]
24
+ SCOPE: [file or narrow area]
25
+ ```
26
+
27
+ ## Steps
28
+
29
+ 1. Inspect the target and its immediate context.
30
+ 2. Make the smallest change.
31
+ 3. Run focused verification.
32
+ 4. Report the changed file and evidence.
33
+
34
+ Do not create a spec or plan for this route. Do not skip verification. If the scope expands, stop and re-route through `/task` as a feature, bug, or multi-domain task.
35
+
36
+ ## Examples
37
+
38
+ ```text
39
+ /simple fix a typo in README.md
40
+ /simple update one stale command in a workflow doc
41
+ /simple change one test assertion message
42
+ ```
@@ -0,0 +1,59 @@
1
+ ---
2
+ description: Route every task to the smallest safe workflow, fast path, bug flow, feature flow, or release flow.
3
+ ---
4
+
5
+ # /task - Task Router
6
+
7
+ $ARGUMENTS
8
+
9
+ Codex UI command: `/prompts:task`. The `/task` name below describes the workflow; it is not a built-in Codex slash command.
10
+
11
+ ## Purpose
12
+
13
+ Use `/task` at the start of a task when you are unsure which workflow, skill, or specialist agent applies. This command routes the request before implementation.
14
+
15
+ ## Required Output
16
+
17
+ ```text
18
+ ROUTE: question | simple | feature | bug | review | release | multi-domain
19
+ WORKFLOW: [exact .agent/workflows/<name>.md file]
20
+ SKILLS: [skills to load, or none]
21
+ AGENTS: [specialist agents to load, or none]
22
+ GATE: fast-path | standard
23
+ NEXT: [the next command or action]
24
+ ```
25
+
26
+ Do not write code while routing. Ask one concise clarification question if the route cannot be determined safely.
27
+
28
+ ## Routing Rules
29
+
30
+ | Signal | Route | Next action |
31
+ |---|---|---|
32
+ | Asking for information or architecture explanation | question | Answer directly; no edits |
33
+ | One obvious file, no behavior or contract change | simple | Use `/simple <request>` |
34
+ | New behavior, multiple files, unclear scope, or >30 minutes | feature | `/brainstorm` -> `/spec` when needed -> `/plan`, then approval |
35
+ | Failing test, regression, error, or unknown root cause | bug | Use `/debug <symptom>` |
36
+ | Review request or pre-merge check | review | Use `/review` |
37
+ | npm version/tag/publish request | release | Use `/release` |
38
+ | Several specialist domains | multi-domain | Use `/orchestrate` |
39
+
40
+ ## Workflow And Skill Map
41
+
42
+ - `/simple`: `$clean-code` + `$verification-before-completion`.
43
+ - `/brainstorm`: `brainstorming`; no code.
44
+ - `/spec`: `.agent/workflows/spec.md`; define scope and acceptance criteria, no code.
45
+ - `/plan`: `project-planner` + `plan-writing`; no code before approval.
46
+ - `/enhance` or `/create`: relevant domain agent and implementation skills after approval.
47
+ - `/debug`: `debugger` + `$systematic-debugging` + `testing-patterns`.
48
+ - `/test`: `test-engineer` + `testing-patterns`.
49
+ - `/review`: `$code-review-checklist` + `$verification-before-completion`.
50
+ - `/release`: `release.md` and the npm release scripts; never use the fast path.
51
+
52
+ ## Examples
53
+
54
+ ```text
55
+ /task add an export button
56
+ /task login returns 500
57
+ /task fix typo in README
58
+ /task publish a new npm version
59
+ ```
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # thachvd-kit
2
-
3
- `thachvd-kit` bootstraps shared project rules for AI coding agents.
4
-
5
- It creates a compact cross-agent entry setup for Codex, Antigravity, and Claude Code, then stores scan-based project knowledge under `.agent/docs/` so the root instruction files stay small.
6
-
7
- ## Quick Start
8
-
9
- Install globally:
10
-
11
- ```bash
12
- npm install -g thachvd-kit
13
- ```
14
-
1
+ # thachvd-kit
2
+
3
+ `thachvd-kit` bootstraps shared project rules for AI coding agents.
4
+
5
+ It creates a compact cross-agent entry setup for Codex, Antigravity, and Claude Code, then stores scan-based project knowledge under `.agent/docs/` so the root instruction files stay small.
6
+
7
+ ## Quick Start
8
+
9
+ Install globally:
10
+
11
+ ```bash
12
+ npm install -g thachvd-kit
13
+ ```
14
+
15
15
  Run inside a project:
16
16
 
17
17
  ```bash
@@ -60,10 +60,59 @@ Skills work best through progressive disclosure: the agent should first see skil
60
60
  - Keep `.agent/skills` as the complete shared source from the kit.
61
61
  - Let `thachvd-kit` copy selected skills to `~/.codex/skills/` for Codex and `.claude/skills` for Claude Code.
62
62
  - Make every `SKILL.md` frontmatter `description` specific: include when to use it, trigger phrases, and boundaries.
63
- - Run `thachvd-kit --help` to see a compact workflow guide without adding that guidance to every agent context. It recommends when to use `/brainstorm`, `/plan`, `/create`, `/enhance`, `/debug`, `/test`, `/preview`, `/deploy`, `/status`, and `/orchestrate`.
63
+ - Run `thachvd-kit --help` to see a compact workflow guide. In Codex, custom prompts appear as `/prompts:task`, `/prompts:simple`, `/prompts:debug`, `/prompts:spec`, and `/prompts:release` after `init` and a Codex restart. Built-in commands such as `/plan` and `/review` remain unchanged.
64
64
  - Use explicit prompts when implicit matching misses, for example `Use $webapp-testing to verify this UI` or `Use $clean-code before refactoring`.
65
65
  - Restart Codex or Claude Code if a newly copied or edited skill does not appear.
66
66
 
67
+ ## Development Workflow
68
+
69
+ After install, every AI client starts at the task router when the route is not already obvious. In Codex, use `/prompts:task <request>`; other clients can read `.agent/workflows/task.md` directly. The router selects the smallest safe workflow and relevant skills/agents; it does not force the full feature gate onto every request.
70
+
71
+ ### Client Commands
72
+
73
+ | Client | Router | Fast path | Bug flow | Feature spec | Release |
74
+ |---|---|---|---|---|---|
75
+ | Codex | `/prompts:task` | `/prompts:simple` | `/prompts:debug` | `/prompts:spec` | `/prompts:release` |
76
+ | Antigravity | `/task` | `/simple` | `/debug` | `/spec` | `/release` |
77
+ | Claude Code | `/task` | `/simple` | `/debug` | `/spec` | `/release` |
78
+ | Cursor | `/task` | `/simple` | `/debug` | `/spec` | `/release` |
79
+
80
+ `init` installs these from the same source: Codex prompts in `~/.codex/prompts`, Antigravity workflows in `.agent/workflows`, Claude Code skills in `.claude/skills`, and Cursor commands in `.cursor/commands`. Restart or reload the client after the first installation if commands do not appear.
81
+
82
+ | Situation | Command | Required flow |
83
+ |---|---|---|
84
+ | Question or analysis | direct answer | no edits |
85
+ | One obvious local fix | `/prompts:simple <request>` in Codex | inspect → edit → focused verify |
86
+ | Bug or failing behavior | `/prompts:debug <symptom>` in Codex | reproduce → root cause → regression test → fix → verify |
87
+ | New behavior or refactor | `/prompts:task` → `/brainstorm` → `/prompts:spec` when needed → `/plan` | approval → implement → test → `/review` |
88
+ | Pre-merge review | `/review` | five-axis review; resolve blocking findings |
89
+ | npm version/tag/publish | `/release` | release verification; never fast path |
90
+ | Several specialist domains | `/orchestrate` | plan → approval → parallel work → integration verify |
91
+
92
+ ### Standard Feature Flow
93
+
94
+ `/prompts:task` → `/brainstorm` when needed → `/prompts:spec` for ambiguous or multi-file scope → `/plan` → explicit user approval → implementation → `/test` → `/review` → final verification → commit/push.
95
+
96
+ Workflow files define process and gates. Skills define methods/checklists. Agents provide specialist ownership. Members should invoke the command, not only describe the work in chat.
97
+
98
+ ### Bug Fix Flow
99
+
100
+ Use `/prompts:debug` in Codex for regressions, failing tests, exceptions, incorrect output, or any symptom with an unknown root cause. Load `$systematic-debugging`, the `debugger` agent, and `testing-patterns`; reproduce the issue, inspect the code path, test hypotheses, add regression protection, make the smallest root-cause fix, and verify. Use `/review` when the change is cross-file or affects a shared contract.
101
+
102
+ ### Simple Fast Path
103
+
104
+ Use `/prompts:simple` in Codex only for one obvious file, an unambiguous result, and no behavior, API, schema, security, CI, dependency, workflow, or release contract change. Before editing, state:
105
+
106
+ ```text
107
+ FAST_PATH: simple-fix
108
+ REASON: [why Spec/Plan/Review are not needed]
109
+ SCOPE: [file or narrow area]
110
+ ```
111
+
112
+ This bypasses only Spec, Plan, and the feature/refactor Review gate. It never bypasses inspection or verification. If the scope expands, stop and run `/prompts:task` again.
113
+
114
+ Claude Code has a Stop hook that checks the standard feature/refactor gate. Codex, Antigravity, and Cursor use the same written routing rules through `AGENTS.md`, `.cursorrules`, and `.agent/rules/GEMINI.md`.
115
+
67
116
  ## Optional Tooling
68
117
 
69
118
  `init` performs setup and prints what it configured:
@@ -107,4 +156,38 @@ npm test
107
156
  npm pack --dry-run
108
157
  ```
109
158
 
159
+ ## Npm Release Flow
160
+
161
+ An npm release is never a simple fix. Release only from a clean `main` branch after the change has passed the feature/refactor gates and has been pushed to GitHub.
162
+
163
+ ```bash
164
+ # 1. Verify the clean, pushed source
165
+ git status --short --branch
166
+ npm run release:verify
167
+
168
+ # 2. Bump patch version, create the version commit and git tag
169
+ npm run release:patch
170
+
171
+ # 3. Push the version commit and tag
172
+ git push origin main --follow-tags
173
+
174
+ # 4. Confirm npm authentication, then publish
175
+ npm whoami
176
+ npm run release:publish
177
+
178
+ # 5. Verify the registry and the installed CLI
179
+ npm view thachvd-kit version
180
+ npx thachvd-kit@<published-version> --help
181
+ ```
182
+
183
+ `npm run release:patch` runs the verification command first through `preversion`; `npm version patch` then updates `package.json`/`package-lock.json`, creates a commit, and creates a git tag. A published `name@version` cannot be reused, so do not publish until the version and tarball are correct. Use `npm publish --tag beta` for a prerelease channel instead of changing `latest`.
184
+
185
+ ### Which Flow To Use
186
+
187
+ - **Question/analysis:** answer or inspect only; no files changed, so no spec/plan/review.
188
+ - **Simple fix:** one unambiguous file, no behavior/API/schema/security/CI/release contract change; inspect, edit, run focused verification, summarize.
189
+ - **Feature/refactor:** any new behavior, multiple files, dependency/API/schema/security/CI changes, or work likely over 30 minutes; run Spec → user-approved Plan → Implement → Review → verification.
190
+ - **Multi-domain task:** route through `.agent/workflows/orchestrate.md`.
191
+ - **Release/publish:** only after the relevant implementation flow is complete; run the npm release flow above. Never bypass release verification.
192
+
110
193
  The npm package page updates only after `npm publish`.