@engramm/dev-workflow 0.1.4 → 0.1.6

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 (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -1
  3. package/dist/cli/index.js +11 -0
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/cli/init.d.ts.map +1 -1
  6. package/dist/cli/init.js +7 -1
  7. package/dist/cli/init.js.map +1 -1
  8. package/dist/cli/run.d.ts.map +1 -1
  9. package/dist/cli/run.js +2 -0
  10. package/dist/cli/run.js.map +1 -1
  11. package/dist/cli/task.d.ts.map +1 -1
  12. package/dist/cli/task.js +35 -0
  13. package/dist/cli/task.js.map +1 -1
  14. package/dist/mcp/handlers.d.ts +1 -0
  15. package/dist/mcp/handlers.d.ts.map +1 -1
  16. package/dist/mcp/handlers.js +7 -0
  17. package/dist/mcp/handlers.js.map +1 -1
  18. package/dist/mcp/tools.d.ts.map +1 -1
  19. package/dist/mcp/tools.js +11 -0
  20. package/dist/mcp/tools.js.map +1 -1
  21. package/dist/tasks/phase-tasks.d.ts +8 -0
  22. package/dist/tasks/phase-tasks.d.ts.map +1 -0
  23. package/dist/tasks/phase-tasks.js +35 -0
  24. package/dist/tasks/phase-tasks.js.map +1 -0
  25. package/package.json +1 -1
  26. package/templates/agents/architect.md +9 -3
  27. package/templates/agents/coder.md +9 -3
  28. package/templates/agents/committer.md +8 -0
  29. package/templates/agents/debugger.md +8 -2
  30. package/templates/agents/planner.md +8 -2
  31. package/templates/agents/reader.md +7 -0
  32. package/templates/agents/reviewer.md +8 -1
  33. package/templates/agents/tester.md +8 -2
  34. package/templates/claude/commands/git/merge.md +6 -4
  35. package/templates/claude/commands/session/handover.md +12 -4
  36. package/templates/claude/commands/session/resume.md +8 -0
  37. package/templates/claude/commands/session/review.md +7 -5
  38. package/templates/claude/commands/vault/analyze.md +9 -8
  39. package/templates/claude/commands/vault/from-spec.md +9 -6
  40. package/templates/claude/commands/workflow/dev.md +94 -907
  41. package/templates/claude/commands/workflow/steps/coder.md +105 -0
  42. package/templates/claude/commands/workflow/steps/commit.md +52 -0
  43. package/templates/claude/commands/workflow/steps/plan-review.md +67 -0
  44. package/templates/claude/commands/workflow/steps/plan.md +106 -0
  45. package/templates/claude/commands/workflow/steps/preflight.md +50 -0
  46. package/templates/claude/commands/workflow/steps/principles.md +35 -0
  47. package/templates/claude/commands/workflow/steps/read.md +39 -0
  48. package/templates/claude/commands/workflow/steps/review.md +168 -0
  49. package/templates/claude/commands/workflow/steps/test.md +38 -0
  50. package/templates/claude/commands/workflow/steps/vault-updates.md +98 -0
  51. package/templates/claude/commands/workflow/steps/verify.md +49 -0
@@ -0,0 +1,98 @@
1
+ # Step 9b: Vault updates (after commit)
2
+
3
+ Orchestrator writes directly to vault after successful commit.
4
+ Use **Edit tool** to append — **never overwrite** existing vault files.
5
+
6
+ ## 1. Daily log
7
+
8
+ Append to `.dev-vault/daily/<today>.md`:
9
+
10
+ ```
11
+ > workflow:dev completed at HH:MM — "<task summary>"
12
+ > Commit: <hash> | Files: <N> changed, <N> created | Tests: <N>
13
+ > [If review findings:] Gotchas recorded in knowledge.md
14
+ ```
15
+
16
+ If file exists — read first, then Edit to append after `---` separator.
17
+ If file does not exist — create with Write tool.
18
+
19
+ ## 2. Phase status (phase mode only)
20
+
21
+ Update frontmatter in phase file:
22
+
23
+ ```yaml
24
+ status: done # was: pending
25
+ ```
26
+
27
+ ## 3. Task status (if task linked)
28
+
29
+ Update task file:
30
+
31
+ ```yaml
32
+ status: done # was: in-progress
33
+ ```
34
+
35
+ ## 4. Gameplan progress (phase mode only)
36
+
37
+ Check off completed items in `.dev-vault/gameplan.md`:
38
+
39
+ ```markdown
40
+ - [x] <completed task> # was: - [ ]
41
+ ```
42
+
43
+ ## Phase mode: vault refresh between subtasks
44
+
45
+ After each subtask complete:
46
+ - Re-read `.dev-vault/conventions.md` (may have new patterns from review)
47
+ - Re-read `.dev-vault/knowledge.md` (may have new gotchas from review)
48
+ - Pass updated vault content to next subtask's CODER and REVIEW agents
49
+
50
+ ## 5. Auto-create vault records
51
+
52
+ Create records automatically using MCP tool `vault_record(type, title, content)`.
53
+ Data is already in pipeline context — no need to ask the user.
54
+
55
+ ### ADR (architecture decisions)
56
+
57
+ Create if PLAN contained:
58
+ - DEVIATION from conventions (with justification)
59
+ - Architecture section with alternatives considered
60
+ - Dependency direction change or new layer introduced
61
+
62
+ ```
63
+ vault_record(type: "adr", title: "<decision>", content: "Context: <from PLAN>\nDecision: <what was chosen>\nAlternatives: <from PLAN Architecture section>\nConsequences: <trade-offs>")
64
+ ```
65
+
66
+ ### Bug (fixed issues)
67
+
68
+ Create if REVIEW found CRITICAL or HIGH and CODER fixed it:
69
+ - Root cause was non-obvious
70
+ - Fix required understanding of system internals
71
+
72
+ ```
73
+ vault_record(type: "bug", title: "<issue summary>", content: "Symptoms: <from REVIEW issue>\nRoot cause: <from CODE_FIX>\nFix: <what was changed>\nPrevention: <how to avoid>")
74
+ ```
75
+
76
+ ### Debt (deferred work)
77
+
78
+ Create if CODER skipped MEDIUM review issues:
79
+ - Issue acknowledged but not fixed
80
+ - Reason documented in CODE_FIX Skipped section
81
+
82
+ ```
83
+ vault_record(type: "debt", title: "<deferred issue>", content: "Problem: <from REVIEW issue>\nWhy deferred: <from CODE_FIX Skipped reason>\nProposal: <suggested fix>\nRisk if ignored: <impact>")
84
+ ```
85
+
86
+ ### Rules
87
+
88
+ - Only create if data exists in pipeline context (PLAN, REVIEW, CODE_FIX blocks)
89
+ - Do NOT create for: LOW/style issues, clean pipelines with no findings, trivial bugs
90
+ - One record per significant finding, not one per REVIEW issue
91
+ - Display created records in summary:
92
+
93
+ ```
94
+ Vault records created:
95
+ ADR: .dev-vault/architecture/<date>-<slug>.md
96
+ Bug: .dev-vault/bugs/<date>-<slug>.md
97
+ Debt: .dev-vault/debt/<date>-<slug>.md
98
+ ```
@@ -0,0 +1,49 @@
1
+ # Step 8: VERIFY (task compliance check)
2
+
3
+ Launch **Explore** subagent:
4
+
5
+ ```
6
+ You are a verification agent. Check if the implementation matches the ORIGINAL TASK.
7
+ Do NOT check code quality or security — that was already done.
8
+ Check ONLY: does the code do what was asked?
9
+
10
+ ## Original task
11
+ [task from user — the ORIGINAL request, not the plan]
12
+
13
+ ## Plan
14
+ [PLAN block]
15
+
16
+ ## What was implemented
17
+ [final CODE_DONE or CODE_FIX block]
18
+
19
+ ## Check
20
+ - Every requirement from the original task addressed?
21
+ - Any requirement missed or partially implemented?
22
+ - Any drift from the task? (implemented something not asked for)
23
+ - Acceptance criteria met? (if task specifies them)
24
+
25
+ ## Output Format
26
+ VERIFY:
27
+ Verdict: [COMPLETE / INCOMPLETE]
28
+ Addressed:
29
+ - [requirement] — implemented
30
+ Missing:
31
+ - [requirement not implemented — how to fix]
32
+ Drift:
33
+ - [implementation not in original task — flag for user]
34
+ END_VERIFY
35
+ ```
36
+
37
+ **COMPLETE** → Step 9.
38
+
39
+ **INCOMPLETE** → pass missing items to CODER. **Max 2 iterations.** After limit:
40
+ - **Interactive:** show gaps, ask user whether to commit partial or stop
41
+ - **Autonomous:** stop without commit. Incomplete implementation = no commit.
42
+
43
+ Display:
44
+
45
+ ```
46
+ ── VERIFY ──
47
+ Verdict: COMPLETE / INCOMPLETE
48
+ [If incomplete:] Missing: [N] requirements
49
+ ```