Compare commits

..

8 Commits

Author SHA1 Message Date
Den Delimarsky
1c0e7d14d5 Merge pull request #563 from danwashusen/plan-project-structure-fix
Refined wording in `plan-template.md` to ensure the Source Code section consistently works
2025-09-25 12:39:14 -07:00
Den Delimarsky
55555eb39e Merge pull request #590 from github/cli-fix
Spec Kit Updates
2025-09-25 12:28:51 -07:00
Dan Washusen
df3e4930cc Refine plan-template.md with improved project type detection, clarified structure decision process, and enhanced research task guidance. 2025-09-25 10:10:30 +10:00
Den Delimarsky
f3d55cff84 Merge pull request #546 from danyow/main
fix /specify command
2025-09-24 12:05:11 -07:00
danyow
c6051a0b8a Merge pull request #2 from danyow/patch-2
Update template path for spec file creation
2025-09-24 21:34:10 +08:00
danyow
04cb5f00d4 Merge pull request #1 from danyow/patch-1
Update template path for spec file creation
2025-09-24 21:33:17 +08:00
danyow
e924a73625 Update template path for spec file creation 2025-09-24 21:31:37 +08:00
danyow
e642acaea4 Update template path for spec file creation 2025-09-24 21:30:22 +08:00
3 changed files with 15 additions and 8 deletions

View File

@@ -80,7 +80,7 @@ fi
FEATURE_DIR="$SPECS_DIR/$BRANCH_NAME" FEATURE_DIR="$SPECS_DIR/$BRANCH_NAME"
mkdir -p "$FEATURE_DIR" mkdir -p "$FEATURE_DIR"
TEMPLATE="$REPO_ROOT/templates/spec-template.md" TEMPLATE="$REPO_ROOT/.specify/templates/spec-template.md"
SPEC_FILE="$FEATURE_DIR/spec.md" SPEC_FILE="$FEATURE_DIR/spec.md"
if [ -f "$TEMPLATE" ]; then cp "$TEMPLATE" "$SPEC_FILE"; else touch "$SPEC_FILE"; fi if [ -f "$TEMPLATE" ]; then cp "$TEMPLATE" "$SPEC_FILE"; else touch "$SPEC_FILE"; fi

View File

@@ -89,7 +89,7 @@ if ($hasGit) {
$featureDir = Join-Path $specsDir $branchName $featureDir = Join-Path $specsDir $branchName
New-Item -ItemType Directory -Path $featureDir -Force | Out-Null New-Item -ItemType Directory -Path $featureDir -Force | Out-Null
$template = Join-Path $repoRoot 'templates/spec-template.md' $template = Join-Path $repoRoot '.specify/templates/spec-template.md'
$specFile = Join-Path $featureDir 'spec.md' $specFile = Join-Path $featureDir 'spec.md'
if (Test-Path $template) { if (Test-Path $template) {
Copy-Item $template $specFile -Force Copy-Item $template $specFile -Force

View File

@@ -15,7 +15,7 @@ scripts:
1. Load feature spec from Input path 1. Load feature spec from Input path
→ If not found: ERROR "No feature spec at {path}" → If not found: ERROR "No feature spec at {path}"
2. Fill Technical Context (scan for NEEDS CLARIFICATION) 2. Fill Technical Context (scan for NEEDS CLARIFICATION)
→ Detect Project Type from context (web=frontend+backend, mobile=app+api) → Detect Project Type from file system structure or context (web=frontend+backend, mobile=app+api)
→ Set Structure Decision based on project type → Set Structure Decision based on project type
3. Fill the Constitution Check section based on the content of the constitution document. 3. Fill the Constitution Check section based on the content of the constitution document.
4. Evaluate Constitution Check section below 4. Evaluate Constitution Check section below
@@ -69,8 +69,14 @@ specs/[###-feature]/
``` ```
### Source Code (repository root) ### Source Code (repository root)
<!--
ACTION REQUIRED: Replace the placeholder tree below with the concrete layout
for this feature. Delete unused options and expand the chosen structure with
real paths (e.g., apps/admin, packages/something). The delivered plan must
not include Option labels.
-->
``` ```
# Option 1: Single project (DEFAULT) # [REMOVE IF UNUSED] Option 1: Single project (DEFAULT)
src/ src/
├── models/ ├── models/
├── services/ ├── services/
@@ -82,7 +88,7 @@ tests/
├── integration/ ├── integration/
└── unit/ └── unit/
# Option 2: Web application (when "frontend" + "backend" detected) # [REMOVE IF UNUSED] Option 2: Web application (when "frontend" + "backend" detected)
backend/ backend/
├── src/ ├── src/
│ ├── models/ │ ├── models/
@@ -97,15 +103,16 @@ frontend/
│ └── services/ │ └── services/
└── tests/ └── tests/
# Option 3: Mobile + API (when "iOS/Android" detected) # [REMOVE IF UNUSED] Option 3: Mobile + API (when "iOS/Android" detected)
api/ api/
└── [same as backend above] └── [same as backend above]
ios/ or android/ ios/ or android/
└── [platform-specific structure] └── [platform-specific structure: feature modules, UI flows, platform tests]
``` ```
**Structure Decision**: [DEFAULT to Option 1 unless Technical Context indicates web/mobile app] **Structure Decision**: [Document the selected structure and reference the real
directories captured above]
## Phase 0: Outline & Research ## Phase 0: Outline & Research
1. **Extract unknowns from Technical Context** above: 1. **Extract unknowns from Technical Context** above: