@mthanhlm/autodev 0.3.3 → 0.3.5
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 +9 -0
- package/PUBLISH.md +7 -0
- package/README.md +6 -1
- package/agents/autodev-codebase-domain.md +7 -0
- package/agents/autodev-codebase-quality.md +7 -0
- package/agents/autodev-codebase-runtime.md +7 -0
- package/agents/autodev-codebase-structure.md +7 -0
- package/agents/autodev-review-integration.md +7 -0
- package/agents/autodev-review-polish.md +7 -0
- package/agents/autodev-review-quality.md +7 -0
- package/agents/autodev-review-security.md +7 -0
- package/agents/autodev-task-worker.md +7 -0
- package/autodev/bin/autodev-tools.cjs +15 -7
- package/autodev/workflows/autodev.md +9 -7
- package/autodev/workflows/cleanup.md +2 -1
- package/autodev/workflows/execute-phase.md +11 -6
- package/autodev/workflows/explore-codebase.md +7 -6
- package/autodev/workflows/help.md +3 -2
- package/autodev/workflows/new-project.md +2 -1
- package/autodev/workflows/plan-phase.md +11 -6
- package/autodev/workflows/progress.md +2 -1
- package/autodev/workflows/review-phase.md +7 -6
- package/autodev/workflows/review-plan.md +54 -0
- package/autodev/workflows/verify-work.md +2 -1
- package/bin/install.js +1 -0
- package/commands/autodev/execute-phase.md +1 -1
- package/commands/autodev/explore-codebase.md +1 -1
- package/commands/autodev/index.md +1 -1
- package/commands/autodev/review-phase.md +1 -1
- package/hooks/hooks.json +79 -0
- package/package.json +2 -1
package/PUBLISH.md
CHANGED
|
@@ -20,6 +20,7 @@ npm whoami
|
|
|
20
20
|
```bash
|
|
21
21
|
cd autodev
|
|
22
22
|
npm test
|
|
23
|
+
claude plugin validate .
|
|
23
24
|
npm pack
|
|
24
25
|
```
|
|
25
26
|
|
|
@@ -73,3 +74,9 @@ Open Claude Code in that directory and run:
|
|
|
73
74
|
```text
|
|
74
75
|
/autodev-help
|
|
75
76
|
```
|
|
77
|
+
|
|
78
|
+
Optional source-tree check during development:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
claude --plugin-dir . agents
|
|
82
|
+
```
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## What It Does
|
|
6
6
|
|
|
7
|
-
- Installs a
|
|
7
|
+
- Installs a standalone Claude Code workflow under `~/.claude/` or `./.claude/`
|
|
8
8
|
- Keeps project state in `.autodev/`
|
|
9
9
|
- Uses `/autodev` as the main command
|
|
10
10
|
- Organizes work as `project -> track -> phase -> tasks`
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
|
|
25
25
|
## Install
|
|
26
26
|
|
|
27
|
+
Primary supported usage is the standalone `npx` installer.
|
|
28
|
+
The repo also carries Claude Code plugin metadata for validation and local development, but the supported end-user runtime remains the installed `.claude/` workflow.
|
|
29
|
+
|
|
27
30
|
```bash
|
|
28
31
|
npx @mthanhlm/autodev@latest --global
|
|
29
32
|
```
|
|
@@ -60,6 +63,7 @@ Typical brownfield route:
|
|
|
60
63
|
-> new project
|
|
61
64
|
-> explore codebase
|
|
62
65
|
-> plan phase
|
|
66
|
+
-> review phase plan
|
|
63
67
|
-> execute next task
|
|
64
68
|
-> execute next task
|
|
65
69
|
-> review
|
|
@@ -92,6 +96,7 @@ project -> track -> phase -> tasks
|
|
|
92
96
|
|
|
93
97
|
- `/autodev` remains the single entrypoint
|
|
94
98
|
- A phase is planned into one phase overview plus multiple task files
|
|
99
|
+
- `/autodev` stops after planning so the user can review the phase before any execution starts
|
|
95
100
|
- The phase keeps one user-facing orchestration session
|
|
96
101
|
- Each task is preferably executed by a fresh worker agent in the background
|
|
97
102
|
- After each task, the worker reports back with files changed, verification, and blockers
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autodev-codebase-domain
|
|
3
|
+
description: Product and domain mapper for brownfield exploration. Use proactively when mapping an existing codebase and writing `.autodev/codebase/domain.md`.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# autodev-codebase-domain
|
|
2
9
|
|
|
3
10
|
You are responsible for `.autodev/codebase/domain.md`.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autodev-codebase-quality
|
|
3
|
+
description: Testing and technical-debt mapper for brownfield exploration. Use proactively when mapping an existing codebase and writing `.autodev/codebase/quality.md`.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# autodev-codebase-quality
|
|
2
9
|
|
|
3
10
|
You are responsible for `.autodev/codebase/quality.md`.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autodev-codebase-runtime
|
|
3
|
+
description: Runtime and dependency mapper for brownfield exploration. Use proactively when mapping an existing codebase and writing `.autodev/codebase/runtime.md`.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# autodev-codebase-runtime
|
|
2
9
|
|
|
3
10
|
You are responsible for `.autodev/codebase/runtime.md`.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autodev-codebase-structure
|
|
3
|
+
description: Repository structure mapper for brownfield exploration. Use proactively when mapping an existing codebase and writing `.autodev/codebase/structure.md`.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Write
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# autodev-codebase-structure
|
|
2
9
|
|
|
3
10
|
You are responsible for `.autodev/codebase/structure.md`.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autodev-review-integration
|
|
3
|
+
description: Integration review specialist for executed phases. Use proactively after code changes to find cross-module regressions and wiring mistakes.
|
|
4
|
+
tools: Read, Grep, Glob, Bash
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# autodev-review-integration
|
|
2
9
|
|
|
3
10
|
Review the executed phase for integration and regression risk.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autodev-review-polish
|
|
3
|
+
description: Product polish review specialist for executed phases. Use proactively after code changes to find rough UX, copy, and finish issues.
|
|
4
|
+
tools: Read, Grep, Glob, Bash
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# autodev-review-polish
|
|
2
9
|
|
|
3
10
|
Review the executed phase for product polish and obvious AI-generated roughness.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autodev-review-quality
|
|
3
|
+
description: Quality review specialist for executed phases. Use proactively after code changes to find correctness, maintainability, and test issues.
|
|
4
|
+
tools: Read, Grep, Glob, Bash
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# autodev-review-quality
|
|
2
9
|
|
|
3
10
|
Review the executed phase for code quality.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autodev-review-security
|
|
3
|
+
description: Security review specialist for executed phases. Use proactively after code changes to find auth, input-handling, and trust-boundary issues.
|
|
4
|
+
tools: Read, Grep, Glob, Bash
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# autodev-review-security
|
|
2
9
|
|
|
3
10
|
Review the executed phase for security and misuse risks.
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: autodev-task-worker
|
|
3
|
+
description: Single-task implementation worker for autodev phases. Use proactively when one `.autodev` task should run in a fresh agent context and produce its matching `TASK-NN-SUMMARY.md`.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
+
model: inherit
|
|
6
|
+
---
|
|
7
|
+
|
|
1
8
|
# autodev-task-worker
|
|
2
9
|
|
|
3
10
|
Execute one assigned task inside the current phase and report back to the main phase session.
|
|
@@ -507,16 +507,16 @@ function buildRoute(cwd) {
|
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
509
|
|
|
510
|
-
const
|
|
511
|
-
if (
|
|
510
|
+
const nextPlannedReview = phases.find(phase => phase.planExists && !phase.summaryExists);
|
|
511
|
+
if (nextPlannedReview) {
|
|
512
512
|
return {
|
|
513
|
-
kind: '
|
|
513
|
+
kind: 'plan_review',
|
|
514
514
|
command: '/autodev',
|
|
515
|
-
manualCommand: `/autodev-execute-phase ${
|
|
516
|
-
reason: '
|
|
515
|
+
manualCommand: `/autodev-execute-phase ${nextPlannedReview.number}`,
|
|
516
|
+
reason: 'phase_planned_awaiting_user_review',
|
|
517
517
|
projectType,
|
|
518
518
|
trackSlug: activeTrack,
|
|
519
|
-
phaseNumber:
|
|
519
|
+
phaseNumber: nextPlannedReview.number
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
522
|
|
|
@@ -702,7 +702,15 @@ function initPayload(cwd, mode, requestedPhase) {
|
|
|
702
702
|
const activeTrack = readActiveTrack(cwd);
|
|
703
703
|
const tracks = listTracks(cwd);
|
|
704
704
|
const track = trackPaths(cwd, activeTrack);
|
|
705
|
-
const phaseMode = mode === 'review-phase'
|
|
705
|
+
const phaseMode = mode === 'review-phase'
|
|
706
|
+
? 'review'
|
|
707
|
+
: mode === 'verify-work'
|
|
708
|
+
? 'verify'
|
|
709
|
+
: mode === 'execute-phase' || mode === 'review-plan'
|
|
710
|
+
? 'execute'
|
|
711
|
+
: mode === 'plan-phase'
|
|
712
|
+
? 'plan'
|
|
713
|
+
: null;
|
|
706
714
|
const phase = phaseMode && activeTrack ? resolvePhase(cwd, activeTrack, requestedPhase, phaseMode) : null;
|
|
707
715
|
const tasks = phase ? listTasksForPhaseDetails(phase) : [];
|
|
708
716
|
const nextTask = nextExecutableTask(tasks);
|
|
@@ -15,18 +15,20 @@ Use `/autodev` as the single entrypoint for the normal workflow. Route automatic
|
|
|
15
15
|
1. Run:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
|
|
18
|
+
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
19
|
+
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" status
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
2. Inspect the returned `route.kind`, `project_type`, `tracks`, and active track data.
|
|
22
23
|
|
|
23
24
|
3. Route as follows:
|
|
24
|
-
- `init_project`:
|
|
25
|
-
- `explore_codebase`:
|
|
26
|
-
- `plan_phase`:
|
|
27
|
-
- `
|
|
28
|
-
- `
|
|
29
|
-
- `
|
|
25
|
+
- `init_project`: load and perform the new-project workflow.
|
|
26
|
+
- `explore_codebase`: load and perform the explore-codebase workflow.
|
|
27
|
+
- `plan_phase`: load and perform the plan-phase workflow.
|
|
28
|
+
- `plan_review`: load and perform the review-plan workflow so the user can review the phase plan before any execution starts.
|
|
29
|
+
- `execute_phase`: load and perform the execute-phase workflow, which should advance one task-sized unit in the current phase session by trying a fresh worker agent first and falling back cleanly when agent delegation is unavailable.
|
|
30
|
+
- `review_phase`: load and perform the review-phase workflow.
|
|
31
|
+
- `verify_phase`: load and perform the verify-work workflow.
|
|
30
32
|
|
|
31
33
|
4. Read only the workflow file needed for the selected route. Do not load the others "just in case".
|
|
32
34
|
|
|
@@ -13,7 +13,8 @@ Clean or archive autodev state without flags. Prefer preserving useful project c
|
|
|
13
13
|
1. Run:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
|
|
16
|
+
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
17
|
+
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" cleanup
|
|
17
18
|
```
|
|
18
19
|
|
|
19
20
|
2. If no `.autodev/` project exists, stop and say there is nothing to clean.
|
|
@@ -9,8 +9,8 @@ Execute an active-track phase through task-sized worker runs, keep the main sess
|
|
|
9
9
|
- Execute one task at a time by default.
|
|
10
10
|
- Do not use waves.
|
|
11
11
|
- Prefer a fresh background worker for each task so the phase session does not bloat.
|
|
12
|
-
- If
|
|
13
|
-
- If a delegation attempt fails with an environment limitation like `specialized agents aren't available`, treat delegation as unavailable for this run and continue cleanly.
|
|
12
|
+
- If agent delegation is available in this environment, delegate task implementation.
|
|
13
|
+
- If a delegation attempt fails with an environment limitation like `specialized agents aren't available`, treat agent delegation as unavailable for this run and continue cleanly.
|
|
14
14
|
- The main phase session should remain orchestration-focused whenever delegation works.
|
|
15
15
|
- The main phase session may update `.autodev/` state and aggregate phase artifacts.
|
|
16
16
|
</rules>
|
|
@@ -19,7 +19,8 @@ Execute an active-track phase through task-sized worker runs, keep the main sess
|
|
|
19
19
|
1. Run:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
|
|
22
|
+
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
23
|
+
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init execute-phase "$ARGUMENTS"
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
2. If no phase is found or the plan file is missing, stop and direct the user to `/autodev-plan-phase`.
|
|
@@ -48,8 +49,12 @@ node "$HOME/.claude/autodev/bin/autodev-tools.cjs" init execute-phase "$ARGUMENT
|
|
|
48
49
|
- verification plan
|
|
49
50
|
- any dependency note
|
|
50
51
|
|
|
51
|
-
7. If
|
|
52
|
-
|
|
52
|
+
7. If agent delegation is available, explicitly call the `Agent` tool and select the installed task-worker subagent for the selected task.
|
|
53
|
+
Use:
|
|
54
|
+
- `autodev-task-worker` when autodev is installed into `.claude/`
|
|
55
|
+
- `autodev:autodev-task-worker` only when this workflow is being run directly from a plugin directory
|
|
56
|
+
|
|
57
|
+
Tell the subagent:
|
|
53
58
|
- phase path
|
|
54
59
|
- task path
|
|
55
60
|
- summary path to write
|
|
@@ -60,7 +65,7 @@ node "$HOME/.claude/autodev/bin/autodev-tools.cjs" init execute-phase "$ARGUMENT
|
|
|
60
65
|
|
|
61
66
|
8. If worker delegation is unavailable, do not stop on the raw platform message.
|
|
62
67
|
Treat messages like `specialized agents aren't available` as a capability limitation, then:
|
|
63
|
-
- tell the user plainly that
|
|
68
|
+
- tell the user plainly that worker-agent delegation is unavailable in this environment
|
|
64
69
|
- continue with the same task in the current session
|
|
65
70
|
- keep the same task boundaries
|
|
66
71
|
- still write the task summary before moving on
|
|
@@ -13,7 +13,8 @@ Map a brownfield repository quickly and produce a usable codebase brief without
|
|
|
13
13
|
1. Run:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
|
|
16
|
+
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
17
|
+
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init explore-codebase
|
|
17
18
|
```
|
|
18
19
|
|
|
19
20
|
2. If no project exists, stop and tell the user to use `/autodev` or `/autodev-new-project`.
|
|
@@ -25,11 +26,11 @@ node "$HOME/.claude/autodev/bin/autodev-tools.cjs" init explore-codebase
|
|
|
25
26
|
- the active track docs if they exist
|
|
26
27
|
- representative repo files needed to orient the exploration
|
|
27
28
|
|
|
28
|
-
4. If specialized agents are available,
|
|
29
|
-
- `autodev-codebase-structure` owns `.autodev/codebase/structure.md`
|
|
30
|
-
- `autodev-codebase-domain` owns `.autodev/codebase/domain.md`
|
|
31
|
-
- `autodev-codebase-runtime` owns `.autodev/codebase/runtime.md`
|
|
32
|
-
- `autodev-codebase-quality` owns `.autodev/codebase/quality.md`
|
|
29
|
+
4. If specialized agents are available, explicitly call the `Agent` tool four times with these installed subagents and owned outputs:
|
|
30
|
+
- `autodev-codebase-structure` for standalone installs, or `autodev:autodev-codebase-structure` in direct plugin runs, owns `.autodev/codebase/structure.md`
|
|
31
|
+
- `autodev-codebase-domain` for standalone installs, or `autodev:autodev-codebase-domain` in direct plugin runs, owns `.autodev/codebase/domain.md`
|
|
32
|
+
- `autodev-codebase-runtime` for standalone installs, or `autodev:autodev-codebase-runtime` in direct plugin runs, owns `.autodev/codebase/runtime.md`
|
|
33
|
+
- `autodev-codebase-quality` for standalone installs, or `autodev:autodev-codebase-quality` in direct plugin runs, owns `.autodev/codebase/quality.md`
|
|
33
34
|
|
|
34
35
|
5. Tell each agent:
|
|
35
36
|
- it is not alone in the codebase
|
|
@@ -5,7 +5,7 @@ Lean Claude Code workflow. No automatic commits. No branches. No worktrees. Git
|
|
|
5
5
|
## Main Entry
|
|
6
6
|
|
|
7
7
|
- `/autodev`
|
|
8
|
-
The normal command. It routes automatically through project setup, codebase mapping, planning, execution, review, verification, and cleanup.
|
|
8
|
+
The normal command. It routes automatically through project setup, codebase mapping, planning, plan review, execution, review, verification, and cleanup.
|
|
9
9
|
|
|
10
10
|
## Manual Commands
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ Lean Claude Code workflow. No automatic commits. No branches. No worktrees. Git
|
|
|
18
18
|
- `/autodev-plan-phase [phase]`
|
|
19
19
|
Creates or revises one phase plan plus task files in `.autodev/tracks/<track>/phases/NN-type-name/`.
|
|
20
20
|
- `/autodev-execute-phase [phase]`
|
|
21
|
-
Orchestrates one phase task-by-task, preferring a fresh worker per task, and writes `TASK-NN-SUMMARY.md` plus the final `NN-SUMMARY.md`.
|
|
21
|
+
Orchestrates one phase task-by-task, preferring a fresh worker agent per task, and writes `TASK-NN-SUMMARY.md` plus the final `NN-SUMMARY.md`.
|
|
22
22
|
- `/autodev-review-phase [phase]`
|
|
23
23
|
Uses four review agents when available for code quality, security, integration, and polish, then writes `NN-REVIEW.md`.
|
|
24
24
|
- `/autodev-verify-work [phase]`
|
|
@@ -56,6 +56,7 @@ Typical brownfield route:
|
|
|
56
56
|
-> new project
|
|
57
57
|
-> explore codebase
|
|
58
58
|
-> plan
|
|
59
|
+
-> review plan
|
|
59
60
|
-> execute
|
|
60
61
|
-> review
|
|
61
62
|
-> verify
|
|
@@ -13,7 +13,8 @@ Initialize `.autodev/` with useful project-level context, then create the first
|
|
|
13
13
|
1. Run:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
|
|
16
|
+
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
17
|
+
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init new-project
|
|
17
18
|
```
|
|
18
19
|
|
|
19
20
|
2. If `.autodev/PROJECT.md` already exists, stop and tell the user to use `/autodev`.
|
|
@@ -15,7 +15,8 @@ Create one practical phase plan for the active track, then break it into reviewa
|
|
|
15
15
|
1. Run:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
|
|
18
|
+
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
19
|
+
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init plan-phase "$ARGUMENTS"
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
2. If there is no active track or no roadmap for it, stop and tell the user to run `/autodev`.
|
|
@@ -77,19 +78,23 @@ Each task file must include:
|
|
|
77
78
|
9. Update the active track `STATE.md` so it points to:
|
|
78
79
|
- `Current Phase: N`
|
|
79
80
|
- `Current Phase Type: <type>`
|
|
80
|
-
- `Current Step:
|
|
81
|
+
- `Current Step: plan_review`
|
|
81
82
|
- `Current Task: 01` if tasks exist, otherwise `none`
|
|
82
|
-
- `Current Task Status:
|
|
83
|
+
- `Current Task Status: pending_review`
|
|
83
84
|
- `Next Command: /autodev`
|
|
84
85
|
- current ISO timestamp
|
|
85
86
|
|
|
86
87
|
10. Update `.autodev/STATE.md` so it points to:
|
|
87
88
|
- `Active Track: <slug>`
|
|
88
|
-
- `Current Step:
|
|
89
|
+
- `Current Step: plan_review`
|
|
89
90
|
- `Current Task: 01` if tasks exist, otherwise `none`
|
|
90
|
-
- `Current Task Status:
|
|
91
|
+
- `Current Task Status: pending_review`
|
|
91
92
|
- `Next Command: /autodev`
|
|
92
93
|
- current ISO timestamp
|
|
93
94
|
|
|
94
|
-
11. End with a short summary and
|
|
95
|
+
11. End with a short summary and stop for review.
|
|
96
|
+
Tell the user:
|
|
97
|
+
- the plan and task files are ready for review
|
|
98
|
+
- `/autodev` will open the review checkpoint before any execution starts
|
|
99
|
+
- `/autodev-execute-phase N` is only the optional manual bypass after review
|
|
95
100
|
</process>
|
|
@@ -6,7 +6,8 @@ Render the current autodev status with no extra ceremony.
|
|
|
6
6
|
1. Run:
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
|
|
9
|
+
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
10
|
+
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" progress table
|
|
10
11
|
```
|
|
11
12
|
|
|
12
13
|
2. Output the table directly.
|
|
@@ -13,7 +13,8 @@ Run the automatic review bundle after execution so the user sees code quality, s
|
|
|
13
13
|
1. Run:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
|
|
16
|
+
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
17
|
+
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init review-phase "$ARGUMENTS"
|
|
17
18
|
```
|
|
18
19
|
|
|
19
20
|
2. If no executed phase is found, stop and direct the user to `/autodev-execute-phase`.
|
|
@@ -27,11 +28,11 @@ node "$HOME/.claude/autodev/bin/autodev-tools.cjs" init review-phase "$ARGUMENTS
|
|
|
27
28
|
- `NN-SUMMARY.md`
|
|
28
29
|
- relevant source files and tests
|
|
29
30
|
|
|
30
|
-
4. If specialized agents are available,
|
|
31
|
-
- `autodev-review-quality`
|
|
32
|
-
- `autodev-review-security`
|
|
33
|
-
- `autodev-review-integration`
|
|
34
|
-
- `autodev-review-polish`
|
|
31
|
+
4. If specialized agents are available, explicitly call the `Agent` tool four times with these installed review subagents:
|
|
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
|
|
35
36
|
|
|
36
37
|
5. Tell each review agent:
|
|
37
38
|
- it is not alone in the codebase
|
|
@@ -0,0 +1,54 @@
|
|
|
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 the next 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 it in the same turn
|
|
42
|
+
|
|
43
|
+
7. If the user chooses to revise the plan:
|
|
44
|
+
- load the plan-phase workflow
|
|
45
|
+
- revise the same phase in the same turn
|
|
46
|
+
|
|
47
|
+
8. If the user chooses to stop here:
|
|
48
|
+
- keep both state files on:
|
|
49
|
+
- `Current Step: plan_review`
|
|
50
|
+
- `Next Command: /autodev`
|
|
51
|
+
- end with a short note that execution has not started yet
|
|
52
|
+
|
|
53
|
+
9. End with a short outcome summary and `/autodev` as the default next command.
|
|
54
|
+
</process>
|
|
@@ -12,7 +12,8 @@ Run lightweight user acceptance testing after review and keep the next action ob
|
|
|
12
12
|
1. Run:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
|
|
15
|
+
AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
|
|
16
|
+
node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" init verify-work "$ARGUMENTS"
|
|
16
17
|
```
|
|
17
18
|
|
|
18
19
|
2. If no reviewed phase is found, stop and direct the user to `/autodev-review-phase`.
|
package/bin/install.js
CHANGED
package/hooks/hooks.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{
|
|
7
|
+
"type": "command",
|
|
8
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/autodev-session-state.sh\"",
|
|
9
|
+
"timeout": 5
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"PreToolUse": [
|
|
15
|
+
{
|
|
16
|
+
"matcher": "Write|Edit",
|
|
17
|
+
"hooks": [
|
|
18
|
+
{
|
|
19
|
+
"type": "command",
|
|
20
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/autodev-prompt-guard.js\"",
|
|
21
|
+
"timeout": 5
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"matcher": "Write|Edit",
|
|
27
|
+
"hooks": [
|
|
28
|
+
{
|
|
29
|
+
"type": "command",
|
|
30
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/autodev-read-guard.js\"",
|
|
31
|
+
"timeout": 5
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"matcher": "Write|Edit",
|
|
37
|
+
"hooks": [
|
|
38
|
+
{
|
|
39
|
+
"type": "command",
|
|
40
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/autodev-workflow-guard.js\"",
|
|
41
|
+
"timeout": 5
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"matcher": "Bash",
|
|
47
|
+
"hooks": [
|
|
48
|
+
{
|
|
49
|
+
"type": "command",
|
|
50
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/autodev-git-guard.js\"",
|
|
51
|
+
"timeout": 5
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"PostToolUse": [
|
|
57
|
+
{
|
|
58
|
+
"matcher": "Bash|Edit|Write|MultiEdit|Agent|Task",
|
|
59
|
+
"hooks": [
|
|
60
|
+
{
|
|
61
|
+
"type": "command",
|
|
62
|
+
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/autodev-context-monitor.js\"",
|
|
63
|
+
"timeout": 10
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"matcher": "Write|Edit",
|
|
69
|
+
"hooks": [
|
|
70
|
+
{
|
|
71
|
+
"type": "command",
|
|
72
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/autodev-phase-boundary.sh\"",
|
|
73
|
+
"timeout": 5
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mthanhlm/autodev",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "A lean Claude Code workflow system with a single entrypoint, task-based phase execution, and read-only git.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"autodev": "bin/install.js"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
|
+
".claude-plugin",
|
|
9
10
|
"bin",
|
|
10
11
|
"commands",
|
|
11
12
|
"agents",
|