@jakkrichm/create-nexus-devflow 2.0.15 → 2.0.18

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.
Files changed (82) hide show
  1. package/dist/bin/create-nexus-devflow.d.ts +15 -1
  2. package/dist/bin/create-nexus-devflow.js +125 -9
  3. package/dist/bin/create-nexus-devflow.js.map +1 -1
  4. package/dist/lib/current-work.d.ts +29 -0
  5. package/dist/lib/current-work.js +235 -0
  6. package/dist/lib/current-work.js.map +1 -0
  7. package/dist/lib/findings.d.ts +26 -0
  8. package/dist/lib/findings.js +110 -0
  9. package/dist/lib/findings.js.map +1 -0
  10. package/dist/lib/git-status.d.ts +13 -0
  11. package/dist/lib/git-status.js +98 -0
  12. package/dist/lib/git-status.js.map +1 -0
  13. package/dist/lib/project-metadata.d.ts +22 -0
  14. package/dist/lib/project-metadata.js +84 -0
  15. package/dist/lib/project-metadata.js.map +1 -0
  16. package/dist/lib/project-root.d.ts +3 -0
  17. package/dist/lib/project-root.js +76 -0
  18. package/dist/lib/project-root.js.map +1 -0
  19. package/dist/lib/status.d.ts +62 -0
  20. package/dist/lib/status.js +273 -0
  21. package/dist/lib/status.js.map +1 -0
  22. package/dist/lib/uninstall.d.ts +20 -0
  23. package/dist/lib/uninstall.js +129 -0
  24. package/dist/lib/uninstall.js.map +1 -0
  25. package/dist/scripts/prepare-template.js +120 -10
  26. package/dist/scripts/prepare-template.js.map +1 -1
  27. package/package.json +4 -3
  28. package/template/.agents/skills/00-discover/SKILL.md +2 -2
  29. package/template/.agents/skills/10-define/SKILL.md +24 -140
  30. package/template/.agents/skills/20-spec/SKILL.md +2 -2
  31. package/template/.agents/skills/30-plan/SKILL.md +2 -2
  32. package/template/.agents/skills/50-verify/SKILL.md +2 -2
  33. package/template/.agents/skills/60-report/SKILL.md +1 -1
  34. package/template/.agents/skills/70-release/SKILL.md +19 -143
  35. package/template/.agents/skills/check/SKILL.md +10 -10
  36. package/template/.agents/skills/ci/SKILL.md +1 -1
  37. package/template/.agents/skills/complete/SKILL.md +49 -28
  38. package/template/.agents/skills/deploy/SKILL.md +1 -1
  39. package/template/.agents/skills/devflow/SKILL.md +5 -5
  40. package/template/.agents/skills/feature/SKILL.md +25 -20
  41. package/template/.agents/skills/fix/SKILL.md +25 -19
  42. package/template/.agents/skills/implement/SKILL.md +10 -10
  43. package/template/.agents/skills/insight/SKILL.md +1 -1
  44. package/template/.agents/skills/overview/SKILL.md +3 -3
  45. package/template/.agents/skills/report-html/SKILL.md +3 -3
  46. package/template/.agents/skills/security-review/SKILL.md +1 -1
  47. package/template/.agents/skills/spec/SKILL.md +7 -6
  48. package/template/.agents/skills/spec-driven-development/SKILL.md +2 -2
  49. package/template/.agents/skills/test/SKILL.md +1 -1
  50. package/template/.claude/skills/00-discover/SKILL.md +2 -2
  51. package/template/.claude/skills/10-define/SKILL.md +24 -140
  52. package/template/.claude/skills/20-spec/SKILL.md +2 -2
  53. package/template/.claude/skills/30-plan/SKILL.md +2 -2
  54. package/template/.claude/skills/50-verify/SKILL.md +2 -2
  55. package/template/.claude/skills/60-report/SKILL.md +1 -1
  56. package/template/.claude/skills/70-release/SKILL.md +19 -143
  57. package/template/.claude/skills/check/SKILL.md +10 -10
  58. package/template/.claude/skills/ci/SKILL.md +1 -1
  59. package/template/.claude/skills/complete/SKILL.md +49 -28
  60. package/template/.claude/skills/deploy/SKILL.md +1 -1
  61. package/template/.claude/skills/devflow/SKILL.md +5 -5
  62. package/template/.claude/skills/feature/SKILL.md +25 -20
  63. package/template/.claude/skills/fix/SKILL.md +25 -19
  64. package/template/.claude/skills/implement/SKILL.md +10 -10
  65. package/template/.claude/skills/insight/SKILL.md +1 -1
  66. package/template/.claude/skills/overview/SKILL.md +3 -3
  67. package/template/.claude/skills/report-html/SKILL.md +3 -3
  68. package/template/.claude/skills/security-review/SKILL.md +1 -1
  69. package/template/.claude/skills/spec/SKILL.md +7 -6
  70. package/template/.claude/skills/spec-driven-development/SKILL.md +2 -2
  71. package/template/.claude/skills/test/SKILL.md +1 -1
  72. package/template/AGENTS.md +15 -59
  73. package/template/devflow/context/ai-interaction.md +110 -23
  74. package/template/devflow/context/coding-standards.md +123 -32
  75. package/template/devflow/context/current-feature.md +3 -0
  76. package/template/devflow/context/current-stage.md +6 -6
  77. package/template/devflow/context/findings.md +10 -10
  78. package/template/devflow/context/project-overview.md +18 -32
  79. package/template/devflow/history/HISTORY.md +10 -24
  80. package/template/devflow/ideas.md +9 -5
  81. package/template/devflow/reference/running-id-contract.md +39 -39
  82. package/template/devflow/runs/.gitkeep +0 -0
