Closing the intent-to-code chasm - specification-driven development with BDD verification chain
86
92%
Does it follow best practices?
Impact
86%
1.82xAverage score across 14 eval scenarios
Advisory
Suggest reviewing before use
A startup is building an event ticketing platform. The team has already completed the feature specification and technical plan for their core ticketing feature. Now they need a task breakdown that developers can work from.
Your job is to generate tasks.md from the provided spec and plan artifacts.
Produce the following files:
specs/006-event-tickets/tasks.md — the dependency-ordered task breakdowntasks-report.md — summary of total tasks, parallelizable count, and phase structureThe following files are provided as inputs. Extract them before beginning.
=============== FILE: specs/006-event-tickets/spec.md ===============
As an event organizer, I want to create an event with ticket tiers so attendees can purchase tickets at different price points.
Functional Requirements:
Acceptance Scenarios:
Success Criteria:
As an attendee, I want to purchase a ticket for an event so I can attend.
Functional Requirements:
Acceptance Scenarios:
Success Criteria:
As an attendee, I want to browse upcoming events so I can find events I'm interested in.
Functional Requirements:
Acceptance Scenarios:
Success Criteria:
=============== FILE: specs/006-event-tickets/plan.md ===============
src/
models/event.ts # Prisma schema and types for Event
models/ticket-tier.ts # Prisma schema and types for TicketTier
models/purchase.ts # Prisma schema and types for Purchase
schemas/event.ts # Zod validation schemas for event endpoints
schemas/purchase.ts # Zod validation schemas for purchase endpoints
services/event-service.ts # Event creation and listing business logic
services/purchase-service.ts # Ticket purchase with atomic quantity decrement
services/email-service.ts # Confirmation email dispatch via Resend
routes/events.ts # Express route handlers for /events
routes/purchases.ts # Express route handlers for /purchases
middleware/error-handler.ts # Centralized error handling
database.ts # Prisma client initialization
tests/
features/ # BDD .feature files
create_event.feature
purchase_ticket.feature
view_listings.feature
integration/
events.test.ts
purchases.test.ts
listings.test.ts
conftest.ts # Shared test fixtures
prisma/
schema.prisma # Database schema
package.json=============== FILE: specs/006-event-tickets/tests/features/create_event.feature ===============
@US-001 Feature: Create Event
@TS-001 @FR-001 @FR-002 @SC-001 @US-001 @P1 @acceptance Scenario: Create event with multiple ticket tiers Given an authenticated event organizer When they create an event with title "Summer Fest" and 2 ticket tiers Then the event is saved with both tiers and a 201 response is returned
@TS-002 @FR-003 @US-001 @P1 @validation Scenario: Reject event with past date Given an authenticated event organizer When they attempt to create an event with a date in the past Then a 400 validation error is returned
=============== FILE: specs/006-event-tickets/tests/features/purchase_ticket.feature ===============
@US-002 Feature: Purchase Ticket
@TS-003 @FR-004 @FR-006 @FR-007 @SC-001 @US-002 @P1 @acceptance Scenario: Successful ticket purchase Given an event "Summer Fest" with 10 General Admission tickets available When a buyer purchases 1 General Admission ticket Then available quantity drops to 9 and a unique ticket code is returned
@TS-004 @FR-005 @US-002 @P1 @acceptance Scenario: Purchase from sold-out tier Given an event "Summer Fest" with 0 General Admission tickets available When a buyer attempts to purchase a General Admission ticket Then a 409 sold-out error is returned
@TS-005 @FR-006 @SC-003 @US-002 @P1 @acceptance Scenario: Confirmation email sent after purchase Given a buyer has successfully purchased a ticket When the purchase is confirmed Then a confirmation email with the ticket code is sent within 60 seconds
=============== FILE: specs/006-event-tickets/tests/features/view_listings.feature ===============
@US-003 Feature: View Event Listings
@TS-006 @FR-008 @FR-009 @SC-004 @US-003 @P2 @acceptance Scenario: Browse paginated event listings Given 50 upcoming events exist in the system When page 1 of event listings is requested Then 20 events are returned sorted by date ascending with cheapest tier price
@TS-007 @FR-010 @US-003 @P2 @acceptance Scenario: Sold-out events appear with badge Given an event where all ticket tiers have 0 available quantity When event listings are viewed Then the sold-out event appears with a sold-out indicator
=============== FILE: .specify/context.json =============== { "tdd_determination": "optional", "active_feature": "006-event-tickets" }
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
scenario-11
scenario-12
scenario-13
scenario-14
rules
skills
iikit-00-constitution
scripts
dashboard
iikit-01-specify
iikit-02-plan
iikit-03-checklist
scripts
bash
dashboard
iikit-04-testify
iikit-05-tasks
iikit-06-analyze
iikit-07-implement
iikit-08-taskstoissues
iikit-bugfix
scripts
dashboard
iikit-clarify
iikit-core
references
scripts
bash
dashboard
powershell
templates