Skip to content
Merged
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
15 changes: 15 additions & 0 deletions .claude/commands/devspark-roadmap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Prompt Resolution

Determine the current git user by running `git config user.name`.
Normalize to a folder-safe slug: lowercase, replace spaces with hyphens, strip non-alphanumeric/hyphen chars.

Read and execute the instructions from the **first file that exists**:
1. `.devspark.work/{git-user}/commands/devspark.roadmap.md` (personalized override)
2. `.devspark.work/commands/devspark.roadmap.md` (team customization)
3. `.devspark/defaults/commands/devspark.roadmap.md` (stock default)

## User Input

$ARGUMENTS

Pass the user input above to the resolved prompt.
19 changes: 19 additions & 0 deletions .codex/prompts/devspark-roadmap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
description: DevSpark roadmap command shim.
---

## Prompt Resolution

Determine the current git user by running `git config user.name`.
Normalize to a folder-safe slug: lowercase, replace spaces with hyphens, strip non-alphanumeric/hyphen chars.

Read and execute the instructions from the **first file that exists**:
1. `.devspark.work/{git-user}/commands/devspark.roadmap.md` (personalized override)
2. `.devspark.work/commands/devspark.roadmap.md` (team customization)
3. `.devspark/defaults/commands/devspark.roadmap.md` (stock default)

## User Input

$ARGUMENTS

Pass the user input above to the resolved prompt.
4 changes: 2 additions & 2 deletions .devspark/VERSION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
product: DevSpark
edition: Make-Bold
version: 9.2.0
installed: 2026-10-20
version: 9.6.0
installed: 2026-11-21
method: claude-code-quickstart
migrated-from: bold
27 changes: 21 additions & 6 deletions .devspark/defaults/commands/devspark.address-pr-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,20 @@ actionable or pending work.
`auto_eligible: true`. Report other findings with their supplied `reason` and leave them
untouched; optional/nonblocking findings, risk acceptance, ambiguous recovery, and constitution
routing retain their existing authorization requirements.
3. Build an internal todo list with one item per selected finding.
3. Build an internal todo list with one item per selected finding. Freeze those finding IDs and
their required outcomes for this invocation: `all` means the actionable findings selected now,
not every concern discovered later. Necessary supporting edits and regressions caused by the
selected corrections stay within the existing authorization; the file list is not a hard limit.
Do not add adjacent refactors or newly discovered unrelated findings to the batch. Report them
briefly only when useful, and obtain explicit authorization before adding separate work.

### Phase 2 β€” Fix loop (per finding)

For each selected finding:

1. Read the cited file/lines and confirm the issue.
1. Read the cited file/lines and confirm the issue. Investigate only questions needed to settle
that finding's original expectation. Do not reopen a settled disposition without the new
evidence required by convergence Β§10.
2. If the finding cites a lint rule, complexity metric, or code smell, state in one sentence the behavioral intent behind it (command-preamble-contract.md Β§9) before writing the fix β€” do not react to the bare metric alone.
3. A finding's suggested fix is evidence, not an architecture mandate. Choose the lightest sufficient remediation, in this order: clarify, remove, reuse something that exists, change an operational detail, make a small local change, and only then add machinery. If the fix needs something beyond the approved Plan's shape (a new state, endpoint, persisted record, cache, dependency, runtime setting, pattern or rollback design), stop and ask for explicit authority; `--auto` never grants it. Show the diff for any alternative to the suggested fix, and confirm the fix addresses that intent (e.g., genuinely lowers branching/responsibility, genuinely names and surfaces an error) rather than merely satisfying the check mechanically.
4. **Rule 1 check**: the fix stays subject to the same one-way reference gate `/devspark-pr-review` Β§6 enforces β€” do not introduce a spec ID, task ID, plan reference, or PR-thread ID into code or `.knowledge/` to "explain" what review comment this addresses. A commit message or the review file itself is the right place for that context, never a durable comment.
Expand All @@ -84,10 +91,18 @@ For each selected finding:

### Phase 3 β€” Validate

