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.
- package/CHANGELOG.md +52 -0
- package/README.md +2 -2
- package/dist/cli/agents-view/render.js +69 -15
- package/dist/cli/agents-view/state.js +40 -14
- package/dist/cli/commands/agents.js +135 -45
- package/dist/cli/commands/init.js +128 -53
- package/dist/cli/commands/learning.js +61 -13
- package/dist/cli/commands/memory.js +35 -14
- package/dist/cli/commands/uninstall.js +163 -39
- package/dist/commands/code-review.md +1 -3
- package/dist/commands/debug.md +15 -12
- package/dist/commands/dynamic-build.md +172 -135
- package/dist/commands/dynamic-plan.md +9 -3
- package/dist/commands/explore.md +10 -4
- package/dist/commands/implement.md +149 -145
- package/dist/commands/plan.md +13 -9
- package/dist/commands/release.md +8 -2
- package/dist/commands/research.md +8 -2
- package/dist/commands/resolve.md +28 -19
- package/dist/commands/self-review.md +16 -13
- package/dist/core/agent-frontmatter.js +25 -0
- package/dist/core/agent-models.js +201 -36
- package/dist/core/agent-state.js +27 -5
- package/dist/core/assets.js +1 -1
- package/dist/core/feature-config.js +68 -10
- package/dist/core/flags.js +24 -0
- package/dist/core/learning-queue-cleanup.js +10 -11
- package/dist/core/learning-tuning-config.js +8 -0
- package/dist/core/linked-path.js +46 -0
- package/dist/core/plugins.js +16 -5
- package/dist/core/queue-drain.js +31 -0
- package/dist/hud/components/learning-counts.js +54 -8
- package/dist/skills/git/references/tracker/github/create-release.md +2 -2
- package/dist/skills/git/references/tracker/github/gather-release-evidence.md +1 -1
- package/dist/skills/git/references/tracker/jira/create-release.md +2 -2
- package/dist/skills/git/references/tracker/jira/gather-release-evidence.md +1 -1
- package/dist/skills/git/references/tracker/linear/create-release.md +2 -2
- package/dist/skills/git/references/tracker/linear/gather-release-evidence.md +1 -1
- package/dist/targets/claude-code/installer.js +36 -9
- package/dist/targets/claude-code/post-install.js +128 -38
- package/package.json +1 -1
- package/src/assets/agents/code.md +85 -35
- package/src/assets/agents/design.md +12 -0
- package/src/assets/agents/diagnose.md +18 -11
- package/src/assets/agents/evaluate.md +17 -24
- package/src/assets/agents/knowledge.md +7 -3
- package/src/assets/agents/learning.md +4 -6
- package/src/assets/agents/research.md +21 -0
- package/src/assets/agents/review.md +12 -0
- package/src/assets/agents/scrutinize.md +37 -9
- package/src/assets/agents/simplify.md +24 -0
- package/src/assets/agents/skim.md +6 -2
- package/src/assets/agents/synthesize.md +18 -0
- package/src/assets/agents/test.md +19 -11
- package/src/assets/agents/triage.md +8 -0
- package/src/assets/agents/validate.md +20 -11
- package/src/assets/commands/_partials/_engine.mds +36 -55
- package/src/assets/commands/_partials/_knowledge.mds +1 -3
- package/src/assets/commands/_partials/_plan_contract.mds +1 -1
- package/src/assets/commands/_partials/_tracker.mds +1 -1
- package/src/assets/commands/_partials/_wave.mds +8 -6
- package/src/assets/commands/code-review.mds +1 -3
- package/src/assets/commands/debug.mds +13 -8
- package/src/assets/commands/dynamic-build.mds +126 -72
- package/src/assets/commands/dynamic-plan.mds +7 -1
- package/src/assets/commands/explore.mds +9 -1
- package/src/assets/commands/implement.mds +147 -141
- package/src/assets/commands/plan.mds +12 -8
- package/src/assets/commands/release.md +8 -2
- package/src/assets/commands/research.mds +8 -2
- package/src/assets/commands/resolve.mds +27 -16
- package/src/assets/commands/self-review.mds +15 -10
- package/src/assets/mds/tracker/_common.mds +1 -1
- package/src/assets/mds/tracker/_github.mds +2 -2
- package/src/assets/mds/tracker/_jira.mds +2 -2
- package/src/assets/mds/tracker/_linear.mds +2 -2
- package/src/assets/scripts/ci-wait.cjs +636 -0
- package/src/assets/scripts/hooks/assets/orchestrator-charter.md +4 -3
- package/src/assets/scripts/hooks/background-memory-update +356 -17
- package/src/assets/scripts/hooks/capture-prompt +4 -3
- package/src/assets/scripts/hooks/capture-question +4 -3
- package/src/assets/scripts/hooks/capture-turn +4 -3
- package/src/assets/scripts/hooks/ensure-devflow-init +13 -1
- package/src/assets/scripts/hooks/ensure-root-gitignore +122 -10
- package/src/assets/scripts/hooks/git-marker +71 -0
- package/src/assets/scripts/hooks/json-helper.cjs +12 -145
- package/src/assets/scripts/hooks/json-parse +24 -129
- package/src/assets/scripts/hooks/lib/learning-store.cjs +169 -64
- package/src/assets/scripts/hooks/lib/render-decisions.cjs +1 -1
- package/src/assets/scripts/hooks/memory-worker +10 -0
- package/src/assets/scripts/hooks/pre-compact-memory +66 -14
- package/src/assets/scripts/hooks/preamble +9 -1
- package/src/assets/scripts/hooks/queue-append +53 -21
- package/src/assets/scripts/hooks/session-start-context +108 -29
- package/src/assets/scripts/hooks/session-start-memory +33 -11
- package/src/assets/scripts/release-trace.cjs +27 -10
- package/src/assets/skills/accessibility/SKILL.md +1 -1
- package/src/assets/skills/apply-decisions/SKILL.md +12 -82
- package/src/assets/skills/apply-feature-knowledge/SKILL.md +8 -42
- package/src/assets/skills/architecture/SKILL.md +1 -1
- package/src/assets/skills/boundary-validation/SKILL.md +1 -1
- package/src/assets/skills/complexity/SKILL.md +1 -1
- package/src/assets/skills/compliance/SKILL.md +1 -1
- package/src/assets/skills/consistency/SKILL.md +1 -1
- package/src/assets/skills/database/SKILL.md +1 -1
- package/src/assets/skills/dependencies/SKILL.md +1 -1
- package/src/assets/skills/dependency-research/SKILL.md +3 -6
- package/src/assets/skills/design-review/SKILL.md +1 -1
- package/src/assets/skills/docs-framework/SKILL.md +1 -1
- package/src/assets/skills/documentation/SKILL.md +1 -1
- package/src/assets/skills/gap-analysis/SKILL.md +1 -1
- package/src/assets/skills/git/SKILL.md +1 -1
- package/src/assets/skills/go/SKILL.md +1 -1
- package/src/assets/skills/java/SKILL.md +1 -1
- package/src/assets/skills/patterns/SKILL.md +1 -1
- package/src/assets/skills/performance/SKILL.md +1 -1
- package/src/assets/skills/python/SKILL.md +1 -1
- package/src/assets/skills/qa/SKILL.md +1 -3
- package/src/assets/skills/quality-gates/SKILL.md +9 -12
- package/src/assets/skills/quality-gates/references/report-template.md +20 -20
- package/src/assets/skills/react/SKILL.md +1 -1
- package/src/assets/skills/regression/SKILL.md +1 -1
- package/src/assets/skills/reliability/SKILL.md +1 -1
- package/src/assets/skills/research-codebase/SKILL.md +1 -1
- package/src/assets/skills/research-competitor/SKILL.md +1 -1
- package/src/assets/skills/research-external/SKILL.md +1 -1
- package/src/assets/skills/research-technology/SKILL.md +1 -1
- package/src/assets/skills/review-methodology/SKILL.md +1 -1
- package/src/assets/skills/rust/SKILL.md +1 -1
- package/src/assets/skills/security/SKILL.md +1 -1
- package/src/assets/skills/software-design/SKILL.md +1 -1
- package/src/assets/skills/test-driven-development/SKILL.md +15 -33
- package/src/assets/skills/testing/SKILL.md +1 -1
- package/src/assets/skills/typescript/SKILL.md +1 -1
- package/src/assets/skills/ui-design/SKILL.md +1 -1
- package/src/assets/skills/worktree-support/SKILL.md +3 -55
- package/src/assets/skills/worktree-support/references/discovery.md +48 -0
- package/src/assets/skills/worktree-support/references/roots.md +2 -2
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: apply-decisions
|
|
3
|
-
description:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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)
|
|
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:
|
|
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.
|
|
15
|
-
>
|
|
16
|
-
>
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
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
|
|
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", "
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
**
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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",
|
|
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",
|
|
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", "
|
|
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",
|
|
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
|
|
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",
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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:
|
|
126
|
-
- Consistency:
|
|
127
|
-
- Documentation: PASS/FIXED
|
|
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:
|
|
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 (
|
|
47
|
+
### P2 Pillars (Documentation only)
|
|
48
48
|
|
|
49
49
|
| Pillar | Status | Notes |
|
|
50
50
|
|--------|--------|-------|
|
|
51
|
-
| Naming |
|
|
52
|
-
| Consistency |
|
|
53
|
-
| Documentation | PASS/FIXED
|
|
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**:
|
|
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 (
|
|
108
|
+
### P2 Pillars (Documentation only)
|
|
109
109
|
|
|
110
110
|
| Pillar | Status | Notes |
|
|
111
111
|
|--------|--------|-------|
|
|
112
|
-
| Naming |
|
|
113
|
-
| Consistency |
|
|
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**:
|
|
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 (
|
|
168
|
+
### P2 Pillars (Documentation only)
|
|
169
169
|
|
|
170
170
|
| Pillar | Status | Notes |
|
|
171
171
|
|--------|--------|-------|
|
|
172
|
-
| Naming |
|
|
173
|
-
| Consistency |
|
|
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**:
|
|
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 |
|
|
237
|
-
|
|
238
|
-
| PASS | No issues found for this pillar |
|
|
239
|
-
| FIXED | Issue found and resolved |
|
|
240
|
-
| SKIP |
|
|
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
|
-
- [ ]
|
|
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", "
|
|
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
|
|
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
|
|
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
|
|
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 —
|
|
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 —
|
|
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
|
|
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
|
|
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
|
---
|