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.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- atlas-onboardSkill
- atlasSkill
- chord-closeSkill
- chord-createSkill
- chord-workSkill
- repo-ingestSkill
- repo-linkSkill
- repo-unlinkSkill
- thread-closeSkill
- thread-runSkill
- thread-stubSkill
- thread-tasksSkill
- thread-verifySkill
- thread-workSkill
- wiki-editSkill
- wiki-ingestSkill
- wiki-mapSkill
- wiki-querySkill
- wiki-reviewSkill
- wiki-saveSkill
- wiki-syncSkill
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
- Distinctive: line 33
Write the spec's text:
- Distinctive: line 44
Leave out how to do the work, and any list of steps: thread-tasks writes those.
- Very specific: line 56
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 …
≈ “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.
Files
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
threadload withthread: 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.- Research the wiki. List the subjects the idea names: repositories, entities
(tools, datasets, models, services), concepts, methods.
searcheach, then Read the pages that matter. For each repository,contextwithrepository: its instruction files, its git facts, its tag pages, and the candidate policies. - Research the code the work touches: where it lands, what it changes, what tests exist.
- 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.
- The conventions step (conventions.md): keep the policies that bind this work, each with one line on why.
- 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.
threadspec withthreadandtext. 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.- 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
## Knowledgewith Edit. Build one Wiki Change Plan (changes.md) withworkset to the thread, andchangepropose. A subject you know only by name is a stub, not a page (threadstub). 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.
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
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.

