Index of every page on this site: llms.txt
All skills
kartikkabadi avatar

/colony

@ef0b2a9
by Kartikkartikkabadi/colony7 stars
1
Run it yourself

Delegation discipline for AI agents. Use when a task splits into multiple independent units; invoke as /colony, "delegate", "fan out". Core method: write the DELEGATION.md ledger first, spawn one subagent per unit, verify each yourself, never report done on a partial ledger.

Use this Skill: https://skilld.dev/gh/kartikkabadi/colony/colony

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈71 tokens for metadata: the name and description. ≈1.4k when used: this file. ≈8.9k more on demand in 19 files.

Description uses 3.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈284 characters, or 3.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Colony

You are the colony, not the ant. The failure this skill exists to kill is the lone agent that carries a whole job on its back, the agent that should fan out into ten workers and instead does ten jobs serially in one thread, losing time, focus, and parallelism.

This is the opposite problem from laziness. Laziness is doing less than the task asks. Colony is doing all of it, but alone, when the task is made of independent parts that a team would finish faster and better. A single thread cannot give ten independent files the attention a fresh worker gives each one.

You do not have to do the work. You have to make sure the work gets done.

Rule zero: count the units before any work

Before touching an artifact, count the work units in the request. A unit is an independent piece of work: one module, one feature, one bug, one migration, one file group, one research thread. Units are independent when they do not need to see each other's in-progress state to make progress.

  • 3 or more independent units, OR
  • 5 or more files will be touched, OR
  • estimated over 30 minutes of work

then the gate is open: you must split. Write it down: "gate open: N units" or "single-agent: N units, below threshold", in your report either way.

Below the threshold, do the work yourself and say so. Force-splitting a small task is the same disease in reverse: ceremony that costs more than the work. The gate has a floor and a ceiling.

Step 1: Write DELEGATION.md before any artifact work

If the gate is open, the FIRST artifact you create is DELEGATION.md, before any code, before any edit, before any file that is part of the deliverable. Use templates/DELEGATION.md. Required shape:

# Delegation plan
Units: N

| # | Unit | Files (mine) | Worker | Acceptance | Status |
|---|------|--------------|--------|------------|--------|
| 1 | <one line> | <paths> | worker-1 | <checkable> | pending |
  • Every unit gets a row. Every row gets its own files, non-overlapping. No two workers touch the same file. File ownership is stated in the ledger before anyone starts.
  • Every row gets a checkable acceptance line: a command, a test, a measurable criterion. Not a vibe.
  • This file is your ledger. It lives on disk, not in your context. A ledger you wrote at minute 2 is still exactly as sharp at minute 90, when the pull toward wrapping up is strongest.

Step 2: Spawn one subagent per unit

  • Use the subagent / Task tool. One subagent per unit row, spawned in parallel where units are independent, never serially.
  • Each worker brief is a written contract containing (see templates/worker-brief.md):
    • Goal. One sentence. What done looks like.
    • Scope. Exact files the worker owns. Exact files it must not touch.
    • Context. Pointers to specs and upstream reports, pasted in full where they matter. Workers cannot see your thread.
    • Acceptance. The checkable criteria, one line each.
    • Verify. The exact commands the worker runs before reporting done.
    • Isolation. If the repo is shared, a branch or worktree per worker: git worktree add -b agent/<slug> ../wt-<slug> main. One writer per worktree.
  • You are the coordinator. You do not do the workers' work. If you catch yourself implementing a unit you assigned, stop and either reassign it or mark yourself as the worker for that unit in the ledger.

Step 3: Verify every unit yourself

A worker report is a self-report. It is a claim, not proof. After each worker reports:

  1. Run its acceptance check yourself. Read the artifact, run the command, confirm the criterion.
  2. Update the ledger row to verified, or fix the unit yourself (or spawn a follow-up worker) and then mark it verified. Never silently accept a claim.
  3. Write what you ran and saw under ## Evidence in DELEGATION.md. The ledger checker requires it; a ledger with all rows verified but no evidence in the file fails node scripts/ledger-check.mjs.

The integration pass is yours too: interfaces match, tests pass together, nothing outside the declared scope changed.

Step 4: Report gate

Your final report must contain:

  • The gate decision: units counted, threshold met or not.
  • The ledger: N units, each with status (pending / done / verified) and who did it.
  • What you verified yourself, with evidence: commands run, tests passed, files read.
  • What remains, if anything.

No "done" until every unit is verified and the ledger says so. A completion report without a complete ledger is a failed report. If you notice yourself composing a status summary while rows are still pending, that is the solo reflex firing. Open the ledger and spawn or finish the next unit.

When not to split

  • One unit, a quick fix, a tiny change: do it yourself. Say "single-agent: 1 unit."
  • The ledger would have one row. There is no colony of one.
  • If units are not actually independent, if every piece needs every other piece's result before it can start, the task is one unit, however large. Split at natural joints only.

What this skill is not

Colony is not a mandate to parallelize everything, and it is not a license to trust subagents. It is a gate that opens on genuinely parallel work and a ledger that makes the coordination legible and the completion honest. Below the threshold it costs you one line in a report. Above it, it is the difference between one tired thread and ten fresh ones.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    The 'colony' skill provides a structured framework for task delegation among AI agents. It uses a ledger system and a local validation script to manage subagents and ensure work is verified before completion. No malicious code, obfuscation, or data exfiltration patterns were detected.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at ef0b2a9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 3 months ago
Other metadata
metadata
{
  "author": "Kartik Kabadi",
  "source": "https://github.com/kartikkabadi/colony",
  "version": "1.0.0"
}

README badge

README badge for kartikkabadi/colony