Skip to content

Commit cb7f2db

Browse files
🎨 Auto format and update with pre-commit
1 parent e991bba commit cb7f2db

25 files changed

+186
-187
lines changed

.cursor/commands/speckit.clarify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
3-
handoffs:
3+
handoffs:
44
- label: Build Technical Plan
55
agent: speckit.plan
66
prompt: Create a plan for the spec. I am building with...

.cursor/commands/speckit.constitution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
3-
handoffs:
3+
handoffs:
44
- label: Build Specification
55
agent: speckit.specify
66
prompt: Implement the feature specification based on the updated constitution. I want to build...

.cursor/commands/speckit.implement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ You **MUST** consider the user input before proceeding (if not empty).
105105
106106
6. Execute implementation following the task plan:
107107
- **Phase-by-phase execution**: Complete each phase before moving to the next
108-
- **Respect dependencies**: Run sequential tasks in order, parallel tasks [P] can run together
108+
- **Respect dependencies**: Run sequential tasks in order, parallel tasks [P] can run together
109109
- **Follow TDD approach**: Execute test tasks before their corresponding implementation tasks
110110
- **File-based coordination**: Tasks affecting the same files must run sequentially
111111
- **Validation checkpoints**: Verify each phase completion before proceeding

.cursor/commands/speckit.plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Execute the implementation planning workflow using the plan template to generate design artifacts.
3-
handoffs:
3+
handoffs:
44
- label: Create Tasks
55
agent: speckit.tasks
66
prompt: Break the plan into tasks

.cursor/commands/speckit.specify.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Create or update the feature specification from a natural language feature description.
3-
handoffs:
3+
handoffs:
44
- label: Build Technical Plan
55
agent: speckit.plan
66
prompt: Create a plan for the spec. I am building with...
@@ -104,20 +104,20 @@ Given that feature description, do this:
104104
105105
```markdown
106106
# Specification Quality Checklist: [FEATURE NAME]
107-
107+
108108
**Purpose**: Validate specification completeness and quality before proceeding to planning
109109
**Created**: [DATE]
110110
**Feature**: [Link to spec.md]
111-
111+
112112
## Content Quality
113-
113+
114114
- [ ] No implementation details (languages, frameworks, APIs)
115115
- [ ] Focused on user value and business needs
116116
- [ ] Written for non-technical stakeholders
117117
- [ ] All mandatory sections completed
118-
118+
119119
## Requirement Completeness
120-
120+
121121
- [ ] No [NEEDS CLARIFICATION] markers remain
122122
- [ ] Requirements are testable and unambiguous
123123
- [ ] Success criteria are measurable
@@ -126,16 +126,16 @@ Given that feature description, do this:
126126
- [ ] Edge cases are identified
127127
- [ ] Scope is clearly bounded
128128
- [ ] Dependencies and assumptions identified
129-
129+
130130
## Feature Readiness
131-
131+
132132
- [ ] All functional requirements have clear acceptance criteria
133133
- [ ] User scenarios cover primary flows
134134
- [ ] Feature meets measurable outcomes defined in Success Criteria
135135
- [ ] No implementation details leak into specification
136-
136+
137137
## Notes
138-
138+
139139
- Items marked incomplete require spec updates before `/speckit.clarify` or `/speckit.plan`
140140
```
141141
@@ -160,20 +160,20 @@ Given that feature description, do this:
160160
161161
```markdown
162162
## Question [N]: [Topic]
163-
163+
164164
**Context**: [Quote relevant spec section]
165-
165+
166166
**What we need to know**: [Specific question from NEEDS CLARIFICATION marker]
167-
167+
168168
**Suggested Answers**:
169-
169+
170170
| Option | Answer | Implications |
171171
|--------|--------|--------------|
172172
| A | [First suggested answer] | [What this means for the feature] |
173173
| B | [Second suggested answer] | [What this means for the feature] |
174174
| C | [Third suggested answer] | [What this means for the feature] |
175175
| Custom | Provide your own answer | [Explain how to provide custom input] |
176-
176+
177177
**Your choice**: _[Wait for user response]_
178178
```
179179

.cursor/commands/speckit.tasks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
3-
handoffs:
3+
handoffs:
44
- label: Analyze For Consistency
55
agent: speckit.analyze
66
prompt: Run a project analysis for consistency
@@ -86,7 +86,7 @@ Every task MUST strictly follow this format:
8686
4. **[Story] label**: REQUIRED for user story phase tasks only
8787
- Format: [US1], [US2], [US3], etc. (maps to user stories from spec.md)
8888
- Setup phase: NO story label
89-
- Foundational phase: NO story label
89+
- Foundational phase: NO story label
9090
- User Story phases: MUST have story label
9191
- Polish phase: NO story label
9292
5. **Description**: Clear action with exact file path

.specify/scripts/powershell/check-prerequisites.ps1

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ OPTIONS:
4242
EXAMPLES:
4343
# Check task prerequisites (plan.md required)
4444
.\check-prerequisites.ps1 -Json
45-
45+
4646
# Check implementation prerequisites (plan.md + tasks.md required)
4747
.\check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks
48-
48+
4949
# Get feature paths only (no validation)
5050
.\check-prerequisites.ps1 -PathsOnly
5151
@@ -59,8 +59,8 @@ EXAMPLES:
5959
# Get feature paths and validate branch
6060
$paths = Get-FeaturePathsEnv
6161

