Skip to content
Open
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
3 changes: 3 additions & 0 deletions .agents/skills/speckit-agent-context-update/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ compatibility: Requires spec-kit project structure with .specify/ directory
metadata:
author: spec-kit-core
source: agent-context:commands/speckit.agent-context.update.md
version: 1.0.2
user-invocable: true
disable-model-invocation: false
---

# Update Coding Agent Context
Expand Down
25 changes: 23 additions & 2 deletions .agents/skills/speckit-analyze/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ compatibility: "Requires spec-kit project structure with .specify/ directory"
metadata:
author: "github-spec-kit"
source: "templates/commands/analyze.md"
version: "1.4.4"
user-invocable: true
disable-model-invocation: false
---
Expand Down Expand Up @@ -57,7 +58,7 @@ You **MUST** consider the user input before proceeding (if not empty).

## Goal

Identify inconsistencies, duplications, ambiguities, and underspecified items across the three core artifacts (`spec.md`, `plan.md`, `tasks.md`) before implementation. This command MUST run only after `/speckit-tasks` has successfully produced a complete `tasks.md`.
Identify inconsistencies, duplications, ambiguities, and underspecified items across the three core artifacts (`spec.md`, `plan.md`, `tasks.md`) before implementation. When `data-model.md` exists, also check constrained-field task citations and constraint consistency against it. This command MUST run only after `/speckit-tasks` has successfully produced a complete `tasks.md`.

## Operating Constraints

