/dev-agents:continuous-improvement [testing|research|dependencies|parity|arch|security|full]from dev-agents
Orchestrates a continuous improvement cycle by spawning specialized agents for live testing, dependency monitoring, architecture review, and security scanning. Aggregates findings into a cycle journal.
Ships in dev-agents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run a continuous improvement cycle for the current Rust, TypeScript, or Luau/Lua project by coordinating four specialized agents:
live-tester — syncs with remote, executes the project binary live, detects anomalies and regressions, tracks coverage, files bug issuesresearcher — monitors dependency health, researches new techniques, tracks competitive parity, files research and dependency issuesarch-analyst — audits existing codebase for type system anti-patterns, DRY violations, architectural debt, API naming issues, and async concurrency problems; files improvement issues (read-only)security-analyst — scans existing codebase for vulnerabilities: dependency advisories, unsafe code, exposed secrets, injection and input-validation gaps, crypto misuse, broken auth, panic-based DoS, and supply-chain risk; files security issues (read-only)Focus: $ARGUMENTS
| Focus value | Agents spawned |
|---|---|
testing | live-tester only |
dependencies | researcher only (deps phase) |
research | researcher only (research phase) |
parity | researcher only (parity phase) |
arch | arch-analyst only (type-system, modularity, testability, readability, dry, async) |
security | security-analyst only (dependencies, unsafe, secrets, input, crypto, auth, panics, supply-chain) |
full | live-tester + researcher + arch-analyst + security-analyst in parallel |
.local//dev-agents:team-develop)process-notes.md, the single filer of the cross-agent testing-infra issue, and the single collector of follow_ups; spawned agents report all of it in their handoffs.local/testing/ artifacts live under the main repository root, even when the cycle runs from a git worktree; handoffs stay in the current directory's .local/handoff/If the preflight shows .claude/rules/continuous-improvement.md as present, pass its contents to each spawned agent so they can apply project-specific overrides.
printenv CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS || echo unsetprintenv CLAUDE_CODE_ENABLE_TODO_TOOLS || echo unsettest -f Cargo.toml && echo present || echo missingtest -f tsconfig.json && echo present || echo missingtest -f package.json && echo present || echo missingtest -f default.project.json -o -f wally.toml -o -f pesde.toml -o -f .luaurc -o -f .luarc.json -o -f selene.toml -o -f stylua.toml && echo present || echo missingtest -f .claude/rules/continuous-improvement.md && echo present || echo absentls "$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")/.local/testing/journal/" "$(dirname "$(git rev-parse --path-format=absolute --git-common-dir)")/.local/testing/journal/archive/" 2>/dev/null | grep -E '^ci-[0-9]{3}\.md$' | sort | tail -1 | grep . || echo noneSTOP if Cargo.toml, tsconfig.json, package.json, and the Luau/Lua markers are all missing (monorepo with manifests only in subdirectories: ask the user which stack to pass).
Stack: derive {stack} from the markers — Cargo.toml → rust; tsconfig.json or package.json → typescript; Luau/Lua markers → luau; several → all of them, comma-separated (rust,typescript; a roblox-ts project is typescript,luau). Record it in the cycle journal header and pass it in every spawn prompt.
This cycle is read-only fan-out: every agent works alone and reports back, so it runs on either engine.
| Agent teams flag | Engine | How agents report |
|---|---|---|
1 in an interactive session | teams — named spawns become teammates, the team forms implicitly on the first spawn | SendMessage to team-lead with handoff frontmatter + path |
unset, or a non-interactive session (claude -p, SDK, /loop, /schedule) | subagents — the same Agent() calls run as background subagents | The agent's report arrives with its task notification, or in auto mode as its SubagentHandback message; require the handoff frontmatter + path in it |
Tell the user which engine is active, then call Skill(skill: "dev-agents:team-lead") on either engine (without the Skill tool, Read ${CLAUDE_PLUGIN_ROOT}/skills/team-lead/SKILL.md). On the teams engine follow it in full. On the subagents engine skip its tool loading, shutdown, and every TaskCreate/TaskUpdate call below, open the spawn template with Your role: {role}. You run as a background subagent. instead of the teammate line, drop its Teammates:, Peers:, and Task: lines, and treat each task notification as the WAIT signal; agent-handoff tells the agent how to deliver its report. Never run team-develop or team-debug this way — they need peer messaging.
Determine the next cycle number from the preflight "Last cycle journal" value (it resolves the main repository root and covers journal/archive/): none means 001; otherwise increment by one. Create .local/testing/journal/ under the main repository root if it does not exist. A legacy coverage.md or journal.md is migrated by live-tester per the Testing Methodology.
Before spawning, sync and decide the cycle mode:
git rev-parse HEAD as {head} and read the previous HEAD from the last journal's head: frontmatter or the last handoff.| Role | Unchanged-HEAD behavior |
|---|---|
live-tester | Tests the stalest Untested/Partial rows and Tested rows whose dependencies moved |
arch-analyst, security-analyst | Audit the modules least recently covered, found in the Modules audited lines of prior journal/ci-*.md entries for that role |
researcher | Delta check only |
A re-verification with zero findings is a valid cycle outcome.
The team-lead outcomes table applies with two overrides: a partial result gets one Continue message, then you record what arrived; a failed: <error> is recorded in the journal under that agent's section and never re-spawned automatically.
Create the journal at <main root>/.local/testing/journal/ci-NNN.md ({journal-path} below):
---
cycle: NNN
date: YYYY-MM-DD
head: <git sha>
stack: <stack>
focus: <focus>
engine: <teams|subagents>
---
## Continuous Improvement Cycle NNN — YYYY-MM-DD
### Playbooks
- [Testing playbooks](../playbooks/)
- [Competitive parity](../playbooks/competitive-parity.md)
- [Regression scenarios](../regressions.md)
### Findings
| # | Type | Title | Priority | Issue | Spec |
|---|------|-------|----------|-------|------|
### Live Testing
_(populated by the orchestrator from live-tester's handoff)_
### Research & Monitoring
_(populated by the orchestrator from researcher's handoff)_
### Architecture & Code Quality
_(populated by the orchestrator from arch-analyst's handoff)_
### Security Audit
_(populated by the orchestrator from security-analyst's handoff)_
### Next Cycle Priorities
_(populated after cycle completes)_
Save {journal-path} as the absolute path <main root>/.local/testing/journal/ci-NNN.md, with the main root from dirname "$(git rev-parse --path-format=absolute --git-common-dir)" as in the preflight, for use in agent prompts and Step 3. A relative path would land in the worktree's .local/ and be lost with it.
Create tasks upfront based on focus:
| Task | Owner | Condition |
|---|---|---|
live-testing | live-tester | focus is testing or full |
research | researcher | focus is research, dependencies, parity, or full |
architecture | arch-analyst | focus is arch or full |
security | security-analyst | focus is security or full |
Every spawn prompt starts with the team-lead spawn template ({template} below), filled for this cycle — Teammates: the agents spawned in this cycle, Peers: none — report to the lead only, Code ownership: read-only — write only under .local/, never to tracked files — followed by this block:
Cycle journal: {journal-path}
Cycle mode: HEAD {changed|unchanged} (previous {previous-sha}, current {head}). The orchestrator has already synced and detected the mode: skip your protocol's sync and HEAD-mode detection, and do not fetch, merge, or move the checkout. Follow the Unchanged HEAD rules in your protocol when unchanged; never skip the cycle.
Journal: do NOT write {journal-path} or process-notes.md; the orchestrator is their only writer. List each finding in your handoff under `## Findings` as `<type> | <title> | <P0-P4> | #<issue> | <spec-path or —>` (issue number and spec path together), the modules you covered under `## Modules audited`, and your methodology-only retrospective under `## Retrospective`. Follow the Priority Label rules of your protocol.
Issues: file the issues of your own findings only. Do not file `testing-infra` issues; put them under Follow-ups.
Specs: allocate the spec directory number atomically (mkdir loop in SDD Integration) and leave MOC-specs.md to the orchestrator.
Report: include file paths and issue URLs.
Spawn all applicable agents in a single message so they run in parallel.
| Agent | Spawn when |
|---|---|
| live-tester | focus is testing or full |
| researcher | focus is research, dependencies, parity, or full |
| arch-analyst | focus is arch or full |
| security-analyst | focus is security or full |
live-tester:
TaskCreate(subject: "live-testing", description: "Live testing cycle")
Agent({
subagent_type: "dev-agents:live-tester",
description: "Live testing cycle",
name: "live-tester",
prompt: "{template}
Run the live-testing skill for this project.
Focus: <testing | full — pick based on $ARGUMENTS>.
Read the handoff chain for context on what changed recently.
Project-specific rules: <paste .claude/rules/continuous-improvement.md if it exists, else omit>
Write your handoff with a Testing Results section listing all findings and filed issue URLs."
})
TaskUpdate(taskId: "live-testing", owner: "live-tester", status: "in_progress")
researcher:
TaskCreate(subject: "research", description: "Research and monitoring cycle")
Agent({
subagent_type: "dev-agents:researcher",
description: "Research and monitoring cycle",
name: "researcher",
prompt: "{template}
Run the research-protocol skill for this project.
Focus: <research | dependencies | parity | full — pick based on $ARGUMENTS>.
<When focus is `full`: security advisories (RUSTSEC, GHSA, CVE) belong to security-analyst; do not scan or file them, and skip the CVE sweep. Keep version-drift and release monitoring.>
Read the handoff chain for context on what changed recently.
Project-specific rules: <paste .claude/rules/continuous-improvement.md if it exists, else omit>
Write your handoff with a Research Results section listing all findings and filed issue URLs and spec paths."
})
TaskUpdate(taskId: "research", owner: "researcher", status: "in_progress")
arch-analyst:
TaskCreate(subject: "architecture", description: "Architecture and code quality review")
Agent({
subagent_type: "dev-agents:arch-analyst",
description: "Architecture and code quality review",
name: "arch-analyst",
prompt: "{template}
Run a full architecture and code quality audit of this project.
This is a READ-ONLY analysis pass — do NOT modify source files. Use the `arch-inspect` skill's checklist.
Explicitly cover DRY, type safety, modern APIs (per the stack profile) and version-policy impact (MSRV, engines/target) every cycle, including unchanged-HEAD cycles; do not report zero findings by default.
Project-specific rules: <paste .claude/rules/continuous-improvement.md if it exists, else omit>
Write your handoff with an Architecture Review section listing all findings and filed issue URLs."
})
TaskUpdate(taskId: "architecture", owner: "arch-analyst", status: "in_progress")
security-analyst:
TaskCreate(subject: "security", description: "Vulnerability and security-hardening audit")
Agent({
subagent_type: "dev-agents:security-analyst",
description: "Vulnerability and security-hardening audit",
name: "security-analyst",
prompt: "{template}
Run a full vulnerability and security-hardening audit of this project.
This is a READ-ONLY analysis pass — do NOT modify source files, manifests, or lockfiles. Use the `security-audit` skill's checklist (run the dependency scanners first, then the code-pattern categories).
Project-specific rules: <paste .claude/rules/continuous-improvement.md if it exists, else omit>
Write your handoff with a Security Review section listing all findings, severities, and filed issue URLs."
})
TaskUpdate(taskId: "security", owner: "security-analyst", status: "in_progress")
WAIT for all spawned agents (teams engine: messages with handoff frontmatter + paths; subagents engine: task notifications, with the report in the agent's hand-back message in auto mode). Then update their tasks to completed. Apply the Agent outcomes table from Step 0 to partial or failed results.
Shut down each agent as soon as it completes, per the team-lead protocol (Shutdown).
Aggregate results from the agent handoffs and complete the remaining sections of {journal-path}. Number the Findings table once, here, from the rows each handoff lists under ## Findings; every agent section also ends with a Modules audited: line copied from the handoff. Collect the Follow-ups of every handoff with follow_ups above 0 as well: file each one that carries evidence, following the filing rules of Issue Management (duplicate check, P0-P4 and category labels at creation), and record it as a Findings row.
### Live Testing
- Features tested: <list>
- Issues filed: <links>
- Coverage changes: <components moved to Tested/Partial/Untested>
- Modules audited: <list>
### Research & Monitoring
- Dependency advisories: <count and priority>
- Research issues filed: <links>
- Parity gaps identified: <count>
- Modules audited: <list>
### Architecture & Code Quality
- Anti-patterns found: <count by category: type system / DRY / API naming / workspace / async>
- Issues filed: <links>
- Top structural concern: <one-sentence summary>
- Modules audited: <list>
### Security Audit
- Vulnerabilities found: <count by severity: Critical / High / Medium / Low>
- Scanner results: <dependency scanners from the stack profile, e.g. cargo deny / npm audit> <pass/fail, N advisories> | gitleaks <clean/N hits>
- Issues filed: <links>
- Top security risk: <one-sentence summary; note if immediate rotation/patch is required>
- Modules audited: <list>
### Process Retrospective
- <methodology only, merged from the handoffs' `## Retrospective` sections: what worked, what failed and is dropped, techniques to promote to a playbook — appended to `.local/testing/process-notes.md`>
### Next Cycle Priorities
- <top 3 items based on Findings table>
Then close the cycle (the orchestrator touches only .local/ and issue labels, never source code):
process-notes.md in the cycle) to .local/testing/process-notes.md per the Process Self-Improvement Loop.testing-infra issue yourself proposing a structural fix or automated regression test, merging in the testing-infra Follow-ups of the handoffs. The agents never file it; the orchestrator is its single filer..local/specs/MOC-specs.md entry for every spec path in the Findings rows (the sdd subagents leave the file alone inside a cycle; spec rules in SDD Integration).P0-P4 label with gh issue edit.Print {journal-path} to the console so the user can locate the cycle record.
What SKILL.md sets; muted values are Claude Code's defaults
'run a CI cycle', 'continuous improvement', 'live-test the latest changes', 'monitor dependencies', 'audit architecture and security', 'what should we improve next'.
Three short reads, in order
npx claudepluginhub bug-ops/claude-plugins --plugin dev-agents21 skills in this plugin
/agent-handoffHandoff protocol for the dev-agents multi-agent system. Subagents communicate via Markdown+frontmatter files in .local/handoff/. ALWAYS read on agent startup./arch-inspectArchitecture and code quality audit protocol for Rust, TypeScript, and Luau/Lua projects. Activates expert knowledge across type safety, modularity, testability, readability, DRY, async concurrency, error-handling design, API stability, observability, and lint/manifest hygiene, with language checklists from the stack profile. Called by arch-analyst at startup via Skill(...); invoked directly as /arch-inspect [focus] it delegates the audit to a background arch-analyst./fast-yamlValidate, format, and convert YAML/JSON files using the fast-yaml (fy) tool. Supports bidirectional YAML/JSON conversion and the YAML 1.2.2 spec with parallel processing for batch operations.Other plugins' skills for the same job