@@ -1,6 +1,6 @@
1
- ---name: 70-release
2
-
3
- description: "[Devflow] Release stage in DevFlow 2.0 - package verified work for delivery, git merge, PR, or deployment."
1
+ ---
2
+ name: 70-release
3
+ description: "[Devflow] Release stage in DevFlow 2.0 - package verified work for delivery, archive run to categorized history, git merge, PR, or deployment."
4
4
  argument-hint: "{running-id or workspace path}"
5
5
  ---
6
6
 
@@ -8,26 +8,20 @@ argument-hint: "{running-id or workspace path}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Package approved work for delivery after the report stage has captured the final verified story. This stage turns report sign-off into release-ready execution and handoff.
11
+ Package approved work for delivery after the report stage has captured the final verified story. Archives the active run from `devflow/context/current-run/` to `devflow/history/{features|fixes|rollbacks}/{xxx-slug}/`, updates `HISTORY.md`, performs git merge, and closes the run.
12
12
 
13
13
  ## Usage
14
14
 
15
15
  ```text
16
- 70-release {running-id or workspace path}
16
+ 70-release {id or workspace path}
17
17
  ```
18
18
 
19
- Use this when:
20
-
21
- - `60-report` is complete
22
- - the work needs release execution or a release-facing handoff packet
23
- - downstream stakeholders need delivery notes instead of raw implementation detail
24
-
25
19
  ## Markdown-First Contract
26
20
 
27
21
  Write the primary stage artifact to:
28
22
 
29
23
  ```text
30
- devflow/runs/{ID}-{slug}70-release.md
24
+ devflow/context/current-run/70-release.md
31
25
  ```
32
26
 
33
27
  using:
@@ -36,142 +30,24 @@ using:
36
30
  .agent/resources/schemas/release.template.md
