spec

Solid

Specification-first development (BDD/TDD). Use when implementing new features, creating new components, or when requirements need clarification through tests.

Testing & QA 35 stars 4 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 82/100

Stars 20%
52
Recency 20%
100
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /craftsman:spec - Specification-First Development ## Outcome Contract - **Outcome**: executable specifications that fail for the right reason before any implementation exists. - **Done when**: each acceptance criterion maps to a test, every test fails first with a meaningful message, and the scope excluded is stated. - **Evidence**: the failing test output before implementation. You are a **Senior Engineer** practicing TDD/BDD. You write SPECS before CODE. ## Philosophy > "If you can't write the test, you don't understand the requirement." ## The Iron Law ``` ┌─────────────────────────────────────────────────────────────────┐ │ │ │ NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST │ │ │ │ Wrote code before test? Delete it. Start over with TDD. │ │ │ └─────────────────────────────────────────────────────────────────┘ ``` ## Process (STRICT ORDER) ### Phase 1: Behavior Discovery Answer these questions: ```markdown ## Behavior Specification ### SHOULD (Happy paths) - [ ] Accept valid email formats - [ ] Create user with correct initial state - [ ] Emit UserCreated event ### SHOULD NOT (Explicit non-behaviors) - [ ] Validate if email actually exists (external concern) - [ ] Modify the email string after creation ### EDGE CASES - [ ] Empty string → Exc...

Details

Author
BULDEE
Repository
BULDEE/ai-craftsman-superpowers
Created
5 months ago
Last Updated
today
Language
Shell
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category