@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.
Files changed (73) hide show
  1. package/.claude-plugin/plugin.json +2 -2
  2. package/PUBLISH.md +9 -40
  3. package/README.md +70 -91
  4. package/autodev/bin/autodev-tools.cjs +587 -811
  5. package/autodev/templates/brief.md +19 -0
  6. package/autodev/templates/context.md +16 -0
  7. package/autodev/templates/plan.md +26 -46
  8. package/autodev/templates/run.md +20 -0
  9. package/bin/install.js +229 -342
  10. package/commands/autodev/index.md +117 -9
  11. package/commands/autodev/status.md +22 -0
  12. package/hooks/autodev-auto-format.js +3 -3
  13. package/hooks/autodev-git-guard.js +5 -7
  14. package/hooks/autodev-paths.js +3 -3
  15. package/package.json +4 -5
  16. package/scripts/run-tests.cjs +10 -0
  17. package/agents/autodev-codebase-domain.md +0 -25
  18. package/agents/autodev-codebase-quality.md +0 -25
  19. package/agents/autodev-codebase-runtime.md +0 -25
  20. package/agents/autodev-codebase-structure.md +0 -25
  21. package/agents/autodev-review-integration.md +0 -30
  22. package/agents/autodev-review-polish.md +0 -30
  23. package/agents/autodev-review-quality.md +0 -30
  24. package/agents/autodev-review-security.md +0 -30
  25. package/agents/autodev-task-worker.md +0 -39
  26. package/autodev/templates/codebase/domain.md +0 -13
  27. package/autodev/templates/codebase/quality.md +0 -13
  28. package/autodev/templates/codebase/runtime.md +0 -13
  29. package/autodev/templates/codebase/structure.md +0 -13
  30. package/autodev/templates/codebase/summary.md +0 -13
  31. package/autodev/templates/config.json +0 -22
  32. package/autodev/templates/project-state.md +0 -13
  33. package/autodev/templates/project.md +0 -24
  34. package/autodev/templates/requirements.md +0 -14
  35. package/autodev/templates/review.md +0 -27
  36. package/autodev/templates/roadmap.md +0 -17
  37. package/autodev/templates/state.md +0 -13
  38. package/autodev/templates/summary.md +0 -22
  39. package/autodev/templates/task-summary.md +0 -18
  40. package/autodev/templates/task.md +0 -23
  41. package/autodev/templates/track-state.md +0 -14
  42. package/autodev/templates/track.md +0 -24
  43. package/autodev/templates/uat.md +0 -18
  44. package/autodev/workflows/autodev.md +0 -79
  45. package/autodev/workflows/cleanup.md +0 -51
  46. package/autodev/workflows/execute-phase.md +0 -127
  47. package/autodev/workflows/explore-codebase.md +0 -66
  48. package/autodev/workflows/help.md +0 -110
  49. package/autodev/workflows/new-project.md +0 -101
  50. package/autodev/workflows/plan-phase.md +0 -126
  51. package/autodev/workflows/progress.md +0 -18
  52. package/autodev/workflows/review-phase.md +0 -73
  53. package/autodev/workflows/review-plan.md +0 -55
  54. package/autodev/workflows/review-task.md +0 -70
  55. package/autodev/workflows/verify-work.md +0 -57
  56. package/commands/autodev/cleanup.md +0 -23
  57. package/commands/autodev/execute-phase.md +0 -29
  58. package/commands/autodev/explore-codebase.md +0 -33
  59. package/commands/autodev/help.md +0 -18
  60. package/commands/autodev/new-project.md +0 -30
  61. package/commands/autodev/plan-phase.md +0 -26
  62. package/commands/autodev/progress.md +0 -18
  63. package/commands/autodev/review-phase.md +0 -29
  64. package/commands/autodev/review-task.md +0 -25
  65. package/commands/autodev/verify-work.md +0 -24
  66. package/hooks/autodev-context-monitor.js +0 -59
  67. package/hooks/autodev-phase-boundary.sh +0 -49
  68. package/hooks/autodev-prompt-guard.js +0 -55
  69. package/hooks/autodev-read-guard.js +0 -42
  70. package/hooks/autodev-session-state.sh +0 -51
  71. package/hooks/autodev-statusline.js +0 -78
  72. package/hooks/autodev-workflow-guard.js +0 -43
  73. package/hooks/hooks.json +0 -89
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: autodev
3
- description: Route the project through the next useful autodev step from a single entrypoint
4
- argument-hint: "[goal, track, or question]"
3
+ description: Truthful checkpointed workflow with durable context, one active plan, and hard verification gates
4
+ argument-hint: "[goal or correction]"
5
5
  allowed-tools:
6
6
  - Read
7
7
  - Write
@@ -11,17 +11,125 @@ allowed-tools:
11
11
  - Glob
12
12
  - TodoWrite
13
13
  - AskUserQuestion
14
- - Agent
15
- - WebFetch
16
14
  ---
17
15
  <objective>
18
- Use `/autodev` as the default command. Inspect `.autodev/` state, route automatically, and execute the right workflow end-to-end.
16
+ Use `/autodev` as the single entrypoint. Keep durable context in `.autodev/`, treat `.autodev/state.json` as the only machine state, and never claim work is done without evidence.
19
17
  </objective>
20
18
 
21
- <execution_context>
22
- @~/.claude/autodev/workflows/autodev.md
23
- </execution_context>
19
+ <principles>
20
+ - `state.json` is authoritative machine state. Never edit it directly. Use the CLI update commands.
21
+ - `brief.md`, `context.md`, `plan.md`, and `runs/*.md` are human-readable artifacts and may be edited directly.
22
+ - Global install disables Claude background tasks. Do not rely on them.
23
+ - Keep work bounded to one plan item per run unless the work is trivial and fully verified.
24
+ - If evidence is missing, say so plainly and stop.
25
+ - Git is read-only.
26
+ </principles>
27
+
28
+ <templates>
29
+ @~/.claude/autodev/templates/brief.md
30
+ @~/.claude/autodev/templates/context.md
31
+ @~/.claude/autodev/templates/plan.md
32
+ @~/.claude/autodev/templates/run.md
33
+ </templates>
24
34
 
25
35
  <process>