37
31
  ```
38
32
 
39
- Before writing `70-release.md`, read `artifact_language` from `release.template.md` and produce the artifact in that language.
40
-
41
- ## Required Section Content
42
-
43
- Before completing any generated artifact:
44
-
45
- - preserve every heading required by the selected template
46
- - write concrete information under every heading
47
- - when no information exists or the section does not apply, write exactly `-`
48
- - never leave a heading immediately followed by another heading with no body content
49
- - remove template placeholders from the final artifact
50
- - do not invent facts merely to avoid using `-`
51
- - re-read the saved artifact and verify every heading satisfies this rule
52
-
53
- ## Process
54
-
55
- ### Loop Contract
56
-
57
- Run release as a readiness-packaging loop, not as a celebratory summary.
58
-
59
- - **Intent**: convert verified work into a clear release, PR, merge, deploy, or handoff packet without hiding unresolved risk.
60
- - **Context**: read `50-verify.md`, `50-verify-impact.md` when present, `40-execute.md`, `20-spec.md`, checklist state, and any PR, deploy, merge, or handoff notes.
61
- - **Action**: summarize delivered scope, user/system impact, readiness state, validation evidence, rollback or mitigation notes, and follow-up items.
62
- - **Observation**: use concrete evidence such as verify verdict, failed or skipped checks, impact notes, residual risks, merge/deploy constraints, and checklist status.
63
- - **Adjustment**: if release readiness becomes uncertain, return to `50-verify`; if fixes are required, return to `40-execute`; if context must transfer, use `handoff`.
64
- - **Stop Condition**: stop when the release state is explicit, evidence supports readiness, residual risks and follow-ups are named, and the next delivery or reporting route is clear.
65
- - **Handoff**: `70-release.md` must close the mainline run or tell the next reader what shipped, what did not ship, what evidence supports readiness, and what follow-ups remain.
33
+ ## Process & Quality Gates
66
34
 
67
35
  ### 0. Step 0 Safety Pass & Findings Ledger Gate
68
36
 
69
37
  Before packaging, merging, or releasing:
70
38
 
71
39
  1. **Findings Ledger Blockers**:
72
- - ตรวจสอบ `devflow/context/findings.md`
73
- - ต้องไม่มี Finding ระดับ P0 หรือ P1 ในสถานะ `open` หรือ `fixed` ค้างอยู่
74
- - สถานะ `fixed` ยังคงบล็อก release เสมอจนกว่าจะผ่านการ Review ใน `50-verify` เพื่อเลื่อนเป็น `closed`
40
+ - Inspect `devflow/context/findings.md`.
41
+ - No Finding of severity `P0` or `P1` in `open` or `fixed` status is permitted.
42
+ - `fixed` still blocks release until reviewed and closed in `50-verify`.
75
43
  2. **2-Stage Approval Separation**:
76
- - การขออนุมัติ Merge เข้า `main` หรือ `master` เป็นการอนุมัติขั้นแรก
77
- - **การ Push ไปยัง Remote หรือ Deploy จะต้องขออนุมัติแยกต่างหากอย่างชัดเจน (Merge approval DOES NOT equal Push approval)**
44
+ - Consent to merge into `main` is strictly separate from consent to `git push` to remote or deploy.
78
45
  3. **Archive Resolved Findings**:
79
- - ย้ายรายการ Findings ที่ปิดแล้ว (`closed`, `accepted`, `invalid`) ไปบันทึกในเอกสาร Release และรีเซ็ต `findings.md` ให้สะอาด
80
- 4. **Append to Master History Ledger**:
81
- - บันทึก Entry ใหม่ลงใน `devflow/history/HISTORY.md` พร้อมระบุ Running ID, Title, วันที่, Git Commit Hash / Tag, สถานะ (`Released`), และลิงก์ไปยังรายงานสรุป `60-report.md`
82
-
83
- ### 1. Load Verified Context
84
-
85
- Read:
86
-
87
- - `60-report.md`
88
- - `50-verify.md`
89
- - `40-execute.md`
90
- - `20-spec.md`
91
- - `devflow/context/findings.md`
92
- - any PR, deploy, merge, or handoff notes already captured
93
-
94
- ### 2. Package The Release Outcome
95
-
96
- Summarize:
97
-
98
- - what is being delivered
99
- - what changed in user or system terms
100
- - what state the work is in for PR, deploy, merge, or handoff
101
- - resolved and archived findings
102
- - what follow-up items remain
103
-
104
- ### 3. Write `70-release.md`
105
-
106
- Keep the language understandable for someone who did not do the work.
107
- Follow the `artifact_language` configured in `release.template.md`.
108
-
109
- Prefer clear release-note style wording:
110
-
111
- - what was added
112
- - what changed
113
- - what was fixed
114
- - what is intentionally deferred
115
- - archived findings summary
116
-
117
- ### 4. Confirm Readiness & 2-Stage Execution
118
-
119
- If release readiness changes because unresolved issues are found:
120
-
121
- - route back to `50-verify` or `40-execute`
122
-
123
- Do not package unfinished work as release-ready through wording tricks.
124
- When executing git operations:
125
- 1. Obtain explicit user confirmation before merging.
126
- 2. Obtain separate explicit user confirmation before running `git push` or deployment.
127
-
128
- ### 5. Manual Review Soft Gate
129
-
130
- Before closing the mainline run, warn when release approval is still pending.
131
- If release blockers, operator questions, or handoff approvals remain open:
132
-
133
- - mark them visibly in `70-release.md`
134
- - recommend human confirmation before closing the phase
135
- - keep the mainline closeout as a soft recommendation only
136
-
137
- ## Output
138
-
139
- Report:
140
-
141
- - delivered scope
142
- - release, PR, merge, deploy, or handoff state
143
- - follow-up items
144
- - recommended next step
145
-
146
- ## Relationship To DevFlow 2.0
147
-
148
- - Classification: Mainline workflow
149
- - Previous state: `60-report`
150
- - Next state: End of the mainline run when release packaging or handoff is complete
151
- - Common companion commands: `Commit`, `PR`, `Deploy`, `Changelog`, `Merge`, `Wiki`, `overview`
152
- - Support skills: `resolving-merge-conflicts`, `handoff`, and `setup-pre-commit` when release packaging needs conflict resolution, transfer notes, or local quality gates
153
-
154
- ## Sources
155
-
156
- - `AGENTS.md`
157
- - `docs/workspace-artifacts.md`
158
- - `.agent/resources/schemas/release.template.md`
159
- - Related commands: `60-report`, `Commit`, `PR`, `Deploy`, `Changelog`, `Merge`, `Wiki`, `overview`
160
-
161
- ## Next Workflow Recommendation
162
-
163
- - **Primary**: End of Timeline flow (or run `/overview` to sync living project context)
164
- - **Why**: The report is already complete, and this phase is the final release-facing execution step.
165
- - **Alternatives**:
166
- - `overview` - choose this to immediately sync newly shipped capabilities into `devflow/context/project-overview.md`.
167
- - `60-report` - choose this when the release package diverges from the approved report and the summary must be refreshed first.
168
- - `50-verify` - choose this when release readiness becomes uncertain.
169
- - `40-execute` - choose this when additional fixes are needed before release can proceed.
170
- - `handoff` - choose this when release-ready context must move to another session, agent, or stakeholder packet.
171
-
172
- ## Nexus Event
173
-
174
- - Use `Commit`, `PR`, `Deploy`, `Merge`, `Changelog`, or `overview` when release execution still needs a concrete lane.
175
- - Return to `60-report` when release notes, scope, or handoff wording diverge from the approved summary.
176
- - Return to `50-verify` or `40-execute` when release readiness changes because unresolved issues are discovered.
177
-
46
+ - Move resolved findings (`closed`, `accepted`, `invalid`) into release archive notes and clean `findings.md`.
47
+ 4. **Archive Run Folder to Categorized History**:
48
+ - Determine Category (`features`, `fixes`, `rollbacks`).
49
+ - Move directory `devflow/context/current-run/` (or `devflow/runs/{xxx-slug}/`) ➔ `devflow/history/{category}/{xxx-slug}/`.
50
+ 5. **Append to Master History Ledger**:
51
+ - Append entry to `devflow/history/HISTORY.md` linking to `history/{category}/{xxx-slug}/60-report.md`.
52
+ 6. **Update Workspace State**:
53
+ - Set `devflow/context/current-stage.md` to `Idle`.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: check
3
- description: "[Devflow] Fast-Track Check stage in DevFlow (Blueprint Mode) - perform senior QA review, run multi-lane verification, and record evidence in spec.md."
3
+ description: "[Devflow] Fast-Track Check stage in DevFlow (Blueprint Mode) - perform senior QA review, run multi-lane verification, and record evidence in current-feature.md in context."
4
4
  argument-hint: "{running-id or workspace path}"
5
5
  ---
6
6
 
@@ -8,18 +8,18 @@ argument-hint: "{running-id or workspace path}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Quality assurance and multi-lane verification stage in Fast-Track. Validates the implementation against Acceptance Criteria, runs test suites, checks for regressions, and records evidence in the Single Living Spec (`spec.md`).
11
+ Quality assurance and multi-lane verification stage in Fast-Track. Validates the implementation against Acceptance Criteria, runs test suites, checks for regressions, and records evidence in the Single Living Spec (`devflow/context/current-feature.md`).
12
12
 
13
13
  ## Invocations & Aliases
14
14
 
15
15
  - `/check`: Run verification on current active run
16
- - `/check {running-id}`: Run verification on specified running ID
16
+ - `/check {id}`: Run verification on specified ID
17
17
  - `$check`: Codex CLI invocation
18
18
 
19
19
  ## Fast-Track Mainline Workflow
20
20
 
21
21
  ```text
