Skip to content
Back to skills

Parallel Work

ASecurity

Use when the lead plans or runs a loops wave of role agents, or when asked to work in parallel - contract first, disjoint ownership, spawn and label lanes, relay, gates, lifecycle and model tiers.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgobashgitapisecurity

Works with

  • claude code
  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add arxdsilva/ai-loops --skill parallel-work --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Parallel Work?

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

Security grade badge for Parallel Work
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/arxdsilva-parallel-work-ai-loops/badge)](https://www.skillsdirectory.com/skills/arxdsilva-parallel-work-ai-loops)

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: parallel-work
description: Use when the lead plans or runs a loops wave of role agents, or when asked to work in parallel - contract first, disjoint ownership, spawn and label lanes, relay, gates, lifecycle and model tiers.
---

# Parallel work (lead checklist)

Rules: `specs/PARALLEL_WORK.md`. Run phases: `specs/WORKFLOW.md §2-4`. Roles and tiers: `ROLES.md`. This skill is the checklist; a one-file fix is still a wave with one agent.

1. **Plan has its waves.** The plan (`templates/PLAN.md`) carries the contract, a waves table per wave and a block per agent (`specs/PARALLEL_WORK.md §1`). `plan-reviewer` rejects a plan without them.
2. **Map areas to roles.** One role agent per layer or package area (`ROLES.md`). One role may run as several agents when their globs are disjoint (`W1-domain-orders`, `W1-domain-payments`), each with its own qa-verifier. Size waves to the effective cap = min(`parallel.max_agents`, default 100; `loops hw` recommendation; opt-in `limits.max_agents`); split larger waves into sub-waves (`W1a`, `W1b`) (`specs/WORKFLOW.md §2.2`). Every lane carries a `language` (a detected pack); test parallelism per agent comes from the pack (`env_hints`, `test_jobs`; Go: `GOFLAGS=-p=2`). Check the plan with `loops plan check`.
3. **Pick each model** (`ROLES.md` tiers): haiku for mechanical work, sonnet for implementation against a contract, opus for contracts, consistency, concurrency and migrations. State the reason in the table. Escalate one tier after two failed QA rounds.
4. **Contract first (wave 0).** The architect writes ports, typed commands, DTOs, stubs and shared config; one `<id>-engineer` per pack a lane uses sets up the toolchain and test prerequisites (`loops:lang-<id>`). Manifests and lockfiles have one owner. Wave 0 is done when each pack's build and lint checks pass (`loops gate --only <build,lint checks>`; Go: `build,vet`).
5. **Launch a wave in one message**, in the background: producers (domain, application) first; consumers (adapters) may start against stubs. Use `subagent_type: loops:<role>`, with the agent's plan block and these prompt lines (`specs/WORKFLOW.md §3`):

```text
Run dir: <abs>   Specs: <abs: loops path specs>   Role: <role>   Agent id: <W1-domain>   Wave: <n>
Language: <id> (root <dir>)
```

6. **Label each lane** (automatic on Claude Code, from the prompt header; elsewhere right after spawn, WORKFLOW §3):

```bash
loops run label --agent <agentId from the Agent result> --name W1-domain --role domain-engineer --wave 1
```

7. **Pipeline QA.** Launch a `qa-verifier` as soon as its implementer reports; it records its verdicts and loop-back itself with `loops run ingest`. When the last lane reports, start the full gate (the run's only one, WORKFLOW §6), the quality pass and the security pass together (WORKFLOW §2.4).
8. **Relay** cross-agent facts through the lead with `SendMessage`; broadcast additive contract changes to every affected agent. Do not enter plan mode while agents run.
9. **Integrate and verify.** After each wave check that it integrates with the build and lint checks only (`loops gate --only <build and lint checks>`; Go: `build,vet`); the full gate runs once per run, at the QA tail (`specs/WORKFLOW.md §6`). Route failures to the owning agent, resumed with `SendMessage`.
10. **Lifecycle** (`specs/PARALLEL_WORK.md §7`). Reuse the owning agent for fixes and the next wave. Do one-fact lookups and edits under ~30 lines yourself. Commit with `git commit -m ... -- <paths>` (only `product-reviewer` commits, after you confirm). `TaskStop` agents you will not resume. Split a worker before about 200 API calls.

## Agent prompt skeleton

```text
Model: <haiku|sonnet|opus> - <one-line reason>
You are agent <id> (<role>, language <id>) on <repo>. Load loops:lang-<id>. Read first: <plan file §>, AGENTS.md, nearest package AGENTS.md, <spec sections>.
Contract: <the plan's contract section>
Your job: <the agent's block from the plan>
Rules: owns ONLY <globs>; must NOT touch <globs>, manifests, lockfiles, shared config; no git writes; strict TDD;
  targeted checks only (loops gate --only <check>,... --pkgs <owned>; the pack's race policy).
Final report: templates/CLAIMS_REPORT.md (<=400 words).
```

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.