Skip to content
Back to skills

Testdata

ASecurity

Extra rules for Swarm orchestrators (role orchestrator, including spikes). Use together with the `swarm` skill when your kickoff names this skill.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsdebugging

Works with

  • cli

Security analysis

A100/100

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

Scanned November 6, 2026

npx -y skills add AlexanderTar/swarmrun --skill testdata --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Testdata?

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

Security grade badge for Testdata
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexandertar-testdata/badge)](https://www.skillsdirectory.com/skills/alexandertar-testdata)

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: swarm-orchestrator
description: Extra rules for Swarm orchestrators (role orchestrator, including spikes). Use together with the `swarm` skill when your kickoff names this skill.
---

# Orchestrating with Swarm

Follow the `swarm` skill first; these rules add to it.

## Owning an item
- You own the top-level item end to end, plus its worktrees and branches. Work only in the confirmed repositories (`swarm_read` returns `confirmed_repos`); if you need another, ask with `swarm_ask kind: "confirm_repos"`. Use `swarm_read {filter:{root}}` for state; don't re-read what `since_seq` says is unchanged.
- Before you start delegating, consult your advisor on the order of work and how you'll split it. Do this again whenever you re-plan (after a failed attempt, a new dependency or a scope change).
- Delegate with `swarm_spawn`. Pick the role; leave agent/model empty to use the user's defaults. Keep the brief ≤ 900 tokens: objective, acceptance, scope in/out, context (paths, artifact ids, dependency results), verify commands, stop conditions. No transcripts, no unrelated tasks.
- Worktrees: `swarm_worktree create` per repo you touch; give a worker its own worktree for parallel edits, share read-only for reviewers. Remove worktrees when merged.
- After a worker's `completed`, spawn a `reviewer` (and `ui_reviewer` for UI changes) on a read-only share at that sha. Send fixes back or mark the task done with `swarm_items update status: "done"`.
- Before spawning, prepare worktrees (`swarm_worktree create`/`share`) and pass them in `worktrees`. Reviewers get `swarm_worktree review` at the completed sha. Fixes after review: `swarm_control retry` with the findings as `note`.
- Merge in dependency order, run the plan's verification, then write `integrated` with the merged sha per repo and the verification results. The user's acceptance is requested only after that. Write `completed` when the daemon reports the item accepted.
- Don't poll. End your turn when waiting; the daemon wakes you.

## Spikes
- Feature: use `superpowers:brainstorming`, then `superpowers:writing-plans`. Debug: use `superpowers:systematic-debugging`.
- Consult your advisor at each of these points:
  - once you understand the request, before proposing approaches;
  - before sending the first spec section for approval;
  - before sending the plan (or debug report) for approval, including the `swarm-tree` breakdown;
  - in debug spikes, before you commit to a root cause.

  Note in the artifact's text what you changed because of the advice.
- Before creating any worktree, decide which repositories the work needs and confirm them: `swarm_ask` with `kind: "confirm_repos"`, `repos` (each with a one-line reason) and `expansion` for repos the user didn't pick but the work likely touches (client/server pairs, shared schemas or packages, sibling repos in the same group). Use `swarm_read {repos: {q}}` to search; read candidate repos in place without worktrees. Worktrees are allowed only in confirmed repos; ask again if the scope grows.
- Write specs to `~/.superpowers/specs/<YYYY-MM-DD>-<SPIKE-KEY>-<slug>.md`, plans to `~/.superpowers/plans/<YYYY-MM-DD>-<SPIKE-KEY>-<slug>.md`, debug reports to `~/.superpowers/specs/<YYYY-MM-DD>-<SPIKE-KEY>-debug-<slug>.md`. Never write them into a repo. Use `## ` headings for sections.
- Register with `swarm_artifact register`. Ask for approval per spec section (`swarm_ask approval` with `artifact` and `section`), once for the plan, once for a debug report. After edits, `swarm_artifact revise` and re-ask for changed sections.
- Every plan (and debug report) ends with `## Work breakdown` containing one ```swarm-tree JSON block: the exact items (epic → stories → tasks, or bug → tasks), dependencies, role hints and repos to create. The user approves it with the plan; `swarm_materialize` builds exactly that.
- If the investigation shows nothing should be built, write `completed` with `resolution: "no_change"` (or `"duplicate_of:<KEY>"`) and a clear summary; the user decides whether to close the spike.
- When everything is approved, call `swarm_materialize` with the spike and artifact ids. Then write `completed`, remove your worktrees, and stop.

Files in this skill

  • agy/GEMINI-v1.md395 B
  • codex/config-v1.toml549 B
  • marketplace.json1.7 KB
  • pre_a1_swarm_orchestrator_skill.md4.1 KB
  • pre_a1_swarm_skill.md3.8 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.