1. Re-run the **locked pytest scope** from the review file `Stats` table (reuse the same command; do not pick a new scope).
2. Re-run project-specific validators explicitly recorded in the review file.
3. If any validation fails, return to Phase 2.
4. Do not continue until validations pass.
1. After the selected fixes are ready, validate the batch once. Use the review's recorded commands
as evidence of prior coverage, not a permanent minimum scope. Select the narrowest checks that
cover the corrections and directly affected contracts, subject to explicit repository policy.
Apply verification-contract.md Β§4.1 before running: reuse valid evidence, and let a qualifying
broader run satisfy narrower checks without executing both. Record the reason for changed scope.
2. Include project-specific validators explicitly recorded in the review file; either cite valid
evidence or run them. Replacing test scope does not silently drop a required validator.
3. If validation fails, return to Phase 2 only for a failure attributable to the selected fixes.
Otherwise report the baseline debt, environment failure, or unresolved attribution and the
unmet gate; do not expand remediation or retry silently.
4. Do not continue until required validations pass. Author validation does not replace the
independent verification of the original concern in Phase 5.

### Phase 4 β€” Commit code fixes (isolation gate #1)

Expand Down
19 changes: 12 additions & 7 deletions .devspark/defaults/commands/devspark.analyze.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
source: "DevSpark β€” Β© 2026 Make Bold Solutions. Source: https://dev.makeboldspark.com"
description: Non-destructive cross-artifact consistency, coverage, and traceability analysis across spec.md, plan.md, and tasks.md. The closed-world half of planning assurance β€” proves the planning artifacts are internally sound; /devspark-critic challenges whether that sound plan is wrong about the real system.
description: On demand for one specific concern β€” non-destructive check that recorded intent, plan decisions, contracts and tests agree (spec.md, plan.md and tasks.md for an existing specification bundle). Never a default gate; /devspark-critic challenges whether the work is wrong about the real system.
handoffs:
- label: Implement Project
agent: devspark-implement
Expand All @@ -9,8 +9,8 @@ handoffs:
agent: devspark-plan
prompt: Revise plan to address analysis findings
scripts:
sh: .devspark/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
ps: .devspark/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks
sh: .devspark/scripts/bash/check-prerequisites.sh --json --include-tasks
ps: .devspark/scripts/powershell/check-prerequisites.ps1 -Json -IncludeTasks
---

