devflow-kit 3.1.0 → 3.3.0

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 (138) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/README.md +2 -2
  3. package/dist/cli/agents-view/render.js +69 -15
  4. package/dist/cli/agents-view/state.js +40 -14
  5. package/dist/cli/commands/agents.js +135 -45
  6. package/dist/cli/commands/init.js +128 -53
  7. package/dist/cli/commands/learning.js +61 -13
  8. package/dist/cli/commands/memory.js +35 -14
  9. package/dist/cli/commands/uninstall.js +163 -39
  10. package/dist/commands/code-review.md +1 -3
  11. package/dist/commands/debug.md +15 -12
  12. package/dist/commands/dynamic-build.md +172 -135
  13. package/dist/commands/dynamic-plan.md +9 -3
  14. package/dist/commands/explore.md +10 -4
  15. package/dist/commands/implement.md +149 -145
  16. package/dist/commands/plan.md +13 -9
  17. package/dist/commands/release.md +8 -2
  18. package/dist/commands/research.md +8 -2
  19. package/dist/commands/resolve.md +28 -19
  20. package/dist/commands/self-review.md +16 -13
  21. package/dist/core/agent-frontmatter.js +25 -0
  22. package/dist/core/agent-models.js +201 -36
  23. package/dist/core/agent-state.js +27 -5
  24. package/dist/core/assets.js +1 -1
  25. package/dist/core/feature-config.js +68 -10
  26. package/dist/core/flags.js +24 -0
  27. package/dist/core/learning-queue-cleanup.js +10 -11
  28. package/dist/core/learning-tuning-config.js +8 -0
  29. package/dist/core/linked-path.js +46 -0
  30. package/dist/core/plugins.js +16 -5
  31. package/dist/core/queue-drain.js +31 -0
  32. package/dist/hud/components/learning-counts.js +54 -8
  33. package/dist/skills/git/references/tracker/github/create-release.md +2 -2
  34. package/dist/skills/git/references/tracker/github/gather-release-evidence.md +1 -1
  35. package/dist/skills/git/references/tracker/jira/create-release.md +2 -2
  36. package/dist/skills/git/references/tracker/jira/gather-release-evidence.md +1 -1
  37. package/dist/skills/git/references/tracker/linear/create-release.md +2 -2
  38. package/dist/skills/git/references/tracker/linear/gather-release-evidence.md +1 -1
  39. package/dist/targets/claude-code/installer.js +36 -9
  40. package/dist/targets/claude-code/post-install.js +128 -38
  41. package/package.json +1 -1
  42. package/src/assets/agents/code.md +85 -35
  43. package/src/assets/agents/design.md +12 -0
  44. package/src/assets/agents/diagnose.md +18 -11
  45. package/src/assets/agents/evaluate.md +17 -24
  46. package/src/assets/agents/knowledge.md +7 -3
  47. package/src/assets/agents/learning.md +4 -6
  48. package/src/assets/agents/research.md +21 -0
  49. package/src/assets/agents/review.md +12 -0
  50. package/src/assets/agents/scrutinize.md +37 -9
  51. package/src/assets/agents/simplify.md +24 -0
  52. package/src/assets/agents/skim.md +6 -2
  53. package/src/assets/agents/synthesize.md +18 -0
  54. package/src/assets/agents/test.md +19 -11
  55. package/src/assets/agents/triage.md +8 -0
  56. package/src/assets/agents/validate.md +20 -11
  57. package/src/assets/commands/_partials/_engine.mds +36 -55
  58. package/src/assets/commands/_partials/_knowledge.mds +1 -3
  59. package/src/assets/commands/_partials/_plan_contract.mds +1 -1
  60. package/src/assets/commands/_partials/_tracker.mds +1 -1
  61. package/src/assets/commands/_partials/_wave.mds +8 -6
  62. package/src/assets/commands/code-review.mds +1 -3
  63. package/src/assets/commands/debug.mds +13 -8
  64. package/src/assets/commands/dynamic-build.mds +126 -72
  65. package/src/assets/commands/dynamic-plan.mds +7 -1
  66. package/src/assets/commands/explore.mds +9 -1
  67. package/src/assets/commands/implement.mds +147 -141
  68. package/src/assets/commands/plan.mds +12 -8
  69. package/src/assets/commands/release.md +8 -2
  70. package/src/assets/commands/research.mds +8 -2
  71. package/src/assets/commands/resolve.mds +27 -16
  72. package/src/assets/commands/self-review.mds +15 -10
  73. package/src/assets/mds/tracker/_common.mds +1 -1
  74. package/src/assets/mds/tracker/_github.mds +2 -2
  75. package/src/assets/mds/tracker/_jira.mds +2 -2
  76. package/src/assets/mds/tracker/_linear.mds +2 -2
  77. package/src/assets/scripts/ci-wait.cjs +636 -0
  78. package/src/assets/scripts/hooks/assets/orchestrator-charter.md +4 -3
  79. package/src/assets/scripts/hooks/background-memory-update +356 -17
  80. package/src/assets/scripts/hooks/capture-prompt +4 -3
  81. package/src/assets/scripts/hooks/capture-question +4 -3
  82. package/src/assets/scripts/hooks/capture-turn +4 -3
  83. package/src/assets/scripts/hooks/ensure-devflow-init +13 -1
  84. package/src/assets/scripts/hooks/ensure-root-gitignore +122 -10
  85. package/src/assets/scripts/hooks/git-marker +71 -0
  86. package/src/assets/scripts/hooks/json-helper.cjs +12 -145
  87. package/src/assets/scripts/hooks/json-parse +24 -129
  88. package/src/assets/scripts/hooks/lib/learning-store.cjs +169 -64
  89. package/src/assets/scripts/hooks/lib/render-decisions.cjs +1 -1
  90. package/src/assets/scripts/hooks/memory-worker +10 -0
  91. package/src/assets/scripts/hooks/pre-compact-memory +66 -14
  92. package/src/assets/scripts/hooks/preamble +9 -1
  93. package/src/assets/scripts/hooks/queue-append +53 -21
  94. package/src/assets/scripts/hooks/session-start-context +108 -29
  95. package/src/assets/scripts/hooks/session-start-memory +33 -11
  96. package/src/assets/scripts/release-trace.cjs +27 -10
  97. package/src/assets/skills/accessibility/SKILL.md +1 -1
  98. package/src/assets/skills/apply-decisions/SKILL.md +12 -82
  99. package/src/assets/skills/apply-feature-knowledge/SKILL.md +8 -42
  100. package/src/assets/skills/architecture/SKILL.md +1 -1
  101. package/src/assets/skills/boundary-validation/SKILL.md +1 -1
  102. package/src/assets/skills/complexity/SKILL.md +1 -1
  103. package/src/assets/skills/compliance/SKILL.md +1 -1
  104. package/src/assets/skills/consistency/SKILL.md +1 -1
  105. package/src/assets/skills/database/SKILL.md +1 -1
  106. package/src/assets/skills/dependencies/SKILL.md +1 -1
  107. package/src/assets/skills/dependency-research/SKILL.md +3 -6
  108. package/src/assets/skills/design-review/SKILL.md +1 -1
  109. package/src/assets/skills/docs-framework/SKILL.md +1 -1
  110. package/src/assets/skills/documentation/SKILL.md +1 -1
  111. package/src/assets/skills/gap-analysis/SKILL.md +1 -1
  112. package/src/assets/skills/git/SKILL.md +1 -1
  113. package/src/assets/skills/go/SKILL.md +1 -1
  114. package/src/assets/skills/java/SKILL.md +1 -1
  115. package/src/assets/skills/patterns/SKILL.md +1 -1
  116. package/src/assets/skills/performance/SKILL.md +1 -1
  117. package/src/assets/skills/python/SKILL.md +1 -1
  118. package/src/assets/skills/qa/SKILL.md +1 -3
  119. package/src/assets/skills/quality-gates/SKILL.md +9 -12
  120. package/src/assets/skills/quality-gates/references/report-template.md +20 -20
  121. package/src/assets/skills/react/SKILL.md +1 -1
  122. package/src/assets/skills/regression/SKILL.md +1 -1
  123. package/src/assets/skills/reliability/SKILL.md +1 -1
  124. package/src/assets/skills/research-codebase/SKILL.md +1 -1
  125. package/src/assets/skills/research-competitor/SKILL.md +1 -1
  126. package/src/assets/skills/research-external/SKILL.md +1 -1
  127. package/src/assets/skills/research-technology/SKILL.md +1 -1
  128. package/src/assets/skills/review-methodology/SKILL.md +1 -1
  129. package/src/assets/skills/rust/SKILL.md +1 -1
  130. package/src/assets/skills/security/SKILL.md +1 -1
  131. package/src/assets/skills/software-design/SKILL.md +1 -1
  132. package/src/assets/skills/test-driven-development/SKILL.md +15 -33
  133. package/src/assets/skills/testing/SKILL.md +1 -1
  134. package/src/assets/skills/typescript/SKILL.md +1 -1
  135. package/src/assets/skills/ui-design/SKILL.md +1 -1
  136. package/src/assets/skills/worktree-support/SKILL.md +3 -55
  137. package/src/assets/skills/worktree-support/references/discovery.md +48 -0
  138. package/src/assets/skills/worktree-support/references/roots.md +2 -2
