Skip to content

Commit 61925ed

Browse files
authored
feat: restructure to pipeline-stage skills (v3.0.0)
feat: restructure to pipeline-stage skills (v3.0.0)
2 parents ac19db2 + eaff0fc commit 61925ed

44 files changed

Lines changed: 6491 additions & 1566 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"name": "agent-team",
99
"description": "Orchestrates parallel work via Agent Teams with automated coordination, workspace tracking, and hook enforcement",
10-
"version": "2.6.0",
10+
"version": "3.0.0",
1111
"source": {
1212
"source": "url",
1313
"url": "https://github.com/ducdmdev/agent-team-plugin.git"

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "agent-team",
33
"description": "Orchestrates parallel work via Agent Teams with automated coordination, workspace tracking, and hook enforcement",
4-
"version": "2.6.0",
4+
"version": "3.0.0",
55
"author": {
66
"name": "Duc Do"
77
}

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,43 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.0.0] - 2026-03-23
9+
10+
### Breaking Changes
11+
- **Skill restructure: 5 archetype skills to 4 pipeline stages** — replaced `agent-team`, `agent-implement`, `agent-research`, `agent-audit`, `agent-plan` skills with `start`, `plan`, `execute`, `audit` pipeline stages
12+
- **Migrated shared docs into stage skills**`docs/shared-phases.md`, `docs/spawn-templates.md`, `docs/communication-protocol.md`, `docs/coordination-patterns.md`, `docs/coordination-advanced.md`, `docs/report-format.md` moved into stage-specific `references/`, `agents/`, `examples/` subfolders
13+
14+
### Added
15+
- **Pipeline entry point** (`skills/start/SKILL.md`) — type detection, prior context loading, routing to plan/execute/audit
16+
- **Prior context loading** — plan stage loads lessons and error patterns from prior teams to inform decomposition
17+
- **Plan-mode gate** — teammates propose their approach before executing; lead reviews and approves
18+
- **Error recovery loop** — execute stage retries failed tasks with structured escalation (retry, reassign, simplify, skip)
19+
- **Elegance review** — audit stage spawns an Elegance Reviewer agent to assess code quality beyond correctness
20+
- **Lessons capture** — audit stage extracts reusable lessons for future teams
21+
- **Pattern library** — audit stage builds coordination pattern recommendations from team experience
22+
- **Inter-stage review agents** — plan-reviewer, execute-reviewer, audit-reviewer validate output between stages
23+
- **Elegance Reviewer role** — new teammate role for post-execution quality assessment (auto-spawned by audit stage)
24+
- **`recovery_class` field** — each teammate role now declares its error recovery behavior (full, report-gap, skip-and-continue, recover-only)
25+
- **Plan-mode defaults** in `docs/team-archetypes.md` — each archetype has a default plan-mode setting
26+
- **Stage-specific subfolders**`references/`, `examples/`, `agents/` per stage skill for self-contained content
27+
- **Team per stage** — each pipeline stage creates and manages its own ephemeral team (plan: Researcher + Analyst + Plan Reviewer; execute: Implementers + Tester + Reviewer + Execute Reviewer; audit: Reviewer + Elegance Reviewer + Audit Reviewer)
28+
- New spawn templates: `researcher.md`, `analyst.md` (plan stage), `reviewer.md` (audit stage)
29+
- `**Pipeline status**`, `**Stage**`, and `**Archetype**` fields in `progress.md` for cross-stage handoff
30+
- `FINDING` and `ANALYSIS` message types for plan stage team communication
31+
32+
### Removed
33+
- `docs/shared-phases.md` — phase logic inlined into each stage skill
34+
- `docs/spawn-templates.md` — migrated to `skills/execute/agents/spawn-templates.md`
35+
- `docs/communication-protocol.md` — migrated to `skills/execute/references/communication-protocol.md`
36+
- `docs/coordination-patterns.md` — migrated to `skills/execute/references/coordination-patterns.md`
37+
- `docs/coordination-advanced.md` — merged into `skills/execute/references/coordination-patterns.md`
38+
- `docs/report-format.md` — migrated to `skills/audit/references/report-format.md`
39+
- `skills/agent-team/` — replaced by `skills/start/`
40+
- `skills/agent-implement/` — replaced by `skills/execute/`
41+
- `skills/agent-research/` — replaced by `skills/execute/` (team type detection in start stage)
42+
- `skills/agent-audit/` — replaced by `skills/audit/`
43+
- `skills/agent-plan/` — replaced by `skills/plan/`
44+
845
## [2.6.0] - 2026-03-20
946

1047
### Added

CLAUDE.md

