thachvd-kit 1.0.27 → 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.
@@ -2,9 +2,20 @@
2
2
 
3
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
4
 
5
- ## Start Every Task With /task
5
+ ## Client Command Map
6
6
 
7
- Use `/task <request>` before editing whenever the route is not already obvious. It must produce:
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:
8
19
 
9
20
  ```text
10
21
  ROUTE: question | simple | feature | bug | review | release | multi-domain
@@ -22,22 +33,22 @@ A workflow is the process and its gates. A skill is the method or checklist. An
22
33
  | Situation | Command | Gate | Required next step |
23
34
  |---|---|---|---|
24
35
  | Explain, inspect, or brainstorm only | direct answer or `/brainstorm` | none | no code until the request becomes actionable |
25
- | One obvious local fix | `/simple <request>` | fast-path | inspect -> edit -> focused verify |
26
- | New behavior, multi-file change, unclear scope, or >~30 min | `/task` -> `/brainstorm` -> `/spec` when needed -> `/plan` | standard | wait for approval before implementation |
27
- | Bug, regression, failing test, or unknown error | `/debug <symptom>` | bug | reproduce -> isolate -> regression test -> fix -> verify |
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 |
28
39
  | Pre-merge or independent review | `/review` | review | five-axis review; resolve blocking findings |
29
- | Version, tag, npm publish, or deployment | `/release` | release | release checklist; never fast-path |
40
+ | Version, tag, npm publish, or deployment | `/prompts:release` in Codex | release | release checklist; never fast-path |
30
41
  | Frontend + backend + data/security together | `/orchestrate` | standard | plan -> approval -> specialist work -> integration verify |
31
42
 
32
43
  ## Standard Feature Flow
33
44
 
34
- The gated sequence is Spec -> Plan -> Implement -> Review: `/task` -> `/brainstorm` -> `/spec` when scope is ambiguous or multi-file -> `/plan` -> user approves the plan -> implementation -> `/test` -> `/review` -> final verification -> commit/push.
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.
35
46
 
36
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`.
37
48
 
38
49
  ## Bug Fix Flow
39
50
 
40
- Use `/debug <symptom>`, not the feature flow, when something is failing or the root cause is unknown:
51
+ Use Codex `/prompts:debug <symptom>`, not the feature flow, when something is failing or the root cause is unknown:
41
52
 
42
53
  1. Capture the exact symptom, environment, reproduction, and expected result.
43
54
  2. Inspect the relevant code path with MCP/codegraph when available.
@@ -51,7 +62,7 @@ Load `$systematic-debugging`, the `debugger` agent, and `testing-patterns` for t
51
62
 
52
63
  ## Simple Fast Path
53
64
 
54
- Use `/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:
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:
55
66
 
56
67
  ```text
57
68
  FAST_PATH: simple-fix
@@ -59,18 +70,18 @@ REASON: [why Spec/Plan/Review are not needed]
59
70
  SCOPE: [file or narrow area]
60
71
  ```
61
72
 
62
- 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 `/task`.
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`.
63
74
 
64
75
  ## Command And Skill Map
65
76
 
66
77
  - `/brainstorm`: clarify intent and tradeoffs; no code.
67
- - `/spec`: define requirements and acceptance criteria; no code.
78
+ - Codex `/prompts:spec`: define requirements and acceptance criteria; no code.
68
79
  - `/plan`: create an approved implementation plan; no code before approval.
69
80
  - `/enhance` or `/create`: implement an approved feature with the relevant specialist agent.
70
- - `/debug`: systematic root-cause investigation and regression protection.
81
+ - Codex `/prompts:debug`: systematic root-cause investigation and regression protection.
71
82
  - `/test`: add or run tests and assess coverage.
72
83
  - `/review`: five-axis review before completion or merge.
73
- - `/release`: verify, version, tag, publish, and verify npm output.
84
+ - Codex `/prompts:release`: verify, version, tag, publish, and verify npm output.
74
85
  - `$clean-code` and `$verification-before-completion`: default implementation hygiene.
75
86
  - `$webapp-testing`: browser/UI verification; use Playwright when available.
76
87
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  1. Read AGENTS.md.
6
6
  2. Read .agent/docs/project.md.
7
- 3. Route the request with `/task <request>` when the path is not obvious.
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
 
@@ -13,11 +13,11 @@
13
13
  | Situation | Command | Workflow / gate |
14
14
  |---|---|---|
15
15
  | Question or analysis only | direct answer | no edits |
16
- | One obvious local fix | `/simple` | `.agent/workflows/simple.md`, fast-path |
17
- | Bug, regression, failing test, or unknown error | `/debug` | `.agent/workflows/debug.md`, evidence-first |
18
- | New behavior, multi-file change, or unclear scope | `/brainstorm` -> `/spec` when needed -> `/plan` | spec/plan approval -> implement -> review |
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
19
  | Pre-merge review | `/review` | `.agent/workflows/review.md`, five-axis |