22
- /spec ──▶ /implement ──▶ /check ──▶ /complete
22
+ /feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
23
23
  ```
24
24
 
25
25
  ## Behavior & Contract
@@ -27,8 +27,8 @@ Quality assurance and multi-lane verification stage in Fast-Track. Validates the
27
27
  When invoked:
28
28
 
29
29
  ### 1. Load Active Context
30
- 1. Identify active Running ID from `devflow/context/current-stage.md` or argument.
31
- 2. Read `devflow/runs/{RUNNING_ID}/spec.md`.
30
+ 1. Identify active Running ID from `devflow/context/current-stage.md` or `devflow/context/current-feature.md`.
31
+ 2. Read `devflow/context/current-feature.md`.
32
32
  3. Locate `## 1. Specification & Scope` (Acceptance Criteria) and `## 3. Implementation Checklist`.
33
33
 
34
34
  ### 2. Multi-lane Verification Execution
@@ -41,8 +41,8 @@ Execute the verification gates across all lanes:
41
41
  - Verify specific scenarios against Acceptance Criteria (`AC-1`, `AC-2`).
42
42
  - Summarize "Where to go", "What to click/call", and "What to expect".
43
43
 
44
- ### 3. Update Living Spec (`spec.md`)
45
- Append or update `## 5. Verification Evidence` in `spec.md` in **Thai (`th`)**:
44
+ ### 3. Update Living Spec (`current-feature.md`)
45
+ Append or update `## 5. Verification Evidence` in `devflow/context/current-feature.md` in **Thai (`th`)**:
46
46
 
47
47
  ```markdown
48
48
  ## 5. Verification Evidence
@@ -64,5 +64,5 @@ Update `devflow/context/current-stage.md`:
64
64
  ### 5. Output Summary & Next Step
65
65
  Report to the user:
66
66
  - Summary of verification results across all lanes
67
- - Evidence recorded in `spec.md`
68
- - **Next Command**: `/complete` (or `/complete {RUNNING_ID}`)
67
+ - Evidence recorded in `devflow/context/current-feature.md`
68
+ - **Next Command**: `/complete` (or `/complete {ID}`)
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ci
3
- description: "[Devflow] CI/CD pipeline automation and GitHub Actions setup (.github/workflows/verify.yml). Automates quality gates, typechecks, tests, and build checks."
3
+ description: "[Devflow] Set up automated GitHub Actions CI workflow (.github/workflows/verify.yml) aligned with project verify command."
4
4
  ---
5
5
 
6
6
  # CI/CD Pipeline Automation & Quality Gates
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: complete
3
- description: "[Devflow] Fast-Track Complete stage in DevFlow (Blueprint Mode) - perform final safety pass, record release digest in spec.md, git merge, and close run without auto HTML generation."
3
+ description: "[Devflow] Fast-Track Complete stage in DevFlow (Blueprint Mode) - final safety pass, archive living spec into categorized history, reset stub, git merge, and close run."
4
4
  argument-hint: "{running-id or workspace path}"
5
5
  ---
6
6
 
@@ -8,18 +8,18 @@ argument-hint: "{running-id or workspace path}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Final delivery, safety pass, and run closure stage in Fast-Track. Validates verification status, records the Release Digest into `spec.md`, performs git merge, and marks the run as completed **without auto-generating HTML reports**.
11
+ Final delivery, safety pass, archive, and run closure stage in Fast-Track. Validates verification status, archives `devflow/context/current-feature.md` to `devflow/history/{features|fixes|rollbacks}/{xxx-slug}.md`, resets the stub, performs git merge, and closes the run **without auto-generating HTML reports**.
12
12
 
13
13
  ## Invocations & Aliases
14
14
 
15
15
  - `/complete`: Complete current active run
16
- - `/complete {running-id}`: Complete specified running ID
16
+ - `/complete {id}`: Complete specified ID
17
17
  - `$complete`: Codex CLI invocation
18
18
 
19
19
  ## Fast-Track Mainline Workflow
20
20
 
21
21
  ```text
22
- /spec ──▶ /implement ──▶ /check ──▶ /complete
22
+ /feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
23
23
  ```
24
24
 
25
25
  ## Behavior & Contract
@@ -27,47 +27,68 @@ Final delivery, safety pass, and run closure stage in Fast-Track. Validates veri
27
27
  When invoked:
28
28
 
29
29
  ### 1. Validate Delivery Pre-conditions
30
- 1. Identify active Running ID from `devflow/context/current-stage.md` or argument.
31
- 2. Read `devflow/runs/{RUNNING_ID}/spec.md`.
30
+ 1. Identify active Running ID from `devflow/context/current-stage.md` or `devflow/context/current-feature.md`.
31
+ 2. Read `devflow/context/current-feature.md`.
32
32
  3. Confirm:
33
+ - File contains an active spec (not the idle stub `_Nothing in progress._`).
33
34
  - All checklist items in `## 3. Implementation Checklist` are marked `- [x]`.