@@ -1,14 +1,12 @@
1
1
  ---
2
2
  name: apply-decisions
3
- description: Canonical algorithm for consuming DECISIONS_CONTEXT index — scan index, identify relevant entries, Read full bodies on demand, cite verbatim IDs in-session and state the rule in words in anything committed or posted.
3
+ description: Consume the DECISIONS_CONTEXT index; cite IDs in-session only
4
4
  user-invocable: false
5
- allowed-tools: Read
5
+ allowed-tools: Read, Bash
6
6
  ---
7
7
 
8
8
  # Apply Decisions
9
9
 
10
- Canonical consumer algorithm for the `DECISIONS_CONTEXT` index passed by orchestrators. The index lists each active ADR/PF entry with its ID and title — plus a status tag and an area on a v1 line, or the entry's scope on a v2 line — not the full body. Use this skill to surface the right decisions and pitfalls for your task without loading the entire corpus.
11
-
12
10
  ## Iron Law
13
11
 
14
12
  > **VERBATIM IDs ONLY — NEVER FABRICATE**
@@ -17,104 +15,36 @@ Canonical consumer algorithm for the `DECISIONS_CONTEXT` index passed by orchest
17
15
  > in the index, do not cite it. If an entry looks relevant but you haven't Read its
18
16
  > full body, do not cite it. Fabricated citations are worse than no citations.