20
- | npm version, tag, publish, or deployment | `/release` | `.agent/workflows/release.md`, release gate |
20
+ | npm version, tag, publish, or deployment | Codex `/prompts:release` | `.agent/workflows/release.md`, release gate |
21
21
  | Several specialist domains | `/orchestrate` | plan -> approval -> parallel work -> integration verify |
22
22
 
23
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.
@@ -35,7 +35,7 @@ If a task is not clearly simple, use the standard flow. Never use the fast path
35
35
 
36
36
  ## Implementation Flow
37
37
 
38
- For `/simple` fixes, state the fast-path decision before editing:
38
+ For Codex `/prompts:simple` fixes, state the fast-path decision before editing:
39
39
 
40
40
  ```text
41
41
  FAST_PATH: simple-fix
@@ -52,7 +52,7 @@ Then:
52
52
  5. Run verification (prioritize using Playwright MCP for web/UI changes to automate verification and capture screenshots).
53
53
  6. Summarize changed files and verification evidence.
54
54
 
55
- For bugs, use `/debug` with `$systematic-debugging`, the `debugger` agent, and `testing-patterns`: reproduce, isolate the root cause, add regression protection, make the smallest fix, and verify.
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
56
 
57
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
58
 
@@ -60,7 +60,7 @@ For features or refactors, this flow runs *inside* the gated flow defined in AGE
60
60
 
61
61
  A feature/refactor task is only complete when all of the following hold — not when code compiles or tests pass:
62
62
 
63
- The Spec checkbox may be skipped only when the documented `/simple` fast-path protocol is stated and its criteria are met.
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
64
 
65
65
  - [ ] `.agent/workflows/spec.md` exit criteria met (or explicitly skipped as a trivial/self-contained change)
66
66
  - [ ] `.agent/workflows/plan.md` produced a plan file, approved by the user
@@ -30,6 +30,7 @@ Load only the agent, skill, or workflow files relevant to the current task.
30
30
  ## Execution
31
31
 
32
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/`.
33
34
  - Questions and analysis: answer directly; do not edit code.
34
35
  - Simple fix: use `/simple <request>` only for one-file, unambiguous changes with no behavior or contract change.
35
36
  - Bug or failing behavior: use `/debug <symptom>` and follow the evidence-first root-cause flow.
@@ -6,6 +6,8 @@ description: Fast path for one-file, unambiguous fixes with no behavior or share
6
6
 
7
7
  $ARGUMENTS
8
8
 
9
+ Codex UI command: `/prompts:simple`. The `/simple` name below describes the workflow; it is not a built-in Codex slash command.
10
+
9
11
  ## Use Only When
10
12
 
11
13
  - The change is limited to one obvious file or one tiny local edit.
@@ -6,6 +6,8 @@ description: Route every task to the smallest safe workflow, fast path, bug flow
6
6
 
7
7
  $ARGUMENTS
8
8
 
9
+ Codex UI command: `/prompts:task`. The `/task` name below describes the workflow; it is not a built-in Codex slash command.
10
+
9
11
  ## Purpose
10
12
 
11
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.
package/README.md CHANGED
@@ -60,37 +60,48 @@ 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 `/task`, `/simple`, `/brainstorm`, `/plan`, `/create`, `/enhance`, `/debug`, `/test`, `/preview`, `/deploy`, `/review`, `/release`, `/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
67
  ## Development Workflow
68
68
 
69
- After install, every AI client starts at `/task <request>` when the route is not already obvious. `/task` selects the smallest safe workflow and the relevant skills/agents; it does not force the full feature gate onto every request.
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.
70
81
 
71
82
  | Situation | Command | Required flow |
72
83
  |---|---|---|
73
84
  | Question or analysis | direct answer | no edits |
74
- | One obvious local fix | `/simple <request>` | inspect → edit → focused verify |
75
- | Bug or failing behavior | `/debug <symptom>` | reproduce → root cause → regression test → fix → verify |
76
- | New behavior or refactor | `/task` → `/brainstorm` → `/spec` when needed → `/plan` | approval → implement → test → `/review` |
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` |
77
88
  | Pre-merge review | `/review` | five-axis review; resolve blocking findings |
78
89
  | npm version/tag/publish | `/release` | release verification; never fast path |
79
90
  | Several specialist domains | `/orchestrate` | plan → approval → parallel work → integration verify |
80
91
 
81
92
  ### Standard Feature Flow
82
93
 
83
- `/task` → `/brainstorm` when needed → `/spec` for ambiguous or multi-file scope → `/plan` → explicit user approval → implementation → `/test` → `/review` → final verification → commit/push.
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.
84
95
 
85
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.
86
97
 
87
98
  ### Bug Fix Flow