34
- - `## 5. Verification Evidence` contains passing verification results.
35
+ - `## 5. Verification Evidence` contains passing verification results and empirical command outputs.
35
36
 
36
- ### 2. Final Safety Pass & Changelog
37
+ ### 2. Final Safety Pass & Findings Check
37
38
  1. Verify working directory hygiene (no accidental leftover test files or debug statements).
38
- 2. Update `CHANGELOG.md` with release summary under the current version if applicable.
39
-
40
- ### 3. Update Living Spec (`spec.md`)
41
- Append or update `## 6. Release & Handoff` in `spec.md` in **Thai (`th`)**:
42
-
39
+ 2. Inspect `devflow/context/findings.md`:
40
+ - No `P0` or `P1` finding is in `open` or `fixed` status (`fixed` requires re-audit).
41
+ - Only `closed`, `accepted` (user waived), or `invalid` findings are permitted for completion.
42
+
43
+ ### 3. Update Living Spec & Archive to Categorized History
44
+ 1. Append `## 6. Release & Handoff` in `current-feature.md` in **Thai (`th`)**:
45
+ ```markdown
46
+ ## 6. Release & Handoff
47
+ - **Release Digest**: สรุปสิ่งที่ส่งมอบในรอบนี้
48
+ - **Git Branch**: `{branch_name}`
49
+ - **Merge Status**: Merged into `main` (Commit `{commit_hash}`)
50
+ - **Archive Date**: {YYYY-MM-DD}
51
+ ```
52
+ 2. Determine Category:
53
+ - If spec has `Category: Fix` or `Type: Fix` ➔ `fixes`
54
+ - If spec has `Category: Rollback` or `Type: Rollback` ➔ `rollbacks`
55
+ - Otherwise ➔ `features`
56
+ 3. Archive `devflow/context/current-feature.md` ➔ `devflow/history/{category}/{xxx-slug}.md`.
57
+ 4. If `findings.md` contains resolved entries (`closed`, `accepted`, `invalid`), append a `## Resolved Findings` section to the archive file and clean those resolved entries from `findings.md`.
58
+ 5. **Reset Living Spec Stub**: Reset `devflow/context/current-feature.md` to:
59
+ ```markdown
60
+ # Current Feature
61
+
62
+ _Nothing in progress. Run /feature, /fix, or /rollback to start._
63
+ ```
64
+
65
+ ### 4. Update Master Ledger (`HISTORY.md`)
66
+ Append a new row to `devflow/history/HISTORY.md` under `## 📜 Master Release Log`:
43
67
  ```markdown
44
- ## 6. Release & Handoff
45
- - **Release Digest**: สรุปสิ่งที่ส่งมอบในรอบนี้
46
- - **Git Branch**: `{branch_name}`
47
- - **Merge Status**: Merged into `main` (Commit `{commit_hash}`)
48
- - **Artifact Contract**: Fast-Track Single Living Spec completed.
68
+ | {YYYY-MM-DD} | `{ID}` | {Category} | {Title} | `{commit_hash}` | `Released` | [`{xxx-slug}.md`]({category}/{xxx-slug}.md) |
49
69
  ```
50
- Update header status in `spec.md`: `> **Status**: Completed`.
51
70
 
52
- ### 4. Policy on HTML Reports (Strict Rule)
71
+ ### 5. Policy on HTML Reports (Strict Rule)
53
72
  > [!IMPORTANT]
54
73
  > **No Auto-Generated HTML**: ห้ามสร้างไฟล์ `report.html` หรือ `60-report.html` แบบอัตโนมัติในขั้นตอนนี้โดยเด็ดขาด!
55
74
  > หากผู้ใช้ต้องการดู HTML Dashboard สวยงาม ให้แจ้งผู้ใช้ว่าสามารถเรียกคำสั่งแยกได้: `/report:html`
56
75
 
57
- ### 5. Git Merge & Branch Cleanup
58
- 1. Commit all modified tracking files (including `spec.md` and `current-stage.md`).
59
- 2. Merge feature branch into target base branch (`main` / `master`).
76
+ ### 6. Git Merge & Branch Cleanup
77
+ 1. Commit all modified tracking files.
78
+ 2. Squash-merge feature branch into target base branch (`main` / `master`) with explicit user approval.
60
79
 
61
- ### 6. Close Active Run
80
+ ### 7. Close Active Run
62
81
  Update `devflow/context/current-stage.md`:
82
+ - `Active Discovery ID`: `None`
63
83
  - `Active Running ID`: `None (Idle)`
64
- - `Current Stage`: `Idle (Ready for new /spec, /feature, /fix, or /00-discover)`
65
- - `Last Completed Run`: `{RUNNING_ID} ({YYYY-MM-DD})`
84
+ - `Current Stage`: `Idle (Ready for new /feature, /fix, or /00-discover)`
85
+ - `Living Spec`: `None`
86
+ - `Last Completed Run`: `{ID} ({YYYY-MM-DD})`
66
87
  - `Last Updated`: `{YYYY-MM-DD}`
67
88
 
