docs: Shift planning guidance from "follow patterns" to "evaluate patterns"#25
Draft
andrewemark wants to merge 1 commit into
Draft
docs: Shift planning guidance from "follow patterns" to "evaluate patterns"#25andrewemark wants to merge 1 commit into
andrewemark wants to merge 1 commit into
Conversation
…terns" Reframes the plugin's pattern-following stance: a precedent existing is not the same as a precedent being good. Plans now classify patterns as match / match-with-adjustment / deviate rather than reflexively conforming, so tech debt and anti-patterns get flagged rather than propagated. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Reframes the plugin's stance on existing codebase patterns. The previous guidance ("Follow existing codebase patterns -- ask the user before deviating from established conventions") treated any precedent as authority, which trained the model to launder tech debt by citing it as a constraint. The new framing requires evaluation: match patterns that are sound, deviate from ones that aren't, and surface unsure calls to the user.
What changed
CLAUDE.mdBehavioral Rule — rewritten from "Follow existing codebase patterns" to "Evaluate existing patterns -- don't reflexively conform."planning-guidance/SKILL.md— six surgical edits:## Architecture Fitsection restructured into Match / Match-with-adjustment / Deviate classification.Why
The plugin had no counter-pressure against propagating bad code. Where a codebase has over-mocked tests, defensive null-guards, leaky abstractions, or scaffolding that should have been deleted, the planning skill elevated them to constraints and propagated them forward. Pattern-following had become pattern-laundering.
Not changed
research-guidance— discovery framing is appropriate there; adoption decisions belong in planning.implementation-guidance— inherits from the plan'sArchitecture Fitsection, so the upstream fix carries through.