agent-eng 0.5.0 → 0.7.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/README.md CHANGED
@@ -14,16 +14,21 @@ This creates the following structure in your project:
14
14
  ├── CLAUDE.md # Project instructions for AI agents
15
15
  ├── orchestration.yaml # Agent workflow definition (roles, outputs)
16
16
  ├── architecture.yaml # System architecture definition (components, connections)
17
+ ├── .claude/
18
+ │ ├── settings.json # Claude Code project settings (MCP servers)
19
+ │ └── agents/ # Auto-wired Claude Code subagents — invoke via Agent tool
20
+ │ ├── architect.md
21
+ │ ├── system-architect.md
22
+ │ ├── planner.md
23
+ │ ├── executor.md
24
+ │ ├── qa-tester.md
25
+ │ ├── reviewer.md
26
+ │ └── custodian.md
17
27
  ├── architecture/
18
28
  │ ├── overview.md # High-level architecture overview
19
29
  │ └── decisions/
20
30
  │ ├── _template.md # ADR template
21
31
  │ └── 0001-how-we-work.md # Seed ADR: the workflow itself
22
- ├── prompts/
23
- │ ├── architect.md # System prompt for the Architect role
24
- │ ├── system-architect.md # System prompt for system architecture mapping
25
- │ ├── planner.md # System prompt for the Planner role
26
- │ └── reviewer.md # System prompt for the Reviewer role
27
32
  ├── specs/
28
33
  │ └── _template.md # Feature specification template
29
34
  ├── tickets/
@@ -72,7 +77,7 @@ The scaffolded workflow separates AI-assisted engineering into five roles:
72
77
  | **Executor** | Implements tickets following conventions, proposes plan first | Code and PRs |
73
78
  | **Reviewer** | Validates code against acceptance criteria and ADRs | Approval or actionable feedback |
74
79
 
75
- Each role has a dedicated system prompt in `prompts/` that you can load into your AI assistant to set the context for that type of work.
80
+ Each role is wired as a Claude Code subagent in `.claude/agents/`. Invoke them via the Agent tool (`subagent_type: "architect"`, etc.), or just describe the task Claude will route to the right subagent based on each agent's `description` frontmatter.
76
81
 
77
82
  ## YAML Definitions
78
83
 
@@ -88,11 +93,11 @@ Defines the runtime system components, their tiers (client/service/engine/data),
88
93
 
89
94
  1. **Review `CLAUDE.md`** — Customize the project instructions for your specific project
90
95
  2. **Pick your conventions** — Keep the ones that match your stack, remove the rest
91
- 3. **Start with the Architect** — Load `prompts/architect.md` and create your first ADR
92
- 4. **Map the system** — Load `prompts/system-architect.md` and create your `architecture.yaml`
93
- 5. **Plan the work** — Load `prompts/planner.md` and decompose your ADR into tickets
94
- 6. **Execute** — Pick up a ticket and implement it following your conventions
95
- 7. **Review** — Load `prompts/reviewer.md` to validate the work
96
+ 3. **Start with the Architect** — Ask Claude to use the `architect` subagent to create your first ADR
97
+ 4. **Map the system** — Use the `system-architect` subagent to create your `architecture.yaml`
98
+ 5. **Plan the work** — Use the `planner` subagent to decompose your ADR into tickets
99
+ 6. **Execute** — Use the `executor` subagent to implement a ticket following your conventions
100
+ 7. **Test & Review** — Use the `qa-tester` and `reviewer` subagents to validate the work
96
101
 
97
102
  ## License
98
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-eng",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Scaffold a structured agentic engineering workflow for AI-assisted development",
5
5
  "type": "module",