68
- ### 7. Output Completion Report
89
+ ### 8. Output Completion Report
69
90
  Report to the user:
70
91
  - Run successfully completed and merged
71
- - Living Spec path: `devflow/runs/{RUNNING_ID}/spec.md`
92
+ - Archived path: `devflow/history/{category}/{xxx-slug}.md`
72
93
  - Standalone HTML command tip: `/report:html` (if HTML view is desired)
73
94
  - Workspace is now Idle and ready for the next task.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: deploy
3
- description: "[Devflow] Production deployment pre-flight checks, launch readiness, smoke validation, and deployment execution."
3
+ description: "[Devflow] Production deployment pre-flight checks, smoke validation, and deployment execution."
4
4
  ---
5
5
 
6
6
  # Production Deployment & Launch Readiness
@@ -16,7 +16,7 @@ Use this skill to guide the user on what to do next, inspect current workspace s
16
16
 
17
17
  Nexus-DevFlow supports two seamless workflow tracks:
18
18
  1. **🏎️ Fast-Track (Blueprint Mode - 4 Steps)**: `/spec` ➔ `/implement` ➔ `/check` ➔ `/complete`
19
- *Driven by a **Single Living Spec (`spec.md`)** for fast, high-velocity daily development and bugfixes (85% of tasks).*
19
+ *Driven by a **Single Living Spec (`current-feature.md`)** for fast, high-velocity daily development and bugfixes (85% of tasks).*
20
20
  2. **🏗️ Deep-Track (Architect Mode - 8 Steps)**: `00-discover` ➔ `10-define` ➔ `20-spec` ➔ `30-plan` ➔ `40-execute` ➔ `50-verify` ➔ `60-report` ➔ `70-release`
21
21
  *Driven by modular separate stage files for large, high-stakes architectural epics and multi-agent coordination.*
22
22
 
@@ -28,8 +28,8 @@ When invoked without an argument (or when determining the next step), inspect:
28
28
 
29
29
  1. **Project Setup Baseline**: Read `devflow/context/project-overview.md` and `devflow/context/coding-standards.md`. If empty or default placeholders, recommend `onboard` (for fresh projects) or `adopt` (for existing codebases).
30
30
  2. **Active Delivery Run**: Read `devflow/context/current-stage.md` and check `devflow/runs/{RUNNING_ID}/`.
31
- - **If Fast-Track (`spec.md` or `blueprint.md` present)**:
32
- - If `spec.md` has incomplete checklist items -> Recommend `/implement` (or `implement {RUNNING_ID}`).
31
+ - **If Fast-Track (`current-feature.md`, `spec.md`, or `blueprint.md` present)**:
32
+ - If `current-feature.md` (or `spec.md`) has incomplete checklist items -> Recommend `/implement` (or `implement {RUNNING_ID}`).
33
33
  - If all tasks done but no passing verification evidence -> Recommend `/check` (or `check {RUNNING_ID}`).
34
34
  - If verification evidence passed -> Recommend `/complete` (or `complete {RUNNING_ID}`).
35
35
  - **If Deep-Track (numbered stage files present)**:
@@ -61,7 +61,7 @@ When invoked without an argument (or when determining the next step), inspect:
61
61
  | **"Execute implementation tasks"** | `implement` | `/implement` | **Fast-Track**: `/implement` -> `/check` |
62
62
  | **"Run QA verification & check"** | `check` | `/check` | **Fast-Track**: `/check` -> `/complete` |
63
63
  | **"Complete run & git merge"** | `complete` | `/complete` | **Fast-Track**: `/complete` |
64
- | **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts `spec.md` / `60-report.md` to HTML |
64
+ | **"Generate HTML dashboard report"**| `report-html` | `/report:html` | **Standalone**: Converts `current-feature.md` / `60-report.md` to HTML |
65
65
  | "Setup DevFlow on fresh/new project" | `onboard` | `onboard` / `setup` | `onboard` -> `/spec` or `10-define` |
66
66
  | "Adopt DevFlow on existing codebase" | `adopt` | `adopt` / `bootstrap` | `adopt` -> `/spec` or `10-define` |
67
67
  | "Check setup health & diagnostics" | `doctor` | `doctor` / `health` | `doctor` |
@@ -85,7 +85,7 @@ When invoked without an argument (or when determining the next step), inspect:
85
85
  ## Available Skills Sitemap
86
86
 
87
87
  ### 1. Fast-Track (Blueprint Mode - 4 Steps)
88
- - `spec` (`/spec`, `/feature`, `/fix`, `$spec`) - Define, spec, plan, and create `spec.md`
88
+ - `spec` (`/spec`, `/feature`, `/fix`, `$spec`) - Define, spec, plan, and create `current-feature.md`
89
89
  - `implement` (`/implement`, `$implement`) - Execute planned checklist tasks with TDD
90
90
  - `check` (`/check`, `$check`) - Senior QA review, multi-lane verification, record evidence
91
91
  - `complete` (`/complete`, `$complete`) - Safety pass, release digest, git merge, close run
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: feature
3
- description: "[Devflow] Fast-Track Feature stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living spec.md contract for new features."
3
+ description: "[Devflow] Fast-Track Feature stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living current-feature.md contract in context for new features."
4
4
  argument-hint: "{feature title, IDEA-xxx, or feature description}"
5
5
  ---
6
6
 
