to-spec
Skill8 starsChanged 2 months agoMITView on GitHub
Synthesize conversation and codebase context into an unambiguous, buildable technical specification. Use when requirements and design decisions are settled and need to be formalized into a technical spec — even if the user says \"write a spec for this\". Do NOT use when the core idea is still fuzzy and ungrilled.
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 180 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Minimal Seams at the Highest Tier: Prefer existing high-level test seams.
- Very specific: line 46
Key Point: Follow the strict template: 1.
- Distinctive: line 54
Action: Document module boundaries, modified interfaces, database schema changes, and API contracts.
- Very specific: line 60
Key Point: If the issue tracker is unconfigured, instruct the user to run /setup-engineering-workflows.
“Common” is measured: kept by at least 6 in 10 of the 180 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
To Spec
Synthesize settled conversation context and codebase understanding into an unambiguous, buildable technical specification with minimal test seams and complete user stories.
Core Invariants
- Pure Synthesis, Zero Interrogation: Synthesize strictly from established context and codebase facts; do not interview the user.
- Minimal Seams at the Highest Tier: Prefer existing high-level test seams; never introduce unnecessary internal mocking seams.
- Exhaustive User Stories: Generate a comprehensive, numbered list of
As an <actor>, I want <feature>, so that <benefit>stories covering all user paths. - Decisions Over Concrete Snippets: Specify architectural decisions, interfaces, and schema changes without fragile, hardcoded code snippets (unless derived from a validated prototype).
- Strict Out-of-Scope Demarcation: Explicitly list out-of-scope capabilities to prevent scope creep and unbound work.
Architecture & Map of Content (MOC)
[ Settled Context & ADRs ] ──► [ Codebase Seam Inspection ] ──► [ Spec Document Synthesis ] ──► [ Tracker Publication ]| Component | Responsibility | Format / Template |
| Problem & Solution | Frame user-centric intent | Problem / Solution statements |
| User Stories | Enumerate all functional paths | Numbered standard user stories |
| Implementation Decisions | Define module boundaries & contracts | Architecture & schema decisions |
| Testing Decisions | Specify external verification seams | Behavior-driven test strategy |
Step-by-Step Procedure (TWI)
Step 1: Autonomous Codebase & Seam Inspection
- Action: Explore the repository to inspect existing modules, domain glossary terms, and ADRs.
- Key Point: Identify the highest available integration seam to test the feature externally.
- Why: Testing through high-level seams verifies true system behavior while leaving internal implementation details free to refactor.
Step 2: Formulate Comprehensive User Stories
- Action: Draft an exhaustive, numbered list of user stories capturing all primary and edge-case user interactions.
- Key Point: Follow the strict template:
1. As an <actor>, I want a <feature>, so that <benefit>. - Why: Detailed user stories prevent implementers from making ad-hoc product assumptions during coding.
- Inline Checklist:
- Every user story has an explicit actor and tangible benefit
- Edge cases and failure states are covered as distinct stories
- No implementation jargon inside user story statements
Step 3: Formalize Implementation and Testing Decisions
- Action: Document module boundaries, modified interfaces, database schema changes, and API contracts.
- Key Point: Omit volatile file line numbers or speculative code snippets.
- Why: Fragile code snippets go stale immediately and misdirect downstream implementation agents.
Step 4: Define Out-of-Scope Boundaries & Publish
- Action: Detail what is explicitly NOT included, apply the
ready-for-agenttriage label, and publish to the configured issue tracker or.scratch/<feature-slug>/spec.md. - Key Point: If the issue tracker is unconfigured, instruct the user to run
/setup-engineering-workflows. - Why: Clear negative boundaries prevent scope bloat and keep subsequent ticket decomposition bounded.
Anti-Rationalization Guardrails
| Tempting Rationalization | Binding Rule | Engineering Rationale |
| "I'll ask the user a few more questions before writing the spec." | No interviewing during to-spec. | If requirements are still fuzzy, route back to grill-me. to-spec is pure synthesis. |
| "I will write extensive mock-heavy unit test decisions." | Test at the highest possible public seam. | Mock-heavy tests break during refactors and fail to verify actual end-to-end functionality. |
| "Include complete implementation code blocks in the spec." | Specify interfaces and decisions, not full code. | Implementation code in specs blinds the developer agent to live codebase nuances. |
| "Skip the out-of-scope section since it seems obvious." | Mandatory explicit Out-of-Scope section. | Ambiguity in scope boundaries causes runaway scope creep during implementation. |
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- formbricks/formbricks★ 13ksame name
- ArcReel/ArcReel★ 6ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- withcoral/coral★ 4.9ksame name
- bestofjs/bestofjs★ 3.1ksame name
- moeru-ai/xsai★ 665same name
- DanMcInerney/architect-loop★ 626same name
- nodetool-ai/nodetool★ 603same name
184 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use loop-me and claude-handoff.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 44 projects that use this
ryotaroh180105Skillclaude-handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately.
Also in 35 projects that use this
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-data-remediationSkill
- ai-engineeringSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- engineering-workflow-guideSkill
- git-safety-guardrailsSkill
- goalSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- j-spaceSkill
- migrate-to-shoehornSkill
- ml-best-practicesSkill
- prototypeSkill
- researchSkill
- resolving-merge-conflictsSkill
- retroSkill
- scaffold-exercisesSkill
- setup-engineering-workflowsSkill
- setup-pre-commitSkill
- setup-ts-deep-modulesSkill
- skill-conductorSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-ticketsSkill
- triageSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- workflow-designerSkill
- writing-beatsSkill
- writing-for-agentsSkill
- writing-fragmentsSkill
- writing-shapeSkill
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.

