spec-driven-workflow

Generates, validates, and enforces feature specifications before code implementation.

2|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/BryanPinheiro77/FinanceBot-BackEnd --skill spec-driven-workflow-bryanpinheiro77
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: spec-driven-workflow
Source: https://github.com/BryanPinheiro77/FinanceBot-BackEnd/tree/main/.agents/skills/spec-driven-workflow
Command: npx skills add https://github.com/BryanPinheiro77/FinanceBot-BackEnd --skill spec-driven-workflow-bryanpinheiro77

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Teams often start coding before requirements are clear, causing rework, scope creep, and untestable features. This Skill enforces a spec-first workflow where every feature is specified, validated, and traced to acceptance criteria before any implementation begins. ## Core Features & Use Cases - Spec Generation and Validation: Generate a complete 9-section spec template (requirements, acceptance criteria, API contracts, data models, out of scope) and score its completeness from 0-100 with spec_validator.py. - Test Extraction from Specs: Convert Given/When/Then acceptance criteria into failing test stubs with test_extractor.py, feeding directly into a TDD red-green-refactor cycle. - Bounded Autonomy Rules: A decision matrix defining when an implementer must stop and escalate (ambiguity over 30%, breaking changes, security implications) versus continue autonomously. - Use Case: Before building a password reset feature, generate the spec template, fill in RFC 2119 requirements and acceptance criteria, validate it scores 80+, extract pytest stubs, then implement one criterion at a time. ## Quick Start Ask the AI to write a complete specification with acceptance criteria for your next feature before writing any code.

Frequently Asked Questions about spec-driven-workflow

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

FAQPage Schema
How do I write a feature specification before coding?▼

Run spec_generator.py with a feature name and description to produce a 9-section template covering context, functional requirements, acceptance criteria, edge cases, API contracts, data models, and out of scope. Fill every section using RFC 2119 keywords, then validate with spec_validator.py before implementation.

How to generate test cases from acceptance criteria?▼

Run test_extractor.py against an approved spec file with a framework flag such as pytest. Each acceptance criterion and edge case becomes a failing test stub, which feeds directly into the red phase of test-driven development.

What is spec-driven development vs test-driven development?▼

Spec-driven development defines what to build through requirements and acceptance criteria before coding starts. TDD defines how to implement via red-green-refactor cycles. The spec workflow produces test stubs in Phase 4, then TDD takes over for implementation.

When should a developer stop and ask during spec implementation?▼

Stop when requirement ambiguity exceeds 30 percent, when a change breaks an existing API contract or schema, when security areas like authentication or PII are touched, or when the work requires something not in the spec. Escalate with a specific question, options, and a recommendation.

What makes acceptance criteria testable in Given/When/Then format?▼

Each criterion needs a concrete precondition (Given), a single trigger action (When), and observable outcomes like status codes or field values (Then). Avoid subjective words like fast or properly, and reference at least one requirement ID such as FR-3 in every criterion.