19
17
 
20
- ---
21
-
22
18
  ## 5-Step Algorithm
23
19
 
24
20
  ### Step 1: Scan the index
25
21
 
26
- Read through all entries in `DECISIONS_CONTEXT`. The index lists active entries only, in two line kinds:
27
-
28
- ```
29
- Decisions (N):
30
- ADR-NNN Return Result types from every fallible operation [Accepted]
31
- ADR-NNN Claim the learning queue with an op, never with mv — src/assets/scripts/hooks/**, area:learning
32
-
33
- Pitfalls (M):
34
- PF-NNN Background hook god scripts [Active] — src/assets/scripts/hooks/foo.cjs
35
- PF-NNN A rename claims a shared file only while nothing re-creates it — area:hooks
36
-
37
- ADR-NNN entries live in {worktree}/.devflow/learning/decisions.md
38
- PF-NNN entries live in {worktree}/.devflow/learning/pitfalls.md
39
- Read the relevant file and locate the matching `## ADR-NNN:` or `## PF-NNN:` heading for the full body.
40
- ```
41
-
42
- - **A v1 line** ends in a status tag — `[Accepted]` on a decision, `[Active]` on a pitfall — after a title cut to 60 characters, and a pitfall adds its area after `—`.
43
- - **A v2 line** has no tag. Its title is whole, and after `—` comes its scope: the globs and `area:` tags the rule governs, cut to 80 characters.
22
+ One line per active entry: its ID (`ADR-NNN` or `PF-NNN`), a title, then a status tag and/or, after `—`, its area or scope. The footer names the decisions and pitfalls files.
44
23
 
45
24
  ### Step 2: Identify plausibly-relevant entries
46
25
 
47
- From the index, identify entries whose title, area or scope plausibly overlaps with:
48
- - The files you are modifying or reviewing — a v2 scope glob that matches one of them is a strong signal
49
- - The category of issue you are addressing (e.g., error handling, hook scripts, JSON parsing)
50
- - The architectural area of your change
51
-
52
- A v1 title may be cut short — if a truncated title looks relevant, proceed to Step 3.
26
+ Pick entries whose title, area or scope overlaps the files you touch (a matching scope glob is a strong signal), the kind of issue or the architectural area. Follow up a cut-short title that looks relevant.
53
27
 
54
28
  ### Step 3: Read the full body
55
29
 
56
- For each plausibly-relevant entry, use the Read tool to open the decisions file listed in the `DECISIONS_CONTEXT` footer and locate the matching `## ADR-NNN:` or `## PF-NNN:` heading. Read the full section to confirm relevance and understand the decision or pitfall completely.
57
-
58
- A v2 body reads:
30
+ Find the entry's heading line in the file the footer names, then Read only that section:
59
31
 
32
+ ```bash
33
+ command grep -nF '## ADR-NNN:' "{worktree-from-footer}/.devflow/learning/decisions.md"
60
34
  ```
61
- ## ADR-NNN: {title}
62
35
 
63
- - **Status**: Accepted · verified {date}
64
- - **Scope**: `{glob}`, `area:{tag}`
65
- - **Decision**: {the rule}
66
- - **Why**: {why it holds}
67
- - **Source**: {where it was learned}
68
- ```
69
-
70
- A pitfall's Status is `Active` and its rule line is labelled `**Rule**`. The verified date is the day the entry was last confirmed true; a body without one has not been confirmed since it was written. A v1 body carries `**Date**`, `**Status**`, `**Context**`, `**Decision**` and `**Consequences**` for a decision, or `**Area**`, `**Issue**`, `**Impact**`, `**Resolution**` and `**Status**` for a pitfall.
71
-
72
- **The footer is the single source of truth for file paths.** Never substitute hardcoded paths — the footer resolves to the correct worktree, which may differ from your cwd in multi-worktree flows.
73
-
74
- ```
75
- Use the exact paths from the DECISIONS_CONTEXT footer, e.g.:
76
- {worktree-from-footer}/.devflow/learning/decisions.md → find ## ADR-NNN: heading
77
- {worktree-from-footer}/.devflow/learning/pitfalls.md → find ## PF-NNN: heading
78
- ```
79
-
80
- Only cite an entry after you have read its full body and confirmed it applies.
36
+ For a pitfall use `## PF-NNN:` and `pitfalls.md`. Read with `offset` at the printed line and a `limit` of about 25, stopping at the next `## `. The footer is the single source of truth for paths; the ledger is git-ignored, so only a shell search finds the line. A `verified` date is when the entry was last confirmed true; none means unconfirmed. Cite only after reading the body and confirming it applies.
81
37
 
