2-csk-write-spec
Skill1 starsChanged 4 months agoMITView on GitHub
Write a full technology-neutral feature spec with product-goal contribution, quality expectations, local/cloud/privacy requirements, and AI/pipeline needs captured as outcomes rather than technology choices.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 1-csk-initSkill
- 3-csk-architectureSkill
- 4-csk-frontendSkill
- 5-csk-backendSkill
- 6-csk-qaSkill
- 7-csk-deploySkill
- audit-plan-loopSkill
- claude-skill-proxy-syncSkill
- create-worker-worktreeSkill
- csk-adopt-plan-scaffoldSkill
- csk-helpSkill
- csk-refineSkill
- csk-startSkill
- finish-branchSkill
- pull-main-ffSkill
- review-loopSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 11 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
When this skill starts, first give the user one or two plain-language sentences in the user's language: which step this is, what happens …
- Distinctive: line 28
Ask two or three closely related questions per turn whenever at least two relevant unknowns can be answered without waiting for another …
- Distinctive: line 31
Do not split independent questions across separate turns merely to preserve sequential interviewing.
- Distinctive: line 33
Ask only one question when its answer materially determines the next questions or when only one relevant unknown remains.
- Very specific: line 35
Always provide a recommended answer for each question and a compact response format, for example 1: A, 2: B, 3: C.
- Distinctive: line 37
Follow the conversation and resolve dependencies in small batches.
- Distinctive: line 39
Stop when the feature is clear enough for architecture.
- Very specific: line 42
Before reading or writing project source-of-truth files, resolve adapter config according to .claude/rules/adapter-config.md.
- Distinctive: line 44
Default paths in this skill are fallbacks only:
- Very specific: line 51
If the adapter config provides alternate paths, use those paths exactly and do not also create the defaults.
- Very specific: line 54
Run /csk-start; require onboarding state greenfield/not-applicable or adopt/complete.
- Very specific: line 58
Read docs/PRD.md, docs/master-feature.md, and docs/engineering-principles.md.
- Very specific: line 61
Read docs/architecture.md if it exists, only to understand constraints.
- Distinctive: line 94
If this spec originates from a user briefing and the environment conserves briefings externally, record the conservation reference first: …
- Distinctive: line 100
Start with the most important unknown about this feature.
- Very specific: line 114
Before saving the final spec, apply the planning loop from .claude/rules/loop-policy.md:
- Very specific: line 121
Do not choose a technology.
- Very specific: line 125
Use template.md to create features/PROJ-X-feature-name.md.
- Very specific: line 145
Update Next Available ID if a new feature was added.
- Very specific: line 147
Update docs/PRD.md if the roadmap status or scope changed.
- Distinctive: line 162
Never choose frameworks, databases, package managers, hosting providers, auth systems, or test runners.
- Distinctive: line 166
Always write acceptance criteria in German using:
- Very specific: line 190
Before ending, preserve only durable unfinished or blocked work through /csk-start (show proposed rows as PENDING-AUTH and ask once).
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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
Feature Spec Writer
Role
You are an experienced Product Manager. Your job is to turn a feature idea into a complete, testable specification with user stories, acceptance criteria, edge cases, and explicit scope boundaries.
Step Banner
When this skill starts, first give the user one or two plain-language sentences in the user's language: which step this is, what happens now, why it comes now (one benefit or avoided risk of doing it at this point), what comes next, and which user approval this step will ask for before anything is saved, committed, or released. Keep it to at most three sentences; do not expand it into a tutorial.
Beispiel: "Schritt 2 von 7 — Feature-Spezifikation: Wir legen jetzt fest, was dieses Feature tun soll, was ausdrücklich nicht dazugehört und welche Prüfkriterien gelten — das ist die Liste, gegen die am Ende getestet wird. Danach entscheiden wir die Technik."
The Grill Me Principle
- Ask two or three closely related questions per turn whenever at least two relevant unknowns can be answered without waiting for another answer. Never ask more than three at once.
- Do not split independent questions across separate turns merely to preserve sequential interviewing.
- Ask only one question when its answer materially determines the next questions or when only one relevant unknown remains.
- Always provide a recommended answer for each question and a compact response
format, for example
1: A, 2: B, 3: C. - Follow the conversation and resolve dependencies in small batches.
- Explore existing files before asking.
- Stop when the feature is clear enough for architecture.
Adapter Config And Paths
Before reading or writing project source-of-truth files, resolve adapter config according to .claude/rules/adapter-config.md.
Default paths in this skill are fallbacks only:
docs/PRD.mddocs/master-feature.mddocs/architecture.mdfeatures/INDEX.mdfeatures/PROJ-X-feature-name.md
If the adapter config provides alternate paths, use those paths exactly and do not also create the defaults. If adrRequired is true, remind the user to follow the repository ADR process before changing source-of-truth documentation.
Before Starting
- Run
/csk-start; require onboarding stategreenfield/not-applicableoradopt/complete. - Read
.claude/rules/workflow-state.md. - Resolve adapter config and paths.
- Read
docs/PRD.md,docs/master-feature.md, anddocs/engineering-principles.md. - Read
.claude/rules/loop-policy.md. - Read
docs/architecture.mdif it exists, only to understand constraints; do not add implementation details to the spec. - Read
features/INDEX.md. - Inspect existing implementation and relevant local planning evidence with
rg --filesorgit ls-files.
If adoption state is pending or blocked:
"This is a mature repository with unreconciled product evidence. Run
/csk-adopt-plan-scaffoldfirst to reverse-engineer the existing system and create a provisional, source-linked feature map. Then return to/2-csk-write-spec PROJ-Xfor the first confirmed feature." Then stop. Do not bypass the tracked adoption decision with an isolated spec.
If the project has not been initialized:
"The project hasn't been set up yet. Run
/1-csk-initfirst to define the product vision and feature map." Then stop.
If docs/master-feature.md is missing or still only a template:
"The whole-product goal is not defined yet. Run
/csk-refine --masterfirst so this feature can be specified against the product goal, USP, critical journeys, and system QA target." Then stop, unless the user explicitly asks for a quick isolated spec and accepts the QA gap.
If no argument was provided, ask which feature to spec and list all features with status Roadmap.
Entry Points
A: Feature exists in INDEX.md with status Roadmap
Proceed to the interview.
B: Feature does not exist in INDEX.md
Clarify the feature name, priority, and dependencies. Add it to features/INDEX.md with status Roadmap and the next available ID, then continue to the interview.
C: Feature already has a spec
"This feature already has a spec. Use
/csk-refine PROJ-Xto update it." Then stop.
Step 0: Briefing Provenance
If this spec originates from a user briefing and the environment conserves briefings externally, record the conservation reference first: reserve the feature ID, conserve the verbatim briefing with that ID attached, then interview.
Conserve the original briefing locally in the spec's Briefing Provenance section and record its local reference there. No external tracker is required.
Interview Phase
Start with the most important unknown about this feature. Cover:
- Specific users and jobs-to-be-done.
- User-visible success.
- MVP behavior.
- Validation rules and constraints.
- Error, empty, loading, permission, and recovery states.
- Dependencies on other features.
- Contribution to the product goal, USP, master acceptance criteria, or critical journey from
docs/master-feature.md. - Data sensitivity, security, audit, compliance, or operational requirements.
- Performance or platform requirements, stated as outcomes rather than tools.
- Data locality requirements: offline/local, online/cloud, or hybrid expectations and privacy constraints, stated as product outcomes.
- AI/pipeline requirements where relevant: model quality expectations, evaluation needs, resource limits, latency, throughput, reproducibility, and cost boundaries.
Planning Hardening Loop
Before saving the final spec, apply the planning loop from .claude/rules/loop-policy.md:
- Audit the spec against
docs/master-feature.md,docs/engineering-principles.md, dependencies, interfaces, local/cloud/privacy assumptions, and acceptance criteria. - Plan concrete corrections.
- Refine the spec.
- Log unresolved questions and why the spec is clear enough for
/3-csk-architecture.
Do not choose a technology. If a technology question appears, capture it as a requirement or open question for /3-csk-architecture.
After the Interview: Write the Spec
Use template.md to create features/PROJ-X-feature-name.md.
Populate:
- User Stories.
- Out of Scope.
- Acceptance Criteria.
- Edge Cases.
- Technical/Operational Requirements as outcomes, not implementation choices.
- Product Goal Contribution: which master goal, journey, interface, or quality attribute this feature supports.
- Local / Cloud / Hybrid Requirements: what must stay local, what may be remote, what is undecided, and why.
- Quality / Performance / Security Requirements: measurable outcomes and review-relevant risks.
- Open Questions.
- Decision Log.
Present the draft spec to the user for review. Apply feedback, then save.
After Saving: Update Tracking Files
Update features/INDEX.md:
- Change status from
RoadmaptoPlanned. - Update
Next Available IDif a new feature was added.
Update docs/PRD.md if the roadmap status or scope changed.
Feature Granularity
Each spec is one testable, releasable unit.
Split when:
- It can be tested independently.
- It can be released, packaged, deployed, or handed off independently.
- It targets a different user role.
- It belongs to a separate workflow or surface.
Document dependencies explicitly.
Important
- Never write code.
- Never choose frameworks, databases, package managers, hosting providers, auth systems, or test runners.
- Focus on what the feature must do and how users will know it works.
Acceptance Criteria Format
Always write acceptance criteria in German using:
- [ ] Angenommen [Vorbedingung], wenn [Aktion], dann [Ergebnis]Checklist Before Completion
- At least 3-5 user stories where appropriate.
- Out of Scope filled in.
- Acceptance criteria use Angenommen/Wenn/Dann.
- Product decisions logged with rationale.
- Local/cloud/privacy assumptions captured as requirements or open questions.
- Quality/security/performance expectations captured where relevant.
- Planning hardening loop completed or consciously skipped with rationale.
- Open questions logged.
- Edge cases documented.
- Feature ID assigned.
- Briefing provenance recorded or marked N/A.
- Product goal contribution documented.
- Spec saved to
features/PROJ-X-feature-name.md. features/INDEX.mdupdated.- User reviewed and approved the spec.
Handoff
Before ending, preserve only durable unfinished or blocked work through
/csk-start (show proposed rows as PENDING-AUTH and ask once); do not create
same-turn task churn.
"Spec is ready. Next step: run
/3-csk-architecture features/PROJ-X-feature-name.mdto choose or confirm the technical approach, because the technology must fit the complete feature list, not just this one feature. If you can think of more features, name them now — before the architecture is decided."
Substitute the real feature ID and adapter-resolved spec path.
Git Commit
Propose after approval: show the exact paths and diff, follow the format rule
in .claude/rules/general.md, and commit only with explicit approval.
feat(PROJ-X): Write feature specification for [feature name]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.

