Skip to content

Feature: spec directory - #93

Closed
jsls2517 wants to merge 3 commits into
addyosmani:mainfrom
jsls2517:jsls2517-spec_directory
Closed

jsls2517 wants to merge 3 commits into
addyosmani:mainfrom
jsls2517:jsls2517-spec_directory

Conversation

@jsls2517

Copy link
Copy Markdown

source from 87de68f

Changes

  • Update spec command to save specs to docs/features/[feature-name]/spec.md
  • Update plan command to read specs from and save plans to feature directories
  • Update getting-started documentation to reflect new directory structure
  • Enable multiple simultaneous features without overwriting artifacts

New Directory Structure

docs/features/[feature-name]/

  • spec.md # Feature specification
  • plan.md # Implementation plan
  • todo.md # Task list

jsls2517 added 3 commits April 23, 2026 09:13
Updated the spec saving location and added instructions for creating a feature-specific directory.
Updated file paths for saving plans and task lists to ensure all feature artifacts are organized together.
Updated documentation to specify feature-specific directories for generated artifacts and added clarification on file management.
@jsls2517 jsls2517 changed the title Jsls2517 spec directory Feature: spec directory Apr 23, 2026
@nucliweb

nucliweb commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Thanks for this, and the multi-feature motivation is real, root-level SPEC.md does get overwritten when several features are in flight. The problem is that this changes only the producers (/spec, /plan) and leaves the consumers on the old paths, so it desyncs the workflow contract rather than moving it.

Concretely, /build breaks. .claude/commands/build.md looks for the spec only at SPEC.md / docs/SPEC.md / spec/* and requires the plan at tasks/plan.md (steps 1–3), so after this change it won't find what /spec and /plan now write under docs/features/[name]/. Step 2 also treats anything outside the expected artifact paths as stray uncommitted work, so /build would actually stop. On top of that, skills/planning-and-task-breakdown and skills/spec-driven-development both pin tasks/plan.md / tasks/todo.md as "the convention downstream commands expect," and docs/adoption-guide.md documents the old paths, so the commands and skills would now contradict each other. (CI's command-parity check compares descriptions, not artifact paths, so green CI doesn't cover this.)

To land the per-feature layout it needs to be one consistent convention change across the whole chain: build.md, planning-and-task-breakdown/SKILL.md, spec-driven-development/SKILL.md, and adoption-guide.md, alongside the two command files here. It's also adjacent to the existing spec-directory PRs (#73 and siblings), so it'd be worth coordinating on one agreed layout rather than landing a partial rename. As it stands I'd hold it.

addyosmani pushed a commit that referenced this pull request Aug 6, 2026
The /spec and /plan commands write spec, plan, and todo artifacts to paths that /build and the spec/plan skills read back. When a producer moves an artifact without updating the consumers, the pipeline breaks and nothing in CI catches it: the command-parity check only compares descriptions, not paths. PR #93 hit exactly this, pointing /spec and /plan at docs/features/[name]/ while /build still required SPEC.md and tasks/plan.md.

validate-artifact-paths.js enforces one canonical set of artifact paths across every file in the pipeline (the spec/plan/build commands, the spec-driven-development and planning-and-task-breakdown skills, and the getting-started and adoption guides). Any spec/plan/todo artifact path outside the allowlist fails CI, so changing the convention has to touch the allowlist and every guarded file in the same change.

Scope is deliberately narrow: only spec/plan/todo artifacts, only the pipeline files; it is not a general markdown path linter. Wired into the validate-commands CI job alongside its test.
@addyosmani

Copy link
Copy Markdown
Owner

Thanks. Same area as the spec-structure work now in #383 and #431, so closing this in favor of that direction.

@addyosmani addyosmani closed this Aug 6, 2026
hillemacher pushed a commit to hillemacher/agent-skills that referenced this pull request Aug 17, 2026
The /spec and /plan commands write spec, plan, and todo artifacts to paths that /build and the spec/plan skills read back. When a producer moves an artifact without updating the consumers, the pipeline breaks and nothing in CI catches it: the command-parity check only compares descriptions, not paths. PR addyosmani#93 hit exactly this, pointing /spec and /plan at docs/features/[name]/ while /build still required SPEC.md and tasks/plan.md.

validate-artifact-paths.js enforces one canonical set of artifact paths across every file in the pipeline (the spec/plan/build commands, the spec-driven-development and planning-and-task-breakdown skills, and the getting-started and adoption guides). Any spec/plan/todo artifact path outside the allowlist fails CI, so changing the convention has to touch the allowlist and every guarded file in the same change.

Scope is deliberately narrow: only spec/plan/todo artifacts, only the pipeline files; it is not a general markdown path linter. Wired into the validate-commands CI job alongside its test.
zeekay pushed a commit to Dream-AI-4444/addys-agent-skills that referenced this pull request Sep 9, 2026
The /spec and /plan commands write spec, plan, and todo artifacts to paths that /build and the spec/plan skills read back. When a producer moves an artifact without updating the consumers, the pipeline breaks and nothing in CI catches it: the command-parity check only compares descriptions, not paths. PR addyosmani#93 hit exactly this, pointing /spec and /plan at docs/features/[name]/ while /build still required SPEC.md and tasks/plan.md.

validate-artifact-paths.js enforces one canonical set of artifact paths across every file in the pipeline (the spec/plan/build commands, the spec-driven-development and planning-and-task-breakdown skills, and the getting-started and adoption guides). Any spec/plan/todo artifact path outside the allowlist fails CI, so changing the convention has to touch the allowlist and every guarded file in the same change.

Scope is deliberately narrow: only spec/plan/todo artifacts, only the pipeline files; it is not a general markdown path linter. Wired into the validate-commands CI job alongside its test.
addyosmani pushed a commit that referenced this pull request Sep 26, 2026
validate-artifact-paths.js exists to stop the #93 class of drift, where a
producer moves SPEC.md or tasks/plan.md and a consumer keeps reading the
old path. It guarded only the .claude/commands copies plus two skills and
two docs. The same commands ship twice more — .gemini/commands/*.toml and
the root commands/*.toml — each with its own prompt body that names the
same artifacts, and validate-commands.js deliberately compares only
descriptions, so a drift on either TOML surface merged green while the
Claude Code copy stayed canonical. docs/copilot-setup.md was also unguarded
although its prompt-file aliases spell the artifact paths out for users.

Add the six TOML producers and consumers and the Copilot doc to
GUARDED_FILES, grouped by surface. Rule, allowlist and regex are unchanged.
Four new tests cover a Gemini producer drifting alone, a root TOML consumer
drifting alone, all three surfaces agreeing, and the Copilot doc. All seven
newly guarded files already use canonical paths: 14 files checked, 0 errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants