Skip to content

Spec brevity - #65

Merged
skapoor8 merged 1 commit into
mainfrom
feature/spec-brevity
Aug 31, 2026
Merged

skapoor8 merged 1 commit into
mainfrom
feature/spec-brevity

Conversation

@skapoor8

Copy link
Copy Markdown
Contributor

Intent

The spec skill's generated phase files were bloated. Each one carried three boilerplate blocks — Requirements, Task Runner Commands, and Design — that repeated the executor agent's own rules and the plan-level design. This branch trims phase files to four sections (Introduction, Implementation, Validation, Deviations), has executors discover build/test checks via the task skill at run time instead of recorded commands, and keeps the --lite and --persistent flags working.

Changes

  • Lean phase template. implementation-template.md now produces only the four sections, with a one-line Introduction and no policy prose. --persistent plans keep a ## Doc Scope section right after the Introduction; --lite plans keep the **Contract (lite mode only…)** block.
  • Executor rules. spec-executor.md runs format → lint → typecheck → tests via the task skill (/task detect, /task list) — no recorded runner commands, no direct tool calls — and gains a terse-prose rule.
  • Task-skill check discovery across planning and validation. Updated in validation-prompt.md, validation-loop.md, new.md, review.md, guide.md, update.md, plus the planner and updater agents. Validation now rejects old-shape boilerplate (Requirements process block, Task Runner Commands, Design sections) and raw npm test-style invocations.
  • Lite-aware code-completeness gate. Skipped for --lite plans, whose tasks carry **Contract:** blocks instead of literal code. The requirements and tabulation gates still run.

Validation

  • mise run test green on both committed phases
  • mise run skills:validate green on both committed phases
  • CI green on the branch head (run 33376634959). The phase-1 push run was skipped — the CI job only runs when github.event.before is non-zero, and the first push has an all-zero before.

Future Work

  • Consider the same lean-down for the user-guide and plan templates if the phase-file change lands well (from the plan's Future Work).

@skapoor8 skapoor8 self-assigned this Aug 31, 2026

@skapoor8 skapoor8 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline comments only.

Comment thread skills/spec/references/validation-prompt.md
Comment thread skills/spec/references/workflows/guide.md Outdated
**Lean phase-file template**
- Drop Requirements, Task Runner Commands, Design, and References boilerplate
  from `implementation/phase-N.md`; keep the lite Contract block and the
  doc-aware `## Doc Scope` section
- Move process rules (brevity, build-system preservation, terse prose) into the
  executor agent definition so phase files stay task documents
- Tighten the executor prompt: terse prose rule plus no direct build/test tool
  calls — discover recipes with the task skill instead
- Restructure phase files to Introduction / Implementation / Validation /
  Deviations sections, with a validation line per task and a closing
  full-suite Validation + Deviations pair

**Task-skill check wiring**
- Replace recorded task-runner commands across planner, executor, updater, and
  agent-prompt wiring with `/task detect` + `/task list` discovery at execution
  time — never raw npm/pytest/go-test invocations
- Update planning (new.md, guide.md, update.md), review, and validation
  (validation-loop.md, validation-prompt.md) checks to validate the lean shape
  and task-skill references instead of runner-command metadata
- Keep runner commands out of bash fences in guide.md and out of validation
  prompt code blocks
- Skip the code-completeness gate for lite plans (no `**Code:**` blocks) in
  new.md, review.md, and validation-loop.md
@skapoor8
skapoor8 force-pushed the feature/spec-brevity branch from 124e935 to 7a0f15e Compare August 31, 2026 09:27
@skapoor8
skapoor8 marked this pull request as ready for review August 31, 2026 09:35
@skapoor8
skapoor8 merged commit 122cec2 into main Aug 31, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@skapoor8
skapoor8 deleted the feature/spec-brevity branch August 31, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant