agentleFS
donniesilalahidonniesilalahi/cocreation-skills/skills/cocreator/SKILL.md

cocreator

Skill0 starsChanged 5 months agoMITView on GitHub

The master loop for human-AI product co-creation. Picks a named WORKFLOW — discover · ship · feature · design-first · fix · evaluate · release-prep · cleanup — and runs its pre-wired chain of co-* loops, self-delegating each to its doer sub-agent at the right model tier. Use this to start or coordinate any non-trivial product work (strategy, research, plan, design, build, verify, debug, document, learn) instead of picking sub-skills by hand; `/cocreator <workflow> "<request>"` enters one directly. Runs the decision tree that routes between loops, and advances the chain unattended on PASS — halting only on the exit gate, a hard block, exhausted retries, or a direction change. Carries `Workflow:` / `Next:` in STATE.md so a fresh session resumes a long-running chain instead of asking what to do next.

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. About 0 are common, 5 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

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

    Before anything else, read .agents/workspace/cocreation.yaml if it exists.

    line 47
  2. Distinctive:

    Don't assemble a loop chain from scratch each time.

    line 65
  3. Very specific:

    Before new work, run colearn (recall mode) to pull relevant lessons/guardrails.

    line 112
  4. Distinctive:

    When you run paired loops in sequence, link their records both ways:

    line 161
  5. Very specific:

    Every cotest/codebug failure should hand a lesson to colearn.

    line 166
  6. Very specific:

    After a loop returns, append its row to the resolved STATE.md progress ledger (date ·

    line 170
  7. Very specific:

    Cadence for work that outlives a session: Use /loop or ScheduleWakeup to re-enter, and TaskCreate/TaskUpdate to track the chain's steps as …

    line 202
  8. Very specific:

    Read the resolved STATE.md head → Workflow: + Next: + blockers, and inbox/INBOX.md for anything now answered.

    line 208
  9. Very specific:

    If the head is [State: stale], distrust it: reconcile against the last few ledger rows and the loops' memory-bank records before advancing.

    line 210
  10. Very specific:

    Run Next:. Re-select a workflow only if the head says the last one closed, or the human's request is plainly about something else.

    line 212
  11. Distinctive:

    When two artifacts contradict on the *same* claim, break the tie by the ranked chain-of-command —

    line 227
  12. Very specific:

    Proceed on the recommended default: if low-risk (log interim: default-applied).

    line 240
  13. Distinctive:

    Hard-block: only when no stub is possible (action-homework, or a high-blast-radius decision).

    line 245
  14. Very specific:

    Completion gate: never report a cycle done / advance to cochangelog / mark accepted while any inbox item is status: open (blocking) or …

    line 247
  15. Distinctive:

    Every loop closes itself: no advance without a self-eval verdict.

    line 274

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

cocreator — the master loop

/cocreator is the orchestrator of the co-creation ecosystem. It doesn't do the work itself; it recommends which loops to run, delegates each to its doer sub-agent at the right model tier, and routes between loops using each one's self-eval verdict. Read docs/cocreator/PLAYBOOK.md for the principles this enforces (it wins on any conflict).

The one idea it enforces

AI changes velocity, not principles. So spend human judgment at the two ends — shaping a thing right (upstream) and verifying it shipped right (the gate) — and let the fast middle collapse. Pull risk forward. Default to cancel, not extend. Close every loop with a self-eval.

The roster — skill (action) ↔ doer ↔ model

Loop skillDoerStageModelWhen
codirectcodirectordirect/strategyopusset product + design direction, fix the appetite, write the pitch
coresearchcoresearcherdiscoveryopusgather evidence, red-team the riskiest assumption
costudycostudierdiscoverysonnetreverse-engineer another product's UI/UX from your live session into a study ledger
coplancoplannerplansonnetdecompose into tracked, verifiable steps (mandatory)
cospecifycospecifierspecsonnetauthor the buildable solution spec (screens, states, data, interfaces)
cochallengecochallengerchallenge (pre-build)opusdevil-advocate the direction/spec/plan before build — blindspots, first principles, problem-solution fit
cobuildcobuilderbuild (make)sonnetimplement in small increments (mandatory, core)
cotestcotestertest (check)haikutest behavior + visuals vs spec — cross-check only (mandatory, core)
codebugcodebuggerdiagnoseopusfind root cause when verify fails
cochangelogcochangeloggerrecordhaikuchangelog list of what shipped
colearncolearnerlearnsonnetrecall before work; capture lessons; graduate guardrails (mandatory, core)
cocritiquecocriticcritiqueopusdoes the product do the user's job optimally, and what direction change follows
coconsolidatecoconsolidatorspecializedsonnetone master, many call sites — fold duplicated logic and drifted UI elements back into one
cohardencohardenerspecializedsonnetedge-case hardening after the happy path works
codrawcodrawerspecializedsonnetrender a cospecify spec into faithful OD artboards + a git-tracked ledger (feeds cotranslate)
cotranslatecotranslatorspecializedsonnetdesign→impl translation: port an artboard/spec into native UI with zero drift

Model tiers: opus = judgment-heavy (direct/challenge/research/diagnose, where mistakes amplify); sonnet = structured build & review; haiku = mechanical capture/format and checklist cross-checking.

How to use

0. Resolve the backend, then read STATE + inbox first

Before anything else, read .agents/workspace/cocreation.yaml if it exists. Missing configuration means storage.mode: local and workspaceRoot: .agents; never infer Linear mode from an available connector. Resolve <workspaceRoot>/workspace/ for STATE.md, inbox/, and raw/, and <workspaceRoot>/skills/ for project-owned memory-bank records and indexes. The full backend contract is in references/artifact-backends.md; the Linear mapping is in references/linear.md.

Then read the resolved STATE.md (current SSOT, last loop run + verdict, in-flight work, blockers) and inbox INBOX.md (open human asks; act on anything now resolved/done). Create them from references/STATE.template.md / references/INBOX.template.md if missing, or run npx @donniesilalahi/cocreation-skills init to bootstrap the project boundary without overwriting records. This is how you — or a fresh session — pick up without re-reading every artifact. Resume off the written status, never poll the human. See docs/cocreator/SSOT.md.

The head names the active workflow and the next step (Workflow: / Next:). If one is in flight, you are resuming it — do not re-select a workflow and do not ask what to do next; run Next: and carry on (§8).

1. Pick the workflow

Don't assemble a loop chain from scratch each time. Name the workflow — a pre-wired chain for a recurring situation — then run it. Full catalog with entry conditions, skips, and exit gates: references/workflows.md.

      ┌──────────────── cocritique (does it do the job? → direction) ────────────────┐
      ↓                                                                              │
codirect → [cochallenge] → coresearch → coplan → cospecify → [cochallenge] →
           + costudy                     ╔ cobuild ⇄ cotest (↘codebug) ╗ → cochangelog
                                         ╚═══════ colearn (learn) ═════╝
specialized, on demand: coconsolidate (logic + visual drift) · coharden (edge cases) · codraw (spec→OD artboards) · cotranslate (design→impl port)
WorkflowEnter whenChainExit gate
discoverdirection unclear, nothing to build yetcolearn(recall) → codirect → cochallenge → coresearch, optionally alongside costudy (competitor UI evidence)pitch + appetite; assumptions tested or accepted. "Don't build it" is a valid exit.
shipsmall, well-understood change (the default)colearn(recall) → cobuild ⇄ cotest → cochangelogtest PASS + changelog line + no open stub
featurenew capability, uncertain or high blast radiuscolearn → codirect → cochallenge → coresearch → coplan → cospecify → cochallenge → [codraw] → cobuild ⇄ cotest → coharden → cochangelog → colearnplan closed, test PASS vs spec, lesson recorded
design-firstthe UI itself is the deliverable[costudy] → cospecify → cochallenge → codraw → cotranslate → cotest → cochangelogevery element + state from shared masters; cotest accepts vs artboard
fixsomething is brokencolearn(recall) → codebug → cobuild → cotest → colearn(capture)root cause named, fix verified, lesson written
evaluate"is this any good?" — a router, see belowcotest | coconsolidate | cocritique | cochallengeverdict + evidence + the next workflow named
release-prepabout to face userscoharden → cotest → [coconsolidate] → cochangelog → completion gateedge cases closed and the completion gate is clean
cleanupduplication/drift; behavior must not changecoconsolidate → cotestone master per cluster, behavior provably unchanged

evaluate is a router, not a chain — pick by what "good" is measured against. This is the distinction most often got wrong; running the wrong one answers a question nobody asked:

Reference pointQuestionLoopThen
the specdid we build what we said?cotest→ fix / ship
itself, across screensdo the N copies agree?coconsolidate→ cleanup
the jobwas it worth building?cocritique→ discover (MISSERVES/UNKNOWN) · feature (UNDERSERVES) · cleanup (OVERSERVES)
the reasoningdoes the decision survive attack?cochallenge→ codirect (COLLAPSES) · generator re-run (HOLED) · discover/coresearch (UNKNOWN)

Rules that outrank any workflow:

  • cotest is never skipped on anything that changes behavior. Build collapsed; review is the constraint. Dropping the check optimizes the part that was never the bottleneck.
  • A failure always writes a lesson (colearn capture) — mandatory in fix, and after any FAIL.
  • Escalate the workflow, don't bolt loops onto it. Wanting a spec inside ship means the work is feature-sized. Re-enter at the right workflow.
  • Every loop still runs standalone — cochangelog needs no prior plan. The workflow is the default path, not a rail; the decision tree (§4) still governs routing inside it.

/cocreator <workflow> "<request>" enters one directly (/cocreator fix "checkout 500s on retry"). With no workflow named, pick one from the table, say which and why in one line, then run it.

2. Recall first

Before new work, run colearn (recall mode) to pull relevant lessons/guardrails. Apply and cite them.

3. Delegate with model assignment

Self-delegate each loop to its doer. Two modes depending on how the ecosystem is installed:

Plugin installed (preferred): spawn the doer sub-agent directly — it carries its own model tier and reads its own skill, so no path or model wrangling:

Agent(subagent_type: "cocreation:codirector", prompt: "Run the codirect loop on … Return the self-eval verdict + record path.")
Agent(subagent_type: "cocreation:cobuilder", prompt: "Run the cobuild loop on … ")

Loose (non-plugin) install: spawn a general-purpose agent with the roster's model and point it at the skill file (a fresh agent won't auto-load it):

