Repository navigation
refactor(aidd-dev): lean the plan skill for small models - #1080
Merged
Merged
Conversation
Four actions become three (capture, explore, conclude) behind a mermaid router. The plan folder is checked by a bundled validator built from the templates, then by one independent read against plan-checks. Phases gain a Depends on column. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…dator path.relative returns an absolute path across Windows drives, which the inside-the-skill check read as inside. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…alidator test CodeQL flags the multi-character comment replace as incomplete sanitization. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
blafourcade
marked this pull request as ready for review
October 23, 2026 07:23
…n validator A CRLF plan lost its front matter and table headers to the line-ending sensitive patterns and was rejected. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The plain "Go to explore" let a small model stop after capture to ask whether to continue. A markdown link makes the next action a file to read. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
blafourcade
enabled auto-merge (squash)
October 23, 2026 09:14
blafourcade
disabled auto-merge
October 23, 2026 09:23
This was referenced Oct 23, 2026
alexsoyes
added a commit
that referenced
this pull request
Oct 25, 2026
The plan skill rewrite (#1080) already covers this branch's plan changes: phase dependencies, the read-only plan check, no score. Take next's version.
Merged
1 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What & why
Lean
aidd-dev:01-planso it runs on Mistral medium under opencode as well as on Claude models, and writes the plan folder every time. Instructions drop from 968 to 478 words (-51%); everything a run reads, scripts excluded, from 1750 to 1322 (-24%).🛠️ How it works
capture(read the source silently),explore(loop on the code until nothing blocks),conclude(phases, files, validation, check, approval). Same vocabulary as brainstorm.validate-plan.cjs, derived from the two templates (sections, order, headers, front matter, no comments or placeholders, phase rows match phase files, listed files to modify exist, acceptance rows map to tasks). A changed template changes the verdict with no edit to the script. Tests: validate-plan.test.js.Depends on(earlier phase numbers, ornone), validated as strictly lower numbers.none,N/A, or a frame without region (1) and a legend.🧪 How to verify
pnpm exec lefthook run pre-commitnode scripts/check-tests-leave-git-alone.js -- node --test scripts/__tests__/validate-plan.test.js(28 tests, mutation proofs for the wireframe and Depends-on rules)haikupasses all nine with the judge called once.sonnetandopuswrite the plan on S2, S3, S5; plans checked against the code.mistral-medium-2604: plan written in 17 of 18 runs of the final router, no source file modified in the last 7 S2/S9 runs.haiku: 9 bench failures (documentation impact missing on all four, comments left, a "Confidence Score").haiku0.21 $ against 0.07 $ over S2 to S5;mistral-mediumabout 0.4 $ against 0.2 $ per run. The validator and the check add calls; the lean text does not pay for them.cli/package.jsoninstead of the marketplace), invented external URLs, tests of the touched file not always cited. Running the check on a stronger model through the opencode config is the lever left.Depends onfollows the sub-agents work; how02-implementconsumes it is not touched here.🔗 Linked issue
Closes #1075
✅ I certify
🤖 Generated with Claude Code