6
6
  "bin": {
package/src/init.js CHANGED
@@ -6,17 +6,18 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
6
6
  const TEMPLATES = join(__dirname, "templates");
7
7
 
8
8
  const STRUCTURE = [
9
+ ".github/workflows/notify-site.yml",
9
10
  ".claude/settings.json",
11
+ ".claude/agents/architect.md",
12
+ ".claude/agents/custodian.md",
13
+ ".claude/agents/executor.md",
14
+ ".claude/agents/planner.md",
15
+ ".claude/agents/qa-tester.md",
16
+ ".claude/agents/reviewer.md",
17
+ ".claude/agents/system-architect.md",
10
18
  "architecture/overview.md",
11
19
  "architecture/decisions/_template.md",
12
20
  "architecture/decisions/0001-how-we-work.md",
13
- "prompts/architect.md",
14
- "prompts/custodian.md",
15
- "prompts/executor.md",
16
- "prompts/planner.md",
17
- "prompts/qa-tester.md",
18
- "prompts/reviewer.md",
19
- "prompts/system-architect.md",
20
21
  "specs/_template.md",
21
22
  "tickets/_template.md",
22
23
  "tickets/_backlog.md",
@@ -83,6 +84,7 @@ export function init(options) {
83
84
  console.log("Next steps:");
84
85
  console.log(" 1. Review CLAUDE.md and customize for your project");
85
86
  console.log(" 2. Pick the conventions that match your stack");
86
- console.log(" 3. Start with the Architect: create your first ADR");
87
+ console.log(" 3. Start with the Architect subagent: ask Claude to use the 'architect' agent to create your first ADR");
88
+ console.log(" 4. Add the SITE_REBUILD_TOKEN secret and 'showcase' topic to enable auto site rebuilds");
87
89
  console.log("");
88
90
  }
@@ -1,4 +1,9 @@
1
- # Architect System Prompt
1
+ ---
2
+ name: architect
3
+ description: Use when the user wants to design a system, evaluate architectural alternatives, or produce an Architecture Decision Record (ADR). This agent asks clarifying questions before deciding and does not write application code.
4
+ tools: Read, Grep, Glob, Write, Edit, WebFetch
5
+ model: opus
6
+ ---
2
7
 
3
8
  You are an architect agent. Your role is to make design decisions and produce Architecture Decision Records (ADRs).
4
9
 
@@ -12,7 +17,7 @@ You are an architect agent. Your role is to make design decisions and produce Ar
12
17
 
13
18
  ## Constraints
14
19
 
15
- - You have **read access** to the codebase but **do not write code**
20
+ - You have **read access** to the codebase but **do not write application code**
16
21
  - You produce ADRs, not implementations
17
22
  - You ask questions before making decisions, not after
18
23
  - You document tradeoffs, not just the chosen path
@@ -1,4 +1,9 @@
1
- # Custodian System Prompt
1
+ ---
2
+ name: custodian
3
+ description: Use periodically (after a batch of tickets, or when CLAUDE.md grows past 200 lines) to keep CLAUDE.md lean, current, and routed to external files. Modifies only CLAUDE.md and the files it links to.
4
+ tools: Read, Write, Edit, Grep, Glob
5
+ model: haiku
6
+ ---
2
7
 
3
8
  You are a custodian agent. Your role is to maintain the project's `CLAUDE.md` file — keeping it accurate, lean, and well-routed.
4
9
 
@@ -41,7 +46,7 @@ You are a custodian agent. Your role is to maintain the project's `CLAUDE.md` fi
41
46
  - Business context or domain knowledge → `docs/context/<topic>.md`
42
47
  - Style guides → `conventions/style.md` or similar
43
48
  - API contracts or integration details → `docs/<integration>.md`
44
- - Large workflow instructions → `prompts/<role>.md`
49
+ - Large workflow / role instructions → `.claude/agents/<role>.md`
45
50
 
46
51
  ## Routing format
47
52
 
@@ -1,4 +1,9 @@
1
- # Executor System Prompt
1
+ ---
2
+ name: executor
3
+ description: Use when the user wants to implement a specific ticket. Reads the ticket, proposes a plan first, then implements following project conventions and ADRs. Verifies work end-to-end before marking done.
4
+ tools: Read, Write, Edit, Grep, Glob, Bash, WebFetch
5
+ model: sonnet
6
+ ---
2
7
 
3
8
  You are an executor agent. Your role is to implement tickets by writing code that follows the project's conventions and architecture decisions.
4
9
 
@@ -1,4 +1,9 @@
1
- # Planner System Prompt
1
+ ---
2
+ name: planner
3
+ description: Use when the user has an ADR or spec and wants it decomposed into actionable tickets with acceptance criteria. Produces tickets in feature folders and updates the backlog.
4
+ tools: Read, Grep, Glob, Write, Edit
5
+ model: sonnet
6
+ ---
2
7
 
3
8
  You are a planner agent. Your role is to decompose specs and ADRs into actionable tickets.
4
9
 
@@ -1,4 +1,9 @@
1
- # QA Tester System Prompt
1
+ ---
2
+ name: qa-tester
3
+ description: Use after a feature is implemented to write automated tests covering the acceptance criteria, edge cases, and regressions. Does not modify feature code.
4
+ tools: Read, Write, Edit, Grep, Glob, Bash
5
+ model: sonnet
6
+ ---
2
7
 
3
8
  You are a QA tester agent. Your role is to write automated tests for completed features, ensuring they meet acceptance criteria and catch regressions.
4
9
 
@@ -46,9 +51,9 @@ You are a QA tester agent. Your role is to write automated tests for completed f
46
51
 
47
52
  | Acceptance Criterion | Test(s) | Status |
48
53
  |---|---|---|
49
- | Criterion 1 | `should handle valid input` | Pass |
50
- | Criterion 2 | `should reject empty input`, `should reject null` | Pass |
51
- | Criterion 3 | `should return paginated results` | Pass |
54
+ | Criterion 1 | `should handle valid input` | Pass |
55
+ | Criterion 2 | `should reject empty input`, `should reject null` | Pass |
56
+ | Criterion 3 | `should return paginated results` | Pass |
52
57
 
53
58
  ### Edge Cases
54
59
 
@@ -1,4 +1,9 @@
1
- # Reviewer System Prompt
1
+ ---
2
+ name: reviewer
3
+ description: Use to review a diff or completed ticket against acceptance criteria, ADRs, and conventions. Flags issues with specific file:line references but does not fix them.
4
+ tools: Read, Grep, Glob, Bash
5
+ model: sonnet
6
+ ---
2
7
 
3
8
  You are a reviewer agent. Your role is to review code changes against acceptance criteria and architectural decisions.
4
9
 
@@ -1,4 +1,9 @@
1
- # System Architect Prompt
1
+ ---
2
+ name: system-architect
3
+ description: Use when the user wants to map or update the runtime architecture of the project — components, tiers, connections, protocols. Produces or updates `architecture.yaml`.
4
+ tools: Read, Grep, Glob, Write, Edit
5
+ model: sonnet
6
+ ---
2
7
 
3
8
  You are a system architect agent. Your role is to define and document the system architecture of a project as a structured `architecture.yaml` file.
4
9
 
@@ -0,0 +1,21 @@
1
+ name: Notify Site of Content Update
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - 'orchestration.yaml'
9
+ - 'architecture.yaml'
10
+ - 'README.md'
11
+
12
+ jobs:
13
+ notify:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Trigger site rebuild
17
+ uses: peter-evans/repository-dispatch@v3
18
+ with:
19
+ token: ${{ secrets.SITE_REBUILD_TOKEN }}
20
+ repository: swarpi/swarpi.github.io
21
+ event-type: showcase-updated
@@ -4,17 +4,17 @@ This project uses a structured agentic engineering workflow. Before starting any
4
4
 
5
5
  ## Workflow
6
6
 
7
- This project separates AI-assisted work into six roles. Each role has a dedicated system prompt in `prompts/`.
8
-
9
- | Role | Prompt | Responsibility |
10
- |------|--------|----------------|
11
- | **Architect** | `prompts/architect.md` | Analyze requirements, ask clarifying questions, produce ADRs |
12
- | **System Architect** | `prompts/system-architect.md` | Map and document system architecture as `architecture.yaml` |
13
- | **Planner** | `prompts/planner.md` | Decompose specs and ADRs into actionable tickets |
14
- | **Executor** | `prompts/executor.md` | Implement tickets, verify work before requesting feedback |
15
- | **QA Tester** | `prompts/qa-tester.md` | Write automated tests for completed features |
16
- | **Reviewer** | `prompts/reviewer.md` | Validate code and tests against acceptance criteria and ADRs |
17
- | **Custodian** | `prompts/custodian.md` | Keep CLAUDE.md lean (≤200 lines), current, and routed to external files |
7
+ This project separates AI-assisted work into seven roles. Each role is a Claude Code subagent in `.claude/agents/` — invoke them via the Agent tool with `subagent_type: "<name>"` (e.g., `subagent_type: "architect"`). Claude will also auto-route work to the appropriate subagent based on each agent's `description`.
8
+
9
+ | Role | Subagent | Responsibility |
10
+ |------|----------|----------------|
11
+ | **Architect** | `architect` | Analyze requirements, ask clarifying questions, produce ADRs |
12
+ | **System Architect** | `system-architect` | Map and document system architecture as `architecture.yaml` |
13
+ | **Planner** | `planner` | Decompose specs and ADRs into actionable tickets |
14
+ | **Executor** | `executor` | Implement tickets, verify work before requesting feedback |
15
+ | **QA Tester** | `qa-tester` | Write automated tests for completed features |
16
+ | **Reviewer** | `reviewer` | Validate code and tests against acceptance criteria and ADRs |
17
+ | **Custodian** | `custodian` | Keep CLAUDE.md lean (≤200 lines), current, and routed to external files |
18
18
 
19
19
  ## Sub-Agent Deployment
20
20
 
@@ -70,7 +70,7 @@ Use the Agent tool with these parameters:
70
70
  - `specs/` — Feature specifications
71
71
  - `tickets/` — Work items organized by feature folder, with `_backlog.md` as the sprint board
72
72
  - `conventions/` — Language and framework coding standards
73
- - `prompts/` — System prompts for each agent role
73
+ - `.claude/agents/` — Subagent definitions for each role (Architect, Planner, Executor, etc.)
74
74
 
75
75
  ## MCP Servers
76
76
 
@@ -12,7 +12,7 @@ agents:
12
12
  - Specs
13
13
  - Constraints
14
14
  color: indigo
15
- docLink: /prompts/architect.md
15
+ docLink: /.claude/agents/architect.md
16
16
 
17
17
  - id: system-architect
18
18
  kind: decision
@@ -24,7 +24,7 @@ agents:
24
24
  - Component map
25
25
  - Connection diagram
26
26
  color: green
27
- docLink: /prompts/system-architect.md
27
+ docLink: /.claude/agents/system-architect.md
28
28
 
29
29
  - id: planner
30
30
  kind: planning
@@ -36,7 +36,7 @@ agents:
36
36
  - Milestones
37
37
  - Criteria
38
38
  color: indigo
39
- docLink: /prompts/planner.md
39
+ docLink: /.claude/agents/planner.md
40
40
 
41
41
  - id: executor
42
42
  kind: execution
@@ -48,7 +48,7 @@ agents:
48
48
  - PRs
49
49
  - Plan docs
50
50
  color: indigo
51
- docLink: /prompts/executor.md
51
+ docLink: /.claude/agents/executor.md
52
52
 
53
53
  - id: qa-tester
54
54
  kind: validation
@@ -60,7 +60,7 @@ agents:
60
60
  - Coverage report
61
61
  - Test plan
62
62
  color: green
63
- docLink: /prompts/qa-tester.md
63
+ docLink: /.claude/agents/qa-tester.md
64
64
 
65
65
  - id: reviewer
66
66
  kind: validation
@@ -72,7 +72,7 @@ agents:
72
72
  - Approval
73
73
  - Notes
74
74
  color: amber
75
- docLink: /prompts/reviewer.md
75
+ docLink: /.claude/agents/reviewer.md
76
76
 
77
77
  - id: custodian
78
78
  kind: maintenance
@@ -83,7 +83,7 @@ agents:
83
83
  - Updated CLAUDE.md
84
84
  - Extracted reference files
85
85
  color: gray
86
- docLink: /prompts/custodian.md
86
+ docLink: /.claude/agents/custodian.md
87
87
 
88
88
  connections:
89
89
  - from: architect