@mthanhlm/autodev 0.4.3 → 0.5.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/.claude-plugin/plugin.json +2 -2
- package/PUBLISH.md +9 -40
- package/README.md +70 -91
- package/autodev/bin/autodev-tools.cjs +587 -811
- package/autodev/templates/brief.md +19 -0
- package/autodev/templates/context.md +16 -0
- package/autodev/templates/plan.md +26 -46
- package/autodev/templates/run.md +20 -0
- package/bin/install.js +229 -342
- package/commands/autodev/index.md +117 -9
- package/commands/autodev/status.md +22 -0
- package/hooks/autodev-auto-format.js +3 -3
- package/hooks/autodev-git-guard.js +5 -7
- package/hooks/autodev-paths.js +3 -3
- package/package.json +4 -5
- package/scripts/run-tests.cjs +10 -0
- package/agents/autodev-codebase-domain.md +0 -25
- package/agents/autodev-codebase-quality.md +0 -25
- package/agents/autodev-codebase-runtime.md +0 -25
- package/agents/autodev-codebase-structure.md +0 -25
- package/agents/autodev-review-integration.md +0 -30
- package/agents/autodev-review-polish.md +0 -30
- package/agents/autodev-review-quality.md +0 -30
- package/agents/autodev-review-security.md +0 -30
- package/agents/autodev-task-worker.md +0 -39
- package/autodev/templates/codebase/domain.md +0 -13
- package/autodev/templates/codebase/quality.md +0 -13
- package/autodev/templates/codebase/runtime.md +0 -13
- package/autodev/templates/codebase/structure.md +0 -13
- package/autodev/templates/codebase/summary.md +0 -13
- package/autodev/templates/config.json +0 -22
- package/autodev/templates/project-state.md +0 -13
- package/autodev/templates/project.md +0 -24
- package/autodev/templates/requirements.md +0 -14
- package/autodev/templates/review.md +0 -27
- package/autodev/templates/roadmap.md +0 -17
- package/autodev/templates/state.md +0 -13
- package/autodev/templates/summary.md +0 -22
- package/autodev/templates/task-summary.md +0 -18
- package/autodev/templates/task.md +0 -23
- package/autodev/templates/track-state.md +0 -14
- package/autodev/templates/track.md +0 -24
- package/autodev/templates/uat.md +0 -18
- package/autodev/workflows/autodev.md +0 -79
- package/autodev/workflows/cleanup.md +0 -51
- package/autodev/workflows/execute-phase.md +0 -127
- package/autodev/workflows/explore-codebase.md +0 -66
- package/autodev/workflows/help.md +0 -110
- package/autodev/workflows/new-project.md +0 -101
- package/autodev/workflows/plan-phase.md +0 -126
- package/autodev/workflows/progress.md +0 -18
- package/autodev/workflows/review-phase.md +0 -73
- package/autodev/workflows/review-plan.md +0 -55
- package/autodev/workflows/review-task.md +0 -70
- package/autodev/workflows/verify-work.md +0 -57
- package/commands/autodev/cleanup.md +0 -23
- package/commands/autodev/execute-phase.md +0 -29
- package/commands/autodev/explore-codebase.md +0 -33
- package/commands/autodev/help.md +0 -18
- package/commands/autodev/new-project.md +0 -30
- package/commands/autodev/plan-phase.md +0 -26
- package/commands/autodev/progress.md +0 -18
- package/commands/autodev/review-phase.md +0 -29
- package/commands/autodev/review-task.md +0 -25
- package/commands/autodev/verify-work.md +0 -24
- package/hooks/autodev-context-monitor.js +0 -59
- package/hooks/autodev-phase-boundary.sh +0 -49
- package/hooks/autodev-prompt-guard.js +0 -55
- package/hooks/autodev-read-guard.js +0 -42
- package/hooks/autodev-session-state.sh +0 -51
- package/hooks/autodev-statusline.js +0 -78
- package/hooks/autodev-workflow-guard.js +0 -43
- package/hooks/hooks.json +0 -89
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Initialize `.autodev/` with useful project-level context, then create the first active track. Prefer fast clarity over exhaustive ceremonies.
|
|
3
|
-
</purpose>
|
|
4
|
-
|
|
5
|
-
<rules>
|
|
6
|
-
- Do not run `git init`, `git add`, `git commit`, `git checkout`, `git switch`, `git merge`, `git rebase`, `git worktree`, `git push`, `git pull`, `git stash`, `git reset`, `git fetch`, or `git clone`.
|
|
7
|
-
- Git is read-only only.
|
|
8
|
-
- Use concise questioning, but do a short discovery pass before writing project state.
|
|
9
|
-
- Ask only for details that materially change requirements or roadmap.
|
|
10
|
-
- Treat the repository as a `project`, then put the current initiative in a `track`.
|
|
11
|
-
</rules>
|
|
12
|
-
|
|
13
|
-
<process>
|
|
14
|
-
1. Run:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
18
|
-
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init new-project
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
2. If `.autodev/PROJECT.md` already exists, stop and tell the user to use `/autodev`.
|
|
22
|
-
|
|
23
|
-
3. Do a short discovery pass before writing project or track files.
|
|
24
|
-
- If the current prompt is thin, ask for:
|
|
25
|
-
- what the user wants to build or change right now
|
|
26
|
-
- who it is for or what pain it solves
|
|
27
|
-
- what done looks like for the first track
|
|
28
|
-
- scope boundaries, constraints, and explicit non-goals that materially affect planning
|
|
29
|
-
- whether this is greenfield or brownfield if ambiguous
|
|
30
|
-
- Prefer one compact batch of questions over a long drip of follow-ups.
|
|
31
|
-
- Reflect the understanding back in 2-5 bullets before writing files when the original request was vague.
|
|
32
|
-
|
|
33
|
-
4. Read the templates from the execution context.
|
|
34
|
-
|
|
35
|
-
5. Create `.autodev/config.json` from the template with these defaults unless the user explicitly asks otherwise:
|
|
36
|
-
- `project.type: "greenfield"` or `"brownfield"`
|
|
37
|
-
- `workflow.research: false`
|
|
38
|
-
- `workflow.review_after_execute: true`
|
|
39
|
-
- `git.mode: "read-only"`
|
|
40
|
-
- `hooks.auto_format: true`
|
|
41
|
-
|
|
42
|
-
6. Write `.autodev/PROJECT.md` with:
|
|
43
|
-
- one-line summary
|
|
44
|
-
- project type
|
|
45
|
-
- repo or product problem
|
|
46
|
-
- current user goal or job to be done
|
|
47
|
-
- users or operators
|
|
48
|
-
- success criteria
|
|
49
|
-
- constraints
|
|
50
|
-
- non-goals
|
|
51
|
-
|
|
52
|
-
7. Create `.autodev/ACTIVE_TRACK` with a lowercase hyphenated slug for the first track.
|
|
53
|
-
|
|
54
|
-
8. Write `.autodev/STATE.md` with:
|
|
55
|
-
- `Project Type: ...`
|
|
56
|
-
- `Active Track: <slug>`
|
|
57
|
-
- `Current Step: initialized`
|
|
58
|
-
- `Current Task: none`
|
|
59
|
-
- `Current Task Status: idle`
|
|
60
|
-
- `Status: active`
|
|
61
|
-
- `Next Command: /autodev`
|
|
62
|
-
- current ISO timestamp
|
|
63
|
-
|
|
64
|
-
9. Create `.autodev/tracks/<slug>/TRACK.md` with:
|
|
65
|
-
- track name
|
|
66
|
-
- type or workstream shape
|
|
67
|
-
- why this track exists now
|
|
68
|
-
- desired outcome and what done looks like
|
|
69
|
-
- scope boundaries and explicit non-goals
|
|
70
|
-
- known dependencies
|
|
71
|
-
- brownfield notes if this is an existing repo
|
|
72
|
-
|
|
73
|
-
10. Write `.autodev/tracks/<slug>/REQUIREMENTS.md` with clear must-have requirements and acceptance bullets for the track only.
|
|
74
|
-
Tie the acceptance bullets to the discovered outcome instead of placeholder implementation tasks.
|
|
75
|
-
|
|
76
|
-
11. Write `.autodev/tracks/<slug>/ROADMAP.md` with 2-8 phases using this exact heading format:
|
|
77
|
-
|
|
78
|
-
```text
|
|
79
|
-
## Phase N [type]: Name
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Each phase must include:
|
|
83
|
-
- `Status: pending`
|
|
84
|
-
- `Goal: ...`
|
|
85
|
-
- `Deliverables:`
|
|
86
|
-
- `Risks:`
|
|
87
|
-
|
|
88
|
-
12. Write `.autodev/tracks/<slug>/STATE.md` with:
|
|
89
|
-
- `Current Phase: 1`
|
|
90
|
-
- `Current Phase Type: <type>`
|
|
91
|
-
- `Current Step: planning`
|
|
92
|
-
- `Current Task: none`
|
|
93
|
-
- `Current Task Status: idle`
|
|
94
|
-
- `Status: active`
|
|
95
|
-
- `Next Command: /autodev`
|
|
96
|
-
- current ISO timestamp
|
|
97
|
-
|
|
98
|
-
13. If the project is brownfield, do not fake a codebase map. Continue into codebase exploration inside `/autodev` by default. Mention `/autodev-explore-codebase` only as a manual shortcut. Otherwise, the next step is planning phase 1 through `/autodev`.
|
|
99
|
-
|
|
100
|
-
14. End with a short summary of what the user wants to build or change and direct the user to `/autodev`. Mention the manual shortcut only if useful.
|
|
101
|
-
</process>
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Create one practical phase plan for the active track, then break it into reviewable task files that are small enough for fresh foreground-agent execution.
|
|
3
|
-
</purpose>
|
|
4
|
-
|
|
5
|
-
<rules>
|
|
6
|
-
- One plan file per phase: `NN-PLAN.md`.
|
|
7
|
-
- Use task files as the execution unit.
|
|
8
|
-
- Prefer direct action over deep orchestration.
|
|
9
|
-
- Optional research is allowed only when the user asks for it or `workflow.research` is true.
|
|
10
|
-
- Never include git write commands in the plan.
|
|
11
|
-
- Do not use waves by default.
|
|
12
|
-
- When revising a blocked phase, preserve the same phase, the same phase goal, and all completed task history.
|
|
13
|
-
</rules>
|
|
14
|
-
|
|
15
|
-
<process>
|
|
16
|
-
1. Run:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
20
|
-
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init plan-phase "$ARGUMENTS"
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
2. If there is no active track or no roadmap for it, stop and tell the user to run `/autodev`.
|
|
24
|
-
|
|
25
|
-
3. If no phase is found, tell the user all phases already have plans and show `/autodev-progress`.
|
|
26
|
-
|
|
27
|
-
4. Read:
|
|
28
|
-
- `.autodev/PROJECT.md`
|
|
29
|
-
- `.autodev/STATE.md`
|
|
30
|
-
- `.autodev/codebase/summary.md` if it exists
|
|
31
|
-
- `.autodev/tracks/<active-track>/TRACK.md`
|
|
32
|
-
- `.autodev/tracks/<active-track>/REQUIREMENTS.md`
|
|
33
|
-
- `.autodev/tracks/<active-track>/ROADMAP.md`
|
|
34
|
-
- `.autodev/tracks/<active-track>/STATE.md`
|
|
35
|
-
- the target phase section
|
|
36
|
-
- any existing `TASK-*.md`
|
|
37
|
-
- any existing `TASK-*-SUMMARY.md`
|
|
38
|
-
- `NN-REVIEW.md` if it exists
|
|
39
|
-
- `NN-UAT.md` if it exists
|
|
40
|
-
- any existing code relevant to this phase
|
|
41
|
-
|
|
42
|
-
5. If research is enabled or explicitly requested, do targeted read-only research only. Keep the output folded into the plan instead of producing a separate research artifact.
|
|
43
|
-
|
|
44
|
-
6. Create the phase directory if missing:
|
|
45
|
-
|
|
46
|
-
```text
|
|
47
|
-
.autodev/tracks/<active-track>/phases/NN-type-name/
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
7. Write or update `NN-PLAN.md` from the template. The plan must include:
|
|
51
|
-
- phase type
|
|
52
|
-
- goal
|
|
53
|
-
- shared verification commands
|
|
54
|
-
- task list overview
|
|
55
|
-
- explicit git read-only reminder
|
|
56
|
-
|
|
57
|
-
8. If this phase is being reopened because of `blocked_review`, `blocked_verification`, `blocked_dependencies`, or another blocker status:
|
|
58
|
-
- keep the same phase directory and phase goal
|
|
59
|
-
- do not create a new phase for ordinary blockers
|
|
60
|
-
- do not delete or rewrite completed task summaries
|
|
61
|
-
- do not renumber completed tasks
|
|
62
|
-
- preserve already-completed task rows in the phase plan
|
|
63
|
-
- append new remediation tasks after `last_task_number`
|
|
64
|
-
- default to one appended remediation task when the blockers are tightly related
|
|
65
|
-
- split into multiple appended remediation tasks only when the blockers are clearly separate
|
|
66
|
-
- only rewrite still-pending tasks when that improves clarity
|
|
67
|
-
- make the new task titles explicit, for example:
|
|
68
|
-
- `TASK-03: Fix review blockers from 01-REVIEW.md`
|
|
69
|
-
- `TASK-04: Fix verification gaps from 01-UAT.md`
|
|
70
|
-
|
|
71
|
-
9. Create or update task files in the same phase directory:
|
|
72
|
-
|
|
73
|
-
```text
|
|
74
|
-
TASK-01.md
|
|
75
|
-
TASK-02.md
|
|
76
|
-
...
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
Each task should be:
|
|
80
|
-
- small enough for one fresh delegated agent context
|
|
81
|
-
- clear about likely files to touch
|
|
82
|
-
- explicit about verification
|
|
83
|
-
- reviewable as a standalone unit
|
|
84
|
-
- sequential by default unless there is an obvious safe dependency split
|
|
85
|
-
|
|
86
|
-
Each task file must include:
|
|
87
|
-
- task title
|
|
88
|
-
- `Status: pending`
|
|
89
|
-
- `Depends On: ...`
|
|
90
|
-
- goal
|
|
91
|
-
- why it is separate
|
|
92
|
-
- files likely to change
|
|
93
|
-
- implementation notes
|
|
94
|
-
- verification
|
|
95
|
-
- done looks like
|
|
96
|
-
|
|
97
|
-
10. When revising a blocked phase:
|
|
98
|
-
- point `Current Task` to the first still-pending executable task after the revision
|
|
99
|
-
- if all existing tasks are completed and you add remediation work, `Current Task` should be the first newly appended fix task
|
|
100
|
-
- never reset `Current Task` back to `01` just because the phase was replanned
|
|
101
|
-
|
|
102
|
-
11. Update the active track `STATE.md` so it points to:
|
|
103
|
-
- `Current Phase: N`
|
|
104
|
-
- `Current Phase Type: <type>`
|
|
105
|
-
- `Current Step: plan_review`
|
|
106
|
-
- `Current Task: <first-pending-task>` if tasks exist, otherwise `none`
|
|
107
|
-
- `Current Task Status: pending_review`
|
|
108
|
-
- `Next Command: /autodev`
|
|
109
|
-
- current ISO timestamp
|
|
110
|
-
|
|
111
|
-
12. Update `.autodev/STATE.md` so it points to:
|
|
112
|
-
- `Active Track: <slug>`
|
|
113
|
-
- `Current Step: plan_review`
|
|
114
|
-
- `Current Task: <first-pending-task>` if tasks exist, otherwise `none`
|
|
115
|
-
- `Current Task Status: pending_review`
|
|
116
|
-
- `Next Command: /autodev`
|
|
117
|
-
- current ISO timestamp
|
|
118
|
-
|
|
119
|
-
13. End with a short summary and stop for review.
|
|
120
|
-
Tell the user:
|
|
121
|
-
- the plan and task files are ready for review
|
|
122
|
-
- completed task history from the phase was preserved
|
|
123
|
-
- any blocker remediation was added as appended task work inside the same phase
|
|
124
|
-
- `/autodev` will open the review checkpoint before any execution starts
|
|
125
|
-
- `/autodev-execute-phase N` is only the optional manual bypass after review
|
|
126
|
-
</process>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Render the current autodev status with no extra ceremony.
|
|
3
|
-
</purpose>
|
|
4
|
-
|
|
5
|
-
<process>
|
|
6
|
-
1. Run:
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
10
|
-
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" progress table
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
2. Output the table directly.
|
|
14
|
-
|
|
15
|
-
3. If a project exists, add one short line after the table with:
|
|
16
|
-
- `/autodev` as the default next command
|
|
17
|
-
- the routed manual shortcut from the table only when useful
|
|
18
|
-
</process>
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Run the automatic review bundle after execution so the user sees code quality, security, integration, and polish risks before manual verification.
|
|
3
|
-
</purpose>
|
|
4
|
-
|
|
5
|
-
<rules>
|
|
6
|
-
- Prefer a small set of foreground review agents, run one at a time, when agent delegation is available.
|
|
7
|
-
- Review findings should be concrete and evidence-based.
|
|
8
|
-
- Do not edit repository code in this step unless the user explicitly asks for fixes.
|
|
9
|
-
- Write one consolidated review artifact for the phase.
|
|
10
|
-
</rules>
|
|
11
|
-
|
|
12
|
-
<process>
|
|
13
|
-
1. Run:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
17
|
-
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init review-phase "$ARGUMENTS"
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
2. If no executed phase is found, stop and direct the user to `/autodev-execute-phase`.
|
|
21
|
-
|
|
22
|
-
3. Read:
|
|
23
|
-
- `.autodev/STATE.md`
|
|
24
|
-
- the active track `STATE.md`
|
|
25
|
-
- `NN-PLAN.md`
|
|
26
|
-
- all `TASK-*.md`
|
|
27
|
-
- all `TASK-*-SUMMARY.md`
|
|
28
|
-
- `NN-SUMMARY.md`
|
|
29
|
-
- relevant source files and tests
|
|
30
|
-
|
|
31
|
-
4. If agent delegation is available, explicitly call the `Agent` tool for these review subagents, one at a time in the foreground:
|
|
32
|
-
- `autodev-review-quality` for standalone installs, or `autodev:autodev-review-quality` in direct plugin runs
|
|
33
|
-
- `autodev-review-security` for standalone installs, or `autodev:autodev-review-security` in direct plugin runs
|
|
34
|
-
- `autodev-review-integration` for standalone installs, or `autodev:autodev-review-integration` in direct plugin runs
|
|
35
|
-
- `autodev-review-polish` for standalone installs, or `autodev:autodev-review-polish` in direct plugin runs
|
|
36
|
-
|
|
37
|
-
5. Tell each review agent:
|
|
38
|
-
- it is not alone in the codebase
|
|
39
|
-
- it should stay read-only and return findings only
|
|
40
|
-
- it should focus on clear issues, not generic commentary
|
|
41
|
-
- it should report severity, evidence, and suggested action
|
|
42
|
-
|
|
43
|
-
6. If agent delegation is unavailable, do not stop on the raw platform message.
|
|
44
|
-
Treat messages like `specialized agents aren't available` as an environment limitation, tell the user review will continue in the current session, and perform the same review pass directly using the four lenses:
|
|
45
|
-
- quality
|
|
46
|
-
- security
|
|
47
|
-
- integration
|
|
48
|
-
- product polish
|
|
49
|
-
|
|
50
|
-
7. Synthesize the four agent responses, or the current-session four-lens review, into `NN-REVIEW.md` from the template with:
|
|
51
|
-
- grouped findings
|
|
52
|
-
- blockers vs non-blockers
|
|
53
|
-
- what looks solid
|
|
54
|
-
- a final recommendation
|
|
55
|
-
|
|
56
|
-
8. If blockers are found:
|
|
57
|
-
- set project and track state back to `Current Step: planning`
|
|
58
|
-
- set `Current Task: none`
|
|
59
|
-
- set `Current Task Status: blocked_review`
|
|
60
|
-
- keep `Next Command: /autodev`
|
|
61
|
-
- make the recommendation point back to revising the same phase with appended blocker-fix tasks
|
|
62
|
-
- do not recommend creating a new phase for ordinary review blockers
|
|
63
|
-
- preserve completed task history and phase goal
|
|
64
|
-
|
|
65
|
-
9. If blockers are not found:
|
|
66
|
-
- set project and track state to `Current Step: verification`
|
|
67
|
-
- keep `Next Command: /autodev`
|
|
68
|
-
|
|
69
|
-
10. End with a short review result:
|
|
70
|
-
- ready for verification, or
|
|
71
|
-
- return to execution
|
|
72
|
-
- include the manual shortcut command
|
|
73
|
-
</process>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Pause after phase planning so the user can review the generated plan and task breakdown before any execution starts.
|
|
3
|
-
</purpose>
|
|
4
|
-
|
|
5
|
-
<rules>
|
|
6
|
-
- Do not start task execution automatically from a freshly created plan.
|
|
7
|
-
- Keep this as a control checkpoint for the user.
|
|
8
|
-
- Do not edit repository code in this step unless the user explicitly chooses to revise the plan.
|
|
9
|
-
- Prefer `/autodev` as the entrypoint even at this checkpoint.
|
|
10
|
-
</rules>
|
|
11
|
-
|
|
12
|
-
<process>
|
|
13
|
-
1. Run:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
17
|
-
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init review-plan "$ARGUMENTS"
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
2. If no planned phase is found, stop and direct the user to `/autodev`.
|
|
21
|
-
|
|
22
|
-
3. Read:
|
|
23
|
-
- `.autodev/STATE.md`
|
|
24
|
-
- the active track `STATE.md`
|
|
25
|
-
- `NN-PLAN.md`
|
|
26
|
-
- all `TASK-*.md`
|
|
27
|
-
|
|
28
|
-
4. Show the user a concise review summary:
|
|
29
|
-
- phase id and phase goal
|
|
30
|
-
- task list with dependencies
|
|
31
|
-
- likely files or areas to change
|
|
32
|
-
- shared verification plan
|
|
33
|
-
|
|
34
|
-
5. Ask the user what to do next with `AskUserQuestion`:
|
|
35
|
-
- execute one task now
|
|
36
|
-
- revise the phase plan
|
|
37
|
-
- stop here
|
|
38
|
-
|
|
39
|
-
6. If the user chooses to execute now:
|
|
40
|
-
- load the execute-phase workflow
|
|
41
|
-
- perform exactly one task in the same turn
|
|
42
|
-
- stop after that task completes
|
|
43
|
-
|
|
44
|
-
7. If the user chooses to revise the plan:
|
|
45
|
-
- load the plan-phase workflow
|
|
46
|
-
- revise the same phase in the same turn
|
|
47
|
-
|
|
48
|
-
8. If the user chooses to stop here:
|
|
49
|
-
- keep both state files on:
|
|
50
|
-
- `Current Step: plan_review`
|
|
51
|
-
- `Next Command: /autodev`
|
|
52
|
-
- end with a short note that execution has not started yet
|
|
53
|
-
|
|
54
|
-
9. End with a short outcome summary and `/autodev` as the default next command.
|
|
55
|
-
</process>
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Pause after one completed task so the user can review the outcome before more execution happens in the same phase.
|
|
3
|
-
</purpose>
|
|
4
|
-
|
|
5
|
-
<rules>
|
|
6
|
-
- This is a control checkpoint, not an execution step.
|
|
7
|
-
- Do not auto-run the next task from this checkpoint without explicit user approval.
|
|
8
|
-
- Prefer `/autodev` as the entrypoint even at this checkpoint.
|
|
9
|
-
- If all tasks are done, do not auto-start phase review without explicit user approval.
|
|
10
|
-
</rules>
|
|
11
|
-
|
|
12
|
-
<process>
|
|
13
|
-
1. Run:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
17
|
-
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init review-task "$ARGUMENTS"
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
2. If no phase is found, stop and direct the user to `/autodev`.
|
|
21
|
-
|
|
22
|
-
3. Read:
|
|
23
|
-
- `.autodev/STATE.md`
|
|
24
|
-
- the active track `STATE.md`
|
|
25
|
-
- `NN-PLAN.md`
|
|
26
|
-
- all `TASK-*.md`
|
|
27
|
-
- the current task summary from `current_task_summary_path`
|
|
28
|
-
- if `Current Task` is missing or stale, infer the checkpoint task from the most recent existing `TASK-*-SUMMARY.md`
|
|
29
|
-
- `NN-SUMMARY.md` if it exists
|
|
30
|
-
|
|
31
|
-
4. Show the user a concise checkpoint summary:
|
|
32
|
-
- completed task id and title
|
|
33
|
-
- what changed
|
|
34
|
-
- verification run
|
|
35
|
-
- blockers or open concerns
|
|
36
|
-
- the next ready task, if any
|
|
37
|
-
|
|
38
|
-
5. If more tasks remain, ask the user what to do next with `AskUserQuestion`:
|
|
39
|
-
- execute the next task now
|
|
40
|
-
- revise the phase plan
|
|
41
|
-
- stop here
|
|
42
|
-
|
|
43
|
-
6. If all tasks are done, ask the user what to do next with `AskUserQuestion`:
|
|
44
|
-
- run phase review now
|
|
45
|
-
- revise the phase plan
|
|
46
|
-
- stop here
|
|
47
|
-
|
|
48
|
-
7. If the user chooses to execute the next task:
|
|
49
|
-
- load the execute-phase workflow
|
|
50
|
-
- perform exactly one task in the same turn
|
|
51
|
-
- stop again after that task completes
|
|
52
|
-
|
|
53
|
-
8. If the user chooses to run phase review:
|
|
54
|
-
- load the review-phase workflow
|
|
55
|
-
- perform it in the same turn
|
|
56
|
-
|
|
57
|
-
9. If the user chooses to revise the plan:
|
|
58
|
-
- load the plan-phase workflow
|
|
59
|
-
- revise the same phase in the same turn
|
|
60
|
-
|
|
61
|
-
10. If the user chooses to stop here:
|
|
62
|
-
- keep both state files on:
|
|
63
|
-
- `Current Step: task_review`
|
|
64
|
-
- `Current Task: <current-task>`
|
|
65
|
-
- `Current Task Status: complete`
|
|
66
|
-
- `Next Command: /autodev`
|
|
67
|
-
- end with a short note that no further execution has started
|
|
68
|
-
|
|
69
|
-
11. End with a short outcome summary and `/autodev` as the default next command.
|
|
70
|
-
</process>
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<purpose>
|
|
2
|
-
Run lightweight user acceptance testing after review and keep the next action obvious, including a clean fix-return path when verification fails.
|
|
3
|
-
</purpose>
|
|
4
|
-
|
|
5
|
-
<rules>
|
|
6
|
-
- Verify against what the phase plan, summary, and review claim.
|
|
7
|
-
- Keep the interaction concise and test-oriented.
|
|
8
|
-
- Do not auto-generate a new plan unless a real gap appears.
|
|
9
|
-
- Verification failures should normally reopen the same phase with appended remediation tasks, not create a new phase.
|
|
10
|
-
</rules>
|
|
11
|
-
|
|
12
|
-
<process>
|
|
13
|
-
1. Run:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
17
|
-
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init verify-work "$ARGUMENTS"
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
2. If no reviewed phase is found, stop and direct the user to `/autodev-review-phase`.
|
|
21
|
-
|
|
22
|
-
3. Read:
|
|
23
|
-
- `NN-PLAN.md`
|
|
24
|
-
- all `TASK-*.md`
|
|
25
|
-
- all `TASK-*-SUMMARY.md`
|
|
26
|
-
- `NN-SUMMARY.md`
|
|
27
|
-
- `NN-REVIEW.md`
|
|
28
|
-
- relevant code or UI files
|
|
29
|
-
|
|
30
|
-
4. Present a short manual verification flow. Keep it one check at a time when user input is needed.
|
|
31
|
-
|
|
32
|
-
5. Write or update `NN-UAT.md` from the template with:
|
|
33
|
-
- test cases
|
|
34
|
-
- results
|
|
35
|
-
- bugs or follow-up
|
|
36
|
-
- recommended next step
|
|
37
|
-
|
|
38
|
-
6. If verification fails, add a `Fix Return` section to `NN-UAT.md` with:
|
|
39
|
-
- exact failed behaviors
|
|
40
|
-
- reproduction notes
|
|
41
|
-
- the smallest acceptable fix target
|
|
42
|
-
- a note that the follow-up should be appended to the same phase as remediation task work unless scope truly changed
|
|
43
|
-
|
|
44
|
-
7. Update the active track `STATE.md`:
|
|
45
|
-
- if verification passed and another phase remains, move to the next phase and set `Current Step: planning`
|
|
46
|
-
- if verification passed and no phase remains, set `Current Step: complete`
|
|
47
|
-
- if verification failed, keep the same phase active and set `Current Step: planning`
|
|
48
|
-
- when moving to another phase, set `Current Task: none` and `Current Task Status: idle`
|
|
49
|
-
- when verification failed, set `Current Task: none` and `Current Task Status: blocked_verification`
|
|
50
|
-
- always set `Next Command: /autodev`
|
|
51
|
-
- always refresh the ISO timestamp
|
|
52
|
-
- when verification failed, the next planning pass should preserve completed tasks and append remediation tasks to the same phase
|
|
53
|
-
|
|
54
|
-
8. Update `.autodev/STATE.md` with the matching project-level status and refreshed timestamp.
|
|
55
|
-
|
|
56
|
-
9. End with the verification result and the next command. Mention the manual shortcut only if it helps.
|
|
57
|
-
</process>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: autodev:cleanup
|
|
3
|
-
description: Clean or archive autodev state with an interactive prompt
|
|
4
|
-
allowed-tools:
|
|
5
|
-
- Read
|
|
6
|
-
- Write
|
|
7
|
-
- Edit
|
|
8
|
-
- Bash
|
|
9
|
-
- AskUserQuestion
|
|
10
|
-
- Grep
|
|
11
|
-
- Glob
|
|
12
|
-
---
|
|
13
|
-
<objective>
|
|
14
|
-
Offer interactive cleanup choices for `.autodev/`, with archive-first behavior.
|
|
15
|
-
</objective>
|
|
16
|
-
|
|
17
|
-
<execution_context>
|
|
18
|
-
@~/.claude/autodev/workflows/cleanup.md
|
|
19
|
-
</execution_context>
|
|
20
|
-
|
|
21
|
-
<process>
|
|
22
|
-
Execute the workflow in @~/.claude/autodev/workflows/cleanup.md end-to-end.
|
|
23
|
-
</process>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: autodev:execute-phase
|
|
3
|
-
description: Execute exactly one active-track task at a time, preferring a fresh foreground agent with clean fallback when unavailable
|
|
4
|
-
argument-hint: "[phase-number]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Grep
|
|
11
|
-
- Glob
|
|
12
|
-
- TodoWrite
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
- Agent
|
|
15
|
-
---
|
|
16
|
-
<objective>
|
|
17
|
-
Execute exactly one task-sized unit for the active phase, then stop at the post-task checkpoint.
|
|
18
|
-
</objective>
|
|
19
|
-
|
|
20
|
-
<execution_context>
|
|
21
|
-
@~/.claude/autodev/workflows/execute-phase.md
|
|
22
|
-
@~/.claude/autodev/templates/summary.md
|
|
23
|
-
@~/.claude/autodev/templates/task-summary.md
|
|
24
|
-
@~/.claude/autodev/agents/autodev-task-worker.md
|
|
25
|
-
</execution_context>
|
|
26
|
-
|
|
27
|
-
<process>
|
|
28
|
-
Execute the workflow in @~/.claude/autodev/workflows/execute-phase.md end-to-end.
|
|
29
|
-
</process>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: autodev:explore-codebase
|
|
3
|
-
description: Map an existing codebase, preferring foreground delegated agents with clean fallback when unavailable
|
|
4
|
-
allowed-tools:
|
|
5
|
-
- Read
|
|
6
|
-
- Write
|
|
7
|
-
- Edit
|
|
8
|
-
- Bash
|
|
9
|
-
- Grep
|
|
10
|
-
- Glob
|
|
11
|
-
- AskUserQuestion
|
|
12
|
-
- Agent
|
|
13
|
-
---
|
|
14
|
-
<objective>
|
|
15
|
-
Explore the current repository, use foreground codebase agents when available, and write the brownfield map into `.autodev/codebase/`.
|
|
16
|
-
</objective>
|
|
17
|
-
|
|
18
|
-
<execution_context>
|
|
19
|
-
@~/.claude/autodev/workflows/explore-codebase.md
|
|
20
|
-
@~/.claude/autodev/templates/codebase/structure.md
|
|
21
|
-
@~/.claude/autodev/templates/codebase/domain.md
|
|
22
|
-
@~/.claude/autodev/templates/codebase/runtime.md
|
|
23
|
-
@~/.claude/autodev/templates/codebase/quality.md
|
|
24
|
-
@~/.claude/autodev/templates/codebase/summary.md
|
|
25
|
-
@~/.claude/autodev/agents/autodev-codebase-structure.md
|
|
26
|
-
@~/.claude/autodev/agents/autodev-codebase-domain.md
|
|
27
|
-
@~/.claude/autodev/agents/autodev-codebase-runtime.md
|
|
28
|
-
@~/.claude/autodev/agents/autodev-codebase-quality.md
|
|
29
|
-
</execution_context>
|
|
30
|
-
|
|
31
|
-
<process>
|
|
32
|
-
Execute the workflow in @~/.claude/autodev/workflows/explore-codebase.md end-to-end.
|
|
33
|
-
</process>
|
package/commands/autodev/help.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: autodev:help
|
|
3
|
-
description: Show the compact autodev command reference
|
|
4
|
-
allowed-tools:
|
|
5
|
-
- Read
|
|
6
|
-
- Bash
|
|
7
|
-
---
|
|
8
|
-
<objective>
|
|
9
|
-
Show the autodev command reference, with `/autodev` as the main entrypoint.
|
|
10
|
-
</objective>
|
|
11
|
-
|
|
12
|
-
<execution_context>
|
|
13
|
-
@~/.claude/autodev/workflows/help.md
|
|
14
|
-
</execution_context>
|
|
15
|
-
|
|
16
|
-
<process>
|
|
17
|
-
Output the reference from @~/.claude/autodev/workflows/help.md directly.
|
|
18
|
-
</process>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: autodev:new-project
|
|
3
|
-
description: Initialize autodev project state and create the first active track
|
|
4
|
-
argument-hint: "[project and current track goals]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- AskUserQuestion
|
|
10
|
-
- Grep
|
|
11
|
-
- Glob
|
|
12
|
-
---
|
|
13
|
-
<objective>
|
|
14
|
-
Create the `.autodev/` project state for a new or existing codebase, then create the first active track.
|
|
15
|
-
</objective>
|
|
16
|
-
|
|
17
|
-
<execution_context>
|
|
18
|
-
@~/.claude/autodev/workflows/new-project.md
|
|
19
|
-
@~/.claude/autodev/templates/config.json
|
|
20
|
-
@~/.claude/autodev/templates/project.md
|
|
21
|
-
@~/.claude/autodev/templates/project-state.md
|
|
22
|
-
@~/.claude/autodev/templates/track.md
|
|
23
|
-
@~/.claude/autodev/templates/requirements.md
|
|
24
|
-
@~/.claude/autodev/templates/roadmap.md
|
|
25
|
-
@~/.claude/autodev/templates/track-state.md
|
|
26
|
-
</execution_context>
|
|
27
|
-
|
|
28
|
-
<process>
|
|
29
|
-
Execute the workflow in @~/.claude/autodev/workflows/new-project.md end-to-end.
|
|
30
|
-
</process>
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: autodev:plan-phase
|
|
3
|
-
description: Create a practical phase plan and break it into reviewable task files
|
|
4
|
-
argument-hint: "[phase-number]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- AskUserQuestion
|
|
10
|
-
- Grep
|
|
11
|
-
- Glob
|
|
12
|
-
- WebFetch
|
|
13
|
-
---
|
|
14
|
-
<objective>
|
|
15
|
-
Create or update a single executable phase plan under the active track in `.autodev/tracks/<track>/phases/`, plus task files for controlled execution.
|
|
16
|
-
</objective>
|
|
17
|
-
|
|
18
|
-
<execution_context>
|
|
19
|
-
@~/.claude/autodev/workflows/plan-phase.md
|
|
20
|
-
@~/.claude/autodev/templates/plan.md
|
|
21
|
-
@~/.claude/autodev/templates/task.md
|
|
22
|
-
</execution_context>
|
|
23
|
-
|
|
24
|
-
<process>
|
|
25
|
-
Execute the workflow in @~/.claude/autodev/workflows/plan-phase.md end-to-end.
|
|
26
|
-
</process>
|