Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/core/templates/workflows/ff-change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function getFfChangeSkillTemplate(): SkillTemplate {
description: 'Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually.',
instructions: `Fast-forward through artifact creation - generate everything needed to start implementation in one go.

**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
**Input**: The user's request should include a change name (kebab-case, optionally prefixed with a category like feat_, fix_, chore_, or docs_; e.g., feat_add-user-auth or add-user-auth) OR a description of what they want to build.

**Steps**

Expand All @@ -21,7 +21,7 @@ export function getFfChangeSkillTemplate(): SkillTemplate {
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
> "What change do you want to work on? Describe what you want to build or fix."

From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
From their description, derive a kebab-case name. If the change clearly fits a category (feat, fix, chore, or docs), prepend it with an underscore (e.g., "add user authentication" → \`feat_add-user-auth\`), otherwise use the plain kebab-case name (e.g., \`add-user-auth\`).

**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.

Expand Down Expand Up @@ -114,7 +114,7 @@ export function getOpsxFfCommandTemplate(): CommandTemplate {
tags: ['workflow', 'artifacts', 'experimental'],
content: `Fast-forward through artifact creation - generate everything needed to start implementation.

**Input**: The argument after \`/opsx:ff\` is the change name (kebab-case), OR a description of what the user wants to build.
**Input**: The argument after \`/opsx:ff\` is the change name (kebab-case, optionally prefixed with a category like feat_, fix_, chore_, or docs_; e.g., feat_add-user-auth or add-user-auth), OR a description of what the user wants to build.

**Steps**

Expand All @@ -123,7 +123,7 @@ export function getOpsxFfCommandTemplate(): CommandTemplate {
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
> "What change do you want to work on? Describe what you want to build or fix."

From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
From their description, derive a kebab-case name. If the change clearly fits a category (feat, fix, chore, or docs), prepend it with an underscore (e.g., "add user authentication" → \`feat_add-user-auth\`), otherwise use the plain kebab-case name (e.g., \`add-user-auth\`).

**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.

Expand Down
12 changes: 6 additions & 6 deletions src/core/templates/workflows/new-change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function getNewChangeSkillTemplate(): SkillTemplate {
description: 'Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature, fix, or modification with a structured step-by-step approach.',
instructions: `Start a new change using the experimental artifact-driven approach.

**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
**Input**: The user's request should include a change name (kebab-case, optionally prefixed with a category like feat_, fix_, chore_, or docs_; e.g., feat_add-user-auth or add-user-auth) OR a description of what they want to build.

**Steps**

Expand All @@ -21,7 +21,7 @@ export function getNewChangeSkillTemplate(): SkillTemplate {
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
> "What change do you want to work on? Describe what you want to build or fix."

From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
From their description, derive a kebab-case name. If the change clearly fits a category (feat, fix, chore, or docs), prepend it with an underscore (e.g., "add user authentication" → \`feat_add-user-auth\`), otherwise use the plain kebab-case name (e.g., \`add-user-auth\`).

**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.

Expand Down Expand Up @@ -70,7 +70,7 @@ After completing the steps, summarize:
**Guardrails**
- Do NOT create any artifacts yet - just show the instructions
- Do NOT advance beyond showing the first artifact template
- If the name is invalid (not kebab-case), ask for a valid name
- If the name is invalid (not kebab-case, with or without a category prefix), ask for a valid name
- If a change with that name already exists, suggest continuing that change instead
- Pass --schema if using a non-default workflow`,
license: 'MIT',
Expand All @@ -87,7 +87,7 @@ export function getOpsxNewCommandTemplate(): CommandTemplate {
tags: ['workflow', 'artifacts', 'experimental'],
content: `Start a new change using the experimental artifact-driven approach.

**Input**: The argument after \`/opsx:new\` is the change name (kebab-case), OR a description of what the user wants to build.
**Input**: The argument after \`/opsx:new\` is the change name (kebab-case, optionally prefixed with a category like feat_, fix_, chore_, or docs_; e.g., feat_add-user-auth or add-user-auth), OR a description of what the user wants to build.

**Steps**

Expand All @@ -96,7 +96,7 @@ export function getOpsxNewCommandTemplate(): CommandTemplate {
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
> "What change do you want to work on? Describe what you want to build or fix."

From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
From their description, derive a kebab-case name. If the change clearly fits a category (feat, fix, chore, or docs), prepend it with an underscore (e.g., "add user authentication" → \`feat_add-user-auth\`), otherwise use the plain kebab-case name (e.g., \`add-user-auth\`).

**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.

Expand Down Expand Up @@ -144,7 +144,7 @@ After completing the steps, summarize:
**Guardrails**
- Do NOT create any artifacts yet - just show the instructions
- Do NOT advance beyond showing the first artifact template
- If the name is invalid (not kebab-case), ask for a valid name
- If the name is invalid (not kebab-case, with or without a category prefix), ask for a valid name
- If a change with that name already exists, suggest using \`/opsx:continue\` instead
- Pass --schema if using a non-default workflow`
};
Expand Down
8 changes: 4 additions & 4 deletions src/core/templates/workflows/propose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ When ready to implement, run /opsx:apply

---

**Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
**Input**: The user's request should include a change name (kebab-case, optionally prefixed with a category like feat_, fix_, chore_, or docs_; e.g., feat_add-user-auth or add-user-auth) OR a description of what they want to build.

**Steps**

Expand All @@ -30,7 +30,7 @@ When ready to implement, run /opsx:apply
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
> "What change do you want to work on? Describe what you want to build or fix."

From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
From their description, derive a kebab-case name. If the change clearly fits a category (feat, fix, chore, or docs), prepend it with an underscore (e.g., "add user authentication" → \`feat_add-user-auth\`), otherwise use the plain kebab-case name (e.g., \`add-user-auth\`).

**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.

Expand Down Expand Up @@ -132,7 +132,7 @@ When ready to implement, run /opsx:apply

---

**Input**: The argument after \`/opsx:propose\` is the change name (kebab-case), OR a description of what the user wants to build.
**Input**: The argument after \`/opsx:propose\` is the change name (kebab-case, optionally prefixed with a category like feat_, fix_, chore_, or docs_; e.g., feat_add-user-auth or add-user-auth), OR a description of what the user wants to build.

**Steps**

Expand All @@ -141,7 +141,7 @@ When ready to implement, run /opsx:apply
Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
> "What change do you want to work on? Describe what you want to build or fix."

From their description, derive a kebab-case name (e.g., "add user authentication" → \`add-user-auth\`).
From their description, derive a kebab-case name. If the change clearly fits a category (feat, fix, chore, or docs), prepend it with an underscore (e.g., "add user authentication" → \`feat_add-user-auth\`), otherwise use the plain kebab-case name (e.g., \`add-user-auth\`).

**IMPORTANT**: Do NOT proceed without understanding what the user wants to build.

Expand Down