agentleFS
SAIL-PUC-RioSAIL-PUC-Rio/Agentic-Software-Engineering-Skills/skills/engineering/implement-parallel/SKILL.md

implement-parallel

Skill19 starsChanged 9 days agoMITView on GitHub

Spawn a subagent per independent subissue of a spec issue to implement them concurrently, then merge the wave and verify the suite before opening the next one.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the spec issue's subissues and blocking edges the same way implement-sequential does, per docs/agents/issue-tracker.md.

    line 11

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Work a spec issue's subissues in waves: every subissue with no open blocker runs at once, each isolated in its own worktree, then the wave is merged and proven green before the next wave opens up.

Resolve the subissues and the frontier

Read the spec issue's subissues and blocking edges the same way implement-sequential does, per docs/agents/issue-tracker.md. The frontier is every open subissue with no open blocker — the same query wayfinder runs.

Work one wave

While the frontier is non-empty:

  1. Spawn one subagent per frontier subissue, in parallel — a single message, one Agent-tool call per subissue, each with isolation: "worktree". This isn't optional: parallel implement-style sessions sharing one checkout corrupt each other's index, HEAD, and even stash, and a worktree per subagent is what actually fixes it (stash itself still isn't isolated across worktrees, so brief each subagent to commit its own work rather than stash it). Brief each subagent the way implement-sequential does — implement's own steps inlined (TDD at pre-agreed seams, CODING_STANDARDS.md/ADRs, typecheck and test as it goes, commit), never a Skill-tool call to "implement" itself, which stays refused for any non-literal-human invocation per .agents/invocation.md. Scope each subagent to exactly one subissue.
  2. Wait for the whole wave to finish committing.
  3. Merge each subissue back through the subagent that wrote it, one at a time — not batched onto yourself at the end. Resume that subagent (don't discard it yet) and have it merge its own worktree branch into the branch this wave started from. If the merge conflicts, that subagent drives resolving-merge-conflicts itself — it still holds the intent behind its own changes, and this repo's own experience with parallel worktrees is that the session which wrote a change merges it back better than one agent trying to reconstruct everyone's intent from scratch at the end.
  4. Close out each subissue. Once its branch is merged clean, call the Skill tool with "evidence" for it, then discard that subagent — its work is on the shared branch now, nothing more carries forward.
  5. Prove the wave green. Once every subissue in the wave is merged, run the full test suite once — not per-branch, since a wave's branches can conflict in ways no single branch's tests would catch. A red suite blocks the next wave: fix it before opening one.
  6. Recompute the frontier — subissues that were blocked only by this wave are now open — and repeat from step 1.

Finish

Once no subissue remains, report which ones ran in which wave, link each evidence pack, and name anything left blocked or any subagent that failed to finish.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.