devflow-kit 1.5.0 → 1.6.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 +37 -0
- package/README.md +6 -3
- package/dist/commands/ambient.js +1 -1
- package/dist/commands/init.js +2 -2
- package/dist/plugins.js +23 -23
- package/dist/utils/post-install.js +6 -1
- package/package.json +1 -1
- package/plugins/devflow-accessibility/.claude-plugin/plugin.json +1 -1
- package/plugins/devflow-ambient/.claude-plugin/plugin.json +25 -4
- package/plugins/devflow-ambient/README.md +48 -29
- package/plugins/devflow-ambient/agents/coder.md +135 -0
- package/plugins/devflow-ambient/agents/reviewer.md +165 -0
- package/plugins/devflow-ambient/agents/scrutinizer.md +80 -0
- package/plugins/devflow-ambient/agents/shepherd.md +94 -0
- package/plugins/devflow-ambient/agents/simplifier.md +93 -0
- package/plugins/devflow-ambient/agents/skimmer.md +93 -0
- package/plugins/devflow-ambient/agents/validator.md +86 -0
- package/plugins/devflow-ambient/skills/ambient-router/SKILL.md +72 -28
- package/plugins/devflow-ambient/skills/ambient-router/references/skill-catalog.md +40 -35
- package/plugins/devflow-ambient/skills/debug-orchestration/SKILL.md +69 -0
- package/plugins/devflow-ambient/skills/implementation-orchestration/SKILL.md +92 -0
- package/plugins/devflow-ambient/skills/plan-orchestration/SKILL.md +71 -0
- package/plugins/devflow-audit-claude/.claude-plugin/plugin.json +10 -1
- package/plugins/devflow-audit-claude/commands/audit-claude.md +4 -0
- package/plugins/devflow-code-review/.claude-plugin/plugin.json +2 -1
- package/plugins/devflow-code-review/agents/reviewer.md +10 -9
- package/plugins/devflow-code-review/commands/code-review-teams.md +43 -30
- package/plugins/devflow-code-review/commands/code-review.md +10 -1
- package/plugins/devflow-code-review/skills/knowledge-persistence/SKILL.md +128 -0
- package/plugins/devflow-code-review/skills/knowledge-persistence/references/examples.md +44 -0
- package/plugins/devflow-core-skills/.claude-plugin/plugin.json +1 -1
- package/plugins/devflow-core-skills/skills/docs-framework/SKILL.md +7 -1
- package/plugins/devflow-core-skills/skills/test-driven-development/SKILL.md +6 -5
- package/plugins/devflow-debug/.claude-plugin/plugin.json +5 -3
- package/plugins/devflow-debug/agents/synthesizer.md +211 -0
- package/plugins/devflow-debug/commands/debug-teams.md +28 -14
- package/plugins/devflow-debug/commands/debug.md +26 -12
- package/plugins/devflow-debug/skills/knowledge-persistence/SKILL.md +128 -0
- package/plugins/devflow-debug/skills/knowledge-persistence/references/examples.md +44 -0
- package/plugins/devflow-frontend-design/.claude-plugin/plugin.json +1 -1
- package/plugins/devflow-go/.claude-plugin/plugin.json +1 -1
- package/plugins/devflow-implement/.claude-plugin/plugin.json +2 -1
- package/plugins/devflow-implement/agents/coder.md +6 -1
- package/plugins/devflow-implement/agents/simplifier.md +32 -1
- package/plugins/devflow-implement/agents/skimmer.md +5 -0
- package/plugins/devflow-implement/commands/implement-teams.md +72 -55
- package/plugins/devflow-implement/commands/implement.md +44 -35
- package/plugins/devflow-implement/skills/knowledge-persistence/SKILL.md +128 -0
- package/plugins/devflow-implement/skills/knowledge-persistence/references/examples.md +44 -0
- package/plugins/devflow-java/.claude-plugin/plugin.json +1 -1
- package/plugins/devflow-python/.claude-plugin/plugin.json +1 -1
- package/plugins/devflow-react/.claude-plugin/plugin.json +1 -1
- package/plugins/devflow-resolve/.claude-plugin/plugin.json +4 -3
- package/plugins/devflow-resolve/agents/simplifier.md +32 -1
- package/plugins/devflow-resolve/commands/resolve-teams.md +16 -7
- package/plugins/devflow-resolve/commands/resolve.md +16 -7
- package/plugins/devflow-resolve/skills/knowledge-persistence/SKILL.md +128 -0
- package/plugins/devflow-resolve/skills/knowledge-persistence/references/examples.md +44 -0
- package/plugins/devflow-rust/.claude-plugin/plugin.json +1 -1
- package/plugins/devflow-self-review/.claude-plugin/plugin.json +10 -1
- package/plugins/devflow-self-review/agents/simplifier.md +32 -1
- package/plugins/devflow-self-review/commands/self-review.md +10 -4
- package/plugins/devflow-specify/.claude-plugin/plugin.json +1 -1
- package/plugins/devflow-specify/agents/skimmer.md +5 -0
- package/plugins/devflow-specify/commands/specify-teams.md +27 -20
- package/plugins/devflow-specify/commands/specify.md +26 -19
- package/plugins/devflow-typescript/.claude-plugin/plugin.json +1 -1
- package/scripts/hooks/ambient-prompt +8 -7
- package/scripts/hooks/session-start-memory +33 -3
- package/shared/agents/coder.md +6 -1
- package/shared/agents/reviewer.md +10 -9
- package/shared/agents/simplifier.md +32 -1
- package/shared/agents/skimmer.md +5 -0
- package/shared/skills/ambient-router/SKILL.md +72 -28
- package/shared/skills/ambient-router/references/skill-catalog.md +40 -35
- package/shared/skills/debug-orchestration/SKILL.md +69 -0
- package/shared/skills/docs-framework/SKILL.md +7 -1
- package/shared/skills/implementation-orchestration/SKILL.md +92 -0
- package/shared/skills/knowledge-persistence/SKILL.md +128 -0
- package/shared/skills/knowledge-persistence/references/examples.md +44 -0
- package/shared/skills/plan-orchestration/SKILL.md +71 -0
- package/shared/skills/test-driven-development/SKILL.md +6 -5
- package/plugins/devflow-ambient/commands/ambient.md +0 -110
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-orchestration
|
|
3
|
+
description: Agent orchestration for PLAN intent — codebase orientation, design exploration, gap validation
|
|
4
|
+
user-invocable: false
|
|
5
|
+
allowed-tools: Read, Grep, Glob, Bash, Task, AskUserQuestion
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Plan Orchestration
|
|
9
|
+
|
|
10
|
+
Agent pipeline for PLAN intent in ambient ORCHESTRATED mode. Codebase orientation, targeted exploration, architecture design, and gap validation.
|
|
11
|
+
|
|
12
|
+
This is a lightweight variant of the Plan phase in `/implement` for ambient ORCHESTRATED mode.
|
|
13
|
+
|
|
14
|
+
## Iron Law
|
|
15
|
+
|
|
16
|
+
> **PLANS WITHOUT CODEBASE GROUNDING ARE FANTASIES**
|
|
17
|
+
>
|
|
18
|
+
> Orient before architecting. Every design decision must reference existing patterns,
|
|
19
|
+
> real file structures, and actual integration points. A plan that ignores the codebase
|
|
20
|
+
> will fail on contact with implementation.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Phase 1: Orient
|
|
25
|
+
|
|
26
|
+
Spawn `Task(subagent_type="Skimmer")` to get codebase overview relevant to the planning question:
|
|
27
|
+
|
|
28
|
+
- Existing patterns and conventions in the affected area
|
|
29
|
+
- File structure and module boundaries
|
|
30
|
+
- Test patterns and coverage approach
|
|
31
|
+
- Related prior implementations (similar features, analogous patterns)
|
|
32
|
+
|
|
33
|
+
## Phase 2: Explore
|
|
34
|
+
|
|
35
|
+
Based on Skimmer findings, spawn 2-3 `Task(subagent_type="Explore")` agents **in a single message** (parallel execution):
|
|
36
|
+
|
|
37
|
+
- **Integration explorer**: Examine integration points — APIs, shared types, module boundaries the plan must respect
|
|
38
|
+
- **Pattern explorer**: Find existing implementations of similar features to follow as templates
|
|
39
|
+
- **Constraint explorer**: Identify constraints — test infrastructure, build system, CI requirements, deployment concerns
|
|
40
|
+
|
|
41
|
+
Adjust explorer focus based on the specific planning question.
|
|
42
|
+
|
|
43
|
+
## Phase 3: Design
|
|
44
|
+
|
|
45
|
+
Spawn `Task(subagent_type="Plan")` with combined Skimmer + Explore findings:
|
|
46
|
+
|
|
47
|
+
- Design implementation approach with file-level specificity
|
|
48
|
+
- Reference existing patterns discovered in Phase 1-2
|
|
49
|
+
- Include: architecture decisions, file changes, new files needed, test strategy
|
|
50
|
+
- Flag any areas where existing patterns conflict with the proposed approach
|
|
51
|
+
|
|
52
|
+
## Phase 4: Validate
|
|
53
|
+
|
|
54
|
+
Main session reviews the plan for:
|
|
55
|
+
|
|
56
|
+
- **Gaps**: Missing files, unhandled edge cases, integration points not addressed
|
|
57
|
+
- **Risks**: Areas where the plan deviates from existing patterns, potential regressions
|
|
58
|
+
- **Ambiguities**: Design choices that need user input
|
|
59
|
+
|
|
60
|
+
Present plan to user with identified risks. Use AskUserQuestion for any ambiguous design choices.
|
|
61
|
+
|
|
62
|
+
## Output
|
|
63
|
+
|
|
64
|
+
Structured plan ready to feed into IMPLEMENT/ORCHESTRATED if user proceeds:
|
|
65
|
+
|
|
66
|
+
- Goal and scope
|
|
67
|
+
- Architecture decisions with rationale
|
|
68
|
+
- File-level change list (create/modify/delete)
|
|
69
|
+
- Test strategy
|
|
70
|
+
- Risks and mitigations
|
|
71
|
+
- Open questions (if any)
|
|
@@ -91,7 +91,7 @@ See `references/rationalization-prevention.md` for extended examples with code.
|
|
|
91
91
|
|
|
92
92
|
## Process Enforcement
|
|
93
93
|
|
|
94
|
-
When implementing any feature under ambient
|
|
94
|
+
When implementing any feature under ambient IMPLEMENT/GUIDED or IMPLEMENT/ORCHESTRATED:
|
|
95
95
|
|
|
96
96
|
1. **Identify the first behavior** — What is the simplest thing this feature must do?
|
|
97
97
|
2. **Write the test** — Describe that behavior as a failing test
|
|
@@ -130,7 +130,8 @@ When skipping TDD, never rationalize. State clearly: "Skipping TDD because: [spe
|
|
|
130
130
|
|
|
131
131
|
## Integration with Ambient Mode
|
|
132
132
|
|
|
133
|
-
- **
|
|
134
|
-
- **
|
|
135
|
-
- **
|
|
136
|
-
- **DEBUG/GUIDED** → TDD applies to the fix: write a test that reproduces the bug first, then fix.
|
|
133
|
+
- **IMPLEMENT/GUIDED** → TDD enforced in main session. Write the failing test before production code. Skill loaded directly.
|
|
134
|
+
- **IMPLEMENT/ORCHESTRATED** → TDD enforced via Coder agent (skill in Coder frontmatter). Every implementation gets test-first treatment.
|
|
135
|
+
- **IMPLEMENT/QUICK** → TDD skipped (trivial single-file edit).
|
|
136
|
+
- **DEBUG/GUIDED** → TDD applies to the fix in main session: write a test that reproduces the bug first, then fix.
|
|
137
|
+
- **DEBUG/ORCHESTRATED** → TDD applies to the fix: write a test that reproduces the bug first, then fix.
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Ambient mode — classify intent and auto-load relevant skills for any prompt
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
# Ambient Command
|
|
6
|
-
|
|
7
|
-
Classify user intent and auto-load relevant skills. No agents spawned — enhances the main session only.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
/ambient <prompt> Classify and respond with skill enforcement
|
|
13
|
-
/ambient Show usage
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Phases
|
|
17
|
-
|
|
18
|
-
### Phase 1: Load Router
|
|
19
|
-
|
|
20
|
-
Read the `ambient-router` skill:
|
|
21
|
-
- `~/.claude/skills/ambient-router/SKILL.md`
|
|
22
|
-
|
|
23
|
-
### Phase 2: Classify
|
|
24
|
-
|
|
25
|
-
Apply the ambient-router classification to `$ARGUMENTS`:
|
|
26
|
-
|
|
27
|
-
1. **Intent:** BUILD | DEBUG | REVIEW | PLAN | EXPLORE | CHAT
|
|
28
|
-
2. **Depth:** QUICK | GUIDED | ELEVATE
|
|
29
|
-
|
|
30
|
-
If no arguments provided, output:
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
## Ambient Mode
|
|
34
|
-
|
|
35
|
-
Classify intent and auto-load relevant skills.
|
|
36
|
-
|
|
37
|
-
Usage: /ambient <your prompt>
|
|
38
|
-
|
|
39
|
-
Examples:
|
|
40
|
-
/ambient add a login form → BUILD/GUIDED (loads TDD + implementation-patterns)
|
|
41
|
-
/ambient fix the auth error → DEBUG/GUIDED (loads test-patterns + core-patterns)
|
|
42
|
-
/ambient where is the config? → EXPLORE/QUICK (responds normally)
|
|
43
|
-
/ambient refactor the auth system → BUILD/ELEVATE (suggests /implement)
|
|
44
|
-
|
|
45
|
-
Always-on: devflow ambient --enable
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Then stop.
|
|
49
|
-
|
|
50
|
-
### Phase 3: State Classification
|
|
51
|
-
|
|
52
|
-
- **QUICK:** Skip this phase entirely. Respond directly in Phase 4.
|
|
53
|
-
- **GUIDED:** Output one line: `Ambient: {INTENT}/{DEPTH}. Loading: {skill1}, {skill2}.`
|
|
54
|
-
- **ELEVATE:** Skip — recommendation happens in Phase 4.
|
|
55
|
-
|
|
56
|
-
### Phase 4: Apply
|
|
57
|
-
|
|
58
|
-
**QUICK:**
|
|
59
|
-
Respond to the user's prompt normally. Zero skill loading. Zero overhead.
|
|
60
|
-
|
|
61
|
-
**GUIDED:**
|
|
62
|
-
Read the selected skills based on the ambient-router's skill selection matrix:
|
|
63
|
-
|
|
64
|
-
| Intent | Primary Skills | Secondary (conditional) |
|
|
65
|
-
|--------|---------------|------------------------|
|
|
66
|
-
| BUILD | test-driven-development, implementation-patterns | typescript (.ts), react (.tsx), frontend-design (CSS/UI), input-validation (forms/API), security-patterns (auth/crypto) |
|
|
67
|
-
| DEBUG | test-patterns, core-patterns | git-safety (if git ops) |
|
|
68
|
-
| REVIEW | self-review, core-patterns | test-patterns |
|
|
69
|
-
| PLAN | implementation-patterns | core-patterns |
|
|
70
|
-
|
|
71
|
-
Read up to 3 skills from `~/.claude/skills/{name}/SKILL.md`. Apply their patterns and constraints when responding to the user's prompt.
|
|
72
|
-
|
|
73
|
-
For BUILD intent: enforce RED-GREEN-REFACTOR from test-driven-development. Write failing tests before production code.
|
|
74
|
-
|
|
75
|
-
**ELEVATE:**
|
|
76
|
-
Respond to the user's prompt with your best effort, then append:
|
|
77
|
-
|
|
78
|
-
> This task spans multiple files/systems. Consider `/implement` for full lifecycle management (exploration → planning → implementation → review).
|
|
79
|
-
|
|
80
|
-
## Architecture
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
/ambient <prompt> (main session, no agents)
|
|
84
|
-
│
|
|
85
|
-
├─ Phase 1: Load ambient-router skill
|
|
86
|
-
├─ Phase 2: Classify intent + depth
|
|
87
|
-
├─ Phase 3: State classification (GUIDED only)
|
|
88
|
-
└─ Phase 4: Apply
|
|
89
|
-
├─ QUICK → respond directly
|
|
90
|
-
├─ GUIDED → load 2-3 skills, apply patterns, respond
|
|
91
|
-
└─ ELEVATE → respond + workflow nudge
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Edge Cases
|
|
95
|
-
|
|
96
|
-
| Case | Handling |
|
|
97
|
-
|------|----------|
|
|
98
|
-
| No arguments | Show usage and stop |
|
|
99
|
-
| Single word ("help") | Classify — likely CHAT/QUICK |
|
|
100
|
-
| Prompt references `/implement` etc. | Classify as normal — user chose /ambient intentionally |
|
|
101
|
-
| Mixed intent ("fix and add test") | Use higher-overhead intent (BUILD > DEBUG) |
|
|
102
|
-
| User says "no enforcement" | Respect immediately — treat as QUICK |
|
|
103
|
-
|
|
104
|
-
## Principles
|
|
105
|
-
|
|
106
|
-
1. **No agents** — Ambient enhances the main session, never spawns subagents
|
|
107
|
-
2. **Proportional** — QUICK gets zero overhead, GUIDED gets 2-3 skills, ELEVATE gets a nudge
|
|
108
|
-
3. **Transparent** — State classification for GUIDED/ELEVATE, silent for QUICK
|
|
109
|
-
4. **Respectful** — Never over-classify; when in doubt, go one tier lower
|
|
110
|
-
5. **TDD for BUILD** — GUIDED depth BUILD tasks enforce test-first workflow
|