Expand All @@ -74,6 +75,7 @@ Run `.specify/scripts/bash/check-prerequisites.sh --json --require-spec --requir
- SPEC = FEATURE_DIR/spec.md
- PLAN = FEATURE_DIR/plan.md
- TASKS = FEATURE_DIR/tasks.md
- DATA_MODEL = FEATURE_DIR/data-model.md (optional)

Abort with an error message if any required file is missing (instruct the user to run missing prerequisite command).
For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
Expand Down Expand Up @@ -105,6 +107,11 @@ Load only the minimal necessary context from each artifact:
- Parallel markers [P]
- Referenced file paths

**From data-model.md (if present):**

- Entity and exact field names, canonical source locations, and explicit constraints (max/min length, nullable/required, enum values, validation rules), including constraints encoded in field types
- If absent or no constrained fields exist, constrained-field checks are not applicable; do not invent fields or constraints or fail analysis for the missing optional document

**From constitution:**

- Load `.specify/memory/constitution.md` for principle validation
Expand All @@ -116,6 +123,8 @@ Create internal representations (do not include raw artifacts in output):
- **Requirements inventory**: For each Functional Requirement (FR-###) and Success Criterion (SC-###), record a stable key. Use the explicit FR-/SC- identifier as the primary key when present, and optionally also derive an imperative-phrase slug for readability (e.g., "User can upload file" → `user-can-upload-file`). Include only Success Criteria items that require buildable work (e.g., load-testing infrastructure, security audit tooling), and exclude post-launch outcome metrics and business KPIs (e.g., "Reduce support tickets by 50%").
- **User story/action inventory**: Discrete user actions with acceptance criteria
- **Task coverage mapping**: Map each task to one or more requirements or stories (inference by keyword / explicit reference patterns like IDs or key phrases)
- **Constrained-field inventory** (when applicable): Record each canonical `Entity.field`, its constraints, and its location in data-model.md; keep identically named fields on different entities distinct
- **Field citation mapping** (when applicable): Map explicit data-model.md references with exact `Entity.field` identities to implementing task IDs and task locations; retain unresolved references and task-stated constraints for the detection passes
- **Constitution rule set**: Extract principle names and MUST/SHOULD normative statements

### 4. Detection Passes (Token-Efficient Analysis)
Expand Down Expand Up @@ -148,20 +157,25 @@ Focus on high-signal findings. Limit to 50 findings total; aggregate remainder i
- Requirements with zero associated tasks
- Tasks with no mapped requirement/story
- Success Criteria requiring buildable work (performance, security, availability) not reflected in tasks
- Each constrained field without an explicit `data-model.md` + `Entity.field` citation in at least one implementing task. Generic document/entity references, bare field names, and test-only references do not count; a shared implementing task may cite multiple fields, including fields implemented before later stories
- Require an explicit association between each cited field and its canonical definition. Mere co-occurrence of a document reference and a field mention is not a citation; for example, task prose setting `Request.SuspendReason` to 500 is not a citation just because the task cites data-model.md for `Request.Remark`
- Report unresolved field citations with their task IDs and locations; they must not be guessed as aliases or counted as coverage for another field. Also report any canonical field left uncovered

#### F. Inconsistency

- Terminology drift (same concept named differently across files)
- Data entities referenced in plan but absent in spec (or vice versa)
- Task ordering contradictions (e.g., integration tasks before foundational setup tasks without dependency note)
- Conflicting requirements (e.g., one requires Next.js while other specifies Vue)
- Task-stated field constraints that contradict data-model.md, even when a valid citation is present. Compare any clearly identified field's task prose even when its citation is missing; check length, nullable/required status, enum values, and validation rules
- For each field mismatch, identify the exact `Entity.field`, task ID, canonical and task-stated restrictions, and both source locations. Do not flag citation-only tasks or semantically matching paraphrases for omitting/rewording constraint values. Do not invent canonical values when the source restriction is unclear; use the existing ambiguity/underspecification passes for unclear definitions

### 5. Severity Assignment

Use this heuristic to prioritize findings:

- **CRITICAL**: Violates constitution MUST, missing core spec artifact, or requirement with zero coverage that blocks baseline functionality
- **HIGH**: Duplicate or conflicting requirement, ambiguous security/performance attribute, untestable acceptance criterion
- **HIGH**: Duplicate or conflicting requirement, ambiguous security/performance attribute, untestable acceptance criterion, missing/unresolved constrained-field citations (Coverage), or contradictory task constraints (Inconsistency); retain CRITICAL escalation above
- **MEDIUM**: Terminology drift, missing non-functional task coverage, underspecified edge case
- **LOW**: Style/wording improvements, minor redundancy not affecting execution order

Expand All @@ -182,6 +196,13 @@ Output a Markdown report (no file writes) with the following structure:
| Requirement Key | Has Task? | Task IDs | Notes |
|-----------------|-----------|----------|-------|

**Constrained-Field Coverage (when applicable):**

| Field (`Entity.field`) | Canonical Location | Implementing Task IDs | Coverage / Consistency Notes |
|------------------------|--------------------|-----------------------|------------------------------|

Use the existing finding table for field findings, including source locations and actionable recommendations. Field findings share the 50-finding limit and overflow summary; do not change the existing requirement coverage denominator or FR/SC coverage table semantics.

**Constitution Alignment Issues:** (if any)

**Unmapped Tasks:** (if any)
Expand Down
1 change: 1 addition & 0 deletions .agents/skills/speckit-checklist/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ compatibility: "Requires spec-kit project structure with .specify/ directory"
metadata:
author: "github-spec-kit"
source: "templates/commands/checklist.md"
version: "1.4.4"
user-invocable: true
disable-model-invocation: false
---
Expand Down
3 changes: 3 additions & 0 deletions .agents/skills/speckit-checkpoint-commit/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ compatibility: Requires spec-kit project structure with .specify/ directory
metadata:
author: Aaron Sun
source: checkpoint:commands/commit.md
version: 1.0.0
user-invocable: true
disable-model-invocation: false
---

# /speckit.checkpoint.commit
Expand Down
1 change: 1 addition & 0 deletions .agents/skills/speckit-clarify/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ compatibility: "Requires spec-kit project structure with .specify/ directory"
metadata:
author: "github-spec-kit"
source: "templates/commands/clarify.md"
version: "1.4.4"
user-invocable: true
disable-model-invocation: false
---
Expand Down
1 change: 1 addition & 0 deletions .agents/skills/speckit-constitution/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ compatibility: "Requires spec-kit project structure with .specify/ directory"
metadata:
author: "github-spec-kit"
source: "templates/commands/constitution.md"
version: "1.4.4"
user-invocable: true
disable-model-invocation: false
---
Expand Down
1 change: 1 addition & 0 deletions .agents/skills/speckit-converge/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ compatibility: "Requires spec-kit project structure with .specify/ directory"
metadata:
author: "github-spec-kit"
source: "templates/commands/converge.md"
version: "1.4.4"
user-invocable: true
disable-model-invocation: false
---
Expand Down
5 changes: 5 additions & 0 deletions .agents/skills/speckit-critique-run/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ compatibility: Requires spec-kit project structure with .specify/ directory
metadata:
author: github-spec-kit
source: critique-opsmill:commands/speckit.critique.run.md
version: 1.5.0
user-invocable: true
disable-model-invocation: false
---

## User Input
Expand All @@ -25,6 +28,7 @@ You **MUST** consider the user input before proceeding (if not empty).
- For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
- If the hook has no `condition` field, or it is null/empty, treat the hook as executable
- If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
- When constructing command invocations from hook command names, replace dots (`.`) with hyphens (`-`). For example, `speckit.git.commit` → `/speckit-git-commit`.
- For each executable hook, output the following based on its `optional` flag:
- **Optional hook** (`optional: true`):
```
Expand Down Expand Up @@ -217,6 +221,7 @@ Suggest next steps based on verdict:
- For each remaining hook, do **not** attempt to interpret or evaluate hook `condition` expressions:
- If the hook has no `condition` field, or it is null/empty, treat the hook as executable
- If the hook defines a non-empty `condition`, skip the hook and leave condition evaluation to the HookExecutor implementation
- When constructing command invocations from hook command names, replace dots (`.`) with hyphens (`-`). For example, `speckit.git.commit` → `/speckit-git-commit`.
- For each executable hook, output the following based on its `optional` flag:
- **Optional hook** (`optional: true`):
```
Expand Down
28 changes: 23 additions & 5 deletions .agents/skills/speckit-git-commit/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ compatibility: Requires spec-kit project structure with .specify/ directory
metadata:
author: spec-kit-core
source: git:commands/speckit.git.commit.md
version: 1.0.9
user-invocable: true
disable-model-invocation: false
---

# Auto-Commit Changes
Expand All @@ -19,23 +22,37 @@ This command is invoked as a hook after (or before) core commands. It:
2. Checks `.specify/extensions/git/git-config.yml` for the `auto_commit` section
3. Looks up the specific event key to see if auto-commit is enabled
4. Falls back to `auto_commit.default` if no event-specific key exists
5. Uses the per-command `message` if configured, otherwise a default message
5. Determines the commit message based on `commit_style` (see below)
6. If enabled and there are uncommitted changes, runs `git add .` + `git commit`

## Commit Message Styles

Controlled by the `commit_style` key in `.specify/extensions/git/git-config.yml`:

- **`fixed`** (default): use the per-command `message` if configured, otherwise a generic `[Spec Kit] Auto-commit <phase> <command>` message.
- **`conventional`**: inspect the actual changes (`git diff` / `git status`) since the last commit and generate a single-line [Conventional Commit](https://www.conventionalcommits.org/) message (`type(scope): subject`, e.g. `feat: add OAuth specification` or `docs: update implementation plan`) that accurately summarizes the change. Write this message to a temporary file and pass the file's path to the script (see Execution below). The configured `message` values are ignored in this mode.

## Execution

Determine the event name from the hook that triggered this command, then run the script:

- **Bash**: `.specify/extensions/git/scripts/bash/auto-commit.sh <event_name>`
- **PowerShell**: `.specify/extensions/git/scripts/powershell/auto-commit.ps1 <event_name>`
- **Bash**: `.specify/extensions/git/scripts/bash/auto-commit.sh <event_name> [--message-file <path>]`
- **PowerShell**: `.specify/extensions/git/scripts/powershell/auto-commit.ps1 <event_name> [-MessageFile <path>]`

Replace `<event_name>` with the actual hook event (e.g., `after_specify`, `before_plan`, `after_implement`).
Replace `<event_name>` with the actual hook event (e.g., `after_specify`, `before_plan`, `after_implement`). Only pass a generated message when `commit_style: conventional` is configured — first check `.specify/extensions/git/git-config.yml` for the value of `commit_style`:

- If `conventional`: inspect the diff and generate a Conventional Commit message. **Do not interpolate the generated message directly into a shell command string** — its content is derived from repository changes and may contain characters (quotes, `$(...)`, backticks) that a shell would execute or that would break command quoting. Instead, write the message to a temporary file using your file-editing tool (not a shell `echo`/`printf`), then pass that file's path via `--message-file <path>` (Bash) or `-MessageFile <path>` (PowerShell).
- If `fixed` or absent: run the script with just `<event_name>`; it uses the configured/static message.

## Configuration

In `.specify/extensions/git/git-config.yml`:

```yaml
# "fixed" (default) uses the messages below; "conventional" asks the agent
# to generate a Conventional Commit message from the diff instead.
commit_style: fixed

