Create detailed project specifications from brainstorm output using spec-driven development methodology
Transforms project briefs into detailed, testable specifications with structured requirements and acceptance criteria. Use after brainstorming to create a comprehensive spec document for planning.
/plugin marketplace add athola/claude-night-market/plugin install attune@claude-night-marketTransform project brief into detailed, testable specification using spec-driven development methodology.
# Create specification from brainstorm output
/attune:specify
# Specify with custom input
/attune:specify --input docs/project-brief.md
# Generate specification for specific feature
/attune:specify --feature "user authentication"
When spec-kit plugin is available:
Skill(spec-kit:spec-writing) for specification methodologyWithout spec-kit:
# 1. Invoke specification skill
Skill(attune:project-specification)
# 2. Transform brief into structured spec:
# - Functional requirements
# - Non-functional requirements
# - Acceptance criteria
# - Technical constraints
# - Dependencies
# 3. Generate specification document
# - Saved to docs/specification.md
# - Includes all requirements with testability
# 4. Transition to planning
# Next: /attune:plan (use spec as input)
Format per requirement:
### FR-001: [Requirement Name]
**Description**: Clear description of the requirement
**Acceptance Criteria**:
- [ ] Given [context], when [action], then [expected result]
- [ ] Given [context], when [action], then [expected result]
**Priority**: High | Medium | Low
**Dependencies**: FR-002, FR-005
**Estimated Effort**: S | M | L | XL
Categories:
Explicitly document what's NOT included to prevent scope creep.
--input <path> - Input brief file (default: docs/project-brief.md)--output <path> - Output spec file (default: docs/specification.md)--feature <name> - Specify single feature instead of full project--clarify - Run clarification phase (like spec-kit clarify)/attune:brainstorm --domain "web application"
/attune:specify
Output: docs/specification.md
# Technical Debt Tracker - Specification
## Overview
**Purpose**: Provide systematic technical debt tracking integrated with GitHub
**Scope**:
- IN: GitHub issue integration, debt prioritization, reporting
- OUT: Multi-platform support, custom integrations, AI recommendations
**Stakeholders**:
- Development teams (primary users)
- Tech leads (debt review and prioritization)
- Engineering managers (reporting and metrics)
## Functional Requirements
### FR-001: GitHub Issue Discovery
**Description**: Automatically discover and categorize technical debt from GitHub issues
**Acceptance Criteria**:
- [ ] Given a repository with issues, when scanning is triggered, then all issues with `tech-debt` label are imported
- [ ] Given imported issues, when categorizing, then each is assigned a debt type (code quality, architecture, security, performance)
- [ ] Given categorized issues, when displaying, then issues are grouped by type and priority
**Priority**: High
**Dependencies**: None
**Estimated Effort**: M
### FR-002: Debt Prioritization Framework
**Description**: Calculate priority score for each debt item based on impact and effort
**Acceptance Criteria**:
- [ ] Given a debt item, when calculating priority, then score = (impact Γ urgency) / effort
- [ ] Given priority scores, when displaying, then items are ranked highest to lowest
- [ ] Given a debt item, when impact/effort changes, then priority recalculates automatically
**Priority**: High
**Dependencies**: FR-001
**Estimated Effort**: M
### FR-003: Interactive Dashboard
**Description**: Web dashboard showing debt overview and trends
**Acceptance Criteria**:
- [ ] Given authenticated user, when accessing dashboard, then see total debt count and trend
- [ ] Given dashboard view, when filtering, then can filter by type, priority, age
- [ ] Given dashboard view, when clicking item, then navigate to GitHub issue
**Priority**: Medium
**Dependencies**: FR-001, FR-002
**Estimated Effort**: L
## Non-Functional Requirements
### NFR-001: Performance
- Load dashboard in < 2 seconds for repos with < 1000 issues
- Sync with GitHub every 15 minutes
- Support concurrent access by 10+ users
### NFR-002: Security
- OAuth GitHub authentication required
- Read-only access to GitHub repositories
- No data persistence of sensitive information
### NFR-003: Reliability
- 99% uptime during business hours
- Graceful degradation if GitHub API unavailable
- Error logging and monitoring
## Technical Constraints
**Stack**:
- Backend: Python 3.10+ with FastAPI
- Frontend: React 18+ with TypeScript
- Database: PostgreSQL 14+
- Deployment: Docker containers on cloud platform
**GitHub Integration**:
- GitHub App with webhook subscriptions
- REST API for issue queries
- OAuth for user authentication
## Out of Scope (v1.0)
- Multi-platform support (GitLab, Bitbucket)
- AI-powered recommendations
- Custom integration plugins
- Mobile application
- Jira synchronization
## Acceptance Testing
Each FR must have:
1. Automated unit tests
2. Integration tests
3. End-to-end test scenario
## Success Criteria
Project is successful when:
- [ ] All High priority FRs implemented and tested
- [ ] Dashboard loads in < 2 seconds
- [ ] Successfully deployed to production
- [ ] 5+ teams actively using the tool
- [ ] 90%+ user satisfaction score
/attune:specify --feature "user authentication"
Creates feature-specific specification in docs/specs/feature-user-authentication.md
/attune:specify --clarify
Runs clarification questions (like spec-kit):
π Specification Clarification
Reviewing docs/specification.md...
Questions to resolve ambiguities:
1. FR-001: What happens if issue has no tech-debt label but mentions "debt" in description?
β [Need clarification]
2. NFR-001: Does "< 2 seconds" include initial authentication or subsequent loads?
β [Need clarification]
3. Technical Constraints: Which cloud platform? AWS, GCP, Azure?
β [Need clarification]
Specification follows this template:
# [Project Name] - Specification v[version]
**Author**: [Name]
**Date**: [YYYY-MM-DD]
**Status**: Draft | Review | Approved | Implemented
## Change History
| Version | Date | Author | Changes |
|---------|------|--------|---------|
| 0.1.0 | 2026-01-02 | Alex | Initial draft |
## Overview
[Purpose, scope, stakeholders]
## Functional Requirements
[FR-XXX sections with acceptance criteria]
## Non-Functional Requirements
[NFR-XXX sections with measurable targets]
## Technical Constraints
[Technology, integration, deployment requirements]
## Out of Scope
[Explicitly excluded features]
## Dependencies
[External dependencies, third-party services]
## Acceptance Testing Strategy
[How requirements will be validated]
## Success Criteria
[Measurable project success indicators]
## Glossary
[Domain-specific terms and definitions]
## References
[Related documents, prior art, research]
/attune:brainstorm β Generate project brief
β
/attune:specify β You are here
β
/attune:plan β Plan architecture
β
/attune:init β Initialize project
β
/attune:execute β Implement systematically
The specification skill automatically validates:
/attune:brainstorm - Generate project brief/attune:plan - Create implementation plan from spec/speckit-specify - Spec-kit's specification workflow (if available)/speckit-clarify - Spec-kit's clarification workflow (if available)Skill(attune:project-specification) - Specification methodologySkill(spec-kit:spec-writing) - Spec-kit spec writing (if available)Skill(imbue:scope-guard) - Scope creep preventionWhen spec-kit is installed, this command automatically:
Skill(spec-kit:spec-writing) for specification framework/attune:specify --clarify modeCheck if spec-kit is available:
/plugin list | grep spec-kit
Install spec-kit:
/plugin install spec-kit@claude-night-market