@jakkrichm/create-nexus-devflow 2.1.0 → 2.2.1

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/README.md +1 -1
  2. package/dist/bin/create-nexus-devflow.js +29 -5
  3. package/dist/bin/create-nexus-devflow.js.map +1 -1
  4. package/dist/lib/command-catalog.js +5 -2
  5. package/dist/lib/command-catalog.js.map +1 -1
  6. package/dist/lib/dashboard.js +1 -1
  7. package/dist/lib/discoveries.js +18 -6
  8. package/dist/lib/discoveries.js.map +1 -1
  9. package/dist/lib/ideas.js +2 -2
  10. package/dist/lib/ideas.js.map +1 -1
  11. package/dist/lib/project-metadata.d.ts +1 -1
  12. package/dist/lib/project-metadata.js +3 -2
  13. package/dist/lib/project-metadata.js.map +1 -1
  14. package/dist/lib/update.js +13 -5
  15. package/dist/lib/update.js.map +1 -1
  16. package/dist/lib/workflow-state.js +9 -6
  17. package/dist/lib/workflow-state.js.map +1 -1
  18. package/dist/scripts/prepare-template.js +10 -2
  19. package/dist/scripts/prepare-template.js.map +1 -1
  20. package/package.json +1 -1
  21. package/template/.agents/skills/10-define/SKILL.md +1 -1
  22. package/template/.agents/skills/adopt/SKILL.md +58 -5
  23. package/template/.agents/skills/brainstorm/SKILL.md +1 -1
  24. package/template/.agents/skills/devflow/SKILL.md +9 -7
  25. package/template/.agents/skills/discovery/SKILL.md +75 -150
  26. package/template/.agents/skills/doctor/SKILL.md +23 -16
  27. package/template/.agents/skills/feature/SKILL.md +1 -0
  28. package/template/.agents/skills/grill/SKILL.md +93 -0
  29. package/template/.agents/skills/implement/SKILL.md +2 -2
  30. package/template/.agents/skills/onboard/SKILL.md +18 -17
  31. package/template/.agents/skills/rollback/SKILL.md +1 -1
  32. package/template/.claude/skills/10-define/SKILL.md +3 -3
  33. package/template/.claude/skills/20-spec/SKILL.md +1 -2
  34. package/template/.claude/skills/30-plan/SKILL.md +1 -2
  35. package/template/.claude/skills/40-execute/SKILL.md +2 -2
  36. package/template/.claude/skills/50-verify/SKILL.md +2 -2
  37. package/template/.claude/skills/60-report/SKILL.md +2 -2
  38. package/template/.claude/skills/70-deliver/SKILL.md +2 -2
  39. package/template/.claude/skills/adopt/SKILL.md +191 -75
  40. package/template/.claude/skills/audit/SKILL.md +267 -133
  41. package/template/.claude/skills/autopilot/SKILL.md +226 -167
  42. package/template/.claude/skills/brainstorm/SKILL.md +62 -0
  43. package/template/.claude/skills/brief/SKILL.md +93 -92
  44. package/template/.claude/skills/check/SKILL.md +96 -76
  45. package/template/.claude/skills/ci/SKILL.md +140 -61
  46. package/template/.claude/skills/complete/SKILL.md +156 -101
  47. package/template/.claude/skills/convert-any-to-md/SKILL.md +2 -2
  48. package/template/.claude/skills/convert-any-to-md/references/setup.md +29 -0
  49. package/template/.claude/skills/convert-any-to-md/scripts/convert_any_to_md.py +487 -0
  50. package/template/.claude/skills/convert-any-to-md/scripts/requirements.txt +3 -0
  51. package/template/.claude/skills/debug/SKILL.md +124 -49
  52. package/template/.claude/skills/devflow/SKILL.md +18 -10
  53. package/template/.claude/skills/discovery/SKILL.md +65 -119
  54. package/template/.claude/skills/doctor/SKILL.md +195 -72
  55. package/template/.claude/skills/feature/SKILL.md +197 -152
  56. package/template/.claude/skills/fix/SKILL.md +41 -90
  57. package/template/.claude/skills/grill/SKILL.md +93 -0
  58. package/template/.claude/skills/idea/SKILL.md +2 -2
  59. package/template/.claude/skills/implement/SKILL.md +189 -46
  60. package/template/.claude/skills/onboard/SKILL.md +216 -85
  61. package/template/.claude/skills/overview/SKILL.md +44 -29
  62. package/template/.claude/skills/prototype/SKILL.md +82 -27
  63. package/template/.claude/skills/release/SKILL.md +119 -130
  64. package/template/.claude/skills/report-html/SKILL.md +2 -2
  65. package/template/.claude/skills/rollback/SKILL.md +123 -77
  66. package/template/.claude/skills/status/SKILL.md +109 -0
  67. package/template/.claude/skills/test/SKILL.md +2 -2
  68. package/template/.claude/skills/tests/SKILL.md +126 -0
  69. package/template/.claude/skills/try/SKILL.md +77 -65
  70. package/template/AGENTS.md +8 -7
  71. package/template/devflow/build-plan.md +8 -0
  72. package/template/devflow/context/ai-interaction.md +11 -0
  73. package/template/devflow/context/coding-standards.md +15 -1
  74. package/template/devflow/context/current-stage.md +1 -1
  75. package/template/devflow/decisions/.gitkeep +0 -0
  76. package/template/devflow/decisions/README.md +24 -0
  77. package/template/devflow/history/HISTORY.md +1 -1
  78. package/template/devflow/history/features/README.md +5 -0
  79. package/template/devflow/history/fixes/README.md +5 -0
  80. package/template/devflow/history/rollbacks/README.md +5 -0
  81. package/template/.agents/skills/00-explore/SKILL.md +0 -84
  82. package/template/.claude/skills/00-explore/SKILL.md +0 -84
@@ -1,105 +1,160 @@
1
1
  ---
2
2
  name: complete
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
- argument-hint: "{running-id or workspace path}"
3
+ description: "[devflow][F] Wrap up a finished feature, fix, or rollback. Runs a final safety pass, archives its spec to devflow/history/features/, devflow/history/fixes/, or devflow/history/rollbacks/, updates the build plan for features and rollbacks, resets devflow/context/current-feature.md to its stub, makes one work-level commit, then squash-merges the branch to main and deletes it. Merges only with explicit approval, then asks separately before pushing main. Use when the user runs /complete, or asks to finish, wrap up, merge, or close out the current feature, fix, or rollback after it is built and reviewed."
5
4
  ---
6
5
 
7
- # Fast-Track: Complete (Blueprint Mode)
8
-
9
- $ARGUMENTS
10
-
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, updates changelog, performs conventional commit & git merge, and closes the run **without auto-generating HTML reports**.
12
-
13
- ## Invocations & Aliases
14
-
15
- - `/complete`: Complete current active run
16
- - `/complete {id}`: Complete specified ID
17
- - `$complete`: Codex CLI invocation
18
-
19
- ## Fast-Track Mainline Workflow
20
-
21
- ```text
22
- /feature (หรือ /fix) ──▶ /implement ──▶ /check ──▶ /complete
23
- ```
24
-
25
- ## Behavior & Contract
26
-
27
- When invoked:
28
-
29
- ### 1. Validate Delivery Pre-conditions
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
- 3. Confirm:
33
- - File contains an active spec (not the idle stub `_Nothing in progress._`).
34
- - All checklist items in `## 3. Implementation Checklist` are marked `- [x]`.
35
- - `## 5. Verification Evidence` contains passing verification results and empirical command outputs.
36
-
37
- ### 2. Final Safety Pass & Findings Check
38
- 1. Verify working directory hygiene (no accidental leftover test files or debug statements).
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`) & CHANGELOG.md
66
- 1. Append a new row to `devflow/history/HISTORY.md` under `## 📜 Master Release Log`:
67
- ```markdown
68
- | {YYYY-MM-DD} | `{ID}` | {Category} | {Title} | `{commit_hash}` | `Released` | [`{xxx-slug}.md`]({category}/{xxx-slug}.md) |
69
- ```
70
- 2. **Keep a Changelog & SemVer**:
71
- - If `CHANGELOG.md` exists, append a new version block following SemVer principles:
72
- - `Major (+1.0.0)`: Breaking architectural changes or API removal
73
- - `Minor (0.+1.0)`: New user-facing feature additions (`Added`)
74
- - `Patch (0.0.+1)`: Bug fixes (`Fixed`), documentation (`Docs`), or tweaks (`Changed`)
75
-
76
- ### 5. Policy on HTML Reports (Strict Rule)
77
- > [!IMPORTANT]
78
- > **No Auto-Generated HTML**: ห้ามสร้างไฟล์ `report.html` หรือ `60-report.html` แบบอัตโนมัติในขั้นตอนนี้โดยเด็ดขาด!
79
- > หากผู้ใช้ต้องการดู HTML Dashboard สวยงาม ให้แจ้งผู้ใช้ว่าสามารถเรียกคำสั่งแยกได้: `/report:html`
80
-
81
- ### 6. Conventional Commits, Git Merge & Branch Cleanup
82
- 1. **Conventional Commits Format**:
83
- - Stage relevant files explicitly.
84
- - Use imperative mood: `<type>(<scope>): <short imperative summary>` (e.g. `feat(auth): add password reset flow`, `fix(cli): handle missing config gracefully`).
85
- - Types: `feat`, `fix`, `docs`, `refactor`, `test`, `chore`.
86
- 2. **Squash-Merge**:
87
- - Squash-merge feature branch into target base branch (`main` / `master`) with explicit user approval.
88
- - Clean up short-lived feature branch.
89
-
90
- ### 7. Close Active Run
91
- Update `devflow/context/current-stage.md`:
92
- - `Active Discovery ID`: `None`
93
- - `Active Running ID`: `None (Idle)`
94
- - `Current Stage`: `Idle (Ready for new /feature, /fix, or /00-explore)`
95
- - `Living Spec`: `None`
96
- - `Last Completed Run`: `{ID} ({YYYY-MM-DD})`
97
- - `Last Updated`: `{YYYY-MM-DD}`
98
-
99
- ### 8. Output Completion Report & PR Template
100
- Report to the user:
101
- - Run successfully completed and merged
102
- - Archived path: `devflow/history/{category}/{xxx-slug}.md`
103
- - Standalone HTML command tip: `/report:html` (if HTML view is desired)
104
- - Pull Request summary block (if PR creation is needed)
105
- - Workspace is now Idle and ready for the next task.
6
+ # complete - log the finished work, make the work commit, and merge
7
+
8
+ Where this sits in the workflow:
9
+
10
+ /feature, /fix, or /rollback -> /implement -> [complete] -> next
11
+ (the spec) (build it) (commit + merge + log)
12
+
13
+ `/implement` built the feature, fix, or rollback on its branch, with optional per-step commit
14
+ checkpoints. This skill closes it out: it logs the work, makes the single
15
+ work-level commit, and squash-merges. Run it only when the work is done,
16
+ reviewed, and the documented `Verify` command, or the fallback build and tests,
17
+ passes.
18
+
19
+ ## Before you start
20
+
21
+ Confirm the work is actually finished: `devflow/context/current-feature.md`
22
+ holds a real spec, its steps are built on a branch, and `Verify`, or the fallback
23
+ build and tests, passes. If any of the
24
+ spec's done-whens are behavioral, `/check` should have proven them against the
25
+ running app first - don't merge on an unverified claim. Uncommitted step work is
26
+ expected (per-step checkpoints are optional); this skill commits it. Don't require
27
+ the steps to be pre-committed.
28
+
29
+ ## Step 0 - final safety pass
30
+
31
+ Before logging or committing, run a short safety pass and report blockers only:
32
+
33
+ - active spec exists and the work is not being completed from `main` or `master`
34
+ - changed files are tied to the active spec, with no unrelated dirty work mixed
35
+ in (a dirty `devflow/context/findings.md` is expected, since `/audit` writes it)
36
+ - the exact `Verify` command from `AGENTS.md` passed in this session, when one is
37
+ declared; otherwise the build passed, and tests passed when the project has a
38
+ declared test command and the change touched logic
39
+ - behavioral done-whens have `/check` evidence or equivalent proof, and there is
40
+ a clear manual try path
41
+ - if workflow files changed, `.agents` and `.claude` stayed in sync where both
42
+ adapters exist
43
+ - no P0 or P1 finding in `devflow/context/findings.md` is `open` or `fixed`.
44
+ `fixed` still blocks on purpose: the repair exists but no review has looked at
45
+ it - run `/audit` to close it. The only waivers are `accepted` (the user's
46
+ explicit decision in the current chat, reason recorded; never set it for
47
+ them) or `invalid` (an `/audit` re-examination verdict with recorded
48
+ evidence, or the user's explicit call). A missing ledger file means no
49
+ findings.
50
+
51
+ Do not claim "passed", "verified", or "working" without naming the command,
52
+ route, screenshot, or output that proves it. Stop before Step 1 if required
53
+ evidence is missing.
54
+
55
+ ## Step 1 - log the work
56
+
57
+ Check whether the spec is a feature, fix, or rollback. A fix is marked
58
+ `Type: Fix` and has no build-plan number. A rollback is marked `Type: Rollback`
59
+ and records the exact target feature, archive, commit, and parent.
60
+
61
+ - **Feature** - archive `devflow/context/current-feature.md` to `devflow/history/features/NN-name.md`
62
+ (NN is the build-plan number), and check it off in `devflow/build-plan.md`
63
+ (and its parent item once all sub-items are checked).
64
+ - **Fix** - archive it to `devflow/history/fixes/name.md`. A fix isn't a build-plan item, so
65
+ there's nothing to check off.
66
+ - **Rollback** - archive it to
67
+ `devflow/history/rollbacks/YYYY-MM-DD-NN-name.md`, preserving the original
68
+ completed feature archive. Create `devflow/history/rollbacks/` first if an
69
+ older Blueprint installation does not have it yet. Uncheck the exact target item in
70
+ `devflow/build-plan.md` and its parent when applicable, then append a concise
71
+ note to the target line with the rollback date and archive path. Keep the
72
+ feature number stable. If the user later decides the feature is permanently
73
+ abandoned rather than pending rebuild, that roadmap decision is a separate
74
+ plan edit.
75
+
76
+ **Archive resolved findings.** If `devflow/context/findings.md` holds any
77
+ findings, append a `## Findings` section to the archive file just written with
78
+ every `closed`, `accepted`, or `invalid` entry at its final status (`accepted`
79
+ entries keep their recorded reason). Prefix each ID with the archive name for
80
+ global uniqueness: feature 12's `F-03` becomes `12/F-03`; fixes and rollbacks
81
+ use their archive filename as the prefix. An entry carried forward from earlier
82
+ work archives with the item that resolved it; its **Found** line preserves
83
+ where it came from. Then remove the archived entries from the ledger. Unresolved entries (`open` or `fixed` P2/P3, and `unverified`
84
+ leads) stay in the ledger with their IDs so they are never silently dropped.
85
+ When nothing remains, reset the ledger to exactly this stub, and create it the
86
+ same way if the file is missing (an older install):
87
+
88
+ # Findings
89
+
90
+ > **Generated file.** The findings ledger: review findings raised by `/audit`
91
+ > against the work in progress, each with a durable ID, severity (P0-P3), and
92
+ > status. `/implement` marks repaired findings `fixed`, a later `/audit` pass
93
+ > moves them to `closed`, and `/complete` refuses to merge while any P0 or P1
94
+ > finding is `open` or `fixed`, then archives resolved findings with the work
95
+ > and resets this file.
96
+
97
+ _No findings recorded. `/audit` appends findings here when it finds them._
98
+
99
+ Then reset `devflow/context/current-feature.md` to its current stub ("nothing
100
+ in progress"), including `/rollback` alongside `/feature` and `/fix`. Don't
101
+ commit yet; the next step makes one work commit covering the code and these doc
102
+ changes. The archive is the build history.
103
+
104
+ **Discard consumed prototypes.** If this feature built the look from `prototypes/`
105
+ - its Design reference pointed there and an early step ported `prototypes/theme.css`
106
+ into the app - delete the `prototypes/` folder now. The tokens live in the real
107
+ stylesheet and the HTML mockups were always throwaway; fold the deletion into this
108
+ feature's commit. Skip this if the feature didn't consume prototypes.
109
+
110
+ ## Step 2 - make the work commit
111
+
112
+ Stage everything on the branch (any uncommitted step work plus the Step 1 logging
113
+ changes) and make one conventional work commit (for example `feat: <feature>`,
114
+ `fix: <name>`, or `revert: roll back <feature>`). `Verify`, or the fallback build
115
+ and tests, must pass first.
116
+
117
+ ## Step 3 - merge
118
+
119
+ 1. Squash-merge the branch into main, only with the user's explicit go-ahead, so
120
+ the feature lands as one clean commit regardless of how many checkpoints the
121
+ branch carried.
122
+ 2. Delete the branch after a clean merge.
123
+ 3. Stop and ask whether to push local `main` to its upstream. The merge approval
124
+ does not count as push approval.
125
+ 4. Push main only after a separate explicit yes to push main in the current chat.
126
+ If the repo has no remote or upstream, say so instead of guessing.
127
+
128
+ Then point the user at `/feature`, `/fix`, or `/rollback` for the next thing.
129
+
130
+ Finish with a concise **How to try it** note for the completed work. For a
131
+ rollback, explain how to confirm the removed behavior is gone and name one
132
+ unaffected regression path. If the
133
+ manual path is more than a couple of steps, tell the user to run `/try latest`;
134
+ that command can read the archived feature after `current-feature.md` is reset.
135
+
136
+ ## Rules
137
+
138
+ - The work item is the unit of history: one squashed feature, fix, or rollback
139
+ commit on main, even if the branch carried several checkpoint commits.
140
+ - A rollback preserves the original feature archive and adds a separate rollback
141
+ archive. Never rewrite history to make the feature look as if it never existed.
142
+ - Don't merge unfinished or failing work. The documented `Verify` command, or
143
+ the fallback build and tests, must pass first.
144
+ - Never merge while a P0 or P1 finding is `open` or `fixed` in the ledger. The
145
+ recorded ways past the gate without code are `accepted` (only by the user's
146
+ explicit decision, with their reason) or `invalid` (only from re-examination
147
+ evidence or the user's explicit call); both travel into the archive, never a
148
+ silent drop.
149
+ - Merging and pushing are the user's calls: get an explicit yes for the merge,
150
+ then ask whether to push main. Do not treat merge approval, `/complete`, or
151
+ "looks good" as permission to push.
152
+ - Push main only after a separate explicit yes to push main in the current chat.
153
+ - One item per completion. If a parent feature still has unchecked sub-features,
154
+ leave the parent unchecked.
155
+
156
+ ## Formatting
157
+
158
+ Format the output to match the project's conventions in
159
+ `devflow/context/ai-interaction.md`: concise, scannable markdown, with lists for
160
+ enumerations and tables for matrices rather than dense paragraphs.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: convert-any-to-md
3
- description: '[Devflow] Converts any document (.xlsx, .pdf, .docx, .txt, .csv, .log, .json, .yaml, etc.) or mixed folders into clean Markdown in devflow/reference. Use whenever documents need to be analyzed, summarized, searched, or extracted from.'
3
+ description: "[devflow][B] Converts any document (.xlsx, .pdf, .docx, .txt, .csv, .log, .json, .yaml, etc.) or mixed folders into clean Markdown in devflow/reference. Use whenever documents need to be analyzed, summarized, searched, or extracted from."
4
4
  ---
5
5
 
6
6
  # Convert Any Document to Markdown
@@ -77,4 +77,4 @@ python .agents/skills/convert-any-to-md/scripts/convert_any_to_md.py "C:\path\to
77
77
  | `.txt`, `.csv`, `.json`, `.yaml`, `.log` | Plaintext Formatter | N/A | `<name>/<name>.md` |
78
78
 
79
79
  > [!NOTE]
80
- > Legacy binary formats (`.xls`, `.doc`) are not supported directly. Ask the user to re-save them as `.xlsx` / `.docx` first.
80
+ > Legacy binary formats (`.xls`, `.doc`) are not supported directly. Ask the user to re-save them as `.xlsx` / `.docx` first.
@@ -0,0 +1,29 @@
1
+ # Environment Setup for convert-any-to-md
2
+
3
+ Follow these steps to set up the Python dependencies for document conversion.
4
+
5
+ ## 1. Prerequisites
6
+
7
+ - Python 3.10+
8
+ - pip
9
+
10
+ ## 2. Installation
11
+
12
+ Run:
13
+
14
+ ```powershell
15
+ python -m pip install -r .agents/skills/convert-any-to-md/scripts/requirements.txt
16
+ ```
17
+
18
+ This installs:
19
+ - `markitdown[xlsx]`
20
+ - `pymupdf` (for PDF image extraction)
21
+ - `openpyxl` (for Excel parsing)
22
+
23
+ ## 3. Verification
24
+
25
+ ```powershell
26
+ python -c "from markitdown import MarkItDown; import fitz; import openpyxl; print('Dependencies OK')"
27
+ ```
28
+
29
+ Expect `Dependencies OK` to print cleanly.