82
38
  ### Step 4: Cite inline — in-session handoffs only
83
39
 
84
- When applying a prior decision, cite as `applies ADR-NNN`. When avoiding a known pitfall, cite as `avoids PF-NNN`. Place these citations only where they stay in the session: your reasoning, decision tables, prompts to downstream agents, and your report back to the caller.
40
+ Cite `applies ADR-NNN` or `avoids PF-NNN` in-session only: your reasoning, prompts to downstream agents, your report back.
85
41
 
86
- Anything committed, pushed or posted states the rule in words, never its ID: code, comments, tests, docs, KNOWLEDGE.md files, commit messages, PR and issue text, review and PR comments, resolution summaries — and any report a later step copies into one of those. The ledger is gitignored and numbered per machine, so no other clone can resolve an ID, and numbers get reused.
42
+ Anything committed, pushed or posted states the rule in words, never its ID (code, comments, tests, docs, commit messages, PR and issue text, review comments, and any report copied into those). IDs are numbered per machine, so no other clone can resolve one.
87
43
 
88
44
  ### Step 5: Use verbatim IDs only
89
45
 
90
- Cite only IDs that appear verbatim in `DECISIONS_CONTEXT`. Do not guess at IDs that might exist. Do not construct IDs from memory. If no entry is clearly relevant, skip citation entirely — silence is correct when nothing applies.
91
-
92
- ---
93
-
94
- ## Worked Example
95
-
96
- **Scenario**: Reviewing `src/assets/scripts/hooks/background-learning` for issues.
97
-
98
- 1. **Scan** — Index shows `PF-NNN Background hook god scripts [Active] — src/assets/scripts/hooks/foo.cjs`
99
- 2. **Identify** — Area field includes `src/assets/scripts/hooks/` which overlaps with the file under review
100
- 3. **Read** — Open the pitfalls file at the path given in the DECISIONS_CONTEXT footer (e.g., `<worktree>/.devflow/learning/pitfalls.md`), find `## PF-NNN:` section, read full body
101
- 4. **Cite** — If the file shows signs of the god-script pattern, note `avoids PF-NNN` in reasoning; a comment you commit for the fix says why in words ("hooks stay thin dispatchers"), never the ID
102
- 5. **Verbatim** — ID `PF-NNN` appeared in the index; citation is valid
103
-
104
- ---
46
+ Cite only IDs in `DECISIONS_CONTEXT`; never guess or rebuild one. When nothing clearly applies, cite nothing.
105
47
 
106
48
  ## Skip Guard
107
49
 
108
- When `DECISIONS_CONTEXT` is empty, `(none)`, or not provided: skip this skill entirely — unless your agent instructions tell you to read the decisions index yourself, in which case the index you read is your `DECISIONS_CONTEXT`. Do not otherwise load decisions files independently. Do not speculate about what decisions or pitfalls might exist.
109
-
110
- ---
111
-
112
- ## Citation Format Reference
113
-
114
- | Situation | Citation |
115
- |-----------|----------|
116
- | Applying a prior architectural decision | `applies ADR-NNN` |
117
- | Avoiding a known pitfall | `avoids PF-NNN` |
118
- | Entry not in index | (no citation — silence is correct) |
119
- | Entry in index but not read yet | (no citation — read first) |
120
- | Text that is committed, pushed or posted | (no ID — state the rule in words) |
50
+ When `DECISIONS_CONTEXT` is empty, `(none)` or not provided, skip this skill — unless your instructions tell you to read the decisions index yourself; that index is then your `DECISIONS_CONTEXT`. Never load decisions files otherwise.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: apply-feature-knowledge
3
- description: Consumption algorithm for FEATURE_KNOWLEDGE variable — pre-computed feature context
3
+ description: Consume FEATURE_KNOWLEDGE, the pre-computed feature context
4
4
  user-invocable: false
5
5
  allowed-tools: Read
6
6
  ---
@@ -11,37 +11,17 @@ allowed-tools: Read
11
11
 
12
12
  > **Pre-computed context, not a cage. Verify against current code — always.**
13
13
  >
14
- > A feature knowledge captures patterns AS THEY WERE when last written. Code evolves.
15
- > Use the feature knowledge as a starting point, not gospel truth. When something feels
16
- > off, Read the actual files. Code is authoritative; feature knowledge is supplementary.
14
+ > A feature knowledge captures patterns AS THEY WERE when last written. Use it as a
15
+ > starting point, not gospel truth; when something feels off, Read the actual files.
16
+ > Code is authoritative.
17
17
 