@@ -8,7 +8,7 @@ argument-hint: "{feature title, IDEA-xxx, or feature description}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Fast-Track entry point combining Discovery, Definition, Specification, and Implementation Planning into one streamlined, review-gated step for **new features or enhancements**. Creates and maintains the **Single Living Spec (`spec.md`)** for the feature run. Supports intake from Idea Inbox (`IDEA-xxx`).
11
+ Fast-Track entry point combining Discovery, Definition, Specification, and Implementation Planning into one streamlined, review-gated step for **new features or enhancements**. Creates and maintains the **Single Living Spec (`devflow/context/current-feature.md`)** for the feature run. Supports intake from Idea Inbox (`IDEA-xxx`).
12
12
 
13
13
  ## Invocations & Aliases
14
14
 
@@ -26,25 +26,31 @@ Fast-Track entry point combining Discovery, Definition, Specification, and Imple
26
26
 
27
27
  When invoked:
28
28
 
29
- ### 1. Work Identity & Idea Intake
30
- 1. Inspect `devflow/context/current-stage.md` and `devflow/runs/`.
31
- 2. **Idea Inbox Intake**: If the argument is an idea identifier (e.g. `IDEA-001`):
29
+ ### 1. Single Active Run Guardrail (One Thing at a Time)
30
+ 1. Inspect `devflow/context/current-stage.md` and `devflow/context/current-feature.md`.
31
+ 2. If `Active Running ID` is not `None` and `Current Stage` is not `Idle`, or if `current-feature.md` contains an active uncompleted spec:
32
+ - **HALT and reject opening a new feature**.
33
+ - Explain to the user that an active run is currently in progress:
34
+ > ⚠️ *"มีงาน `{active_id}` กำลังดำเนินการอยู่ กรุณาปิดงานเดิมด้วย `/complete` หรือ `70-release` (หรือสั่ง `/rollback`) ก่อนเริ่มงานใหม่"*
35
+
36
+ ### 2. Work Identity & Idea Intake
37
+ 1. **Idea Inbox Intake**: If the argument is an idea identifier (e.g. `IDEA-001`):
32
38
  - Read `devflow/ideas.md` and extract the idea's title, raw problem statement, AI Feasibility notes, and Quick Seed points.
33
39
  - Use these details as the primary input for Specification & Scope.
34
- - In `devflow/ideas.md`, update the item's status to `[x] Claimed ({RUNNING_ID})` and move it under `## 📦 Archived / Shipped Ideas`.
35
- 3. Determine or allocate the sequential Running ID (e.g. `RUN-018-{slug}`).
36
- 4. Identify Git branch naming:
37
- - `feature/{slug}-{RUNNING_ID}`
38
- 5. Create directory `devflow/runs/{RUNNING_ID}/`.
40
+ - In `devflow/ideas.md`, update the item's status to `[x] Claimed ({ID})` and move it under `## 📦 Archived / Shipped Ideas`.
41
+ 2. Inspect `devflow/history/HISTORY.md` and determine the next sequential ID without prefix (e.g. `022-{slug}`).
42
+ 3. Identify Git branch naming:
43
+ - `feature/{xxx-slug}`
39
44
 
40
- ### 2. Generate the Single Living Spec (`spec.md`)
41
- Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in **Thai (`th`)**:
45
+ ### 3. Generate the Living Spec (`devflow/context/current-feature.md`)
46
+ Write `devflow/context/current-feature.md` using the structured template below in **Thai (`th`)**:
42
47
 
43
48
  ```markdown
44
- # 📐 [{RUNNING_ID}] {Feature Title} (Living Spec)
49
+ # 📐 [{ID}] {Feature Title} (Living Spec)
45
50
 
46
51
  > **Status**: In-Progress
47
52
  > **Track**: Fast-Track (Blueprint Mode - Feature)
53
+ > **Category**: Feature
48
54
  > **Branch**: `{branch_name}`
49
55
  > **Created Date**: {YYYY-MM-DD}
50
56
  > **Owner**: {Contributor or Team}
@@ -87,17 +93,16 @@ Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in
87
93
  - *(จะถูกบันทึกเมื่อรัน /complete)*
88
94
  ```
89
95
 
90
- ### 3. Update Workspace Status
96
+ ### 4. Update Workspace Status
91
97
  Update `devflow/context/current-stage.md`:
92
- - `Active Running ID`: `{RUNNING_ID}`
98
+ - `Active Discovery ID`: `None`
99
+ - `Active Running ID`: `{ID}`
93
100
  - `Current Stage`: `feature (Fast-Track -> Ready for /implement)`
94
- - `Living Spec`: `devflow/runs/{RUNNING_ID}/spec.md`
101
+ - `Living Spec`: `devflow/context/current-feature.md`
95
102
  - `Last Updated`: `{YYYY-MM-DD}`
96
103
 
97
- ### 4. Output Summary & Next Step
104
+ ### 5. Output Summary & Next Step
98
105
  Report to the user:
99
106
  - Running ID and allocated branch
100
107
  - Summary of Scope and Acceptance Criteria
101
- - Living Spec path: `devflow/runs/{RUNNING_ID}/spec.md`
102
- - If promoted from `IDEA-xxx`, confirm status update in `devflow/ideas.md`
103
- - **Next Command**: `/implement` (or `/implement {RUNNING_ID}`)
108
+ - Explicit next step: `/implement`
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: fix
3
- description: "[Devflow] Fast-Track Fix stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living spec.md contract for bug fixes."
3
+ description: "[Devflow] Fast-Track Fix stage in DevFlow (Blueprint Mode) - define, spec, plan, and create the living current-feature.md contract in context for bug fixes."
4
4
  argument-hint: "{bug description, issue ID, or IDEA-xxx}"
