azclaude-copilot 0.4.40 → 0.5.1
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/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +3 -3
- package/bin/cli.js +57 -0
- package/package.json +1 -1
- package/templates/CLAUDE.md +34 -0
- package/templates/agents/cc-cli-integrator.md +5 -0
- package/templates/agents/cc-template-author.md +7 -0
- package/templates/agents/cc-test-maintainer.md +5 -0
- package/templates/agents/code-reviewer.md +11 -0
- package/templates/agents/constitution-guard.md +9 -0
- package/templates/agents/devops-engineer.md +9 -0
- package/templates/agents/loop-controller.md +7 -0
- package/templates/agents/milestone-builder.md +7 -0
- package/templates/agents/orchestrator-init.md +9 -1
- package/templates/agents/orchestrator.md +5 -0
- package/templates/agents/problem-architect.md +29 -1
- package/templates/agents/qa-engineer.md +9 -0
- package/templates/agents/security-auditor.md +9 -0
- package/templates/agents/spec-reviewer.md +9 -0
- package/templates/agents/test-writer.md +11 -0
- package/templates/hooks/post-tool-use.js +341 -318
- package/templates/hooks/pre-tool-use.js +344 -315
- package/templates/hooks/stop.js +198 -151
- package/templates/hooks/user-prompt.js +369 -163
- package/templates/scripts/statusline.js +86 -0
- package/templates/scripts/statusline.sh +105 -0
- package/templates/skills/agent-creator/SKILL.md +11 -0
- package/templates/skills/architecture-advisor/SKILL.md +21 -16
- package/templates/skills/debate/SKILL.md +5 -0
- package/templates/skills/env-scanner/SKILL.md +5 -0
- package/templates/skills/frontend-design/SKILL.md +5 -0
- package/templates/skills/mcp/SKILL.md +3 -0
- package/templates/skills/security/SKILL.md +3 -0
- package/templates/skills/session-guard/SKILL.md +3 -0
- package/templates/skills/skill-creator/SKILL.md +12 -0
- package/templates/skills/test-first/SKILL.md +5 -0
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"plugins": [
|
|
9
9
|
{
|
|
10
10
|
"name": "azclaude",
|
|
11
|
-
"description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs
|
|
12
|
-
"version": "0.
|
|
11
|
+
"description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs 39 commands, 10 auto-invoked skills, 15 specialized agents, 4 hooks, and a persistent memory system — in one command.\n\nKey features:\n• Memory across sessions — goals.md + checkpoints injected automatically before every session\n• Self-improving loop — /reflect fixes stale CLAUDE.md rules, /reflexes learns from tool-use patterns, /evolve creates agents from git evidence\n• Autonomous copilot mode — /copilot runs a three-tier team (orchestrator → problem-architect → milestone-builder) across sessions until the product ships\n• Spec-driven workflow — /constitute writes project rules, /spec writes structured ACs, /analyze detects plan drift and ghost milestones, /blueprint traces every milestone to a spec\n• Security layer — 111-rule environment scan (/sentinel), pre-write secret blocking, pre-ship credential audit\n• Progressive levels 0–10 — start with CLAUDE.md, grow into multi-agent pipelines and self-evolving environments\n• Zero dependencies — no npm packages, no external APIs, no vector databases. Plain markdown files and Claude Code's native architecture.\n• Smart install — npx azclaude-copilot@latest auto-detects first install vs upgrade vs verify. Context-aware onboarding shows the right next command for your project state.\n\nExample use cases:\n• /setup — scan an existing project, detect stack + domain + scale, fill CLAUDE.md, generate project-specific skills and agents automatically\n• /copilot \"Build a compliance SaaS with trilingual support\" — walk away, come back to working code across multiple sessions\n• /sentinel — run a scored security audit (0–100, grade A–F) across hooks, permissions, MCP servers, agent configs, and secrets\n• /evolve — detect gaps in the environment, generate new skills and agents from git co-change evidence, report score delta (e.g. 42/100 → 68/100)\n• /constitute — write your project's constitution (non-negotiables, architectural commitments, definition of done) — gates all future AI actions\n• /analyze — cross-artifact consistency check: ghost milestones, spec vs. code drift, unplanned commits\n• /reflect — find stale, missing, or contradicting rules in CLAUDE.md and propose exact fixes\n• /debate \"REST vs GraphQL for this project\" — adversarial evidence-based decision with order-independent scoring, logged to decisions.md",
|
|
12
|
+
"version": "0.5.0",
|
|
13
13
|
"source": {
|
|
14
14
|
"source": "github",
|
|
15
15
|
"repo": "haytamAroui/AZ-CLAUDE-COPILOT",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azclaude",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs 39 commands, 10 auto-invoked skills, 15 specialized agents, 4 hooks, and a persistent memory system — in one command.\n\nKey features:\n• Memory across sessions — goals.md + checkpoints injected automatically before every session\n• Self-improving loop — /reflect fixes stale CLAUDE.md rules, /reflexes learns from tool-use patterns, /evolve creates agents from git evidence\n• Autonomous copilot mode — /copilot runs a three-tier team (orchestrator → problem-architect → milestone-builder) across sessions until the product ships\n• Spec-driven workflow — /constitute writes project rules, /spec writes structured ACs, /analyze detects plan drift and ghost milestones, /blueprint traces every milestone to a spec\n• Security layer — 111-rule environment scan (/sentinel), pre-write secret blocking, pre-ship credential audit\n• Progressive levels 0–10 — start with CLAUDE.md, grow into multi-agent pipelines and self-evolving environments\n• Zero dependencies — no npm packages, no external APIs, no vector databases. Plain markdown files and Claude Code's native architecture.\n• Smart install — npx azclaude-copilot@latest auto-detects first install vs upgrade vs verify. Context-aware onboarding shows the right next command for your project state.\n\nExample use cases:\n• /setup — scan an existing project, detect stack + domain + scale, fill CLAUDE.md, generate project-specific skills and agents automatically\n• /copilot \"Build a compliance SaaS with trilingual support\" — walk away, come back to working code across multiple sessions\n• /sentinel — run a scored security audit (0–100, grade A–F) across hooks, permissions, MCP servers, agent configs, and secrets\n• /evolve — detect gaps in the environment, generate new skills and agents from git co-change evidence, report score delta (e.g. 42/100 → 68/100)\n• /constitute — write your project's constitution (non-negotiables, architectural commitments, definition of done) — gates all future AI actions\n• /analyze — cross-artifact consistency check: ghost milestones, spec vs. code drift, unplanned commits\n• /reflect — find stale, missing, or contradicting rules in CLAUDE.md and propose exact fixes\n• /debate \"REST vs GraphQL for this project\" — adversarial evidence-based decision with order-independent scoring, logged to decisions.md",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "haytamAroui",
|
package/README.md
CHANGED
|
@@ -627,7 +627,7 @@ evidence_count: 6
|
|
|
627
627
|
|
|
628
628
|
---
|
|
629
629
|
|
|
630
|
-
## All
|
|
630
|
+
## All 39 Commands
|
|
631
631
|
|
|
632
632
|
### Build and Ship
|
|
633
633
|
|
|
@@ -758,11 +758,11 @@ An agent is a sub-process. Use one when work must happen **in parallel** or **in
|
|
|
758
758
|
|
|
759
759
|
## Verified
|
|
760
760
|
|
|
761
|
-
|
|
761
|
+
1758 tests. Every template, command, capability, agent, hook, and CLI feature verified.
|
|
762
762
|
|
|
763
763
|
```bash
|
|
764
764
|
bash tests/test-features.sh
|
|
765
|
-
# Results:
|
|
765
|
+
# Results: 1758 passed, 0 failed, 1758 total
|
|
766
766
|
```
|
|
767
767
|
|
|
768
768
|
---
|
package/bin/cli.js
CHANGED
|
@@ -441,6 +441,48 @@ function installScripts(projectDir, cfg) {
|
|
|
441
441
|
ok(`Scripts installed/updated (${cfg}/scripts/)`);
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
+
// ─── Statusline (auto-updating cost/context bar) ─────────────────────────────
|
|
445
|
+
|
|
446
|
+
function installStatusline(projectDir, cfg) {
|
|
447
|
+
const scriptSrc = path.join(TEMPLATE_DIR, 'scripts', 'statusline.js');
|
|
448
|
+
if (!fs.existsSync(scriptSrc)) return;
|
|
449
|
+
|
|
450
|
+
// Copy statusline script to ~/.claude/statusline.js (global — shared across projects)
|
|
451
|
+
const globalDir = path.join(os.homedir(), '.claude');
|
|
452
|
+
const scriptDst = path.join(globalDir, 'statusline.js');
|
|
453
|
+
fs.mkdirSync(globalDir, { recursive: true });
|
|
454
|
+
fs.copyFileSync(scriptSrc, scriptDst);
|
|
455
|
+
|
|
456
|
+
// Remove old .sh version if it exists (migrating from v0.5.0)
|
|
457
|
+
const oldSh = path.join(globalDir, 'statusline.sh');
|
|
458
|
+
try { if (fs.existsSync(oldSh)) fs.unlinkSync(oldSh); } catch {}
|
|
459
|
+
|
|
460
|
+
// Configure in global settings.json (statusLine is a global Claude Code setting)
|
|
461
|
+
const nodeExe = process.execPath;
|
|
462
|
+
const settingsPath = path.join(globalDir, 'settings.json');
|
|
463
|
+
let settings = {};
|
|
464
|
+
if (fs.existsSync(settingsPath)) {
|
|
465
|
+
try { settings = JSON.parse(fs.readFileSync(settingsPath, 'utf8')); } catch {}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// Always update the command to use Node.js (migrates from old .sh version)
|
|
469
|
+
const scriptPath = scriptDst.replace(/\\/g, '/');
|
|
470
|
+
const nodePath = nodeExe.replace(/\\/g, '/');
|
|
471
|
+
const needsUpdate = !settings.statusLine
|
|
472
|
+
|| (settings.statusLine.command && settings.statusLine.command.includes('statusline.sh'));
|
|
473
|
+
if (needsUpdate) {
|
|
474
|
+
settings.statusLine = {
|
|
475
|
+
type: 'command',
|
|
476
|
+
command: `"${nodePath}" "${scriptPath}"`,
|
|
477
|
+
padding: 1
|
|
478
|
+
};
|
|
479
|
+
atomicWriteFileSync(settingsPath, JSON.stringify(settings, null, 2));
|
|
480
|
+
ok('Statusline installed (Node.js) — context %, rate limit, session time visible after every turn');
|
|
481
|
+
} else {
|
|
482
|
+
info('Statusline already configured — script refreshed');
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
444
486
|
// ─── Agents ───────────────────────────────────────────────────────────────────
|
|
445
487
|
|
|
446
488
|
const AGENTS = ['orchestrator-init', 'code-reviewer', 'test-writer', 'loop-controller', 'cc-template-author', 'cc-cli-integrator', 'cc-test-maintainer', 'orchestrator', 'problem-architect', 'milestone-builder', 'security-auditor', 'spec-reviewer', 'constitution-guard', 'devops-engineer', 'qa-engineer'];
|
|
@@ -955,6 +997,20 @@ function runDoctor() {
|
|
|
955
997
|
chk(`${cli.rulesFile} filled (no {{placeholders}})`, !r.includes('{{'));
|
|
956
998
|
}
|
|
957
999
|
|
|
1000
|
+
// ── Statusline ──────────────────────────────────────────────────────────
|
|
1001
|
+
console.log('\n[ Statusline ]');
|
|
1002
|
+
const statuslineScript = path.join(os.homedir(), '.claude', 'statusline.js');
|
|
1003
|
+
chk('statusline.js exists (~/.claude/statusline.js)', fs.existsSync(statuslineScript));
|
|
1004
|
+
if (cli.hooksDir) {
|
|
1005
|
+
const globalSettingsPath = path.join(cli.hooksDir, 'settings.json');
|
|
1006
|
+
if (fs.existsSync(globalSettingsPath)) {
|
|
1007
|
+
try {
|
|
1008
|
+
const gs = JSON.parse(fs.readFileSync(globalSettingsPath, 'utf8'));
|
|
1009
|
+
chk('statusLine configured in settings.json', !!gs.statusLine);
|
|
1010
|
+
} catch { chk('statusLine configured in settings.json', false); }
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
958
1014
|
// ── Commands ─────────────────────────────────────────────────────────────
|
|
959
1015
|
console.log('\n[ Commands ]');
|
|
960
1016
|
const cmdDir = path.join(projectDir, cfg, 'commands');
|
|
@@ -1126,6 +1182,7 @@ installCapabilities(projectDir, cli.cfg, fullInstall);
|
|
|
1126
1182
|
installCommands(projectDir, cli.cfg);
|
|
1127
1183
|
installSkills(projectDir, cli.cfg);
|
|
1128
1184
|
installScripts(projectDir, cli.cfg);
|
|
1185
|
+
installStatusline(projectDir, cli.cfg);
|
|
1129
1186
|
installAgents(projectDir, cli.cfg);
|
|
1130
1187
|
installRulesFile(projectDir, cli.cfg, cli.rulesFile);
|
|
1131
1188
|
createDirectories(projectDir, cli.cfg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azclaude-copilot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "AI coding environment — 39 commands, 10 skills, 15 agents, memory, reflexes, evolution. Install: npx azclaude-copilot@latest, then open Claude Code.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"azclaude": "bin/cli.js",
|
package/templates/CLAUDE.md
CHANGED
|
@@ -58,6 +58,40 @@ When running parallel agents (/copilot with parallel waves, or /parallel):
|
|
|
58
58
|
|
|
59
59
|
Unknown capability → grep manifest.md by description, load match
|
|
60
60
|
|
|
61
|
+
## Agent Auto-Dispatch
|
|
62
|
+
Agents live in `.claude/agents/`. Spawn them via the Agent tool with the matching `subagent_type`.
|
|
63
|
+
**You MUST spawn the matching agent when these conditions are met — do not handle these tasks yourself.**
|
|
64
|
+
|
|
65
|
+
| Condition | Agent to spawn | Why |
|
|
66
|
+
|-----------|---------------|-----|
|
|
67
|
+
| Task touches 3+ files or crosses module boundaries | `problem-architect` | Pre-flight analysis: team spec, risks, file ownership |
|
|
68
|
+
| Architecture decision between 2+ real options | `architecture-advisor` (skill) | Evidence-based trade-off analysis, not gut feeling |
|
|
69
|
+
| Code was written or modified | `code-reviewer` | Catches bugs, security issues, style violations |
|
|
70
|
+
| Code needs test coverage | `test-writer` | Generates tests matching project framework + patterns |
|
|
71
|
+
| Task spans 2+ milestones or needs parallel work | `orchestrator` | Owns plan.md, dispatches milestone-builder agents |
|
|
72
|
+
| Security-sensitive change (auth, keys, hooks, deploy) | `security-auditor` | 111-rule scan, structured report with file:line refs |
|
|
73
|
+
| Infrastructure, CI/CD, Docker, deploy config | `devops-engineer` | Pipeline, container, cloud infrastructure specialist |
|
|
74
|
+
| Test strategy, E2E, release readiness | `qa-engineer` | Risk-based coverage, acceptance criteria validation |
|
|
75
|
+
| Spec file provided for planning | `spec-reviewer` | Validates spec quality before /blueprint uses it |
|
|
76
|
+
| Milestone about to be implemented | `constitution-guard` | Checks milestone against constitution.md non-negotiables |
|
|
77
|
+
|
|
78
|
+
**Mandatory pipeline for ALL code tasks (enforced by hook on every message):**
|
|
79
|
+
1. **ALWAYS** spawn `problem-architect` FIRST → get Team Spec (agents, skills, files, risks)
|
|
80
|
+
2. Follow Team Spec exactly: load listed skills, pre-read listed files, in order
|
|
81
|
+
3. If structural decision flagged → spawn `architecture-advisor` skill or run /debate
|
|
82
|
+
4. Implement following Team Spec patterns
|
|
83
|
+
5. **ALWAYS** spawn `code-reviewer` after implementation
|
|
84
|
+
6. **ALWAYS** spawn `test-writer` if tests are needed
|
|
85
|
+
|
|
86
|
+
**Skip pipeline only if:** message is a pure question with no action verb (e.g., "what does this function do?").
|
|
87
|
+
**Never skip for:** any code change, no matter how small. The pipeline catches bugs in 1-line changes too.
|
|
88
|
+
|
|
89
|
+
**Self-healing:** If problem-architect's Team Spec lists a MISSING skill or agent (domain expertise not installed):
|
|
90
|
+
- Use `skill-creator` to generate the missing skill before implementation
|
|
91
|
+
- Use `agent-creator` to generate the missing agent before implementation
|
|
92
|
+
- The created skill/agent is immediately available and persists for all future tasks
|
|
93
|
+
- Example: task needs GraphQL expertise → no GraphQL skill exists → skill-creator generates one → use it
|
|
94
|
+
|
|
61
95
|
## Trade-Off Hierarchies
|
|
62
96
|
When priorities conflict:
|
|
63
97
|
1. {{PRIORITY_1}}
|
|
@@ -12,10 +12,13 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
|
|
|
12
12
|
disallowedTools: [Agent]
|
|
13
13
|
permissionMode: acceptEdits
|
|
14
14
|
maxTurns: 40
|
|
15
|
+
tags: [cli, install, hook, routing, copilot-runner]
|
|
15
16
|
---
|
|
16
17
|
|
|
17
18
|
## Layer 1: PERSONA
|
|
18
19
|
|
|
20
|
+
<instructions>
|
|
21
|
+
|
|
19
22
|
CLI integration specialist. Wires new commands and features into the AZCLAUDE
|
|
20
23
|
CLI toolchain (`bin/cli.js`, `bin/copilot.js`). Ensures new template commands
|
|
21
24
|
are routable, new agents are installable, and the copilot runner handles all
|
|
@@ -97,6 +100,8 @@ SKILLS = ['session-guard', 'test-first', 'env-scanner', 'debate', 'se
|
|
|
97
100
|
The `installAgents()` function copies from `templates/agents/{name}.md` to
|
|
98
101
|
`{project}/.claude/agents/{name}.md` with path substitution.
|
|
99
102
|
|
|
103
|
+
</instructions>
|
|
104
|
+
|
|
100
105
|
## Self-Correction
|
|
101
106
|
|
|
102
107
|
If CLI changes break tests: read the failing test assertion, compare with
|
|
@@ -12,8 +12,13 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
|
|
|
12
12
|
disallowedTools: [Agent]
|
|
13
13
|
permissionMode: acceptEdits
|
|
14
14
|
maxTurns: 40
|
|
15
|
+
tags: [template, command, capability, markdown, azclaude]
|
|
15
16
|
---
|
|
16
17
|
|
|
18
|
+
# CC Template Author
|
|
19
|
+
|
|
20
|
+
<instructions>
|
|
21
|
+
|
|
17
22
|
## Layer 1: PERSONA
|
|
18
23
|
|
|
19
24
|
Template author for AZCLAUDE Copilot. Writes precise, machine-readable markdown
|
|
@@ -107,3 +112,5 @@ that Claude Code follows during autonomous sessions (no human in the loop).
|
|
|
107
112
|
If tests fail after template change: re-read the test expectations from
|
|
108
113
|
`tests/test-features.sh`, fix the template to match, re-run.
|
|
109
114
|
After 2 attempts: stop and report what the test expects vs what the template has.
|
|
115
|
+
|
|
116
|
+
</instructions>
|
|
@@ -12,10 +12,13 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
|
|
|
12
12
|
disallowedTools: [Agent]
|
|
13
13
|
permissionMode: acceptEdits
|
|
14
14
|
maxTurns: 40
|
|
15
|
+
tags: [test, grep, assertion, test-features, coverage]
|
|
15
16
|
---
|
|
16
17
|
|
|
17
18
|
## Layer 1: PERSONA
|
|
18
19
|
|
|
20
|
+
<instructions>
|
|
21
|
+
|
|
19
22
|
Test maintainer for AZCLAUDE Copilot. Writes and maintains grep-based tests
|
|
20
23
|
in `tests/test-features.sh`. Every template, command, capability, and CLI
|
|
21
24
|
feature must have test coverage before commit.
|
|
@@ -94,6 +97,8 @@ echo " Results: $PASS passed, $FAIL failed, $((PASS + FAIL)) total"
|
|
|
94
97
|
|
|
95
98
|
**Current test count: 862. Every new feature adds to this.**
|
|
96
99
|
|
|
100
|
+
</instructions>
|
|
101
|
+
|
|
97
102
|
## Self-Correction
|
|
98
103
|
|
|
99
104
|
If a new test fails: read the file it's testing, verify the grep pattern
|
|
@@ -10,8 +10,13 @@ tools: [Read, Glob, Grep, Bash]
|
|
|
10
10
|
disallowedTools: [Write, Edit, Agent]
|
|
11
11
|
permissionMode: plan
|
|
12
12
|
maxTurns: 30
|
|
13
|
+
tags: [review, pr, quality, lint, feedback]
|
|
13
14
|
---
|
|
14
15
|
|
|
16
|
+
# Code Reviewer
|
|
17
|
+
|
|
18
|
+
<instructions>
|
|
19
|
+
|
|
15
20
|
## Layer 1: PERSONA
|
|
16
21
|
|
|
17
22
|
Code review specialist. Read-only — never modifies code, only reports findings.
|
|
@@ -113,6 +118,10 @@ if [ -f pytest.ini ] || [ -f pyproject.toml ]; then python -m pytest 2>&1 | tail
|
|
|
113
118
|
- If uncertain after re-reading, downgrade BLOCKING to NOTE
|
|
114
119
|
- Only BLOCKING findings you would bet on survive this step
|
|
115
120
|
|
|
121
|
+
</instructions>
|
|
122
|
+
|
|
123
|
+
<output_format>
|
|
124
|
+
|
|
116
125
|
## Output Format
|
|
117
126
|
|
|
118
127
|
```
|
|
@@ -131,6 +140,8 @@ if [ -f pytest.ini ] || [ -f pyproject.toml ]; then python -m pytest 2>&1 | tail
|
|
|
131
140
|
### Verdict: APPROVE | REQUEST_CHANGES | NEEDS_TESTS
|
|
132
141
|
```
|
|
133
142
|
|
|
143
|
+
</output_format>
|
|
144
|
+
|
|
134
145
|
## Self-Correction
|
|
135
146
|
If test command fails to run: try alternative test runners.
|
|
136
147
|
After 2 attempts: report the test setup issue as a BLOCKING finding.
|
|
@@ -8,10 +8,13 @@ description: >
|
|
|
8
8
|
Spawned by /copilot before each milestone is dispatched to milestone-builder.
|
|
9
9
|
model: haiku
|
|
10
10
|
tools: [Read, Grep, Glob]
|
|
11
|
+
tags: [constitution, compliance, non-negotiable, gate, block]
|
|
11
12
|
---
|
|
12
13
|
|
|
13
14
|
# Constitution Guard — Pre-Implementation Compliance Gate
|
|
14
15
|
|
|
16
|
+
<instructions>
|
|
17
|
+
|
|
15
18
|
You read the constitution. You check the milestone. You block violations before they ship.
|
|
16
19
|
You never write code. You never modify anything. You return a verdict.
|
|
17
20
|
|
|
@@ -93,6 +96,10 @@ Does the milestone `Commit:` field suggest the definition of done will NOT be me
|
|
|
93
96
|
|
|
94
97
|
---
|
|
95
98
|
|
|
99
|
+
</instructions>
|
|
100
|
+
|
|
101
|
+
<output_format>
|
|
102
|
+
|
|
96
103
|
## Verdict Format
|
|
97
104
|
|
|
98
105
|
```
|
|
@@ -113,6 +120,8 @@ If APPROVED: `VERDICT: APPROVED` and nothing else.
|
|
|
113
120
|
If VIOLATION: list only the violated rules with one-line explanation each.
|
|
114
121
|
A VIOLATION causes /copilot to log the milestone to blockers.md and skip it pending human review.
|
|
115
122
|
|
|
123
|
+
</output_format>
|
|
124
|
+
|
|
116
125
|
---
|
|
117
126
|
|
|
118
127
|
## After Completing
|
|
@@ -11,10 +11,13 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
|
|
|
11
11
|
disallowedTools: [Agent]
|
|
12
12
|
permissionMode: acceptEdits
|
|
13
13
|
maxTurns: 40
|
|
14
|
+
tags: [ci, docker, deploy, kubernetes, pipeline, infrastructure]
|
|
14
15
|
---
|
|
15
16
|
|
|
16
17
|
## Layer 1: PERSONA
|
|
17
18
|
|
|
19
|
+
<instructions>
|
|
20
|
+
|
|
18
21
|
DevOps specialist. Owns CI/CD pipelines, containerization, infrastructure as code,
|
|
19
22
|
monitoring, and deployment procedures. Makes deployments boring and outages rare.
|
|
20
23
|
Never introduces manual steps in deployment — everything is code and automation.
|
|
@@ -151,6 +154,10 @@ act --list 2>&1 | head -20
|
|
|
151
154
|
grep -r "password\|secret\|api_key\|token" --include="*.yml" --include="*.yaml" . | grep -v "env\.\|secrets\.\|#"
|
|
152
155
|
```
|
|
153
156
|
|
|
157
|
+
</instructions>
|
|
158
|
+
|
|
159
|
+
<output_format>
|
|
160
|
+
|
|
154
161
|
## Output Format
|
|
155
162
|
|
|
156
163
|
```
|
|
@@ -173,6 +180,8 @@ Open questions (if any):
|
|
|
173
180
|
- {question that requires project-specific knowledge}
|
|
174
181
|
```
|
|
175
182
|
|
|
183
|
+
</output_format>
|
|
184
|
+
|
|
176
185
|
## Self-Correction
|
|
177
186
|
If a pipeline config can't be validated locally: document the assumption clearly.
|
|
178
187
|
If the stack is ambiguous: read CLAUDE.md and package.json before asking.
|
|
@@ -12,10 +12,13 @@ description: >
|
|
|
12
12
|
model: opus
|
|
13
13
|
tools: [Read, Write, Edit, Bash, Glob, Grep, Agent]
|
|
14
14
|
maxTurns: 100
|
|
15
|
+
tags: [evolve, iterate, gap-detect, topology, knowledge]
|
|
15
16
|
---
|
|
16
17
|
|
|
17
18
|
## Loop Controller — Level 10
|
|
18
19
|
|
|
20
|
+
<instructions>
|
|
21
|
+
|
|
19
22
|
This agent runs autonomously. All logic lives in the capability files — this agent
|
|
20
23
|
loads them on demand and orchestrates the sequence. It does not duplicate content.
|
|
21
24
|
|
|
@@ -96,6 +99,9 @@ Skip if: Cycle 1 PLAN was empty AND no topology friction detected.
|
|
|
96
99
|
|
|
97
100
|
## Completion Rule
|
|
98
101
|
|
|
102
|
+
</instructions>
|
|
103
|
+
|
|
104
|
+
<output_format>
|
|
99
105
|
Show the full cycle report:
|
|
100
106
|
```
|
|
101
107
|
Evolution Cycle Complete
|
|
@@ -116,3 +122,4 @@ Next actions: {top 3}
|
|
|
116
122
|
|
|
117
123
|
Update `.claude/memory/goals.md` with next actions.
|
|
118
124
|
Never say "evolution complete" without showing the metrics.
|
|
125
|
+
</output_format>
|
|
@@ -9,10 +9,13 @@ description: >
|
|
|
9
9
|
model: sonnet
|
|
10
10
|
permissionMode: acceptEdits
|
|
11
11
|
tools: [Read, Write, Edit, Bash, Grep, Glob]
|
|
12
|
+
tags: [implement, build, code, commit, milestone]
|
|
12
13
|
---
|
|
13
14
|
|
|
14
15
|
# Milestone Builder — The Builder
|
|
15
16
|
|
|
17
|
+
<instructions>
|
|
18
|
+
|
|
16
19
|
You implement. You receive complete context before starting.
|
|
17
20
|
You never decide what to build — orchestrator and architect decided that.
|
|
18
21
|
You decide HOW to build it.
|
|
@@ -134,6 +137,7 @@ git push
|
|
|
134
137
|
|
|
135
138
|
Report to orchestrator:
|
|
136
139
|
|
|
140
|
+
<output_format>
|
|
137
141
|
```
|
|
138
142
|
## Milestone {N} — {title}: COMPLETE
|
|
139
143
|
|
|
@@ -154,6 +158,7 @@ PASS — {N} tests passing
|
|
|
154
158
|
### New Anti-Patterns Discovered
|
|
155
159
|
{anti-pattern description} — or "none"
|
|
156
160
|
```
|
|
161
|
+
</output_format>
|
|
157
162
|
|
|
158
163
|
**Worktree coordination errors** (errors in files outside your declared scope):
|
|
159
164
|
- DO NOT attempt to fix them
|
|
@@ -170,3 +175,5 @@ PASS — {N} tests passing
|
|
|
170
175
|
- **ALWAYS show test output.** Never say "tests should pass."
|
|
171
176
|
- **NEVER commit without passing tests.** Failing tests → report to orchestrator.
|
|
172
177
|
- Commit message: `{type}: {what} — {why}`
|
|
178
|
+
|
|
179
|
+
</instructions>
|
|
@@ -5,9 +5,12 @@ description: >
|
|
|
5
5
|
Analyzes the project, fills CLAUDE.md, creates goals.md, installs capabilities.
|
|
6
6
|
Does NOT persist between sessions — not a routing agent.
|
|
7
7
|
tokens: ~400
|
|
8
|
+
tags: [setup, init, onboarding, first-run, project-scan]
|
|
8
9
|
---
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
# Project Initialization
|
|
12
|
+
|
|
13
|
+
<instructions>
|
|
11
14
|
|
|
12
15
|
This agent runs once. After setup is complete, it exits.
|
|
13
16
|
It does NOT sit in memory between sessions. There is no persistent orchestrator.
|
|
@@ -191,6 +194,11 @@ Create `knowledge-index.md`:
|
|
|
191
194
|
---
|
|
192
195
|
|
|
193
196
|
## Completion Rule
|
|
197
|
+
|
|
198
|
+
</instructions>
|
|
199
|
+
|
|
200
|
+
<output_format>
|
|
194
201
|
Print the filled CLAUDE.md content.
|
|
195
202
|
Print goals.md content.
|
|
196
203
|
Show both files as proof — do not say "setup complete" without showing them.
|
|
204
|
+
</output_format>
|
|
@@ -8,10 +8,13 @@ description: >
|
|
|
8
8
|
Model: sonnet by default — use --deep flag for opus on complex projects.
|
|
9
9
|
model: sonnet
|
|
10
10
|
tools: [Read, Grep, Glob, Bash, Task, AskUserQuestion]
|
|
11
|
+
tags: [copilot, dispatch, milestone, autonomous, tech-lead]
|
|
11
12
|
---
|
|
12
13
|
|
|
13
14
|
# Orchestrator — The Tech Lead
|
|
14
15
|
|
|
16
|
+
<instructions>
|
|
17
|
+
|
|
15
18
|
You direct. You never code. Your job is DECISIONS, not implementation.
|
|
16
19
|
|
|
17
20
|
## Session Loop
|
|
@@ -211,3 +214,5 @@ After all non-blocked milestones complete:
|
|
|
211
214
|
- **ALWAYS run /debate** for technology choices that lock future milestones.
|
|
212
215
|
- You OWN plan.md. No other agent modifies milestone status.
|
|
213
216
|
- You CAN create new agents if /evolve reveals a gap mid-run.
|
|
217
|
+
|
|
218
|
+
</instructions>
|
|
@@ -7,11 +7,14 @@ description: >
|
|
|
7
7
|
NEVER implements. NEVER writes to project files. Read-only analysis only.
|
|
8
8
|
Spawned by orchestrator before every milestone dispatch.
|
|
9
9
|
model: sonnet
|
|
10
|
-
tools: [Read, Grep, Glob, Bash]
|
|
10
|
+
tools: [Read, Grep, Glob, Bash, WebSearch, WebFetch]
|
|
11
|
+
tags: [analyze, scope, team-spec, complexity, pre-flight]
|
|
11
12
|
---
|
|
12
13
|
|
|
13
14
|
# Problem Architect — The Analyst
|
|
14
15
|
|
|
16
|
+
<instructions>
|
|
17
|
+
|
|
15
18
|
You analyze. You never build.
|
|
16
19
|
Given a milestone, you return exactly what the implementation team needs.
|
|
17
20
|
|
|
@@ -53,6 +56,20 @@ Also read:
|
|
|
53
56
|
|
|
54
57
|
---
|
|
55
58
|
|
|
59
|
+
### Step 2b: Web Research (MANDATORY for unfamiliar technologies)
|
|
60
|
+
|
|
61
|
+
If the milestone involves ANY technology, framework, API, or library:
|
|
62
|
+
1. **WebSearch** for "{technology} best practices {current year}" and "{technology} common pitfalls"
|
|
63
|
+
2. **WebFetch** the official documentation page for the specific API/library version in use
|
|
64
|
+
3. Note any breaking changes, deprecations, or migration guides that affect this milestone
|
|
65
|
+
|
|
66
|
+
**Why this step is mandatory:** Claude's training data is frozen. APIs change, libraries release breaking
|
|
67
|
+
versions, and best practices evolve. A 30-second web search prevents hours of debugging deprecated code.
|
|
68
|
+
|
|
69
|
+
**Skip only if:** the technology is pure internal code with no external dependencies.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
56
73
|
### Step 3: Identify What's Needed
|
|
57
74
|
|
|
58
75
|
**Agents:**
|
|
@@ -65,6 +82,9 @@ If milestone crosses 2+ agent boundaries → recommend sequential: agent-A first
|
|
|
65
82
|
- Touches auth/payments/secrets? → security
|
|
66
83
|
- Architecture decision? → architecture-advisor
|
|
67
84
|
- Domain-specific knowledge? → domain advisor (if exists in .claude/skills/)
|
|
85
|
+
- **GAP DETECTION:** If this milestone needs domain expertise not covered by any installed skill
|
|
86
|
+
(e.g., GraphQL, Stripe, i18n, accessibility, ML pipeline), mark it as MISSING in the Team Spec.
|
|
87
|
+
The orchestrator will use skill-creator to generate it before dispatch.
|
|
68
88
|
|
|
69
89
|
**Pre-Read Files:**
|
|
70
90
|
- Schema files (if touching DB)
|
|
@@ -95,6 +115,9 @@ A missed file here causes silent data loss.
|
|
|
95
115
|
|
|
96
116
|
### Step 4: Return Team Spec
|
|
97
117
|
|
|
118
|
+
</instructions>
|
|
119
|
+
|
|
120
|
+
<output_format>
|
|
98
121
|
Output this EXACT format — the orchestrator parses it:
|
|
99
122
|
|
|
100
123
|
```
|
|
@@ -108,6 +131,10 @@ Output this EXACT format — the orchestrator parses it:
|
|
|
108
131
|
### Skills to Load
|
|
109
132
|
- {skill-name}: because {specific reason tied to this milestone}
|
|
110
133
|
|
|
134
|
+
### Missing Skills (GAP — create before dispatch)
|
|
135
|
+
- {domain/technology}: needed because {reason} — use skill-creator to generate
|
|
136
|
+
(omit this section if all needed skills are installed)
|
|
137
|
+
|
|
111
138
|
### Pre-Read Files
|
|
112
139
|
- {file-path}: for {specific context reason}
|
|
113
140
|
|
|
@@ -135,6 +162,7 @@ If NO: reason = {specific conflict — shared file, schema dependency, runtime o
|
|
|
135
162
|
The orchestrator uses this to decide whether to use worktree isolation or sequential dispatch.
|
|
136
163
|
Parallel Safe = YES requires: isolated directories, no shared config/schema, no runtime dependency on a sibling milestone.
|
|
137
164
|
```
|
|
165
|
+
</output_format>
|
|
138
166
|
|
|
139
167
|
---
|
|
140
168
|
|
|
@@ -12,10 +12,13 @@ tools: [Read, Write, Edit, Glob, Grep, Bash]
|
|
|
12
12
|
disallowedTools: [Agent]
|
|
13
13
|
permissionMode: acceptEdits
|
|
14
14
|
maxTurns: 50
|
|
15
|
+
tags: [qa, e2e, playwright, acceptance, regression, release]
|
|
15
16
|
---
|
|
16
17
|
|
|
17
18
|
## Layer 1: PERSONA
|
|
18
19
|
|
|
20
|
+
<instructions>
|
|
21
|
+
|
|
19
22
|
QA specialist. Owns test strategy, risk-based coverage, E2E automation, and release
|
|
20
23
|
readiness. Goes beyond writing tests — defines what to test, at which level, and
|
|
21
24
|
whether the product is ready to ship. Never blocks a release without documented evidence.
|
|
@@ -150,6 +153,10 @@ npx cypress run 2>&1 | tail -30
|
|
|
150
153
|
npx playwright test --repeat-each=3 2>&1 | grep -E "passed|failed|flaky"
|
|
151
154
|
```
|
|
152
155
|
|
|
156
|
+
</instructions>
|
|
157
|
+
|
|
158
|
+
<output_format>
|
|
159
|
+
|
|
153
160
|
## Output Format
|
|
154
161
|
|
|
155
162
|
**E2E tests:**
|
|
@@ -181,6 +188,8 @@ Result: {N} passed, {N} failed
|
|
|
181
188
|
Blocked by: {issue title + severity} (if applicable)
|
|
182
189
|
```
|
|
183
190
|
|
|
191
|
+
</output_format>
|
|
192
|
+
|
|
184
193
|
## Self-Correction
|
|
185
194
|
If test framework is unknown: detect from package.json before writing any tests.
|
|
186
195
|
If tests fail after writing: read the error, fix the test, re-run once. Report if still failing.
|
|
@@ -14,10 +14,13 @@ tools: [Read, Grep, Glob, Bash]
|
|
|
14
14
|
disallowedTools: [Write, Edit, Agent]
|
|
15
15
|
permissionMode: plan
|
|
16
16
|
maxTurns: 40
|
|
17
|
+
tags: [security, scan, secrets, permissions, mcp, supply-chain]
|
|
17
18
|
---
|
|
18
19
|
|
|
19
20
|
## Layer 1: PERSONA
|
|
20
21
|
|
|
22
|
+
<instructions>
|
|
23
|
+
|
|
21
24
|
Security auditor. Read-only — never modifies files, never executes arbitrary code.
|
|
22
25
|
Scans Claude Code environments for security issues using native tools only.
|
|
23
26
|
Reports findings as `file:line — rule-id — description`. No speculation — only flag what is confirmed in files.
|
|
@@ -399,6 +402,10 @@ Include supply chain findings in the report under "### SUPPLY CHAIN (advisory)"
|
|
|
399
402
|
|
|
400
403
|
---
|
|
401
404
|
|
|
405
|
+
</instructions>
|
|
406
|
+
|
|
407
|
+
<output_format>
|
|
408
|
+
|
|
402
409
|
## Scoring & Output
|
|
403
410
|
|
|
404
411
|
After all 5 categories:
|
|
@@ -449,3 +456,5 @@ PROCEED → grade C or D, zero BLOCKED findings
|
|
|
449
456
|
- If a category has no findings: write `{category}: clean`
|
|
450
457
|
- Never write "likely" or "possibly" — only confirmed findings
|
|
451
458
|
- Each BLOCKED finding must include a one-line Fix instruction
|
|
459
|
+
|
|
460
|
+
</output_format>
|
|
@@ -7,10 +7,13 @@ description: >
|
|
|
7
7
|
Spawned by /blueprint when a spec file is provided as input.
|
|
8
8
|
model: haiku
|
|
9
9
|
tools: [Read, Grep, Glob]
|
|
10
|
+
tags: [spec, validate, acceptance-criteria, quality-gate]
|
|
10
11
|
---
|
|
11
12
|
|
|
12
13
|
# Spec Reviewer — Quality Gate Before Planning
|
|
13
14
|
|
|
15
|
+
<instructions>
|
|
16
|
+
|
|
14
17
|
You read specs. You validate them. You never write code, never modify the spec.
|
|
15
18
|
Your job: prevent /blueprint from planning against an ambiguous or incomplete spec.
|
|
16
19
|
|
|
@@ -89,6 +92,10 @@ and machine implementation. Your standards:
|
|
|
89
92
|
|
|
90
93
|
---
|
|
91
94
|
|
|
95
|
+
</instructions>
|
|
96
|
+
|
|
97
|
+
<output_format>
|
|
98
|
+
|
|
92
99
|
## Verdict Format
|
|
93
100
|
|
|
94
101
|
Return EXACTLY this block:
|
|
@@ -114,6 +121,8 @@ VERDICT: APPROVED
|
|
|
114
121
|
If APPROVED: output `VERDICT: APPROVED` and nothing else.
|
|
115
122
|
If not APPROVED: list ONLY the failing criteria with one-line gap description each.
|
|
116
123
|
|
|
124
|
+
</output_format>
|
|
125
|
+
|
|
117
126
|
---
|
|
118
127
|
|
|
119
128
|
## After Completing
|