Skip to content

Commit bbe05f8

Browse files
committed
feat(skill): improving openspec and tested it
1 parent 9767354 commit bbe05f8

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

.cursor/rules/042-planning-openspec.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ openspec list
8787

8888
- **MUST** run commands from the project directory context expected by OpenSpec
8989
- **MUST** distinguish between creating a fresh OpenSpec project vs updating an existing one
90+
- **MUST** use plain `openspec init` (without any `--tools ...` options) when initializing a new OpenSpec project
9091

9192
### Step 4: Create or Update a Change
9293

skills-generator/src/main/resources/skills/042-skill.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Guide the process of turning an implementation plan (`*.plan.md`) into an OpenSp
3232
<constraint>**MUST**: Check CLI availability with `openspec --version` before any OpenSpec operation</constraint>
3333
<constraint>**MUST**: If OpenSpec is missing, provide macOS, Linux, and Windows install guidance via npm command</constraint>
3434
<constraint>**MUST**: Offer `openspec init` when no OpenSpec project exists</constraint>
35+
<constraint>**MUST**: When creating a new OpenSpec project, run plain `openspec init` only (do not use `--tools ...` options)</constraint>
3536
<constraint>**MUST**: Use a stable change-id (for example: `add-dark-mode`) for status/show/archive commands</constraint>
3637
<constraint>**MUST**: Run `openspec validate --all` before archiving</constraint>
3738
<constraint>**MUST**: Explain whether the workflow creates a new change or updates an existing one</constraint>

skills/042-planning-openspec/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Always execute OpenSpec commands from the parent directory that contains the `op
2828
- **MUST**: Check CLI availability with `openspec --version` before any OpenSpec operation
2929
- **MUST**: If OpenSpec is missing, provide macOS, Linux, and Windows install guidance via npm command
3030
- **MUST**: Offer `openspec init` when no OpenSpec project exists
31+
- **MUST**: When creating a new OpenSpec project, run plain `openspec init` only (do not use `--tools ...` options)
3132
- **MUST**: Use a stable change-id (for example: `add-dark-mode`) for status/show/archive commands
3233
- **MUST**: Run `openspec validate --all` before archiving
3334
- **MUST**: Explain whether the workflow creates a new change or updates an existing one

skills/042-planning-openspec/references/042-planning-openspec.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ openspec list
8787

8888
- **MUST** run commands from the project directory context expected by OpenSpec
8989
- **MUST** distinguish between creating a fresh OpenSpec project vs updating an existing one
90+
- **MUST** use plain `openspec init` (without any `--tools ...` options) when initializing a new OpenSpec project
9091

9192
### Step 4: Create or Update a Change
9293

system-prompts-generator/src/main/resources/system-prompts/042-planning-openspec.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ openspec list
9090
<step-constraint-list>
9191
<step-constraint>**MUST** run commands from the project directory context expected by OpenSpec</step-constraint>
9292
<step-constraint>**MUST** distinguish between creating a fresh OpenSpec project vs updating an existing one</step-constraint>
93+
<step-constraint>**MUST** use plain `openspec init` (without any `--tools ...` options) when initializing a new OpenSpec project</step-constraint>
9394
</step-constraint-list>
9495
</step-constraints>
9596
</step>

0 commit comments

Comments
 (0)