18
18
  ---
19
19
 
20
20
  ## 3-Step Algorithm
21
21
 
22
- ### Step 1: Read the Feature Knowledge
23
-
24
- When `FEATURE_KNOWLEDGE` is provided and is not `(none)`:
25
-
26
- 1. Read each feature knowledge section (separated by `--- Feature knowledge: {slug} ---` headers)
27
- 2. Absorb: architecture, data flow, key patterns, anti-patterns, gotchas
28
- 3. Note integration points that relate to your current task
29
-
30
- ### Step 2: Apply to Current Task
31
-
32
- 1. **Patterns as defaults**: Follow documented patterns unless you have a specific reason not to
33
- 2. **Anti-patterns as warnings**: Check your work against documented anti-patterns
34
- 3. **Gotchas as checklists**: Verify each gotcha doesn't apply to your changes
35
- 4. **Integration points**: Ensure your changes respect documented boundaries
36
- 5. **Key files**: Use as starting points for exploration
37
-
38
- ### Step 3: Verify Against Current Code
39
-
40
- The feature knowledge may not reflect recent changes:
41
- - If the feature knowledge doesn't address your specific area, explore further
42
- - **When an assertion seems outdated**: Read the relevant source files to confirm — code wins
43
- - When you find a contradiction between the KB and actual code, trust the code
44
- - Note discrepancies in your output when they matter for the task
22
+ 1. **Read** each section of `FEATURE_KNOWLEDGE` (headed `--- Feature knowledge: {slug} ---`) for architecture, data flow, patterns, anti-patterns, gotchas and the integration points your task touches.
23
+ 2. **Apply** it: follow documented patterns unless you have a specific reason not to; check your work against each anti-pattern and gotcha; respect documented integration boundaries; start exploring from the key files.
24
+ 3. **Verify** against current code: it may not reflect recent changes. Where it is silent on your area, explore further. Where an assertion seems outdated or contradicts the code, Read the source and trust it. Note a discrepancy in your output when it matters for the task.
45
25
 
46
26
  ---
47
27
 
@@ -52,18 +32,4 @@ Do not mention feature knowledge or its absence in your output.
52
32
 
53
33
  ## Freshness Model
54
34
 
55
- Feature knowledge uses **write-through + verify-on-read** for freshness:
56
- - KBs are written at the point a documented area changes (not on a background schedule)
57
- - Readers verify key assertions against current code rather than relying on staleness markers
58
- - When in doubt, Read the file — that resolves any uncertainty immediately
59
-
60
- ## Concatenation Format
61
-
62
- Multiple feature knowledge entries are concatenated with slug headers:
63
- ```
64
- --- Feature knowledge: payments ---
65
- [full KNOWLEDGE.md content]
66
-
67
- --- Feature knowledge: auth ---
68
- [full KNOWLEDGE.md content]
69
- ```
35
+ Feature knowledge is **verify-on-read**: check key assertions against current code, not staleness markers, and when in doubt Read the file.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: architecture
3
- description: This skill should be used when reviewing code for SOLID violations, tight coupling, or layering issues.
3
+ description: This skill should be used when reviewing code for SOLID or layering issues.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: boundary-validation
3
- description: This skill should be used when the user asks to "validate input", "parse request data", "handle form data", "add Zod schema", "sanitize user input", or creates API endpoints and system boundaries. Provides parse-don't-validate patterns with schema validation for type-safe boundary enforcement and hostile input defense.
3
+ description: This skill should be used when the user asks to "validate input", "parse request data", "add Zod schema", or creates API endpoints and system boundaries.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob, AskUserQuestion
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: complexity
3
- description: This skill should be used when reviewing code for high cyclomatic complexity, deep nesting, or long functions.
3
+ description: This skill should be used when reviewing code for deep nesting or long functions.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: compliance
3
- description: This skill should be used when reviewing code handling PII, payment data, health records, audit logs, data retention, or IaC under GDPR, HIPAA, PCI DSS, SOC 2, ISO 27001, or SOX.
3
+ description: This skill should be used when reviewing code that handles PII, payments or health data.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: consistency
3
- description: This skill should be used when reviewing code for naming convention violations, pattern deviations, or inconsistent API styles.
3
+ description: This skill should be used when reviewing code for naming or pattern inconsistencies.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: database
3
- description: This skill should be used when reviewing database queries, migrations, indexes, or schema changes.
3
+ description: This skill should be used when reviewing queries, migrations or schema changes.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: dependencies
3
- description: This skill should be used when reviewing dependency changes, lock files, or package additions.
3
+ description: This skill should be used when reviewing dependency or lock file changes.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: dependency-research
3
- description: >-
4
- This skill should be used when the user asks to "add a utility", "create a helper",
5
- "implement parsing", "build a wrapper", or writes infrastructure/utility code that
6
- may already exist as a well-maintained package. Enforces research before building.
3
+ description: This skill should be used when the user asks to "add a utility", "create a helper", "build a wrapper", or writes utility code a maintained package may already provide.
7
4
  user-invocable: false