88
99
 
89
- Use `/debug` 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.
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.
90
101
 
91
102
  ### Simple Fast Path
92
103
 
93
- Use `/simple` only for one obvious file, an unambiguous result, and no behavior, API, schema, security, CI, dependency, workflow, or release contract change. Before editing, state:
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:
94
105
 
95
106
  ```text
96
107
  FAST_PATH: simple-fix
@@ -98,7 +109,7 @@ REASON: [why Spec/Plan/Review are not needed]
98
109
  SCOPE: [file or narrow area]
99
110
  ```
100
111
 
101
- This bypasses only Spec, Plan, and the feature/refactor Review gate. It never bypasses inspection or verification. If the scope expands, stop and run `/task` again.
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.
102
113
 
103
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`.
104
115
 
package/bin/cli.js CHANGED
@@ -145,33 +145,33 @@ ${pc.bold('What gets generated:')}
145
145
  .claude/skills/ Selected Claude Code project skills copied from .agent/skills
146
146
 
147
147
  ${pc.bold('Workflow guide:')}
148
- Every task /task Classify the request and select the workflow, skill, and agent
149
- Small obvious fix /simple Fast path; skips spec/plan/review but still verifies
148
+ Every task /prompts:task Classify request and select workflow, skill, and agent
149
+ Small obvious fix /prompts:simple Fast path; skips spec/plan/review but still verifies
150
150
  Idea is fuzzy /brainstorm Explore options, tradeoffs, and recommended direction
151
- Scope needs a contract /spec Define requirements and acceptance criteria; no code yet
151
+ Scope needs a contract /prompts:spec Define requirements and acceptance criteria; no code yet
152
152
  New app from scratch /create Turn an app idea into plan + implementation flow
153
153
  Feature is clear /plan Create docs/PLAN-*.md first, no code yet
154
154
  Existing app update /enhance Add or change a feature in an existing codebase
155
- Bug or failing behavior /debug Investigate symptoms, hypotheses, root cause, fix
155
+ Bug or failing behavior /prompts:debug Investigate symptoms, root cause, fix
156
156
  UI / UX work ui-ux-pro-max, frontend-specialist, $frontend-design, $webapp-testing
157
157
  Run or add tests /test Generate tests, run tests, check coverage
158
158
  Preview locally /preview Start, stop, restart, or health-check dev server
159
159
  Deploy / infra /deploy Release, hosting, Docker, cloud, environment setup
160
160
  Pre-merge review /review Run the five-axis review before calling work complete
161
- Npm package release /release Verify, version, tag, publish, and verify the package
161
+ Npm package release /prompts:release Verify, version, tag, publish, and verify the package
162
162
  Project state /status Summarize stack, progress, preview, pending work
163
163
  Multi-domain work /orchestrate Coordinate frontend, backend, data, security, QA
164
164
 
165
165
  ${pc.bold('Common explicit skill prompts:')}
166
- Use /task to route this request before editing.
167
- Use /simple for a one-file fix with no behavior or contract change.
166
+ In Codex, use /prompts:task to route this request before editing.
167
+ In Codex, use /prompts:simple for a one-file fix with no behavior or contract change.
168
168
  Use /brainstorm for this feature idea before planning.
169
- Use /spec when requirements or scope need an explicit contract.
169
+ In Codex, use /prompts:spec when requirements or scope need an explicit contract.
170
170
  Use /plan for this feature; do not write code yet.
171
171
  Use /enhance to implement this planned feature.
172
- Use /debug for this failing behavior and find the root cause before editing.
172
+ In Codex, use /prompts:debug for this failing behavior and find the root cause before editing.
173
173
  Use /review before claiming this feature/refactor complete.
174
- Use /release for npm versioning and publishing.
174
+ In Codex, use /prompts:release for npm versioning and publishing.
175
175
  Use $clean-code before editing this module.
176
176
  Use $systematic-debugging to investigate this bug.
177
177
  Use $webapp-testing to verify the UI with Playwright.
@@ -919,18 +919,18 @@ If any \`.agent/docs/*.md\` file still contains \`TODO: refine\`, update the doc
919
919
 
920
920
  ## Task Flow
921
921
 
922
- Route every task before editing. Use \`/task <request>\` when the correct path is not obvious.
922
+ Route every task before editing. In Codex, use \`/prompts:task <request>\`; other clients can read the matching file under \`.agent/workflows/\`.
923
923
 
924
924
  - Questions and analysis: answer directly, cite relevant files when useful, and do not edit code.
925
- - Simple fix: use \`/simple <request>\` only for one-file, unambiguous changes with no behavior or contract change.
926
- - Bug or failing behavior: use \`/debug <symptom>\` and follow the evidence-first root-cause flow.
927
- - Feature or refactor: use \`/brainstorm\` for discovery, \`/spec\` for ambiguous or multi-file scope, then \`/plan\`, wait for approval, implement, test, and \`/review\`.
925
+ - Simple fix: use Codex \`/prompts:simple <request>\` only for one-file, unambiguous changes with no behavior or contract change.
926
+ - Bug or failing behavior: use Codex \`/prompts:debug <symptom>\` and follow the evidence-first root-cause flow.
927
+ - Feature or refactor: use \`/brainstorm\` for discovery, Codex \`/prompts:spec\` for ambiguous or multi-file scope, then \`/plan\`, wait for approval, implement, test, and \`/review\`.
928
928
  - Pre-merge review: use \`/review\` even when the implementation itself was done by another client or member.
929
- - Release or npm publish: use \`/release\`; release work never uses the simple fast path.
929
+ - Release or npm publish: use Codex \`/prompts:release\`; release work never uses the simple fast path.
930
930
  - Multi-domain work: use \`.agent/workflows/orchestrate.md\` and route to the relevant specialist docs.
931
931
  - UI work: read \`.agent/agents/frontend-specialist.md\` and applicable design skills before editing.
932
932
 
933
- ### Fast Path (\`/simple\`)
933
+ ### Fast Path (Codex \`/prompts:simple\`)
934
934
 
935
935
  The fast path intentionally bypasses only Spec, Plan, and the feature/refactor Review gate for a trivial change. It never bypasses inspection, focused verification, or reporting evidence. The agent must state this protocol before editing:
936
936
 
@@ -940,7 +940,7 @@ REASON: [why the change is one-file and unambiguous]
940
940
  SCOPE: [file or narrow area]
941
941
  \`\`\`
942
942
 
943
- If the scope expands, stop and re-route with \`/task\`. Do not silently skip gates for work that changes behavior, APIs, schemas, security, CI, dependencies, workflows, or release state.
943
+ If the scope expands, stop and re-route with Codex \`/prompts:task\`. Do not silently skip gates for work that changes behavior, APIs, schemas, security, CI, dependencies, workflows, or release state.
944
944
 
945
945
  ### Gated Flow (feature or refactor)
946
946
 
@@ -949,7 +949,7 @@ If the scope expands, stop and re-route with \`/task\`. Do not silently skip gat
949
949
  3. **Implement** — smallest coherent change per the approved plan, with focused tests for changed behavior.
950
950
  4. **Review** — run \`.agent/workflows/review.md\` (five-axis review) before the change is considered done. All 🔴 BLOCKING items must be resolved or explicitly accepted with rationale.
951
951
 
952
- A feature/refactor task is not "done" until step 4's exit criteria are met — passing tests alone does not satisfy the gate. Simple fixes use the explicit \`/simple\` fast path above. See \`.agent/docs/getting-started.md\` for the complete route guide.
952
+ A feature/refactor task is not "done" until step 4's exit criteria are met — passing tests alone does not satisfy the gate. Simple fixes use the explicit Codex \`/prompts:simple\` fast path above. See \`.agent/docs/getting-started.md\` for the complete route guide.
953
953
 
954
954
  ## Skill Loading
955
955
 
@@ -1185,7 +1185,7 @@ function generateWorkflowDoc() {
1185
1185
 
1186
1186
  1. Read AGENTS.md.
1187
1187
  2. Read .agent/docs/project.md.
1188
- 3. Route the request with \`/task <request>\` when the path is not obvious.
1188
+ 3. Route the request with Codex \`/prompts:task <request>\` when the path is not obvious; otherwise read \`.agent/workflows/task.md\` directly.
1189
1189
  4. Read only the relevant docs under .agent/agents, .agent/skills, .claude/skills, and .agent/workflows.
1190
1190
  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.
1191
1191
 
@@ -1194,11 +1194,11 @@ function generateWorkflowDoc() {
1194
1194
  | Situation | Command | Workflow / gate |
1195
1195
  |---|---|---|
1196
1196
  | Question or analysis only | direct answer | no edits |
1197
- | One obvious local fix | \`/simple\` | \`.agent/workflows/simple.md\`, fast-path |
1198
- | Bug, regression, failing test, or unknown error | \`/debug\` | \`.agent/workflows/debug.md\`, evidence-first |
1199
- | New behavior, multi-file change, or unclear scope | \`/brainstorm\` -> \`/spec\` when needed -> \`/plan\` | spec/plan approval -> implement -> review |
1197
+ | One obvious local fix | Codex \`/prompts:simple\` | \`.agent/workflows/simple.md\`, fast-path |
1198
+ | Bug, regression, failing test, or unknown error | Codex \`/prompts:debug\` | \`.agent/workflows/debug.md\`, evidence-first |
1199
+ | New behavior, multi-file change, or unclear scope | \`/brainstorm\` -> Codex \`/prompts:spec\` when needed -> \`/plan\` | spec/plan approval -> implement -> review |
1200
1200
  | Pre-merge review | \`/review\` | \`.agent/workflows/review.md\`, five-axis |
1201
- | npm version, tag, publish, or deployment | \`/release\` | \`.agent/workflows/release.md\`, release gate |
1201
+ | npm version, tag, publish, or deployment | Codex \`/prompts:release\` | \`.agent/workflows/release.md\`, release gate |
1202
1202
  | Several specialist domains | \`/orchestrate\` | plan -> approval -> parallel work -> integration verify |
1203
1203
 
1204
1204
  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.
@@ -1216,7 +1216,7 @@ If a task is not clearly simple, use the standard flow. Never use the fast path
1216
1216
 
1217
1217
  ## Implementation Flow
1218
1218
 
1219
- For \`/simple\` fixes, state the fast-path decision before editing:
1219
+ For Codex \`/prompts:simple\` fixes, state the fast-path decision before editing:
1220
1220
 
1221
1221
  \`\`\`text
1222
1222
  FAST_PATH: simple-fix
@@ -1233,7 +1233,7 @@ Then:
1233
1233
  5. Run verification (prioritize using Playwright MCP for web/UI changes to automate verification and capture screenshots).
1234
1234
  6. Summarize changed files and verification evidence.
1235
1235
 
1236
- For bugs, use \`/debug\` with \`$systematic-debugging\`, the \`debugger\` agent, and \`testing-patterns\`: reproduce, isolate the root cause, add regression protection, make the smallest fix, and verify.
1236
+ 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.
1237
1237
 
1238
1238
  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.
1239
1239
 
@@ -1241,7 +1241,7 @@ For features or refactors, this flow runs *inside* the gated flow defined in AGE
1241
1241
 
1242
1242
  A feature/refactor task is only complete when all of the following hold — not when code compiles or tests pass:
1243
1243
 
1244
- The Spec checkbox may be skipped only when the documented \`/simple\` fast-path protocol is stated and its criteria are met.
1244
+ The Spec checkbox may be skipped only when the documented Codex \`/prompts:simple\` fast-path protocol is stated and its criteria are met.
1245
1245
 
1246
1246
  - [ ] \`.agent/workflows/spec.md\` exit criteria met (or explicitly skipped as a trivial/self-contained change)
1247
1247
  - [ ] \`.agent/workflows/plan.md\` produced a plan file, approved by the user
@@ -1265,9 +1265,20 @@ function generateGettingStartedDoc() {
1265
1265
 
1266
1266
  Read this after \`thachvd-kit init\`. The kit gives every member one entry point, then selects only the process and expertise the task needs.
1267
1267
 
1268
- ## Start Every Task With /task
1268
+ ## Client Command Map
1269
1269
 
1270
- Use \`/task <request>\` before editing whenever the route is not already obvious. It must produce:
1270
+ | Client | Task router | Simple fix | Bug fix | Feature spec | Release |
1271
+ |---|---|---|---|---|---|
1272
+ | Codex | \`/prompts:task\` | \`/prompts:simple\` | \`/prompts:debug\` | \`/prompts:spec\` | \`/prompts:release\` |
1273
+ | Antigravity | \`/task\` | \`/simple\` | \`/debug\` | \`/spec\` | \`/release\` |
1274
+ | Claude Code | \`/task\` | \`/simple\` | \`/debug\` | \`/spec\` | \`/release\` |
1275
+ | Cursor | \`/task\` | \`/simple\` | \`/debug\` | \`/spec\` | \`/release\` |
1276
+
1277
+ 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\`.
1278
+
1279
+ ## Start Every Task With The Router
1280
+
1281
+ 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:
1271
1282
 
1272
1283
  \`\`\`text
1273
1284
  ROUTE: question | simple | feature | bug | review | release | multi-domain
@@ -1285,22 +1296,22 @@ A workflow is the process and its gates. A skill is the method or checklist. An
1285
1296
  | Situation | Command | Gate | Required next step |
1286
1297
  |---|---|---|---|
1287
1298
  | Explain, inspect, or brainstorm only | direct answer or \`/brainstorm\` | none | no code until the request becomes actionable |
1288
- | One obvious local fix | \`/simple <request>\` | fast-path | inspect -> edit -> focused verify |
1289
- | New behavior, multi-file change, unclear scope, or >~30 min | \`/task\` -> \`/brainstorm\` -> \`/spec\` when needed -> \`/plan\` | standard | wait for approval before implementation |
1290
- | Bug, regression, failing test, or unknown error | \`/debug <symptom>\` | bug | reproduce -> isolate -> regression test -> fix -> verify |
1299
+ | One obvious local fix | \`/prompts:simple <request>\` in Codex | fast-path | inspect -> edit -> focused verify |
1300
+ | New behavior, multi-file change, unclear scope, or >~30 min | \`/prompts:task\` -> \`/brainstorm\` -> \`/prompts:spec\` when needed -> \`/plan\` | standard | wait for approval before implementation |
1301
+ | Bug, regression, failing test, or unknown error | \`/prompts:debug <symptom>\` in Codex | bug | reproduce -> isolate -> regression test -> fix -> verify |
1291
1302
  | Pre-merge or independent review | \`/review\` | review | five-axis review; resolve blocking findings |
1292
- | Version, tag, npm publish, or deployment | \`/release\` | release | release checklist; never fast-path |
1303
+ | Version, tag, npm publish, or deployment | \`/prompts:release\` in Codex | release | release checklist; never fast-path |
1293
1304
  | Frontend + backend + data/security together | \`/orchestrate\` | standard | plan -> approval -> specialist work -> integration verify |
1294
1305
 
1295
1306
  ## Standard Feature Flow
1296
1307
 
1297
- The gated sequence is Spec -> Plan -> Implement -> Review: \`/task\` -> \`/brainstorm\` -> \`/spec\` when scope is ambiguous or multi-file -> \`/plan\` -> user approves the plan -> implementation -> \`/test\` -> \`/review\` -> final verification -> commit/push.
1308
+ 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.
1298
1309
 
1299
1310
  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\`.
1300
1311
 
1301
1312
  ## Bug Fix Flow
1302
1313
 
1303
- Use \`/debug <symptom>\`, not the feature flow, when something is failing or the root cause is unknown:
1314
+ Use Codex \`/prompts:debug <symptom>\`, not the feature flow, when something is failing or the root cause is unknown:
1304
1315
 
1305
1316
  1. Capture the exact symptom, environment, reproduction, and expected result.
1306
1317
  2. Inspect the relevant code path with MCP/codegraph when available.
@@ -1314,7 +1325,7 @@ Load \`$systematic-debugging\`, the \`debugger\` agent, and \`testing-patterns\`
1314
1325
 
1315
1326
  ## Simple Fast Path
1316
1327
 
1317
- Use \`/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:
1328
+ 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:
1318
1329
 
1319
1330
  \`\`\`text
1320
1331
  FAST_PATH: simple-fix
@@ -1322,18 +1333,18 @@ REASON: [why Spec/Plan/Review are not needed]
1322
1333
  SCOPE: [file or narrow area]
1323
1334
  \`\`\`
1324
1335
 
1325
- 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 \`/task\`.
1336
+ 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\`.
1326
1337
 
1327
1338
  ## Command And Skill Map
1328
1339
 
1329
1340
  - \`/brainstorm\`: clarify intent and tradeoffs; no code.
1330
- - \`/spec\`: define requirements and acceptance criteria; no code.
1341
+ - Codex \`/prompts:spec\`: define requirements and acceptance criteria; no code.
1331
1342
  - \`/plan\`: create an approved implementation plan; no code before approval.
1332
1343
  - \`/enhance\` or \`/create\`: implement an approved feature with the relevant specialist agent.
1333
- - \`/debug\`: systematic root-cause investigation and regression protection.
1344
+ - Codex \`/prompts:debug\`: systematic root-cause investigation and regression protection.
1334
1345
  - \`/test\`: add or run tests and assess coverage.
1335
1346
  - \`/review\`: five-axis review before completion or merge.
1336
- - \`/release\`: verify, version, tag, publish, and verify npm output.
1347
+ - Codex \`/prompts:release\`: verify, version, tag, publish, and verify npm output.
1337
1348
  - \`$clean-code\` and \`$verification-before-completion\`: default implementation hygiene.
1338
1349
  - \`$webapp-testing\`: browser/UI verification; use Playwright when available.
1339
1350
 
@@ -1536,7 +1547,7 @@ function copyAgentFolder() {
1536
1547
  return { copied, skipped: 0 };
1537
1548
  }
1538
1549
 
1539
- function copySelectedSkillFolders(data, assumeYes) {
1550
+ function copySelectedSkillFolders(data, assumeYes) {
1540
1551
  const srcSkills = path.join(sourceDir, '.agent', 'skills');
1541
1552
  if (!fs.existsSync(srcSkills)) return { copied: 0, skipped: 0, missing: 0, skills: [] };
1542
1553
 
@@ -1579,8 +1590,55 @@ function copySelectedSkillFolders(data, assumeYes) {
1579
1590
  }
1580
1591
  }
1581
1592
 
1582
- return { copied, skipped: 0, missing, skills: selectedSkills };
1583
- }
1593
+ return { copied, skipped: 0, missing, skills: selectedSkills };
1594
+ }
1595
+
1596
+ function copyCodexPrompts() {
1597
+ const srcPrompts = path.join(sourceDir, 'prompts');
1598
+ const codexPromptsDir = homePath('.codex', 'prompts');
1599
+ if (!fs.existsSync(srcPrompts) || !codexPromptsDir) {
1600
+ return { copied: 0, prompts: [] };
1601
+ }
1602
+
1603
+ let copied = 0;
1604
+ const prompts = [];
1605
+ fs.mkdirSync(codexPromptsDir, { recursive: true });
1606
+ for (const entry of fs.readdirSync(srcPrompts, { withFileTypes: true })) {
1607
+ if (!entry.isFile() || !entry.name.endsWith('.md')) continue;
1608
+ fs.copyFileSync(path.join(srcPrompts, entry.name), path.join(codexPromptsDir, entry.name));
1609
+ copied++;
1610
+ prompts.push(path.basename(entry.name, '.md'));
1611
+ }
1612
+ return { copied, prompts };
1613
+ }
1614
+
1615
+ function copyClientWorkflowCommands() {
1616
+ const srcPrompts = path.join(sourceDir, 'prompts');
1617
+ const claudeSkillsDir = path.join(targetDir, '.claude', 'skills');
1618
+ const cursorCommandsDir = path.join(targetDir, '.cursor', 'commands');
1619
+ if (!fs.existsSync(srcPrompts)) {
1620
+ return { claude: 0, cursor: 0, prompts: [] };
1621
+ }
1622
+
1623
+ let claude = 0;
1624
+ let cursor = 0;
1625
+ const prompts = [];
1626
+ for (const entry of fs.readdirSync(srcPrompts, { withFileTypes: true })) {
1627
+ if (!entry.isFile() || !entry.name.endsWith('.md')) continue;
1628
+ const name = path.basename(entry.name, '.md');
1629
+ const sourcePath = path.join(srcPrompts, entry.name);
1630
+ const sourceContent = fs.readFileSync(sourcePath, 'utf8');
1631
+ const cursorContent = sourceContent.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n/, '');
1632
+ fs.mkdirSync(path.join(claudeSkillsDir, name), { recursive: true });
1633
+ fs.copyFileSync(sourcePath, path.join(claudeSkillsDir, name, 'SKILL.md'));
1634
+ fs.mkdirSync(cursorCommandsDir, { recursive: true });
1635
+ fs.writeFileSync(path.join(cursorCommandsDir, entry.name), cursorContent, 'utf8');
1636
+ claude++;
1637
+ cursor++;
1638
+ prompts.push(name);
1639
+ }
1640
+ return { claude, cursor, prompts };
1641
+ }
1584
1642
 
1585
1643
  async function writeGeneratedFile(relativePath, content, assumeYes) {
1586
1644
  const outputPath = path.join(targetDir, relativePath);
@@ -1913,12 +1971,22 @@ async function main() {
1913
1971
  console.log(` ${pc.yellow('~')} ${pc.bold('.agent/')} already exists - ${skipped} file${skipped !== 1 ? 's' : ''} skipped (no overwrite)`);
1914
1972
  }
1915
1973
 
1916
- const nativeSkills = copySelectedSkillFolders(data, assumeYes);
1974
+ const nativeSkills = copySelectedSkillFolders(data, assumeYes);
1917
1975
  if (nativeSkills.copied > 0) {
1918
1976
  console.log(` ${pc.green('OK')} Copied native skills to ${pc.bold('~/.codex/skills/')} and ${pc.bold('.claude/skills/')} (${nativeSkills.skills.join(', ')})`);
1919
1977
  } else if (nativeSkills.skipped > 0) {
1920
1978
  console.log(` ${pc.yellow('~')} Native skills already exist - ${nativeSkills.skipped} file${nativeSkills.skipped !== 1 ? 's' : ''} skipped`);
1921
- }
1979
+ }
1980
+
1981
+ const codexPrompts = copyCodexPrompts();
1982
+ if (codexPrompts.copied > 0) {
1983
+ console.log(` ${pc.green('OK')} Installed Codex custom prompts in ${pc.bold('~/.codex/prompts/')} (${codexPrompts.prompts.map(name => `/prompts:${name}`).join(', ')})`);
1984
+ }
1985
+
1986
+ const clientCommands = copyClientWorkflowCommands();
1987
+ if (clientCommands.claude > 0 || clientCommands.cursor > 0) {
1988
+ console.log(` ${pc.green('OK')} Installed workflow commands for Claude Code (${clientCommands.claude}) and Cursor (${clientCommands.cursor})`);
1989
+ }
1922
1990
 
1923
1991
 
1924
1992
  const generatedFiles = [
@@ -1964,8 +2032,11 @@ async function main() {
1964
2032
  - ${pc.bold('.cursorrules')} Cursor entry
1965
2033
  - ${pc.bold('.agent/docs/')} scan-based project rules, including ${pc.bold('getting-started.md')} (standard flow vs fast path)
1966
2034
  - ${pc.bold('.agent/')} skills, workflows, agents, and rules
1967
- - ${pc.bold('~/.codex/skills/')} selected Codex skills installed globally (visible in $ menu)
1968
- - ${pc.bold('.claude/skills/')} selected Claude Code native skills
2035
+ - ${pc.bold('~/.codex/skills/')} selected Codex skills installed globally (visible in $ menu)
2036
+ - ${pc.bold('~/.codex/prompts/')} Codex custom prompts (visible as /prompts:<name> after restart)
2037
+ - ${pc.bold('.claude/skills/')} selected Claude Code native skills
2038
+ - ${pc.bold('.claude/skills/{task,simple,debug,spec,release}/')} workflow skills (visible as /task, /simple, /debug, /spec, /release)
2039
+ - ${pc.bold('.cursor/commands/')} Cursor workflow commands (visible as /task, /simple, /debug, /spec, /release)
1969
2040
  - ${pc.bold('.claude/settings.json')} Definition-of-Done Stop hook (Claude Code only — blocks reporting a feature/refactor "done" without a plan + review pass)
1970
2041
 
1971
2042
  ${pc.bold('MCP/tooling setup:')}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thachvd-kit",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Cross-agent project rules bootstrap kit for Codex, Antigravity, and Claude Code",
5
5
  "bin": {
6
6
  "thachvd-kit": "./bin/cli.js"
@@ -13,6 +13,7 @@
13
13
  "rules",
14
14
  "scripts",
15
15
  "skills",
16
+ "prompts",
16
17
  "workflows",
17
18
  "README.md",
18
19
  "LICENSE"
@@ -0,0 +1,11 @@
1
+ ---
2
+ description: Investigate a bug with evidence, root-cause analysis, regression protection, and verification.
3
+ argument-hint: [SYMPTOM]
4
+ ---
5
+
6
+ Read and follow `.agent/workflows/debug.md` in the current repository.
7
+
8
+ Bug or symptom:
9
+ $ARGUMENTS
10
+
11
+ Use `$systematic-debugging`, the `debugger` agent, and `testing-patterns` when available. Reproduce and isolate the root cause before editing.
@@ -0,0 +1,11 @@
1
+ ---
2
+ description: Run the npm release workflow with verification, versioning, tagging, publishing, and registry checks.
3
+ argument-hint: [RELEASE_REQUEST]
4
+ ---
5
+
6
+ Read and follow `.agent/workflows/release.md` in the current repository.
7
+
8
+ Release request:
9
+ $ARGUMENTS
10
+
11
+ Do not publish until the release gate and `npm run release:verify` pass.
@@ -0,0 +1,11 @@
1
+ ---
2
+ description: Run the fast path for one-file, unambiguous fixes with verification.
3
+ argument-hint: [TASK]
4
+ ---
5
+
6
+ Read and follow `.agent/workflows/simple.md` in the current repository.
7
+
8
+ Request:
9
+ $ARGUMENTS
10
+
11
+ Use the fast path only when its criteria are met. State `FAST_PATH: simple-fix`, `REASON`, and `SCOPE` before editing. Never skip verification.
@@ -0,0 +1,11 @@
1
+ ---
2
+ description: Define requirements and acceptance criteria before planning or implementation.
3
+ argument-hint: [REQUEST]
4
+ ---
5
+
6
+ Read and follow `.agent/workflows/spec.md` in the current repository.
7
+
8
+ Request:
9
+ $ARGUMENTS
10
+
11
+ Do not write product code. Stop at the spec gate and wait for human confirmation.
@@ -0,0 +1,12 @@
1
+ ---
2
+ description: Route the current request to the smallest safe workflow before editing.
3
+ argument-hint: [TASK]
4
+ ---
5
+
6
+ Read and follow `.agent/workflows/task.md` in the current repository.
7
+
8
+ Route this request before editing:
9
+
10
+ $ARGUMENTS
11
+
12
+ Return the required ROUTE, WORKFLOW, SKILLS, AGENTS, GATE, and NEXT fields. Do not edit code while routing.
@@ -6,6 +6,8 @@ description: Fast path for one-file, unambiguous fixes with no behavior or share
6
6
 
7
7
  $ARGUMENTS
8
8
 
9
+ Codex UI command: `/prompts:simple`. The `/simple` name below describes the workflow; it is not a built-in Codex slash command.
10
+
9
11
  ## Use Only When
10
12
 
11
13
  - The change is limited to one obvious file or one tiny local edit.
package/workflows/task.md CHANGED
@@ -6,6 +6,8 @@ description: Route every task to the smallest safe workflow, fast path, bug flow
6
6
 
7
7
  $ARGUMENTS
8
8
 
9
+ Codex UI command: `/prompts:task`. The `/task` name below describes the workflow; it is not a built-in Codex slash command.
10
+
9
11
  ## Purpose
10
12
 
11
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.