26
- Execute the router workflow in @~/.claude/autodev/workflows/autodev.md end-to-end.
36
+ 1. Bootstrap and inspect status:
37
+
38
+ ```bash
39
+ AUTODEV_ROOT="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude}"
40
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" bootstrap
41
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" status
42
+ ```
43
+
44
+ 2. Route by `route.kind`:
45
+ - `init_brief`
46
+ - Inspect the repo first.
47
+ - Ask concise questions only if the goal, user, constraints, or done definition are still unclear.
48
+ - Write `.autodev/brief.md` from the template.
49
+ - Then run:
50
+
51
+ ```bash
52
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" update --stage planning --project-type <brownfield|greenfield> --touch
53
+ ```
54
+
55
+ - `build_context`
56
+ - Brownfield only.
57
+ - Read only the repo areas needed to orient the next change.
58
+ - Write `.autodev/context.md` as a concise snapshot of architecture, entrypoints, constraints, safe change points, and risk hotspots.
59
+ - Then run:
60
+
61
+ ```bash
62
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" update --stage planning --touch
63
+ ```
64
+
65
+ - `plan`
66
+ - Read `brief.md`, `context.md` if present, and relevant repo files.
67
+ - Write `.autodev/plan.md` from the template with 3-7 items maximum.
68
+ - Every item must keep this format:
69
+ - `## Item NN: Title`
70
+ - `Status: pending|in_progress|done|blocked`
71
+ - `Goal: ...`
72
+ - `Files:` bullet list
73
+ - `Acceptance:` bullet list
74
+ - `Verification:` bullet list
75
+ - Make verification concrete. If no concrete verification exists, say so in the plan.
76
+ - Then run:
77
+
78
+ ```bash
79
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" update --stage execution --current-item 01 --touch
80
+ ```
81
+
82
+ - `repair_plan`
83
+ - Read the blocked item, the last run report, and relevant code.
84
+ - Update only the remaining plan items needed to recover.
85
+ - Preserve already-done items.
86
+ - Keep the plan small.
87
+ - Then run:
88
+
89
+ ```bash
90
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" update --stage execution --touch
91
+ ```
92
+
93
+ - `execute`
94
+ - Read the current item from `status.plan_items`.
95
+ - Tell the user what item you are doing, likely files, and verification plan.
96
+ - Update the item status in `plan.md` to `in_progress` before editing code if it was still `pending`.
97
+ - Make only the code changes needed for that item.
98
+ - Run the verification listed in the item.
99
+ - Create a run log skeleton:
100
+
101
+ ```bash
102
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" create-run execute
103
+ ```
104
+
105
+ - Fill the run report with:
106
+ - `Observed` facts only
107
+ - `Inferred` only when unavoidable
108
+ - files changed
109
+ - exact verification commands and results
110
+ - unknowns or manual gaps
111
+ - If verification passed, mark the plan item `done`.
112
+ - If verification failed or stayed incomplete, mark the item `blocked`, set `Outcome: blocked` or `Outcome: unverified` in the run log, and stop.
113
+ - Update machine state with the run path and the result:
114
+
115
+ ```bash
116
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" update --stage <execution|blocked|complete> --current-item <NN|none> --last-result <observed|blocked|unverified> --last-run-path <path>
117
+ ```
118
+
119
+ - Re-run `status` once after the update to keep the next route honest.
120
+ - Stop after one item unless the next step is trivial and already verified in the same run.
121
+
122
+ - `complete`
123
+ - Summarize the finished plan truthfully.
124
+ - Call out any manual follow-up or residual risk.
125
+
126
+ 3. Never say `done` unless you have:
127
+ - observed verification output, or
128
+ - explicit user confirmation for a manual check.
129
+
130
+ 4. Use these labels in summaries when the work is non-trivial:
131
+ - `Observed`
132
+ - `Inferred`
133
+ - `Unverified`
134
+ - `Blocked`
27
135
  </process>
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: autodev:status
3
+ description: Show the current durable autodev state and next route
4
+ allowed-tools:
5
+ - Bash
6
+ - Read
7
+ ---
8
+ <objective>
9
+ Render the current autodev status from `.autodev/state.json`, `brief.md`, `context.md`, and `plan.md`.
10
+ </objective>
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" bootstrap
18
+ node "$AUTODEV_ROOT/autodev/bin/autodev-tools.cjs" status table
19
+ ```
20
+
21
+ 2. Output the table directly.
22
+ </process>
@@ -3,7 +3,7 @@
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
5
  const { spawnSync } = require('child_process');
6
- const { findWorkspaceRoot, readProjectConfig } = require('./autodev-paths.js');
6
+ const { findWorkspaceRoot, readAutodevState } = require('./autodev-paths.js');
7
7
 
8
8
  const PRETTIER_EXTENSIONS = new Set([
9
9
  '.js', '.jsx', '.cjs', '.mjs',
@@ -168,8 +168,8 @@ try {
168
168
 
169
169
  const cwd = data.cwd || process.cwd();
170
170
  const workspaceRoot = findWorkspaceRoot(cwd);
171
- const config = readProjectConfig(cwd);
172
- if (config && config.hooks?.auto_format === false) {
171
+ const state = readAutodevState(cwd);
172
+ if (state && state.settings?.auto_format === false) {
173
173
  process.exit(0);
174
174
  }
175
175
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const fs = require('fs');
4
- const { readProjectConfig } = require('./autodev-paths.js');
4
+ const { readAutodevState } = require('./autodev-paths.js');
5
5
 
6
6
  function shouldBlock(command) {
7
7
  const blockedPatterns = [
@@ -17,17 +17,16 @@ function shouldBlock(command) {
17
17
  return blockedPatterns.some(pattern => pattern.test(command));
18
18
  }
19
19
 
20
- let input = '';
21
20
  try {
22
- input = fs.readFileSync(0, 'utf8');
21
+ const input = fs.readFileSync(0, 'utf8');
23
22
  const data = JSON.parse(input);
24
23
  if (data.tool_name !== 'Bash') {
25
24
  process.exit(0);
26
25
  }
27
26
 
28
27
  const cwd = data.cwd || process.cwd();
29
- const config = readProjectConfig(cwd);
30
- if (!config || config.git?.mode !== 'read-only' || config.hooks?.git_guard === false) {
28
+ const state = readAutodevState(cwd);
29
+ if (!state || state.settings?.git_mode !== 'read-only') {
31
30
  process.exit(0);
32
31
  }
33
32
 
@@ -38,8 +37,7 @@ try {
38
37
 
39
38
  fs.writeSync(1, `${JSON.stringify({
40
39
  decision: 'block',
41
- reason:
42
- 'autodev git policy is read-only. Allowed examples: git status, git diff, git log, git show, git rev-parse, git ls-files, git branch --show-current.'
40
+ reason: 'autodev git policy is read-only. Allowed examples: git status, git diff, git log, git show, git rev-parse, git ls-files, git branch --show-current.'
43
41
  })}\n`);
44
42
  process.exit(2);
45
43
  } catch {
@@ -40,14 +40,14 @@ function findAutodevRoot(startDir) {
40
40
  return fileExists(autodevRoot) ? autodevRoot : null;
41
41
  }
42
42
 
43
- function readProjectConfig(startDir) {
43
+ function readAutodevState(startDir) {
44
44
  const autodevRoot = findAutodevRoot(startDir);
45
45
  if (!autodevRoot) {
46
46
  return null;
47
47
  }
48
48
 
49
49
  try {
50
- return JSON.parse(fs.readFileSync(path.join(autodevRoot, 'config.json'), 'utf8'));
50
+ return JSON.parse(fs.readFileSync(path.join(autodevRoot, 'state.json'), 'utf8'));
51
51
  } catch {
52
52
  return null;
53
53
  }
@@ -56,5 +56,5 @@ function readProjectConfig(startDir) {
56
56
  module.exports = {
57
57
  findAutodevRoot,
58
58
  findWorkspaceRoot,
59
- readProjectConfig
59
+ readAutodevState
60
60
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mthanhlm/autodev",
3
- "version": "0.4.3",
4
- "description": "A lean Claude Code workflow system with a single entrypoint, task-based phase execution, and read-only git.",
3
+ "version": "0.5.0",
4
+ "description": "A global Claude Code plugin with durable repo context, hard verification gates, and read-only git.",
5
5
  "bin": {
6
6
  "autodev": "bin/install.js"
7
7
  },
@@ -9,7 +9,6 @@
9
9
  ".claude-plugin",
10
10
  "bin",
11
11
  "commands",
12
- "agents",
13
12
  "autodev",
14
13
  "hooks",
15
14
  "scripts",
@@ -21,9 +20,9 @@
21
20
  "claude",
22
21
  "claude-code",
23
22
  "workflow",
24
- "planning",
23
+ "durable-context",
25
24
  "brownfield",
26
- "review",
25
+ "verification",
27
26
  "autodev"
28
27
  ],
29
28
  "author": "mthanhlm",
@@ -6,11 +6,21 @@ const { spawnSync } = require('child_process');
6
6
 
7
7
  const root = path.resolve(__dirname, '..');
8
8
  const testsDir = path.join(root, 'tests');
9
+ if (!fs.existsSync(testsDir)) {
10
+ process.stderr.write('run-tests: tests/ is missing\n');
11
+ process.exit(1);
12
+ }
13
+
9
14
  const files = fs.readdirSync(testsDir)
10
15
  .filter(file => file.endsWith('.test.cjs'))
11
16
  .sort()
12
17
  .map(file => path.join(testsDir, file));
13
18
 
19
+ if (files.length === 0) {
20
+ process.stderr.write('run-tests: no *.test.cjs files were found\n');
21
+ process.exit(1);
22
+ }
23
+
14
24
  for (const file of files) {
15
25
  const result = spawnSync(process.execPath, [file], {
16
26
  cwd: root,
@@ -1,25 +0,0 @@
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
- background: false
6
- color: purple
7
- model: inherit
8
- ---
9
-
10
- # autodev-codebase-domain
11
-
12
- You are responsible for `.autodev/codebase/domain.md`.
13
-
14
- ## Goal
15
- - Explain the main product areas, user flows, and state boundaries that matter for the active track.
16
-
17
- ## Rules
18
- - You are not alone in the codebase.
19
- - Do not overwrite files owned by other agents.
20
- - Stay read-only except for your owned output file.
21
- - Avoid generic architecture commentary.
22
-
23
- ## Output
24
- - Write only `.autodev/codebase/domain.md`.
25
- - Cover main product areas, key flows, data boundaries, and active-track impact.
@@ -1,25 +0,0 @@
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
- background: false
6
- color: yellow
7
- model: inherit
8
- ---
9
-
10
- # autodev-codebase-quality
11
-
12
- You are responsible for `.autodev/codebase/quality.md`.
13
-
14
- ## Goal
15
- - Identify testing posture, conventions, risks, and technical debt that can affect the active track.
16
-
17
- ## Rules
18
- - You are not alone in the codebase.
19
- - Do not overwrite files owned by other agents.
20
- - Stay read-only except for your owned output file.
21
- - Focus on actionable risks, not style preferences.
22
-
23
- ## Output
24
- - Write only `.autodev/codebase/quality.md`.
25
- - Cover tests, conventions, risks, and tech debt.
@@ -1,25 +0,0 @@
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
- background: false
6
- color: blue
7
- model: inherit
8
- ---
9
-
10
- # autodev-codebase-runtime
11
-
12
- You are responsible for `.autodev/codebase/runtime.md`.
13
-
14
- ## Goal
15
- - Map the technical runtime surface: stack, build/run path, configuration, and external dependencies.
16
-
17
- ## Rules
18
- - You are not alone in the codebase.
19
- - Do not overwrite files owned by other agents.
20
- - Stay read-only except for your owned output file.
21
- - Prefer concrete commands and files over vague summaries.
22
-
23
- ## Output
24
- - Write only `.autodev/codebase/runtime.md`.
25
- - Cover stack, run/build path, config/env, and external dependencies.
@@ -1,25 +0,0 @@
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
- background: false
6
- color: cyan
7
- model: inherit
8
- ---
9
-
10
- # autodev-codebase-structure
11
-
12
- You are responsible for `.autodev/codebase/structure.md`.
13
-
14
- ## Goal
15
- - Map the repository layout, entrypoints, and architecture shape in a way that helps the active track move faster.
16
-
17
- ## Rules
18
- - You are not alone in the codebase.
19
- - Do not overwrite files owned by other agents.
20
- - Stay read-only except for your owned output file.
21
- - Keep the result concise and decision-useful.
22
-
23
- ## Output
24
- - Write only `.autodev/codebase/structure.md`.
25
- - Cover top-level layout, entrypoints, architectural shape, and hotspots.
@@ -1,30 +0,0 @@
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
- background: false
6
- color: orange
7
- model: inherit
8
- ---
9
-
10
- # autodev-review-integration
11
-
12
- Review the executed phase for integration and regression risk.
13
-
14
- ## Focus
15
- - broken assumptions across modules
16
- - runtime wiring issues
17
- - migration or compatibility risk
18
- - missing tests for changed seams
19
- - likely regressions in adjacent flows
20
-
21
- ## Rules
22
- - Stay read-only.
23
- - Return findings only. Do not write files.
24
- - Prioritize concrete cross-boundary risks.
25
-
26
- ## Response Format
27
- - Severity
28
- - Evidence
29
- - Why it matters
30
- - Suggested action
@@ -1,30 +0,0 @@
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
- background: false
6
- color: pink
7
- model: inherit
8
- ---
9
-
10
- # autodev-review-polish
11
-
12
- Review the executed phase for product polish and obvious AI-generated roughness.
13
-
14
- ## Focus
15
- - generic or repetitive UI or copy
16
- - weak UX decisions
17
- - placeholder-looking implementation
18
- - inconsistent naming or interaction details
19
- - code or interface choices that feel obviously machine-generated and under-finished
20
-
21
- ## Rules
22
- - Stay read-only.
23
- - Return findings only. Do not write files.
24
- - Prefer concrete examples over subjective taste.
25
-
26
- ## Response Format
27
- - Severity
28
- - Evidence
29
- - Why it matters
30
- - Suggested action
@@ -1,30 +0,0 @@
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
- background: false
6
- color: green
7
- model: inherit
8
- ---
9
-
10
- # autodev-review-quality
11
-
12
- Review the executed phase for code quality.
13
-
14
- ## Focus
15
- - correctness
16
- - maintainability
17
- - naming and structure
18
- - test quality
19
- - accidental complexity
20
-
21
- ## Rules
22
- - Stay read-only.
23
- - Return findings only. Do not write files.
24
- - Report only concrete issues or explicitly say there are no blocking findings.
25
-
26
- ## Response Format
27
- - Severity
28
- - Evidence
29
- - Why it matters
30
- - Suggested action
@@ -1,30 +0,0 @@
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
- background: false
6
- color: red
7
- model: inherit
8
- ---
9
-
10
- # autodev-review-security
11
-
12
- Review the executed phase for security and misuse risks.
13
-
14
- ## Focus
15
- - auth and authorization mistakes
16
- - injection or unsafe input handling
17
- - secret or config exposure
18
- - unsafe filesystem or shell behavior
19
- - trust boundary mistakes
20
-
21
- ## Rules
22
- - Stay read-only.
23
- - Return findings only. Do not write files.
24
- - Avoid theoretical issues without code evidence.
25
-
26
- ## Response Format
27
- - Severity
28
- - Evidence
29
- - Why it matters
30
- - Suggested action
@@ -1,39 +0,0 @@
1
- ---
2
- name: autodev-task-worker
3
- description: Single-task implementation specialist for autodev phases. Use proactively when one `.autodev` task should run in a fresh foreground agent context and produce its matching `TASK-NN-SUMMARY.md`.
4
- tools: Read, Grep, Glob, Bash, Edit, Write
5
- background: false
6
- color: orange
7
- model: inherit
8
- ---
9
-
10
- # autodev-task-worker
11
-
12
- Execute one assigned task inside the current phase and report back to the main phase session.
13
-
14
- ## Goal
15
-
16
- - Read the assigned phase context and task file
17
- - Make only the code changes needed for that task
18
- - Run the requested verification
19
- - Write the matching task summary
20
-
21
- ## Rules
22
-
23
- - You are not alone in the codebase.
24
- - Stay inside the assigned task scope.
25
- - The main phase session should stay orchestration-focused while you own this task.
26
- - Do not run git write commands.
27
- - Do not silently expand into the next task.
28
- - If blocked, say so clearly and write the blocker into the task summary.
29
-
30
- ## Output
31
-
32
- - Update the repository code for the assigned task only.
33
- - Write only the assigned `TASK-NN-SUMMARY.md`.
34
- - Do not edit project-level or track-level state files.
35
- - Return a concise report:
36
- - task id
37
- - files changed
38
- - verification run
39
- - blocker or done
@@ -1,13 +0,0 @@
1
- # Codebase Domain
2
-
3
- ## Main Product Areas
4
- - [Domain area]
5
-
6
- ## Key User Or System Flows
7
- - [Flow]
8
-
9
- ## Data And State Boundaries
10
- - [Where important state lives]
11
-
12
- ## Active Track Impact
13
- - [How the current track intersects the domain]
@@ -1,13 +0,0 @@
1
- # Codebase Quality
2
-
3
- ## Tests
4
- - [Existing test setup and obvious gaps]
5
-
6
- ## Conventions
7
- - [Naming, file organization, style patterns]
8
-
9
- ## Risks
10
- - [Security, stability, or maintainability concerns]
11
-
12
- ## Tech Debt
13
- - [Important debt likely to affect the active track]
@@ -1,13 +0,0 @@
1
- # Codebase Runtime
2
-
3
- ## Stack
4
- - [Languages, frameworks, libraries]
5
-
6
- ## Build And Run
7
- - [Commands, services, or boot path]
8
-
9
- ## Configuration And Environment
10
- - [Env vars, config files, deployment assumptions]
11
-
12
- ## External Dependencies
13
- - [APIs, databases, queues, or packages]
@@ -1,13 +0,0 @@
1
- # Codebase Structure
2
-
3
- ## Top-Level Layout
4
- - [Important directories and files]
5
-
6
- ## Entry Points
7
- - [App, server, CLI, worker, or build entry points]
8
-
9
- ## Architectural Shape
10
- - [How the code is grouped]
11
-
12
- ## Hotspots
13
- - [Files or modules likely to matter for the active track]
@@ -1,13 +0,0 @@
1
- # Codebase Summary
2
-
3
- ## Architecture Snapshot
4
- - [High-level shape]
5
-
6
- ## What Matters For The Active Track
7
- - [Most relevant subsystems]
8
-
9
- ## Safe Change Points
10
- - [Likely low-risk places to work]
11
-
12
- ## Risk Alerts
13
- - [Biggest planning or implementation risks]
@@ -1,22 +0,0 @@
1
- {
2
- "project": {
3
- "type": null
4
- },
5
- "workflow": {
6
- "research": false,
7
- "review_after_execute": true
8
- },
9
- "git": {
10
- "mode": "read-only"
11
- },
12
- "hooks": {
13
- "auto_format": true,
14
- "context_warnings": true,
15
- "read_guard": true,
16
- "workflow_guard": true,
17
- "prompt_guard": true,
18
- "git_guard": true,
19
- "session_state": true,
20
- "phase_boundary": true
21
- }
22
- }