5
5
  ---
6
6
 
@@ -8,7 +8,7 @@ argument-hint: "{bug description, issue ID, or IDEA-xxx}"
8
8
 
9
9
  $ARGUMENTS
10
10
 
11
- Fast-Track entry point combining Bug Triage, Root Cause Isolation, Specification, and Implementation Planning into one streamlined, review-gated step for **bug fixes and hotfixes**. Creates and maintains the **Single Living Spec (`spec.md`)** for the fix run.
11
+ Fast-Track entry point combining Bug Triage, Root Cause Isolation, Specification, and Implementation Planning into one streamlined, review-gated step for **bug fixes and hotfixes**. Creates and maintains the **Single Living Spec (`devflow/context/current-feature.md`)** for the fix run.
12
12
 
13
13
  ## Invocations & Aliases
14
14
 
@@ -26,24 +26,30 @@ Fast-Track entry point combining Bug Triage, Root Cause Isolation, Specification
26
26
 
27
27
  When invoked:
28
28
 
29
- ### 1. Work Identity & Issue Intake
30
- 1. Inspect `devflow/context/current-stage.md` and `devflow/runs/`.
31
- 2. **Idea / Issue Inbox Intake**: If the argument is an identifier (e.g. `IDEA-001`):
29
+ ### 1. Single Active Run Guardrail (One Thing at a Time)
30
+ 1. Inspect `devflow/context/current-stage.md` and `devflow/context/current-feature.md`.
31
+ 2. If `Active Running ID` is not `None` and `Current Stage` is not `Idle`, or if `current-feature.md` contains an active uncompleted spec:
32
+ - **HALT and reject opening a new fix**.
33
+ - Explain to the user that an active run is currently in progress:
34
+ > ⚠️ *"มีงาน `{active_id}` กำลังดำเนินการอยู่ กรุณาปิดงานเดิมด้วย `/complete` หรือ `70-release` (หรือสั่ง `/rollback`) ก่อนเริ่มงานใหม่"*
35
+
36
+ ### 2. Work Identity & Issue Intake
37
+ 1. **Idea / Issue Inbox Intake**: If the argument is an identifier (e.g. `IDEA-001`):
32
38
  - Read `devflow/ideas.md` or issue notes and extract problem statement and root cause hints.
33
- - In `devflow/ideas.md`, update status to `[x] Claimed ({RUNNING_ID})` and move under `## 📦 Archived / Shipped Ideas`.
34
- 3. Determine or allocate the sequential Running ID (e.g. `RUN-018-{slug}`).
35
- 4. Identify Git branch naming:
36
- - `fix/{slug}-{RUNNING_ID}`
37
- 5. Create directory `devflow/runs/{RUNNING_ID}/`.
39
+ - In `devflow/ideas.md`, update status to `[x] Claimed ({ID})` and move under `## 📦 Archived / Shipped Ideas`.
40
+ 2. Inspect `devflow/history/HISTORY.md` and determine the next sequential ID without prefix (e.g. `022-{slug}`).
41
+ 3. Identify Git branch naming:
42
+ - `fix/{xxx-slug}`
38
43
 
39
- ### 2. Generate the Single Living Spec (`spec.md`)
40
- Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in **Thai (`th`)**:
44
+ ### 3. Generate the Living Spec (`devflow/context/current-feature.md`)
45
+ Write `devflow/context/current-feature.md` using the structured template below in **Thai (`th`)**:
41
46
 
42
47
  ```markdown
43
- # 📐 [{RUNNING_ID}] {Bug/Fix Title} (Living Spec)
48
+ # 📐 [{ID}] {Bug/Fix Title} (Living Spec)
44
49
 
45
50
  > **Status**: In-Progress
46
51
  > **Track**: Fast-Track (Blueprint Mode - Fix)
52
+ > **Category**: Fix
47
53
  > **Branch**: `{branch_name}`
48
54
  > **Created Date**: {YYYY-MM-DD}
49
55
  > **Owner**: {Contributor or Team}
@@ -87,16 +93,16 @@ Write `devflow/runs/{RUNNING_ID}/spec.md` using the structured template below in
87
93
  - *(จะถูกบันทึกเมื่อรัน /complete)*
88
94
  ```
89
95
 
90
- ### 3. Update Workspace Status
96
+ ### 4. Update Workspace Status
91
97
  Update `devflow/context/current-stage.md`:
92
- - `Active Running ID`: `{RUNNING_ID}`
98
+ - `Active Discovery ID`: `None`
99
+ - `Active Running ID`: `{ID}`
93
100
  - `Current Stage`: `fix (Fast-Track -> Ready for /implement)`
94
- - `Living Spec`: `devflow/runs/{RUNNING_ID}/spec.md`
101
+ - `Living Spec`: `devflow/context/current-feature.md`
95
102
  - `Last Updated`: `{YYYY-MM-DD}`
96
103
 
97
- ### 4. Output Summary & Next Step
104
+ ### 5. Output Summary & Next Step
98
105
  Report to the user:
99
106
  - Running ID and allocated branch
100
107
  - Summary of Scope, Reproduction, and Acceptance Criteria
101
- - Living Spec path: `devflow/runs/{RUNNING_ID}/spec.md`
102
- - **Next Command**: `/implement` (or `/implement {RUNNING_ID}`)
108
+ - Explicit next step: `/implement`