8
5
  allowed-tools: Read, Grep, Glob
9
6
  ---
@@ -54,9 +51,9 @@ Nice-to-haves: {optional features}
54
51
 
55
52
  ### Phase 2: Search
56
53
 
57
- Delegate research to an Explore subagent to keep main session context clean.
54
+ Spawn an Explore subagent when you can spawn agents, to keep main session context clean; otherwise search directly, using the template's questions as your checklist.
58
55
 
59
- **Spawn an Explore agent** with this prompt template:
56
+ **Prompt template** for the Explore agent:
60
57
 
61
58
  ```
62
59
  Agent(subagent_type="Explore"):
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: design-review
3
- description: This skill should be used when reviewing implementation plans for anti-patterns, checking design quality before implementation, or performing plan-level quality assessment. Provides 6 anti-pattern detection rules for the Design agent and inline planning.
3
+ description: This skill should be used when reviewing implementation plans for anti-patterns.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: docs-framework
3
- description: This skill should be used when the user asks to "create a review report", "write a status log", "add documentation", "name this artifact", or creates files in the .devflow/docs/ directory. Provides naming conventions, templates, and directory structure for reviews, debug sessions, design docs, and all persistent Devflow documentation artifacts.
3
+ description: This skill should be used when creating files in the .devflow/docs/ directory.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Bash, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: documentation
3
- description: This skill should be used when reviewing for documentation drift, missing API docs, or stale comments.
3
+ description: This skill should be used when reviewing for documentation drift or stale comments.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: gap-analysis
3
- description: This skill should be used when analyzing design documents, specifications, or plans for completeness gaps, architectural issues, security concerns, and performance implications. Provides focus-specific detection patterns for the Design agent.
3
+ description: This skill should be used when analyzing specs or plans for completeness gaps.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: git
3
- description: This skill should be used when the user asks to "commit changes", "create a pull request", "rebase safely", "manage branches", "fix merge conflicts", "undo a commit", "comment on a PR", "create a release", or performs any git/GitHub operations. Provides safety patterns, atomic commit formatting, PR descriptions, sensitive file detection, and GitHub API usage.
3
+ description: This skill should be used when the user asks to "commit changes", "create a pull request", "rebase safely", or performs any git/GitHub operation.
4
4
  user-invocable: false
5
5
  allowed-tools: Bash, Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: go
3
- description: This skill should be used when the user works with Go files (.go), asks about "error handling", "interfaces", "goroutines", "channels", "packages", or discusses Go idioms and concurrency. Provides patterns for error handling, interface design, concurrency, and package organization.
3
+ description: This skill should be used when the user works with Go files (.go), asks about "error handling", "interfaces", "goroutines", or discusses Go idioms and concurrency.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  activation:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: java
3
- description: This skill should be used when the user works with Java files (.java), asks about "records", "sealed classes", "Optional", "streams", "composition over inheritance", or discusses modern Java patterns and API design. Provides patterns for type system usage, error handling, immutability, and concurrency.
3
+ description: This skill should be used when the user works with Java files (.java), asks about "records", "sealed classes", "streams", or discusses modern Java patterns.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  activation:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: patterns
3
- description: This skill should be used when the user asks to "create an API endpoint", "add CRUD operations", "implement event handlers", "set up logging", "add configuration", or builds features involving database operations, REST/GraphQL APIs, pub/sub patterns, or service configuration. Provides implementation patterns that follow existing codebase conventions.
3
+ description: This skill should be used when the user asks to "create an API endpoint", "add CRUD operations", "implement event handlers", "set up logging", or adds database operations, REST/GraphQL APIs, pub/sub.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: performance
3
- description: This skill should be used when reviewing code for N+1 queries, memory leaks, or I/O bottlenecks.
3
+ description: This skill should be used when reviewing code for N+1 queries or memory leaks.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: python
3
- description: This skill should be used when the user works with Python files (.py), asks about "type hints", "protocols", "dataclasses", "async/await", "decorators", or discusses Pythonic patterns and data modeling. Provides patterns for type safety, error handling, data modeling, and async programming.
3
+ description: This skill should be used when the user works with Python files (.py), asks about "type hints", "protocols", "dataclasses", "async/await", or discusses Pythonic patterns.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  activation:
@@ -1,8 +1,6 @@
1
1
  ---
2
2
  name: qa
3
- description: This skill should be used when performing scenario-based acceptance testing,
4
- designing QA test plans, or validating that implementation behavior matches acceptance
5
- criteria beyond unit tests.
3
+ description: This skill should be used when designing or running scenario-based acceptance tests.
6
4
  user-invocable: false
7
5
  allowed-tools: Read, Grep, Glob, Bash
8
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: quality-gates
3
- description: This skill should be used when evaluating implementation quality before submission, checking correctness, security, and simplicity.
3
+ description: This skill should be used when evaluating implementation quality before submission.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob, Edit, Write, Bash
6
6
  ---
@@ -26,7 +26,7 @@ Based on [Google Engineering Practices](https://google.github.io/eng-practices/r
26
26
  |----------|--------|---------|
27
27
  | **P0** | MUST fix | Design, Functionality, Security |
28
28
  | **P1** | SHOULD fix | Complexity, Error Handling, Tests |
29
- | **P2** | FIX if time | Naming, Consistency, Documentation |
29
+ | **P2** | FIX if straightforward | Documentation (Naming and Consistency belong to the Simplify agent: report them as SKIP) |
30
30
 
31
31
  ### P0 - Design
32
32
  Does the implementation fit the architecture? Follows existing patterns, respects layer boundaries, dependencies injected.
@@ -48,11 +48,8 @@ Errors handled explicitly? No swallowed exceptions, helpful messages, resources
48
48
  ### P1 - Tests
49
49
  New code tested? Covers happy path, errors, edges. Tests behavior, not implementation.
50
50
 
51
- ### P2 - Naming
52
- Names clear and descriptive? No cryptic abbreviations, consistent style.
53
-
54
- ### P2 - Consistency
55
- Matches existing patterns? Same style, same conventions, no unnecessary divergence.
51
+ ### P2 - Naming and Consistency
52
+ Owned by the Simplify agent, which applies the project's naming and style standards. Report both as SKIP; do not judge or fix them here.
56
53
 
57
54
  ### P2 - Documentation
58
55
  Will others understand? Complex logic commented, public APIs documented, no outdated comments.
@@ -99,7 +96,7 @@ Check Design, Functionality, Security. If issues found and fixable, fix immediat
99
96
  Check Complexity, Error Handling, Tests. Fix issues found.
100
97
 
101
98
  ### Step 4: Evaluate P2 Pillars
102
- Check Naming, Consistency, Documentation. Fix if time permits.
99
+ Check Documentation and fix it if straightforward. Naming and Consistency are the Simplify agent's: SKIP.
103
100
 
104
101
  ### Step 5: Generate Report
105
102
  Document status of each pillar, fixes applied, and overall readiness.
@@ -122,13 +119,13 @@ Document status of each pillar, fixes applied, and overall readiness.
122
119
  - Tests: PASS/FIXED
123
120
 
124
121
  ### P2 Pillars
125
- - Naming: PASS/FIXED/SKIP
126
- - Consistency: PASS/FIXED/SKIP
127
- - Documentation: PASS/FIXED/SKIP
122
+ - Naming: SKIP (Simplify agent)
123
+ - Consistency: SKIP (Simplify agent)
124
+ - Documentation: PASS/FIXED
128
125
 
129
126
  ### Summary
130
127
  Issues Found: {n}, Fixed: {n}
131
- Status: READY / BLOCKED
128
+ Status: PASS / FIXED / BLOCKED
132
129
  ```
