/baldrick:spec-detailedfrom baldrick
Create comprehensive spec with diagrams, flows, and thorough documentation. Use when: detailed spec, comprehensive spec, full spec, baldrick spec. Triggers on: detailed, comprehensive, full spec, thorough.
Ships in baldrick. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate a comprehensive feature specification with diagrams, flow charts, and thorough documentation.
Philosophy: Clarity over brevity. Leave no ambiguity.
specs/[feature-name].mdRequired YAML Frontmatter:
---
id: feature-name-v1 # Unique identifier (kebab-case + version)
title: "Feature Title"
passes: false
priority: medium # high | medium | low
risk: standard # spike | integration | standard | polish
created: YYYY-MM-DD
depends_on: [] # Array of spec IDs this depends on (optional)
---
Required Sections (Detailed):
Ask with lettered options for quick responses:
1. What is the primary success scenario?
A. [Option based on context]
B. [Alternative]
C. [Another alternative]
D. Other: [specify]
2. What are the key error conditions?
A. [Common error]
B. [Edge case]
C. Both A and B
D. Other: [specify]
User can respond with "1A, 2C" for speed.
Each spec must be completable in ONE Baldrick iteration.
If the feature is too large, suggest splitting into multiple specs with depends_on references.
---
id: user-login-v1
title: "User Login with Email"
passes: false
priority: high
risk: integration
created: 2026-01-11
depends_on:
- user-schema-v1
- session-middleware-v1
---
# User Login with Email
> **One-liner:** Authenticate users with email and password credentials.
## Context
| | |
|---|---|
| **User** | Registered user |
| **Trigger** | Submitting login form |
| **Success** | User redirected to dashboard with session |
## Scope
**In Scope:**
- Email/password form
- Session creation
- Error messages for invalid credentials
**Out of Scope:**
- Password reset
- Social login (OAuth)
- Remember me checkbox
## Dependencies
- [ ] User table exists with email/password_hash columns
- [ ] Session middleware configured
## Flow
```mermaid
flowchart TD
A[Login Form] --> B{Validate Input}
B -->|Valid| C[Check Credentials]
B -->|Invalid| D[Show Validation Error]
C -->|Match| E[Create Session]
C -->|No Match| F[Show Auth Error]
E --> G[Redirect to Dashboard]
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Login Form │────▶│ Validate │────▶│Check Creds │
└─────────────┘ └──────────────┘ └─────────────┘
│ │
▼ (invalid) ▼ (no match)
┌──────────┐ ┌──────────┐
│Val. Error│ │Auth Error│
└──────────┘ └──────────┘
| Input | Action | Output |
|---|---|---|
[email protected], secret123 | Login | Session created, redirect to /dashboard |
| Input | Condition | Expected |
|---|---|---|
"" | Empty email | 400: {error: "Email required"} |
not-an-email | Invalid format | 400: {error: "Invalid email"} |
| Trigger | Code | Response |
|---|---|---|
| Wrong password | 401 | {error: "Invalid credentials"} |
| User not found | 401 | {error: "Invalid credentials"} |
Given user "[email protected]" exists with password "secret123" When I submit login form with email "[email protected]" and password "secret123" Then I am redirected to "/dashboard" And a session cookie is set
Given I am on the login page When I submit with email "" and password "" Then I see error ""
Examples: | email | password | error | | | secret123 | Email required | | not-an-email | secret123 | Invalid email format | | [email protected] | | Password required |
Given user "[email protected]" exists with password "secret123" When I submit with email "[email protected]" and password "wrongpass" Then I see error "Invalid credentials" And no session is created
src/
├── app/
│ └── login/
│ └── page.tsx # Login form UI
├── actions/
│ └── auth.ts # Login server action
└── tests/
└── auth.test.ts # Auth tests
---
## Output
- **Format:** Markdown (`.md`)
- **Location:** `specs/`
- **Filename:** `[feature-name].md` (kebab-case, matches id without version)
---
## Checklist Before Saving
- [ ] Asked 2-3 clarifying questions with lettered options
- [ ] Has unique `id` field
- [ ] Has `depends_on` for any prerequisite specs
- [ ] Spec is completable in one iteration (or suggested split)
- [ ] Has ALL required sections including diagrams
- [ ] Used REAL data in examples (not `[placeholder]`)
- [ ] Includes both Mermaid and ASCII diagrams
- [ ] Has Scenario Outline for validation cases
- [ ] Saved to `specs/[feature-name].md`
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jagreehal/baldrick --plugin baldrick8 skills in this plugin
/baldrick-runExecute Baldrick iterations on existing specs. Use when: run baldrick, execute specs, implement features, start working. Triggers on: baldrick run, run specs, implement, execute features./coverage-loopIteratively improve test coverage until target is reached. Use when: improve coverage, test coverage, coverage target, baldrick coverage. Triggers on: coverage, test coverage, coverage loop./entropy-loopIteratively reduce code entropy by fixing smells and improving quality. Use when: cleanup, code smells, entropy, refactor loop, baldrick entropy. Triggers on: entropy, cleanup, code smells, reduce entropy./lint-loopIteratively fix all linting errors until clean. Use when: fix lint, lint errors, lint loop, baldrick lint-fix. Triggers on: lint, fix lint, lint errors, lint loop./pr-docsGenerate PR documentation from completed spec and git diff. Use when: pr docs, generate docs, pull request docs, baldrick docs. Triggers on: pr docs, generate docs, document changes./spec-createCreate a feature specification for Baldrick. Use when: create a spec, new feature, write spec for, plan this feature. Triggers on: create spec, baldrick create, new spec, feature spec.Other plugins' skills for the same job