Agent(subagent_type: "general-purpose", model: "sonnet",
      prompt: "Read .agents/skills/cobuild/SKILL.md, then run the cobuild loop on … ")

Each doer loads its own co-* SKILL.md, does its step, writes its record through the resolved artifact backend, and returns its self-eval verdict. Keep delegated context tight — a doer returns a verdict + artifact pointers, not its full working transcript. Run independent loops in parallel (one message, multiple Agent calls); run dependent loops in sequence.

4. Route on the verdict (the decision tree)

Collect each loop's self-eval and route. This governs movement inside a workflow — the chain in §1 is the default path; the verdict is what actually decides the next step.

  • PASS → advance to the workflow's next loop. At the end of the chain, check the exit gate (§1) — a chain that ran isn't a workflow that closed.
  • FAIL → re-loop the same skill. Bounded retries; after N, cancel not extend — escalate.
  • BLOCKED / needs judgment → the handoff protocol, not a halt (§Human handoff). Escalate only what genuinely can't be defaulted or stubbed.
  • DRIFT / defect → leave the chain for the workflow that owns it: fix (defect), cleanup (duplication or visual drift), or coharden inline (edge cases). Come back to where you left.
  • HOLED / COLLAPSES (from cochallenge) → the generator loop re-runs with the hole list (HOLED), or the chain returns to codirect (COLLAPSES — a direction change, stop condition 4).
  • A different question surfaced → that's a workflow switch, not a detour. Name it, log it, run it. The three that most often surface mid-chain: needing artboards → design-first; a screen "similar but not faithful" → design-first from cotranslate; "was this worth building at all?" → evaluate/cocritique.