133
130
 
134
131
  ---
@@ -44,13 +44,13 @@ Use this template when generating your self-review report.
44
44
 
45
45
  ---
46
46
 
47
- ### P2 Pillars (FIX if Time Permits)
47
+ ### P2 Pillars (Documentation only)
48
48
 
49
49
  | Pillar | Status | Notes |
50
50
  |--------|--------|-------|
51
- | Naming | PASS/FIXED/SKIP | {details} |
52
- | Consistency | PASS/FIXED/SKIP | {details} |
53
- | Documentation | PASS/FIXED/SKIP | {details} |
51
+ | Naming | SKIP | Simplify agent |
52
+ | Consistency | SKIP | Simplify agent |
53
+ | Documentation | PASS/FIXED | {details if fixed} |
54
54
 
55
55
  **Fixes Applied** (if any):
56
56
  - {file:line} - {what was fixed}
@@ -61,7 +61,7 @@ Use this template when generating your self-review report.
61
61
 
62
62
  **Issues Found**: {total count}
63
63
  **Issues Fixed**: {count}
64
- **Status**: READY / BLOCKED
64
+ **Status**: PASS / FIXED / BLOCKED
65
65
 
66
66
  {If BLOCKED, explain what cannot be fixed and why}
67
67
  ```
@@ -105,12 +105,12 @@ Add user profile update endpoint
105
105
 
106
106
  ---
107
107
 
108
- ### P2 Pillars (FIX if Time Permits)
108
+ ### P2 Pillars (Documentation only)
109
109
 
110
110
  | Pillar | Status | Notes |
111
111
  |--------|--------|-------|
112
- | Naming | PASS | Clear, descriptive names |
113
- | Consistency | PASS | Matches existing patterns |
112
+ | Naming | SKIP | Simplify agent |
113
+ | Consistency | SKIP | Simplify agent |
114
114
  | Documentation | PASS | JSDoc on public methods |
115
115
 
116
116
  ---
@@ -119,7 +119,7 @@ Add user profile update endpoint
119
119
 
120
120
  **Issues Found**: 0
121
121
  **Issues Fixed**: 0
122
- **Status**: READY
122
+ **Status**: PASS
123
123
  ```
