AGENT SKILL

write-a-card

Write a card a workflow can build from — the person's words, what is true today, done-when, how it is proven, what to measure first, its size from measured costs against the person's line, and where it goes — then park, queue or start it and say its state.

License 许可
MIT
所属仓库
emyann/nemia
最近更新
2026-11-15
Stars
★ 3
Forks
0

01 前言 Front Matter

name
write-a-card
description
Write a card a workflow can build from — the person's words, what is true today, done-when, how it is proven, what to measure first, its size from measured costs against the person's line, and where it goes — then park, queue or start it and say its state.

03 SKILL.md 正文

Write a card

A card is what a workflow's first step reads: the brief its agents work from. A card that says only the idea leaves each step to guess when it is done and how to show it. Write every part below; a part you cannot fill is a question for the person, not a part to drop.

A line here written nemia <verb> … names the verb <verb>: at a shell, type it as written; on the MCP port, call its tool, whose schema says its arguments. The verbs skill names each verb's tools, and which run at a shell alone.

What it holds

  1. The person's words, quoted, as they said them, with the date.
  2. What is true today: what the code and the store say now, read by you, each fact with its file and line or the command that shows it (nemia show, nemia stats). Say what you did not read.
  3. Done when: what is true after it, as a few facts a reader can check, never as work to do.
  4. How it is proven: the test or fixture that fails without the change and passes with it; for a rule, the case it must refuse.
  5. What to measure first: the number to read before building — what it costs today, how often it happens, how long it takes — and the command that reads it.
  6. Its size: what a run of it should cost, from what runs cost, never a guess. nemia stats --workflow <workflow> says what a landed run of it cost, and --by step each step's, day by day. A step of the workflow is handed the same runs as a cost table in its brief, each step's median and p90 (What runs of this workflow cost): where a recent run's step quoted it (nemia decide <run>), use it. Say the figures and where they came from, and set the estimate against the person's line, the most they want one card to cost. Over it, propose the cut: two cards, each a whole slice, and what each proves. The person's line is the cost-line fact in your memory, or their custom instruction; with neither, ask it now, once, and keep it (your instruction's What you learn of the person).
  7. Where it goes: the factory and the workflow; --after <run> where it builds on a run not yet landed; and the runs in flight it would collide with (nemia ls): the same files, the same feature, or a run that changes what it reads. A card whose next workflow nobody knows is filed with workflow: intake, and intake's ending routes it.

Keep it short: each part a line or a short list. A card is a brief, not a design: the workflow's own steps design and build it.

File, queue or start

  • File is park: nemia inbox add <file> --factory <factory> --workflow <workflow>. The card waits in the inbox. A card not started is changed where it lives, keeping its name: nemia inbox edit <name> <file>, the card's whole text; its labels with nemia label inbox <name> key=value.
  • Queue: nemia inbox queue <name>. The tick starts it once a run slot is free.
  • Start: nemia start <store>/inbox/<name>.md, the card's own file, with --after <run> where it waits on one. It runs in the card's factory and workflow, and stays in the inbox, listed as started. To hand it runs as context, nemia inbox from <name> <run> first.

Each is yours. After any of them, say the card's state in one line — parked, queued, or started as <run> and the phase that run is in now — and offer the next step: queue it, start it, or what it waits on.

04 同仓库更多 Skills

emyann
emyann/nemia

groom-the-inbox

Read each card in play in the inbox against the repository and say, per card, done (the commit on the base that landed it), replaced (the decision or card that did), stale (each fact that moved, what it said and what it says now) or standing, reading closely only what the period touched. For the janitor's step, which proposes and never acts: a person removes or amends each card by the command the check writes.

★ 3
emyann
emyann/nemia

write-a-spec

Turn an accepted intent into a spec an engineer can build from in this repository: the goal restated, the approach and why, every path it touches, the steps, the tests that prove it, the risks, and what is still open. For a step that designs a change before anyone builds it.

★ 3
emyann
emyann/nemia

review-a-change

Review a change in this repository as a second engineer would: against its intent and spec, by reading the diff and the suite's verdict, with findings that name the file, the line and what goes wrong. For a read-only step that decides whether the work goes round again.

★ 3
emyann
emyann/nemia

read-the-stats

Read a factory's stats since the janitor's last run, against the same length of time before it, write a short report, and propose one correction per card — an allow or deny by name, a line in an agent's body or a skill, or a refusal kept on purpose — each with the numbers behind it, never one already in the inbox. For the janitor's step, which proposes and never acts.

★ 3
emyann
emyann/nemia

land-a-branch

Land a run's result on the base branch in this repository's own checkout, the way the step says it lands: make that one act, read its result, and write the message that records what landed — or change nothing and say why it refused. For a gated ending step (workspace: base).

★ 3
emyann
emyann/nemia

implement-a-change

Build a change from its spec in this repository: tests first where a rule is claimed, small commits, the tests of what changed green for the right reason, and each review finding answered in the next round. For a step that writes the code.

★ 3