## User Input
Expand All @@ -31,7 +31,7 @@ Load and obey the shared assurance contract at `/.devspark/templates/assurance-c

Analyze is the **closed-world** half of planning assurance. Its test is mechanical: if something can be shown wrong solely because the planning artifacts contradict themselves or fail their declared structural contract, Analyze owns it. If establishing it requires knowing how the running system actually behaves, Analyze does not.

Analyze **owns** (assurance-contract.md Β§2): spec↔plan↔tasks consistency; requirement coverage and requirement↔task traceability; duplicate, contradictory, or unanchored requirements; terminology drift and wording precision; task dependency and ordering validity; missing task anchors; tasks citing requirement ids that do not exist; completed tasks with no supporting linkage; identifier and field names contradicting a declared contract or schema; Spec/Plan Rationale Summary completeness and specβ†’plan Core-Problem alignment; `context_resolved` **validity**; artifact and schema conformance; planning bookkeeping correctness. Tasks are a derivative action list and must not duplicate rationale.
Analyze **owns** (assurance-contract.md Β§2): spec↔plan↔tasks consistency; requirement coverage and requirement↔task traceability; duplicate, contradictory, or unanchored requirements; terminology drift and wording precision; task dependency and ordering validity; missing task anchors; tasks citing requirement ids that do not exist; completed tasks with no supporting evidence of work; identifier and field names contradicting a declared contract or schema; Spec/Plan Rationale Summary completeness and specβ†’plan Core-Problem alignment; `context_resolved` **validity**; artifact and schema conformance; planning bookkeeping correctness. Tasks are a derivative action list and must not duplicate rationale.

Analyze does **NOT** own, and MUST NOT emit findings for (assurance-contract.md Β§4.1):

Expand All @@ -49,7 +49,7 @@ Noticing one of these anyway is normal. Route it under `routed_findings:` per as

## Operating Constraints

The analysis itself is non-destructive. Do **not** edit `spec.md`, `plan.md`, `tasks.md`, or source files. The only file write allowed is refreshing the persisted gate artifact at `FEATURE_DIR/gates/analyze.md` with the final report from this command.
The analysis itself is non-destructive. Do **not** edit `spec.md`, `plan.md`, `tasks.md`, or source files. The only file write allowed is refreshing the persisted gate artifact at `FEATURE_DIR/gates/analyze.md` with the final report from this command β€” and on a work branch, not even that (assurance-contract.md Β§13).

Read the YAML frontmatter in `spec.md` (or the quickfix record when `FEATURE_SPEC` resolves to `.devspark.work/quickfixes/<branch>.md`) before analyzing. Treat `classification`, `risk_level`, `required_gates`, `depends_on`, and `supersedes` as authoritative metadata.

Expand Down Expand Up @@ -100,8 +100,11 @@ Run `{SCRIPT}` once from repo root and parse JSON for FEATURE_DIR and AVAILABLE_
| spec only | Spec-level: internal consistency, requirement wording, duplication, terminology drift | `SPEC-ONLY` |
| spec + plan | Above + spec↔plan Core-Problem drift, Rationale Summary completeness | `SPEC+PLAN` |
| spec + plan + tasks | Full analysis including requirement↔task coverage | `FULL` |
| work branch (`NNN-work-*`, whatever its directory holds) | One stated concern: do the recorded intent (`work.md`), plan decisions (`plan.md`), declared contracts and existing tests contradict one another on it? | `WORK` |

Abort only if `spec.md` is missing AND no quickfix record exists for this branch under `.devspark.work/quickfixes/` (FEATURE_SPEC resolves there automatically β€” see the shared preamble's script resolution). Print the degradation label in the Executive Summary so partial reviews aren't mistaken for full ones.
Abort only if `spec.md` is missing AND no quickfix record exists for this branch under `.devspark.work/quickfixes/` AND the branch is not a `NNN-work-*` branch (FEATURE_SPEC resolves there automatically β€” see the shared preamble's script resolution). Print the degradation label in the Executive Summary so partial reviews aren't mistaken for full ones.

**Work branch (`WORK`).** Follow assurance-contract.md Β§13. Ask for the concern if the developer did not state one; with no concern there is nothing to analyze. Apply the detection passes below only to that concern and to the artifacts that exist, skip the requirement inventory, coverage metrics and task mapping, and report the Β§13 result block instead of the full report. Write no gate artifact (skip Β§10) and return to `/devspark-implement`. Never run `/devspark-critic` or Planning Review as a follow-on; recommend one only when the outcome shows that concern needs it.
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").

### 2. Load Artifacts (Progressive Disclosure)
Expand Down Expand Up @@ -179,7 +182,7 @@ Focus on high-signal findings. Limit to 50 findings total; aggregate remainder i
- Tasks with no mapped requirement/story
- **Traceability hallucination**: a task whose `Implements: FR-###` directive references a requirement ID that does not exist in `spec.md` (CRITICAL β€” the task claims to satisfy an invented requirement)
- **Missing requirement anchor**: a normative statement in `spec.md` that other artifacts must be able to cite, written without a stable `FR-###`/`SC-###` anchor β€” or an anchor duplicated across two different statements. An uncitable or ambiguous requirement makes every downstream traceability claim unverifiable (HIGH; CRITICAL when a task already cites the ambiguous anchor).
- **Completion bookkeeping**: a task marked complete whose `code_ref`/`knowledge_ref` is still `pending`, empty, or an unexplained `n/a` β€” the task claims work that no recorded edit supports (HIGH). Likewise a task marked complete whose cited paths do not exist.
- **Completion bookkeeping**: a task marked complete whose cited paths do not exist, or that claims work no recorded edit supports (HIGH).
- Non-functional requirements not reflected in tasks (e.g., performance, security)
- **Scope**: this pass only checks whether *stated* requirements have *stated* tasks, and whether the task record is internally honest. Whether the spec is *missing* operational tasks (observability, rollback, backups, runbooks) that no requirement called for is `/devspark-critic`'s responsibility.

Expand Down Expand Up @@ -321,6 +324,8 @@ Ask the user: "Would you like me to suggest concrete remediation edits for the t

### 10. Persist Gate Artifact

Skip this step on a work branch (`WORK` scope): the Β§13 result is reported, not persisted.