124
124
 
125
125
  ### Example 2: Issues Fixed
@@ -165,12 +165,12 @@ Implement order cancellation flow
165
165
 
166
166
  ---
167
167
 
168
- ### P2 Pillars (FIX if Time Permits)
168
+ ### P2 Pillars (Documentation only)
169
169
 
170
170
  | Pillar | Status | Notes |
171
171
  |--------|--------|-------|
172
- | Naming | PASS | Clear names |
173
- | Consistency | PASS | Matches existing order methods |
172
+ | Naming | SKIP | Simplify agent |
173
+ | Consistency | SKIP | Simplify agent |
174
174
  | Documentation | FIXED | Added JSDoc explaining cancellation rules |
175
175
 
176
176
  **Fixes Applied**:
@@ -182,7 +182,7 @@ Implement order cancellation flow
182
182
 
183
183
  **Issues Found**: 5
184
184
  **Issues Fixed**: 5
185
- **Status**: READY
185
+ **Status**: FIXED
186
186
  ```
187
187
 
188
188
  ### Example 3: Blocked
@@ -233,12 +233,12 @@ before implementing refund feature.
233
233
 
234
234
  ## Status Definitions
235
235
 
236
- | Status | Meaning |
237
- |--------|---------|
238
- | PASS | No issues found for this pillar |
239
- | FIXED | Issue found and resolved |
240
- | SKIP | P2 only - issue noted but not fixed due to time |
241
- | BLOCKED | Cannot fix - requires escalation |
236
+ | Status | Pillar | Overall (`### Status`) |
237
+ |--------|--------|------------------------|
238
+ | PASS | No issues found for this pillar | No change was needed |
239
+ | FIXED | Issue found and resolved | Fixes were committed and every P0 and P1 is fixed |
240
+ | SKIP | Naming and Consistency only - owned by the Simplify agent | - |
241
+ | BLOCKED | Cannot fix - requires escalation | A P0 cannot be fixed in scope |
242
242
 
243
243
  ---
244
244
 
@@ -247,7 +247,7 @@ before implementing refund feature.
247
247
  Before submitting report:
248
248
  - [ ] All P0 pillars are PASS or FIXED
249
249
  - [ ] All P1 pillars are PASS or FIXED
250
- - [ ] P2 pillars evaluated (PASS/FIXED/SKIP)
250
+ - [ ] Documentation evaluated (PASS/FIXED); Naming and Consistency reported as SKIP
251
251
  - [ ] All fixes documented with file:line
252
252
  - [ ] Summary accurately reflects status
253
253
  - [ ] If BLOCKED, clear explanation provided
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: react
3
- description: This skill should be used when the user works with React components (.tsx/.jsx), asks about "hooks", "state management", "context providers", "memo optimization", "useEffect", or discusses component composition and rendering performance. Provides patterns for hooks, state, effects, memoization, and React-specific architecture.
3
+ description: This skill should be used when the user works with React components (.tsx/.jsx), asks about "hooks", "state management", "memo optimization", or discusses component composition.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  activation:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: regression
3
- description: This skill should be used when reviewing changes that may remove exports, change signatures, or alter behavior.
3
+ description: This skill should be used when reviewing changes that may break existing behavior.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: reliability
3
- description: This skill should be used when reviewing code for unbounded loops, missing assertions, excessive allocation, or deep indirection.
3
+ description: This skill should be used when reviewing code for unbounded loops or missing assertions.
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: research-codebase
3
- description: Local codebase research — find patterns, trace flows, map dependencies without browsing the web
3
+ description: Local codebase research — find patterns, trace flows, map dependencies
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: research-competitor
3
- description: Competitor analysis — structured feature comparison, positioning analysis, and gap identification
3
+ description: Competitor analysis — feature comparison, positioning and gap identification
4
4
  user-invocable: false
5
5
  allowed-tools: WebSearch, WebFetch
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: research-external
3
- description: External web research — find documentation, articles, and community knowledge with untrusted-data discipline
3
+ description: External web research — docs, articles, community knowledge; untrusted data
4
4
  user-invocable: false
5
5
  allowed-tools: WebSearch, WebFetch
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: research-technology
3
- description: Technology evaluation — assess libraries, frameworks, and tools against project requirements
3
+ description: Technology evaluation — assess libraries, frameworks and tools against requirements
4
4
  user-invocable: false
5
5
  allowed-tools: WebSearch, WebFetch, Read
6
6
  ---
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: review-methodology
3
- description: This skill should be used when performing a code review to apply the standard 6-step review process.
3
+ description: This skill should be used when performing a code review (the 6-step process).
4
4
  user-invocable: false
5
5
  allowed-tools: Read, Grep, Glob, Bash
6
6
  ---