Loop-level detail (what each loop hands to which sibling, and why) lives in each SKILL.md's Relationship to other skills and its self-eval gate — not restated here.

5. Wire cross-references

When you run paired loops in sequence, link their records both ways:

  • coplan ↔ cochangelog: plan record gets changelog:, changelog record gets plan:.
  • Any input/output: point the record at the human's workspace/raw/ input and the AI's output.

6. Backprop on failure

Every cotest/codebug failure should hand a lesson to colearn. A lesson that keeps firing graduates: lesson → skill → sub-agent (see colearn). This is how the ecosystem self-learns.

7. Update STATE + inbox on exit

After a loop returns, append its row to the resolved STATE.md progress ledger (date · workflow · loop · agent/model · verdict · record · commit/artifact) and rewrite the head's Workflow: / Next: line so the chain is resumable. If the authoritative artifact changed, update the head's SSOT pointer. File any human ask the loop raised as an inbox/ record (decision / action / review), and close any it resolved. Treat this like a commit — part of the work, not a chore. The ledger and inbox are append-only; never rewrite a past row (supersede it).

Next: is the whole self-driving mechanism. A ledger row with no updated Next: is where an unattended run dies — the following session finds a finished loop, no idea what follows, and asks the human. Write it even when the answer is "workflow closed".

8. Run it unattended (the long run)

A workflow is designed to advance without a human between steps. Three mechanisms, already in the ecosystem — this section just wires them to the chain:

Auto-advance. On a PASS, run the next loop immediately. Do not report progress and wait for "continue" — the chain in §1 already is the approval for the whole sequence, granted when the workflow was named. Ask again only for what §Human handoff says must be asked.