Before producing the report, compute `reviewed_artifacts`: for each artifact actually read (typically `spec.md`, `plan.md`, `tasks.md`), run `git hash-object <path>` and record the `path`/`hash` pair. This is mechanical -- do not skip it even when findings are empty.

For each supported planning artifact, also call `scripts/judge.py semantic-hash --path <path>`
Expand Down
13 changes: 7 additions & 6 deletions .devspark/defaults/commands/devspark.checklist.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
---
source: "DevSpark β€” Β© 2026 Make Bold Solutions. Source: https://dev.makeboldspark.com"
description: Generate a custom checklist for the current feature based on user requirements.
description: For an existing specification, generate a requirements-quality checklist (unit tests for the written requirements). Not used on a work branch.
handoffs:
- label: Implement Project
- label: Continue Implementation
agent: devspark-implement
prompt: Start the implementation in phases
- label: Run Analysis
agent: devspark-analyze
prompt: Analyze spec consistency after checklist review
prompt: Continue implementation with the checklist findings in mind
scripts:
sh: .devspark/scripts/bash/check-prerequisites.sh --json
ps: .devspark/scripts/powershell/check-prerequisites.ps1 -Json
Expand Down Expand Up @@ -42,6 +39,10 @@ $ARGUMENTS

You **MUST** consider the user input before proceeding (if not empty).

## Work Branch

A checklist tests the writing of an existing specification. On a `NNN-work-*` branch there is no specification, and a checklist is not part of that route: write no `checklists/` file and no `gates/checklist.md`. If the developer names a specific requirements-quality concern, answer it in conversation against `work.md`, the optional `plan.md`, and the current code and tests, then return to `/devspark-implement`.

## Outline

Load and obey the shared preamble contract core at `/.devspark/templates/command-preamble-contract.md` (installed repos) or `templates/command-preamble-contract.md` (source repos) before step 1 β€” it covers multi-app scope resolution and the 2-tier override check for scripts. Preamble modules: `convergence`.
Expand Down
13 changes: 9 additions & 4 deletions .devspark/defaults/commands/devspark.clarify.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
---
source: "DevSpark β€” Β© 2026 Make Bold Solutions. Source: https://dev.makeboldspark.com"
description: Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
description: For an existing specification, ask up to 5 targeted clarification questions and encode the answers into the spec. On a work branch, asks in conversation and writes no spec.
handoffs:
- label: Build Technical Plan
- label: Return to Implementation
agent: devspark-implement
prompt: Continue implementation with the clarified decisions
- label: Build Technical Plan (existing specification)
agent: devspark-plan
prompt: Create a plan for the spec. I am building with...
prompt: Create a plan for the existing spec. I am building with...
scripts:
sh: .devspark/scripts/bash/check-prerequisites.sh --json --paths-only
ps: .devspark/scripts/powershell/check-prerequisites.ps1 -Json -PathsOnly
Expand All @@ -20,7 +23,9 @@ You **MUST** consider the user input before proceeding (if not empty).

## Workflow Position

**Step 2 of 4** in the authoring chain (`specify β†’ clarify β†’ plan β†’ tasks`).
**Step 2 of 4** in the v9.3 authoring chain (`specify β†’ clarify β†’ plan β†’ tasks`) for an existing specification.

**Work branch.** A `NNN-work-*` branch has no specification, and the script's `FEATURE_SPEC` resolves to its optional `work.md` resume note, which is not a spec. Do not run the Outline there: do not create `spec.md`, do not write `## Clarifications` into `work.md`, and do not send the developer to `/devspark-specify`. Ask up to 5 questions whose answers materially change the work, in conversation. Record an accepted answer under `work.md` `## Material Decisions` only when it must survive the session, then return to `/devspark-implement`.

- **Owns**: targeted ambiguity reduction in an existing spec via up to 5 interactive questions, each integrated into the appropriate spec section.
- **Does NOT own**: drafting/replacing the spec (β†’ `/devspark-specify`); deciding stack/architecture/data-store choices (β†’ `/devspark-plan` β€” only ask here if the *absence* of the choice blocks functional clarity); generating tasks (β†’ `/devspark-tasks`); adversarial review (β†’ `/devspark-critic`, `/devspark-analyze`).
Expand Down
Loading
Loading