auto_commit:
default: false # Global toggle — set true to enable for all commands
after_specify:
Expand All @@ -50,4 +67,5 @@ auto_commit:

- If Git is not available or the current directory is not a repository: skips with a warning
- If no config file exists: skips (disabled by default)
- If no changes to commit: skips with a message
- If no changes to commit: skips with a message
- If `commit_style: conventional` is set and no generated message was supplied: fails with a clear error instead of silently falling back to the fixed message format
3 changes: 3 additions & 0 deletions .agents/skills/speckit-git-feature/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ compatibility: Requires spec-kit project structure with .specify/ directory
metadata:
author: github-spec-kit
source: jira-branch:commands/speckit.git.feature.md
version: 1.5.0
user-invocable: true
disable-model-invocation: false
---

# Create Feature Branch
Expand Down
5 changes: 4 additions & 1 deletion .agents/skills/speckit-git-initialize/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ compatibility: Requires spec-kit project structure with .specify/ directory
metadata:
author: spec-kit-core
source: git:commands/speckit.git.initialize.md
version: 1.0.9
user-invocable: true
disable-model-invocation: false
---

# Initialize Git Repository
Expand Down Expand Up @@ -40,7 +43,7 @@ Replace the script to add project-specific Git initialization steps:
## Output

On success:
- `✓ Git repository initialized`
- `[OK] Git repository initialized`

