Skip to content
Back to skills

Continuous Improvement

ASecurity

Orchestrate a continuous improvement cycle: spawn live-tester for live testing, researcher for dependency monitoring and research, arch-analyst for code quality and architecture review, and security-analyst for vulnerability scanning. Read-only; aggregates findings into a cycle journal. Runs as an agent team when CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1, otherwise (including headless `claude -p`, /loop, /schedule) as background subagents.

  • 12 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentstypescriptrustgobashtestinggitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add bug-ops/claude-plugins --skill continuous-improvement --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Continuous Improvement?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Continuous Improvement
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bug-ops-continuous-improvement/badge)](https://www.skillsdirectory.com/skills/bug-ops-continuous-improvement)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: continuous-improvement
description: "Orchestrate a continuous improvement cycle: spawn live-tester for live testing, researcher for dependency monitoring and research, arch-analyst for code quality and architecture review, and security-analyst for vulnerability scanning. Read-only; aggregates findings into a cycle journal. Runs as an agent team when CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1, otherwise (including headless `claude -p`, /loop, /schedule) as background subagents."
when_to_use: "'run a CI cycle', 'continuous improvement', 'live-test the latest changes', 'monitor dependencies', 'audit architecture and security', 'what should we improve next'."
argument-hint: "[testing|research|dependencies|parity|arch|security|full]"
allowed-tools: Bash(printenv *), Bash(ls *), Bash(test *), Bash(echo *), Bash(grep *), Bash(sort *), Bash(tail *), Bash(dirname *), Bash(git rev-parse *), Bash(git fetch *), Bash(git symbolic-ref *), Bash(git branch *), Bash(git merge --ff-only *), Bash(git log *), Bash(gh issue list *), Bash(gh issue create *), Bash(gh issue edit *), Bash(gh label create *)
---

# Continuous Improvement Orchestrator

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 issues
- **`researcher`** — monitors dependency health, researches new techniques, tracks competitive parity, files research and dependency issues
- **`arch-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 |

## Hard Rules

1. **NEVER modify source code** in this orchestrator session — delegate all execution to agents
2. **NEVER run live tests, research, or security scans directly** — spawn the appropriate agent
3. All spawned agents are read-only with respect to source code; they only write to `.local/`
4. CI sessions never fix anything: every finding, including a symptom without a known root cause, becomes an issue, and fixes run in a separate team session (`/dev-agents:team-develop`)
5. The orchestrator is the single writer of the cycle journal and `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
6. `.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/`

## Project-Specific Rules

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.

## Preflight (collected automatically when this skill loads)

- Agent teams flag: !`printenv CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS || echo unset`
- Task tools flag: !`printenv CLAUDE_CODE_ENABLE_TODO_TOOLS || echo unset`
- Cargo.toml: !`test -f Cargo.toml && echo present || echo missing`
- tsconfig.json: !`test -f tsconfig.json && echo present || echo missing`
- package.json: !`test -f package.json && echo present || echo missing`
- Luau/Lua markers: !`test -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 missing`
- Project CI rules: !`test -f .claude/rules/continuous-improvement.md && echo present || echo absent`
- Last cycle journal: !`ls "$(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 none`

STOP 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.

## Step 0: Pick the Engine, Load Tools, Create the Cycle Journal

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](${CLAUDE_PLUGIN_ROOT}/skills/live-testing/references/testing-methodology.md#coverage-status-file).

### Cycle start

Before spawning, sync and decide the cycle mode:

1. Sync per [Phase 1: Sync](${CLAUDE_PLUGIN_ROOT}/skills/live-testing/SKILL.md#phase-1-sync) — fetch, fast-forward only when on the default branch, never merge it into another branch — and read the new commits.
2. Record `git rev-parse HEAD` as `{head}` and read the previous HEAD from the last journal's `head:` frontmatter or the last handoff.
3. Equal HEADs mean **unchanged-HEAD mode**: the cycle is never skipped. Pass the mode and both SHAs to every agent in its prompt.

| 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.

### Agent outcomes

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):

```markdown
---
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` |

## Spawn Template

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.
```

## Step 1: Spawn agents

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.

## Step 2.5: Shutdown Agents (teams engine only)

Shut down each agent as soon as it completes, per the `team-lead` protocol (Shutdown).

## Step 3: Complete Cycle Summary

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](references/issue-management.md) (duplicate check, `P0`-`P4` and category labels at creation), and record it as a Findings row.

```markdown
### 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):

1. Append the merged retrospective (the only write to `process-notes.md` in the cycle) to `.local/testing/process-notes.md` per the [Process Self-Improvement Loop](${CLAUDE_PLUGIN_ROOT}/skills/live-testing/references/testing-methodology.md#process-self-improvement-loop).
2. If a bug category recurs three or more times across cycle journals, list it under Next Cycle Priorities and file one `testing-infra` issue yourself proposing a structural fix or automated regression test. For an API-misuse category ("called API X where Y was required"), the first-choice structural fix is making the wrong call impossible; in Rust, a `disallowed-methods` / `disallowed-types` entry in `clippy.toml` whose `reason` names the bug and the replacement, for example `{ path = "saphyr_parser::Parser::new", reason = "unbounded scanner lookahead (#563); parse through fast_yaml_core::NormalizedInput::scanner" }` (other profiles keep the regression test). Merge in the `testing-infra` Follow-ups of the handoffs. The agents never file it; the orchestrator is its single filer.
3. Add one `.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](references/sdd-integration.md)).
4. Run the label spot-check from [Issue Management](references/issue-management.md#priority-label-mandatory); the orchestrator may add a missing `P0`-`P4` label with `gh issue edit`.

Print `{journal-path}` to the console so the user can locate the cycle record.

Files in this skill

  • SKILL.md13.6 KB
  • references/issue-management.md3.1 KB
  • references/research-protocol.md4.9 KB
  • references/sdd-integration.md4.1 KB
  • references/testing-methodology.md5.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.