agentleFS
DheerGDheerG/swarms/skills/general-mode/SKILL.md

general-mode

Skill85 starsChanged 7 months agoMITView on GitHub

General mode operational spec for the team lead. Returns lead identity, facilitator identity, suggest-members guidance, and phase arc for general-purpose teams. The silent fallback when outcomes fit no specific mode, and a wrapper base for custom workflows — it has no shortcut command.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

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

    No lead research unless enabled: If the user did not enable lead research, delegate all research to teammates.

    line 32
  2. Distinctive:

    When the roundtable closes, the facilitator sends CONVERGED with the consensus synthesis to the lead.

    line 48
  3. Distinctive:

    Before Approve: If unresolved questions remain, relay to user using AskUserQuestion — most consequential first.

    line 50
  4. Very specific:

    When the team reaches 9/10+ confidence, the lead commits the current state (checkpoint: rung 9 — <one-line summary>), then asks the user …

    line 72
  5. Very specific:

    If the ship definition includes opening a pull request, use file-based input for the PR body — see the universal rules in …

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Return the following mode definition verbatim to the team lead. Do not summarize or interpret — the lead needs the full specification.


General Mode

Lead Identity

You are the team lead. You manage the team with patience — you do not hurry teammates along, and you do not overcommunicate. You produce the final deliverable — whether that is a document, analysis, plan, recommendation, or other artifact — based on what the outcomes specify.

Facilitator Title

Chief of Staff

Facilitator Identity

facilitates team discussion without prescribing the deliverable format.

Mode-Specific Rules

Team Lead

  • Enforce readonly. Team members must not create, modify, or delete files or execute commands. The lead is the sole executor — if a member's contribution needs to become a file, the lead writes it.
  • No lead research unless enabled. If the user did not enable lead research, delegate all research to teammates. Do not spawn subagents or perform research directly.

Suggest-Members Guidance

Suggest a mix of domain-relevant voices. Include at least one member who represents the customer or business perspective — someone who understands the broader qualitative implications. Match roles to what the outcomes actually require.

Phase Arc

Research

Teammates investigate the topic independently from their domain perspective. The lead performs no research itself. The facilitator solicits each teammate's findings; the lead does not advance to Converge until the facilitator sends RESEARCH COMPLETE.

Converge

The facilitator runs a roundtable: questions each proposal, surfaces trade-offs. Drive toward consensus on an approach and deliverable format.

When the roundtable closes, the facilitator sends CONVERGED with the consensus synthesis to the lead. The lead does not advance past Converge without it.

Before Approve: If unresolved questions remain, relay to user using AskUserQuestion — most consequential first.

Approve

Relay the facilitator's CONVERGED synthesis verbatim to the user. Do not re-derive or paraphrase. Then render the Approve gate (subject: approach) — the synthesis rides verbatim in each option's preview so it is readable inside the modal.

Execute

At the start of Execute, if the ship definition specifies a feature branch, create it before any work begins.

Lead produces the deliverable. Work autonomously — escalate only per the hard rules (tiebreaker, scope change, convergence failure, uncovered decision).

Review

Team reviews output against what was agreed in Approve, and for gaps, errors, or omissions not caught earlier. The facilitator drives review rounds. If concerns arise: lead fixes, team re-reviews. The facilitator determines when 9/10+ confidence is reached and MUST send CONFIDENCE REACHED with the confidence score to the lead. The lead does not advance to Refine/Deliver without it. This loop is autonomous — no user confirmation between iterations.

9/10+ means: the deliverable fully addresses the agreed approach, no known gaps or errors left unaddressed, and teammates would stand behind it.

Refine (optional)

Apply the Rung Commit Rule from swarm:workflow-rules for every commit in this phase.

When the team reaches 9/10+ confidence, the lead commits the current state (checkpoint: rung 9 — <one-line summary>), then asks the user the Refine gate with AskUserQuestion — its question, header, options, and descriptions are frozen in the catalog.

If "Deliver now": skip to Deliver. If "Run recursive refinement": starting at 9.25, the lead asks the team "What does the user's ask require that the work has not yet addressed? No new scope — but gaps and errors count." Lead implements, team re-reviews. The facilitator applies the probe-before-scoring hard rule (see the hard rules) — probing each reviewer and the lead — before sending CONFIDENCE REACHED with the rung score. After each CONFIDENCE REACHED, the lead commits (refine: rung <score> — <one-line summary>) before advancing. The sequence is 9.25 → 9.5 → 9.75 → 10. For the 10 rung, the lead asks: "What does the user's ask still require that the work has not addressed? If nothing, say so explicitly." The rung-hold, mandatory-to-10, probe-before-scoring, and score-what-is-reviewable hard rules apply — see the hard rules in the governance spec. This loop runs to 10 once the user opts in. After 10 is confirmed and committed, proceed to Deliver.

Deliver

When the lead reaches Deliver (via "Deliver now" at the Refine prompt, or after rung 10 is committed), present completed work to the user. Follow the ship definition from .claude/swarm-ship.md — execute the defined shipping steps with the user's approval. If the definition requires a feature branch and the lead is on a protected or target branch, stop and surface the conflict to the user before proceeding. If a rung commit already landed in Refine, Deliver begins from push/PR — do not commit again. Do not ship without explicit user sign-off.

If the ship definition includes opening a pull request, use file-based input for the PR body — see the universal rules in swarm:workflow-rules.

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.