agentleFS
yasuflatland-lfyasuflatland-lf/liferay-dummy-factory/.agents/skills/parallel-orchestration/SKILL.md

parallel-orchestration

Skill48 starsChanged 53 days agoMITView on GitHub

Coordinate multi-agent work in this repository — one coordinating agent, parallel worker sub-agents partitioned by file cluster, and a single serial commit agent. Use only when the user explicitly asks for parallel or multi-agent orchestration.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Commit messages are one line.

    line 26
  2. Distinctive:

    When a worker's context is nearly full, have it compact or summarize before continuing (whatever the tool provides).

    line 30
  3. Very specific:

    Ask the user which side is authoritative: before any git checkout --ours / --theirs — both silently drop the other side.

    line 35

≈ “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

Parallel orchestration

Works with any agent tool that can spawn sub-agents (Claude Code sub-agents, Codex sub-agents, …). Every agent obeys the AGENTS.md files on the path to each file it touches.

Roles

  • Coordinator — decomposes the task, dispatches sub-agents, aggregates their reports, decides the next phase. It does not read, edit or run code itself; its context holds plans and summaries, not source.
  • Workers — one scoped unit of work each, in parallel when their file clusters do not overlap. Workers do not spawn agents, stage, commit or push.
  • Commit agent — the only writer of git history; runs serially.

Phases

  1. Explore — read-only workers map what exists, where, and how it is wired. Output: a summary with repository paths.
  2. Design — the coordinator turns that into a task list partitioned by file cluster, with owners and dependencies. Two workers never own the same path; overlapping work is serialized.
  3. Implement — workers edit their clusters in parallel and report a diff summary. The coordinator waits for the whole wave before starting the next.
  4. Review → simplify → verify — one worker reviews the diffs (use the contract-review skill), one removes dead code and redundancy, one runs the real build and test commands from the root AGENTS.md. Only a green verify lets the commit agent run.

Commits

  • One logical change per commit; the commit agent splits unrelated fixes.
  • Commit messages are one line. No Co-Authored-By trailers, no body text, no emoji.

Context hygiene

When a worker's context is nearly full, have it compact or summarize before continuing (whatever the tool provides). Keep discovered solutions, final decisions and the paths that matter; drop debug transcripts, failed attempts and raw tool output.

Merging a base branch

  1. git fetch origin && git merge origin/<base-branch>; list the conflicting files.
  2. Ask the user which side is authoritative before any git checkout --ours / --theirs — both silently drop the other side.
  3. Resolve package.json and yarn.lock from the same side, never mixed, then yarn install to re-sync the lockfile.
  4. A clean auto-merge of a lockfile can still break the dependency graph: rerun the unit suites (and the integration suite when available) before the commit agent commits and pushes.

Anti-patterns

  • The coordinator opening files "just to double-check" — dispatch a worker.
  • More than one agent committing.
  • Skipping verify because "the diff looks right".
  • Workers spawning workers.

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.