## Graceful Degradation

Expand Down
3 changes: 3 additions & 0 deletions .agents/skills/speckit-git-remote/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ compatibility: Requires spec-kit project structure with .specify/ directory
metadata:
author: spec-kit-core
source: git:commands/speckit.git.remote.md
version: 1.0.9
user-invocable: true
disable-model-invocation: false
---

# Detect Git Remote URL
Expand Down
15 changes: 9 additions & 6 deletions .agents/skills/speckit-git-validate/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ compatibility: Requires spec-kit project structure with .specify/ directory
metadata:
author: spec-kit-core
source: git:commands/speckit.git.validate.md
version: 1.0.9
user-invocable: true
disable-model-invocation: false
---

# Validate Feature Branch
Expand All @@ -27,24 +30,24 @@ Get the current branch name:
git rev-parse --abbrev-ref HEAD
```

The branch name must match one of these patterns:
The branch name's final path segment must start with one of these feature markers:

1. **Sequential**: `^[0-9]{3,}-` (e.g., `001-feature-name`, `042-fix-bug`, `1000-big-feature`)
2. **Timestamp**: `^[0-9]{8}-[0-9]{6}-` (e.g., `20260319-143022-feature-name`)
1. **Sequential**: `[0-9]{3,}-` (e.g., `001-feature-name`, `042-fix-bug`, `1000-big-feature`, `jdoe/web/008-guided-tour`)
2. **Timestamp**: `[0-9]{8}-[0-9]{6}-` (e.g., `20260319-143022-feature-name`, `jdoe/web/20260319-143022-feature-name`)

## Execution

If on a feature branch (matches either pattern):
- Output: `✓ On feature branch: <branch-name>`
- Check if the corresponding spec directory exists under `specs/`:
- For sequential branches, look for `specs/<prefix>-*` where prefix matches the numeric portion
- For timestamp branches, look for `specs/<prefix>-*` where prefix matches the `YYYYMMDD-HHMMSS` portion
- For sequential branches, look for `specs/<prefix>-*` where prefix matches the numeric portion, regardless of branch namespace prefixes
- For timestamp branches, look for `specs/<prefix>-*` where prefix matches the `YYYYMMDD-HHMMSS` portion, regardless of branch namespace prefixes
- If spec directory exists: `✓ Spec directory found: <path>`
- If spec directory missing: `⚠ No spec directory found for prefix <prefix>`

If NOT on a feature branch:
- Output: `✗ Not on a feature branch. Current branch: <branch-name>`
- Output: `Feature branches should be named like: 001-feature-name or 20260319-143022-feature-name`
- Output: `Feature branches should be named like: 001-feature-name, 20260319-143022-feature-name, or <namespace>/001-feature-name`

## Graceful Degradation

Expand Down
1 change: 1 addition & 0 deletions .agents/skills/speckit-implement/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ compatibility: "Requires spec-kit project structure with .specify/ directory"
metadata:
author: "github-spec-kit"
source: "templates/commands/implement.md"
version: "1.4.4"
user-invocable: true
disable-model-invocation: false
---
Expand Down
Loading