create-task-spec

Elicits requirements through structured questioning and emits a Gherkin feature file plus spec.json manifest.

2|Updated Jul 18, 2026
One-click install
npx skills add https://github.com/Arasz/ai-badger --skill create-task-spec-arasz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-task-spec
Source: https://github.com/Arasz/ai-badger/tree/main/features/common/skills/create-task-spec
Command: npx skills add https://github.com/Arasz/ai-badger --skill create-task-spec-arasz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Feature ideas often get turned into specifications drafted by an AI and rubber-stamped by a person, so the document encodes guesses instead of real requirements. This Skill prevents that by interrogating the requester in staged rounds, using Gherkin's grammar to decide which questions must be asked and when the specification is structurally complete. ## Core Features & Use Cases - Question-driven elicitation: Seven staged rounds (restate, ability header, rules, scenarios, steps, decision gate, emit) extract knowledge from the person rather than proposing content for approval. - Structural completeness checking: The spec_holes.py script scans the .feature file for rules without examples and examples without steps, exiting non-zero until every gap is closed or explicitly deferred with a chosen fallback. - Dual output artifacts: Produces a .feature behavioural contract and a spec.json manifest (scope, constraints, gate verdicts, deferred decisions) that the task skill consumes for planning, plus an optional HTML rendering via render_spec.py. - Use Case: A product owner says "spec out the export feature". The Skill asks who the actor is, what rules must always hold, and what scenarios prove each rule, records every answer, forces rulings on open points, and emits a verified specification ready for implementation planning. ## Quick Start Ask the agent to turn your feature idea into a task specification, for example: "Create a task spec for adding CSV export to the reports page."

Frequently Asked Questions about create-task-spec

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn a feature idea into a Gherkin specification?

Invoke the skill with your idea and answer its staged questions about the actor, rules, and scenarios. It records each answer into a draft, then emits a .feature file and a spec.json manifest once no structural gaps remain.

How do I check whether a Gherkin spec is complete?

Run spec_holes.py against the .feature file. It reports rules without examples and examples without steps, exiting non-zero while any hole is open and zero once remaining gaps carry a @deferred tag.

What happens when I cannot answer a specification question?

Answering "I don't know" is allowed. The open point becomes a decision card at the decision gate, where you either rule on it or record it as deferred with an explicit fallback you choose at that moment.

Does this skill require a BDD framework or external Python packages?

No. Nothing runs a BDD framework, and both scripts use only the Python standard library. Gherkin is used purely as a question schema and document format, not as an executable test layer.

When should I not use this specification skill?

Do not use it while the idea itself is still open. It converges on exact meaning after brainstorming has settled what to build; for open ideation, use a brainstorming process first, then return here.