Lines changed: 50 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,28 @@ A Claude Code plugin that adds an Agent Team skill for orchestrating parallel wo
1010
.claude-plugin/ Plugin manifest + marketplace registry
1111
hooks/hooks.json Plugin-level hooks (use ${CLAUDE_PLUGIN_ROOT} for paths)
1212
scripts/ Hook scripts (bash, require jq)
13-
skills/agent-team/ Hybrid/catch-all orchestrator
14-
skills/agent-implement/ Implementation team orchestrator
15-
skills/agent-research/ Research team orchestrator
16-
skills/agent-audit/ Audit team orchestrator
17-
skills/agent-plan/ Planning team orchestrator
18-
docs/ Shared phases + reference docs consumed by skills at runtime
13+
skills/start/ Pipeline entry point — type detection + routing
14+
skills/plan/ Plan stage — decomposition, DAG, approval
15+
references/ Prior context loading, plan-mode protocol
16+
examples/ Plan proposal examples
17+
agents/ Plan-reviewer agent
18+
skills/execute/ Execute stage — spawn, coordination, error recovery
19+
references/ Communication protocol, coordination patterns, error recovery
20+
agents/ Spawn templates, execute-reviewer agent
21+
skills/audit/ Audit stage — gates, elegance review, report, lessons
22+
references/ Completion gates, elegance rubric, report format
23+
examples/ Lessons-learned examples
24+
agents/ Audit-reviewer, elegance-reviewer agents
25+
docs/ Shared reference docs (roles, archetypes, workspace templates, custom roles)
1926
```
2027

2128
### Key Design Decisions
2229

2330
- **Hooks are plugin-level** (`hooks/hooks.json`), not in SKILL.md frontmatter — this is how Claude Code plugins register hooks
2431
- **`${CLAUDE_PLUGIN_ROOT}`** is the only valid path variable in hooks.json — it resolves to the plugin install directory at runtime
25-
- **SKILL.md inlines** workspace templates and communication protocol so the skill is self-contained for core workflow. Detailed role definitions and patterns stay in `docs/` to keep SKILL.md focused
26-
- **workspace.md is not a standalone file** — its content was inlined into SKILL.md Phase 3 and Phase 4
32+
- **Each stage skill is self-contained** — stage-specific references, examples, and agents live in subfolders (`references/`, `examples/`, `agents/`) alongside SKILL.md
33+
- **Shared docs** (`docs/`) contain only cross-cutting references: teammate roles, workspace templates, team archetypes, custom roles
34+
- **Team per stage** — each pipeline stage (plan, execute, audit) creates and manages its own ephemeral team. Teams communicate with the lead via SendMessage. Workspace files are the only handoff between stages.
2735
- **No `disable-model-invocation`** — the skill auto-invokes on matching trigger phrases
2836

2937
## File Ownership
@@ -34,21 +42,22 @@ docs/ Shared phases + reference docs consumed by skills at runt
3442
| `.claude-plugin/marketplace.json` | Marketplace registry | Bump version here too, keep in sync with plugin.json |
3543
| `hooks/hooks.json` | Hook registration (9 hook entries) | Update timeout values, add new hooks, or update hook command paths |
3644
| `scripts/*.sh` | Hook enforcement logic (12 scripts) | Written in bash (`#!/bin/bash`), degrade gracefully without `jq` |
37-
| `skills/agent-team/SKILL.md` | Hybrid/catch-all skill | Archetype detection + hybrid-specific overrides |
38-
| `skills/agent-implement/SKILL.md` | Implementation skill | Implementation-specific Phase 3/5 |
39-
| `skills/agent-research/SKILL.md` | Research skill | Research-specific Phase 3/5 |
40-
| `skills/agent-audit/SKILL.md` | Audit skill | Audit-specific Phase 3/5 |
41-
| `skills/agent-plan/SKILL.md` | Planning skill | Planning-specific Phase 3/5 |
42-
| `docs/shared-phases.md` | Shared phase logic | Changes here affect ALL archetype skills |
45+
| `skills/start/SKILL.md` | Pipeline entry point | Type detection, prior context, routing to plan/execute/audit |
46+
| `skills/plan/SKILL.md` | Plan stage | Decomposition, DAG creation, plan-review, user approval |
47+
| `skills/plan/references/` | Plan stage references | Prior context loading, plan-mode protocol |
48+
| `skills/plan/examples/` | Plan stage examples | Plan proposal example |
49+
| `skills/plan/agents/` | Plan stage agents | Plan-reviewer, researcher, analyst agent definitions |
50+
| `skills/execute/SKILL.md` | Execute stage | Spawn, coordination, error recovery loop |
51+
| `skills/execute/references/` | Execute stage references | Communication protocol, coordination patterns, error recovery |
52+
| `skills/execute/agents/` | Execute stage agents | Spawn templates, execute-reviewer agent |
53+
| `skills/audit/SKILL.md` | Audit stage | Completion gates, elegance review, report, lessons |
54+
| `skills/audit/references/` | Audit stage references | Completion gates, elegance rubric, report format |
55+
| `skills/audit/examples/` | Audit stage examples | Lessons-learned example |
56+
| `skills/audit/agents/` | Audit stage agents | Audit-reviewer, elegance-reviewer, reviewer agents |
4357
| `docs/teammate-roles.md` | Role definitions + selection guide | Update when adding new roles |
44-
| `docs/spawn-templates.md` | Spawn prompt templates | Update when changing spawn prompts |
45-
| `docs/communication-protocol.md` | Structured message formats | Update when changing protocol prefixes or role-specific formats |
46-
| `docs/coordination-patterns.md` | Core conflict resolution, handoffs | Update when adding new core coordination patterns |
47-
| `docs/coordination-advanced.md` | Advanced coordination patterns | Update when adding new advanced patterns |
4858
| `docs/workspace-templates.md` | Workspace file templates + `task-graph.json` schema | Update when adding new workspace files or changing DAG schema |
49-
| `docs/report-format.md` | Final report template | Update when changing report structure |
59+
| `docs/team-archetypes.md` | Team type definitions + phase profiles | Update when adding new archetypes or modifying plan-mode defaults |
5060
| `docs/custom-roles.md` | Project-specific role template | Reference for users creating custom roles |
51-
| `docs/team-archetypes.md` | Team type definitions + phase profiles | Update when adding new archetypes or modifying phase overrides |
5261
| `CHANGELOG.md` | Version history | Add entry for each release |
5362
| `README.md` | User-facing documentation | Keep in sync with feature changes |
5463
| `tests/` | Hook and structure tests | `hooks/` for hook tests, `structure/` for plugin validation |
@@ -84,9 +93,9 @@ chore: maintenance (CI, dependencies)
8493
### SKILL.md Editing
8594

8695
- The frontmatter (`---` block) defines skill metadata — do not add `hooks:` or `disable-model-invocation` back
87-
- Phase structure (1-5) is the core contract — preserve it
88-
- Inlined sections (workspace templates in Phase 3, communication protocol in Phase 4) must stay in sync with `docs/` if the same content exists in both places
89-
- Doc references use `../../docs/` relative paths from `skills/agent-team/`
96+
- Each stage skill has its own phase structure — preserve the stage-specific flow
97+
- Stage-specific content lives in subfolders (`references/`, `examples/`, `agents/`) — keep SKILL.md focused on orchestration logic, detailed reference material in subfolders
98+
- Doc references use `../../docs/` relative paths from `skills/{stage}/` for shared docs, `./references/` or `./agents/` for stage-local files
9099

91100
## Testing
92101

@@ -96,7 +105,7 @@ chore: maintenance (CI, dependencies)
96105
bash tests/run-tests.sh
97106
```
98107

99-
Runs 12 test files (145 assertions) covering all hooks and plugin structure.
108+
Runs 12 test files covering all hooks and plugin structure.
100109

101110
### Validate Plugin
102111

@@ -133,27 +142,27 @@ Nine hook entries registered in `hooks/hooks.json`:
133142
1. Add the script to `scripts/`
134143
2. Make it executable
135144
3. Register it in `hooks/hooks.json` using `${CLAUDE_PLUGIN_ROOT}/scripts/your-script.sh`
136-
4. Document in shared-phases.md Hooks section and README
145+
4. Document in the relevant stage skill's SKILL.md and README
137146
5. Test: run `claude plugin validate .` then test manually in a team session
138147

139148
### Adding a New Teammate Role
140149

141-
1. Add the role definition and spawn template to `docs/teammate-roles.md`
142-
2. Update the Role Selection Guide table
143-
3. Update README Teammate Roles table
144-
145-
### Adding a New Archetype Skill
146-
147-
1. Create a new `skills/agent-{name}/SKILL.md` with frontmatter (name, description, argument-hint, allowed-tools)
148-
2. Reference `../../docs/shared-phases.md` for shared logic (Phases 1, 2, 4)
149-
3. Add archetype-specific Phase 3 and Phase 5 overrides
150-
4. Add the archetype to the detection table in `skills/agent-team/SKILL.md`
151-
5. Add trigger patterns to `docs/team-archetypes.md`
152-
6. Add the report variant template to `docs/report-format.md`
153-
7. Update `tests/structure/test-doc-references.sh` (auto-detected via `skills/*/SKILL.md` glob)
154-
8. Update `README.md` Archetype-Specific Commands table and Plugin Structure tree
155-
9. Add row to `CLAUDE.md` File Ownership table
156-
10. Test: run `bash tests/run-tests.sh`, then trigger the skill with a matching phrase
150+
1. Add the role definition to `docs/teammate-roles.md`
151+
2. Add the spawn template to `skills/execute/agents/spawn-templates.md`
152+
3. Update the Role Selection Guide table in `docs/teammate-roles.md`
153+
4. Update README Teammate Roles table
154+
155+
### Adding a New Pipeline Stage
156+
157+
1. Create a new `skills/{stage}/SKILL.md` with frontmatter (name, description, argument-hint, allowed-tools)
158+
2. Create subfolders as needed: `references/`, `examples/`, `agents/`
159+
3. Add stage-specific orchestration logic, referencing `../../docs/` for shared docs
160+
4. Update `skills/start/SKILL.md` routing table to include the new stage
161+
5. Add trigger patterns to `docs/team-archetypes.md` if applicable
162+
6. Update `tests/structure/test-doc-references.sh` — add assertions for new skill and subfolders
163+
7. Update `README.md` Pipeline Commands table and Plugin Structure tree
164+
8. Add rows to `CLAUDE.md` File Ownership table
165+
9. Test: run `bash tests/run-tests.sh`, then trigger the skill with a matching phrase
157166

158167
### Releasing a New Version
159168

0 commit comments

Comments
 (0)