Stop conditions — the circuit breaker. Auto-advance halts on exactly these, and no others:

  1. The workflow's exit gate is met (it closed — say so and stop).
  2. A hard-block: action-homework only a human can do, or a high-blast-radius decision (§Human handoff step 4).
  3. Bounded retries exhausted on a FAIL — cancel, don't extend. Report the state, don't grind.
  4. A direction change — cocritique returning MISSERVES, or any verdict that re-opens intent. Re-framing is never banked unattended; that is the one call always worth the review budget.

Everything else keeps moving: proceed on a low-risk default, run independent loops, or placeholder-and-continue (§Human handoff steps 1–3), then let the completion gate resurface every stub before anything ships.

Cadence for work that outlives a session. Use /loop or ScheduleWakeup to re-enter, and TaskCreate/TaskUpdate to track the chain's steps as todos. On each wake: read STATE.md, run Next:, update the head. Never poll the human for status and never sleep waiting on a person — park the ask in inbox/ and do something independent instead.

Resume protocol (a fresh session, mid-workflow).

  1. Read the resolved STATE.md head → Workflow: + Next: + blockers, and inbox/INBOX.md for anything now answered.
  2. If the head is [State: stale], distrust it: reconcile against the last few ledger rows and the loops' memory-bank records before advancing.
  3. Run Next:. Re-select a workflow only if the head says the last one closed, or the human's request is plainly about something else.

Source of truth (the precedence ladder)

There is no single SSOT — each loop owns one dimension and conforms upward. The spec (cospecify) is the primary thing executors build and check against; the pitch (codirect) is its rationale layer; the plan (coplan) sequences the work; design/code are derived. Diagnostic loops (cochallenge/cotest/codebug/coconsolidate/coharden/cocritique) own only a signal — their findings reference the spec and never become it. The SSOT changes only through a reviewed channel (re-run cospecify), never silently by a debug/audit loop. cocritique and cochallenge are the two whose signal is aimed at intent rather than conformance: they may argue the spec or pitch was serving the wrong outcome — but they still only propose, via an inbox/ decision ask routed to codirect.

When two artifacts contradict on the same claim, break the tie by the ranked chain-of-command — PLAYBOOK > intent (codirect) > spec (cospecify) > plan (coplan) > design/draw > code > findings — and escalate an unbreakable conflict to the human (don't auto-resolve). Full design + the findings-handling mechanisms: docs/cocreator/SSOT.md. This generalizes the conflict ladder cotranslate already ships.

Human handoff (never stall)

The human owes three kinds of thing — decision (pick/answer), action (homework only a human can do: visual QA, register an integration, enter a secret), review (approve/edit/reject) — each logged as an inbox/ record (agent writes the ask, human writes the answer). When a loop needs input, don't halt the pipeline — in order:

  1. Proceed on the recommended default if low-risk (log interim: default-applied); wait only if high-blast-radius.
  2. Run independent loops/specs that don't depend on the blocked item — park it (blocking: false).
  3. Placeholder-and-continue for a soft critical-path blocker: insert a marked stub (interim: placeholder, must-reconcile: true) and build around it.
  4. Hard-block only when no stub is possible (action-homework, or a high-blast-radius decision).

Completion gate: never report a cycle done / advance to cochangelog / mark accepted while any inbox item is status: open (blocking) or carries an unconfirmed placeholder/default-applied — resurface every stub and unconfirmed default as "still pending" before shipping. In a live session use AskUserQuestion for the fast path, then log the outcome. Full protocol: docs/cocreator/SSOT.md § Human handoff.

Co-working workspace

The default workspace root is .agents/; the project-owned configuration may point it at a shared root for a product spanning multiple repositories. Under the resolved root, workspace/ contains state, inbox, raw inputs, and working files; skills/<name>/memory-bank/ contains project records and generated indexes. raw/ is the human's — read it as source of truth, never write there. Everything else is the AI's. In linear-primary, Linear contains the full human-facing artifacts and local files hold state, provider metadata, links, and the index/catalog cache. Templates live in references/.

Native tooling

EnterPlanMode (shape/plan a high-blast-radius cycle) · Agent (delegate to doers w/ model overrides) · /loop + ScheduleWakeup (drive a long multi-loop cycle on a cadence) · TaskCreate/TaskUpdate (track the loops in a cycle) · /verify, /code-review, /simplify (inside cotest/coharden).

Principles

  • Recommend the smallest loop set that fits — earn the ceremony, don't impose it.
  • Judgment at the two ends; automate execution, not judgment.
  • Every loop closes itself: no advance without a self-eval verdict.
  • Cancel, not extend: a non-converging loop is a signal, not a reason to grind.
  • The trail is two-way: raw input ↔ record ↔ output, plan ↔ changelog.

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.