62-
if (-not (Test-FeatureBranch -Branch $paths.CURRENT_BRANCH -HasGit:$paths.HAS_GIT)) {
63-
exit 1
62+
if (-not (Test-FeatureBranch -Branch $paths.CURRENT_BRANCH -HasGit:$paths.HAS_GIT)) {
63+
exit 1
6464
}
6565

6666
# If paths-only mode, output paths and exit (support combined -Json -PathsOnly)
@@ -113,35 +113,35 @@ if (Test-Path $paths.RESEARCH) { $docs += 'research.md' }
113113
if (Test-Path $paths.DATA_MODEL) { $docs += 'data-model.md' }
114114

115115
# Check contracts directory (only if it exists and has files)
116-
if ((Test-Path $paths.CONTRACTS_DIR) -and (Get-ChildItem -Path $paths.CONTRACTS_DIR -ErrorAction SilentlyContinue | Select-Object -First 1)) {
117-
$docs += 'contracts/'
116+
if ((Test-Path $paths.CONTRACTS_DIR) -and (Get-ChildItem -Path $paths.CONTRACTS_DIR -ErrorAction SilentlyContinue | Select-Object -First 1)) {
117+
$docs += 'contracts/'
118118
}
119119

120120
if (Test-Path $paths.QUICKSTART) { $docs += 'quickstart.md' }
121121

122122
# Include tasks.md if requested and it exists
123-
if ($IncludeTasks -and (Test-Path $paths.TASKS)) {
124-
$docs += 'tasks.md'
123+
if ($IncludeTasks -and (Test-Path $paths.TASKS)) {
124+
$docs += 'tasks.md'
125125
}
126126

127127
# Output results
128128
if ($Json) {
129129
# JSON output
130-
[PSCustomObject]@{
130+
[PSCustomObject]@{
131131
FEATURE_DIR = $paths.FEATURE_DIR
132-
AVAILABLE_DOCS = $docs
132+
AVAILABLE_DOCS = $docs
133133
} | ConvertTo-Json -Compress
134134
} else {
135135
# Text output
136136
Write-Output "FEATURE_DIR:$($paths.FEATURE_DIR)"
137137
Write-Output "AVAILABLE_DOCS:"
138-
138+
139139
# Show status of each potential document
140140
Test-FileExists -Path $paths.RESEARCH -Description 'research.md' | Out-Null
141141
Test-FileExists -Path $paths.DATA_MODEL -Description 'data-model.md' | Out-Null
142142
Test-DirHasFiles -Path $paths.CONTRACTS_DIR -Description 'contracts/' | Out-Null
143143
Test-FileExists -Path $paths.QUICKSTART -Description 'quickstart.md' | Out-Null
144-
144+
145145
if ($IncludeTasks) {
146146
Test-FileExists -Path $paths.TASKS -Description 'tasks.md' | Out-Null
147147
}

.specify/scripts/powershell/common.ps1

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function Get-RepoRoot {
1010
} catch {
1111
# Git command failed
1212
}
13-
13+
1414
# Fall back to script location for non-git repos
1515
return (Resolve-Path (Join-Path $PSScriptRoot "../../..")).Path
1616
}
@@ -20,7 +20,7 @@ function Get-CurrentBranch {
2020
if ($env:SPECIFY_FEATURE) {
2121
return $env:SPECIFY_FEATURE
2222
}
23-
23+
2424
# Then check git if available
2525
try {
2626
$result = git rev-parse --abbrev-ref HEAD 2>$null
@@ -30,15 +30,15 @@ function Get-CurrentBranch {
3030
} catch {
3131
# Git command failed
3232
}
33-
33+
3434
# For non-git repos, try to find the latest feature directory
3535
$repoRoot = Get-RepoRoot
3636
$specsDir = Join-Path $repoRoot "specs"
37-
37+
3838
if (Test-Path $specsDir) {
3939
$latestFeature = ""
4040
$highest = 0
41-
41+
4242
Get-ChildItem -Path $specsDir -Directory | ForEach-Object {
4343
if ($_.Name -match '^(\d{3})-') {
4444
$num = [int]$matches[1]
@@ -48,12 +48,12 @@ function Get-CurrentBranch {
4848
}
4949
}
5050
}
51-
51+
5252
if ($latestFeature) {
5353
return $latestFeature
5454
}
5555
}
56-
56+
5757
# Final fallback
5858
return "main"
5959
}
@@ -72,13 +72,13 @@ function Test-FeatureBranch {
7272
[string]$Branch,
7373
[bool]$HasGit = $true
7474
)
75-
75+
7676
# For non-git repos, we can't enforce branch naming but still provide output
7777
if (-not $HasGit) {
7878
Write-Warning "[specify] Warning: Git repository not detected; skipped branch validation"
7979
return $true
8080
}
81-
81+
8282
if ($Branch -notmatch '^[0-9]{3}-') {
8383
Write-Output "ERROR: Not on a feature branch. Current branch: $Branch"
8484
Write-Output "Feature branches should be named like: 001-feature-name"
@@ -97,7 +97,7 @@ function Get-FeaturePathsEnv {
9797
$currentBranch = Get-CurrentBranch
9898
$hasGit = Test-HasGit
9999
$featureDir = Get-FeatureDir -RepoRoot $repoRoot -Branch $currentBranch
100-
100+
101101
[PSCustomObject]@{
102102
REPO_ROOT = $repoRoot
103103
CURRENT_BRANCH = $currentBranch
@@ -134,4 +134,3 @@ function Test-DirHasFiles {
134134
return $false
135135
}
136136
}
137-

0 commit comments

Comments
 (0)