agentleFS
nathanadaynathanaday/atlas-obsidian/skills/thread-spec/SKILL.md

thread-spec

Skill0 starsChanged 2 months agoMITView on GitHub

Write the spec of a thread: research the wiki and the code, then say what must be true when the work is done, as numbered requirements, with the rules, the decisions, and the wiki pages it rests on. Bring the wiki up to date with what the research found. Use for spec this, define this, what should this be, requirements, flesh out the stub, what does done mean, revise the spec. The steps are thread-tasks; several threads are chord-create.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the spec's text:

    line 33
  2. Distinctive:

    Leave out how to do the work, and any list of steps: thread-tasks writes those.

    line 44
  3. Very specific:

    Write the spec before you propose the change: a topic the spec cites gains a ## Threads section at the next sync, which is an edit of that …

    line 56

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

thread-spec

A spec says what must be true when the work is done, and why. It holds requirements a reviewer can check, the rules that bind the work, the decisions with their reasons, and the wiki pages it rests on. It holds no task, no method, and no progress: those have their own documents. Most of a spec comes from reading. The user answers only what reading cannot decide and a wrong guess would change.

Tools: thread (load, spec), context, search, match, change. References: threads.md, conventions.md, changes.md.

Procedure

  1. thread load with thread: read the idea, the notes, and the thread's place in its chord. A thread that comes after others builds on what they deliver; read their specs.
  2. Research the wiki. List the subjects the idea names: repositories, entities (tools, datasets, models, services), concepts, methods. search each, then Read the pages that matter. For each repository, context with repository: its instruction files, its git facts, its tag pages, and the candidate policies.
  3. Research the code the work touches: where it lands, what it changes, what tests exist.
  4. Decide what the research decides. Ask only what it cannot answer and a wrong guess would change, in one message, each question with a recommended answer.
  5. The conventions step (conventions.md): keep the policies that bind this work, each with one line on why.
  6. Write the spec's text:
    • ## Goal: one paragraph;
    • ## Requirements: each line - R1: …. Each names what is true and how one can see it ("go test ./... passes", "the INT8 mAP50 of each cell is in the results table"). Keep them few and checkable. Never renumber one that exists;
    • ## Rules: business rules, principles, and the policies of step 5;
    • ## Decisions: each with its reason;
    • ## Out of scope;
    • ## Knowledge: each wiki page the spec relied on, linked, with one line on what it gave;
    • ## Open questions. Leave out how to do the work, and any list of steps: thread-tasks writes those.
  7. thread spec with thread and text. The tool refuses a section a spec does not hold, a check box, and a requirement line with no id; fix the text and call again.
  8. Bring the wiki up to date. For each subject of step 2:
    • the wiki has a page, and the research found it wrong or thin → one modify;
    • the wiki has no page → one create, from what the research found, cited (a source, a repository, or this session);
    • then add the page under the spec's ## Knowledge with Edit. Build one Wiki Change Plan (changes.md) with work set to the thread, and change propose. A subject you know only by name is a stub, not a page (thread stub). No gap, no change.

Write the spec before you propose the change: a topic the spec cites gains a ## Threads section at the next sync, which is an edit of that topic.

Gate

Link the spec. Say its goal and its requirements in a few lines, the questions that stay open, and the wiki change when there is one. Wait for the user to agree or to edit. An edit in Obsidian counts: thread load again before you go on. Apply the change after the user's yes.

A run with no user present takes the recommended answers and says so.

Hand off

thread-tasks.

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.