ask-spec
Skill1 starsChanged 4 months agoMITView on GitHub
Spec: Use when non-trivial work needs a requirements spec or design brief before code: captured decisions, traceability, and validation gates. Common triggers: spec, specify requirements, requirements spec, requirements capture, design brief, decision register, requirements traceability, traceable requirements, validation gate, readiness gate, handover package, spec before build, truth spine, requirements-driven, requirements engineering, formalize requirements, requirements specification, engineering contract, invariant, proof obligation, counterexample, compatibility-sensitive, material requirement.
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- ask-agent-workflowsSkill
- ask-code-reviewSkill
- ask-debuggingSkill
- ask-deep-researchSkill
- ask-design-reviewSkill
- ask-designSkill
- ask-developSkill
- ask-gh-inboxSkill
- ask-improveSkill
- ask-intakeSkill
- ask-observabilitySkill
- ask-researchSkill
- ask-session-reviewSkill
- ask-text-writingSkill
- ask-verificationSkill
- ask-write-skillSkill
- ask-agent-workflowsSkill
- ask-code-reviewSkill
- ask-debuggingSkill
- ask-deep-researchSkill
- ask-design-reviewSkill
- ask-designSkill
- ask-developSkill
- ask-gh-inboxSkill
- ask-improveSkill
- ask-intakeSkill
- ask-observabilitySkill
- ask-researchSkill
- ask-session-reviewSkill
- ask-specSkill
- ask-text-writingSkill
- ask-verificationSkill
- ask-write-skillSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 36
Use this model for material assumptions.
≈ “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
ASK Spec
Formalize agreed intent into one traceable specification and engineering contract before development. The agent must establish what is agreed, why it is believed, how it is observed, and what evidence will prove it. Humans own decisions; downstream agents should not need to rediscover intent.
Proportionality
- Trivial — skip heavy spec; use
intakeor direct execution. - Normal — requirements, decisions, constraints, non-goals, and observable acceptance criteria.
- Complex, risky, or release-sensitive — add relevant assumptions, invariants, proof obligations, counterexamples, dependencies, compatibility constraints, change impact, and audit expectations.
Classify requirements by impact: ordinary = local behavior; material = violation could affect behavior, correctness, data, compatibility, architecture, ownership, routing, security, production safety, or release readiness; critical = material with severe potential impact. Material and critical requirements need deeper detail. Use impact, not numeric scoring or document size. Do not catalogue every edge case.
Flow
Capture — record need, context, goals, scope, non-goals, stakeholders, constraints, risks, dependencies, compatibility boundaries, open questions, and assumptions. Flag ambiguity; never assume. Keep the artifact proportional: ordinary work may need only a short requirements and acceptance record. When a single requirement spans several independently testable capabilities, first map the capabilities and their dependency direction so the spec decomposes rather than staying a monolithic block.
Structure — produce one contract containing requirements, decisions, constraints, must-remain-unchanged behavior, non-goals, invariants, acceptance criteria, proof obligations, dependencies, compatibility, and change impact. Keep requirement, constraint, non-goal, protected behavior, and invariant distinct. Decisions record choice, owner, rationale, alternatives considered and their consequences, and status: proposed, confirmed, rejected, or superseded; only confirmed decisions are settled implementation input. AI may recommend options, but may not settle product, ownership, compatibility, or architectural decisions for a human owner. For each material or critical requirement, preserve where relevant:
Requirement → expected behavior / invariant → observable acceptance criterion → claim → proof obligation → required evidenceDistinguish: requirement = must be true; invariant = must never be violated; acceptance criterion = observable behavior; claim = statement that can be made after validation; proof obligation = what must be demonstrated about the claim; required evidence = the observations that demonstrate it; counterexample = how behavior or invariant could fail. Run tests is not a proof obligation by itself. If a material requirement cannot have a direct proof obligation, record why and what indirect evidence or human judgment is required.
Challenge — investigate, do not complete a checklist. For each material or critical concern, inspect the relevant primary evidence first, then existing behavior, architecture and production callers, constraints, and compatibility boundaries. Challenge assumptions that could change implementation; record the finding and evidence, including evidence-backed non-applicability when useful. Absence of a documented problem is not evidence that it does not exist. Do not invent hypothetical edge cases without material relevance.
For material or critical behavior, investigate only applicable failure modes such as zero or multiple candidates, conflicting evidence, missing metadata, partial or invalid input, unsafe fallbacks, caller bypasses, ordering/determinism, dependency assumptions, and backwards-compatibility edges. Record meaningful findings and failure modes. Derive audit targets from discovered assumptions, invariants, counterexamples, failure modes, bypass paths, fallback behavior, determinism requirements, compatibility boundaries, and ownership boundaries, for example:
INV-004: one authoritative ownership source
Audit target: search production callers for alternate ownership pathsUse this model for material assumptions; status is unverified, confirmed, or rejected:
Assumption | Source | Owner | Status | Impactconfirmed requires sufficient primary evidence or an explicit decision by the responsible human owner. If evidence is insufficient, keep the item unverified, state what evidence is missing, and name the owner needed to resolve it. Never turn inference into confirmation. Apply the same rule to a confirmed decision when its choice depends on an unresolved factual claim. Do not create an evidence score.
Validate — check completeness, observability, proof readiness, ownership, contradictions, readiness, and handover. Compare requirements, constraints, decisions, assumptions, protected behavior, observed behavior, and acceptance criteria for contradictions: detect incompatible constraints, conflicting decisions, unsatisfiable acceptance criteria, compatibility conflicts, and assumptions that conflict with evidence. Never resolve a conflict silently.
For each material requirement, connect claim → proof obligation → required evidence, or record why it is not directly verifiable. State what must be demonstrated, not merely a tool or command. Plan one test per acceptance criterion, not per requirement or invariant; prove an invariant by tracing or an existing test unless the workflow is release-sensitive. Prefer Given ... When ... Then ... where it fits. READY means development can proceed without rediscovering implementation-affecting intent. Do not mark it READY with material ambiguity or contradiction, an unowned critical decision, an unverified critical assumption, a missing material acceptance criterion or proof obligation, unresolved compatibility, or unresolved implementation-affecting behavior. Human-owned resolution must be recorded; inference is not resolution.
Transfer — hand over one coherent artifact. develop gets build scope, confirmed decisions, constraints, must-remain-unchanged behavior, and non-goals; verification gets behavior, acceptance criteria, claims, proof obligations, and required evidence; code-review checks implementation against the contract; improve/audit gets derived targets from assumptions, invariants, counterexamples, bypass/fallback paths, determinism, compatibility risks, and architectural boundaries. spec formalizes and gates intent; it does not implement, verify, review, or audit.
Traceability
Need → Context → Decision → Requirement → Invariant → Acceptance → Proof → Handover → Build
For requirements and evidence, track source, status, and relationship. Assign owners where decision authority is real: decisions, assumptions, and stakeholder-owned constraints. Every material requirement needs a proof obligation or an explicit reason it is not directly verifiable.
Use with
intakefor scope clarification and exploration when full formalization is overkilldeep-researchfor multi-source evidence before formalizing uncertain technical requirementsdevelopafter validation, to build against the contractverificationto execute proof obligationscode-reviewto review implementation against the contractimprovefor independent audit of assumptions, counterexamples, bypasses, fallbacks, determinism, or compatibility
Avoid
- Heavy specs for trivial work
- Letting AI own decisions or treating assumptions as facts
- Parallel spec trees when a durable planning system exists
- Requiring every contract concept for every requirement
- Performing verification, review, or audit inside this phase
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.

