Skip to content

Commit 8880d90

Browse files
committed
Updates speckit commands & template
1 parent 78bc376 commit 8880d90

File tree

12 files changed

+68
-14
lines changed

12 files changed

+68
-14
lines changed

.claude/commands/constitution.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
---
22
description: Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
3-
# (No scripts section: constitution edits are manual authoring assisted by the agent)
43
---
54

5+
The user input to you can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
6+
7+
User input:
8+
9+
$ARGUMENTS
10+
611
You are updating the project constitution at `.specify/memory/constitution.md`. This file is a TEMPLATE containing placeholder tokens in square brackets (e.g. `[PROJECT_NAME]`, `[PRINCIPLE_1_NAME]`). Your job is to (a) collect/derive concrete values, (b) fill the template precisely, and (c) propagate any amendments across dependent artifacts.
712

813
Follow this execution flow:

.claude/commands/implement.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
description: Execute the implementation plan by processing and executing all tasks defined in tasks.md
33
---
44

5-
Given the current feature context, do this:
5+
The user input can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
66

7-
1. Run `.specify/scripts/bash/check-implementation-prerequisites.sh --json` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute.
7+
User input:
8+
9+
$ARGUMENTS
10+
11+
1. Run `.specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute.
812

913
2. Load and analyze the implementation context:
1014
- **REQUIRED**: Read tasks.md for the complete task list and execution plan

.claude/commands/plan.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
description: Execute the implementation planning workflow using the plan template to generate design artifacts.
33
---
44

5+
The user input to you can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
6+
7+
User input:
8+
9+
$ARGUMENTS
10+
511
Given the implementation details provided as an argument, do this:
612

713
1. Run `.specify/scripts/bash/setup-plan.sh --json` from the repo root and parse JSON for FEATURE_SPEC, IMPL_PLAN, SPECS_DIR, BRANCH. All future file paths must be absolute.

.claude/commands/specify.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
description: Create or update the feature specification from a natural language feature description.
33
---
44

5-
Given the feature description provided as an argument, do this:
5+
The user input to you can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
6+
7+
User input:
8+
9+
$ARGUMENTS
10+
11+
The text the user typed after `/specify` in the triggering message **is** the feature description. Assume you always have it available in this conversation even if `$ARGUMENTS` appears literally below. Do not ask the user to repeat it unless they provided an empty command.
12+
13+
Given that feature description, do this:
614

715
1. Run the script `.specify/scripts/bash/create-new-feature.sh --json "$ARGUMENTS"` from repo root and parse its JSON output for BRANCH_NAME and SPEC_FILE. All file paths must be absolute.
816
**IMPORTANT** You must only ever run this script once. The JSON is provided in the terminal as output - always refer to it to get the actual content you're looking for.

.claude/commands/tasks.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
description: Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
33
---
44

5-
Given the context provided as an argument, do this:
5+
The user input to you can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
66

7-
1. Run `.specify/scripts/bash/check-task-prerequisites.sh --json` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute.
7+
User input:
8+
9+
$ARGUMENTS
10+
11+
1. Run `.specify/scripts/bash/check-prerequisites.sh --json` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute.
812
2. Load and analyze available design documents:
913
- Always read plan.md for tech stack and libraries
1014
- IF EXISTS: Read data-model.md for entities

.cursor/commands/constitution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync.
33
---
44

5-
The user input to you can be provided directly by the agent or in `$ARGUMENTS` - you **MUST** consider it before proceeding with the prompt (if not empty).
5+
The user input to you can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
66

77
User input:
88

.cursor/commands/implement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Execute the implementation plan by processing and executing all tasks defined in tasks.md
33
---
44

5-
The user input to you can be provided directly by the agent or in `$ARGUMENTS` - you **MUST** consider it before proceeding with the prompt (if not empty).
5+
The user input can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
66

77
User input:
88

.cursor/commands/plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Execute the implementation planning workflow using the plan template to generate design artifacts.
33
---
44

5-
The user input to you can be provided directly by the agent or in `$ARGUMENTS` - you **MUST** consider it before proceeding with the prompt (if not empty).
5+
The user input to you can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
66

77
User input:
88

.cursor/commands/specify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Create or update the feature specification from a natural language feature description.
33
---
44

5-
The user input to you can be provided directly by the agent or in `$ARGUMENTS` - you **MUST** consider it before proceeding with the prompt (if not empty).
5+
The user input to you can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
66

77
User input:
88

.cursor/commands/tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
33
---
44

5-
The user input to you can be provided directly by the agent or in `$ARGUMENTS` - you **MUST** consider it before proceeding with the prompt (if not empty).
5+
The user input to you can be provided directly by the agent or as a command argument - you **MUST** consider it before proceeding with the prompt (if not empty).
66

77
User input:
88

0 commit comments

Comments
 (0)