feat: add Minimal Surface Alternatives design gate (v0.19.1)#124
Merged
Conversation
Add a Gate-1 sub-process that requires each new field, state, mode, flag, or abstraction to be evaluated against subtractive alternatives through a 5-step procedure: Fix Requirements → Diverge → Compare → Converge → Record Rejected. - coding-principles: add "Minimum Surface for Required Coverage" as an independent principle, scoped to maintenance-surface-bearing elements (distinct from YAGNI's time-axis judgment) - technical-designer / technical-designer-frontend: add Minimal Surface Alternatives Gate-1 sub-gate with in/out-of-scope criteria, precedence rule, resolution priority, and self-contained 5-step procedure - design-template: add Minimal Surface Alternatives section template; reverse "Known future requirements" to "Deferred possibilities"; scope "Extension points" to existing consumers - document-reviewer: add Minimal Surface Alternatives check structured as scope trigger / section existence / per-element 4 sub-checks, and a Gate-0 structural existence entry - code-reviewer: add Escalation criterion for in-scope elements absent from the Design Doc's Minimal Surface Alternatives section - Eligible requirements expanded to include accepted technical constraints (audit, data integrity, compatibility, security, performance, accessibility) - All cross-component references use only allowed dependency directions (recipe-skill → agent, recipe-skill → skill, agent → skill); reviewer agents are self-contained Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
technical-designerandtechnical-designer-frontendthat requires each new field, state, mode, flag, or abstraction to be evaluated against subtractive alternatives via a 5-step procedure (Fix Requirements → Diverge → Compare → Converge → Record Rejected).coding-principles, "Minimum Surface for Required Coverage", distinct from YAGNI: governs surface-area minimization at a fixed coverage point rather than time-axis judgment.document-reviewer(structured 4-sub-check) andcode-reviewer(escalation criterion); updatedesign-templatewith a per-element output section.0.19.0→0.19.1.Changes
skills/coding-principles/SKILL.md: add Principle 3 "Minimum Surface for Required Coverage", scoped to maintenance-surface-bearing elements (persistent state, public-contract or cross-boundary fields/props, behavioral modes/flags/variants, reusable abstractions, component splits).agents/technical-designer.md/agents/technical-designer-frontend.md: add Gate-1 sub-gate with in/out-of-scope criteria, precedence rule, resolution priority ordering, and self-contained 5-step procedure.skills/documentation-criteria/references/design-template.md: add Minimal Surface Alternatives section with per-element entry template; reverse "Known future requirements" to "Deferred possibilities" (positive form); scope "Extension points" to existing consumers.agents/document-reviewer.md: add Minimal Surface Alternatives check (scope trigger / section existence / per-element 4 sub-checks) and Gate-0 structural existence entry.agents/code-reviewer.md: add Escalation criterion for in-scope elements absent from Design Doc's Minimal Surface Alternatives section.recipe-skill → agent,recipe-skill → skill,agent → skill); reviewer agents are self-contained.Test plan
claude plugin validatepasses onmarketplace.jsonand all fourplugin.jsonfilespnpm sync:checkconfirms deriveddev-workflows*/directories are in syncpnpm check:skills-indexpassessync-plugins/validate-plugins/check-skills-index) passestechnical-designeron a sample design and verify Gate-1 Minimal Surface Alternatives sub-gate fires on new field introductiondocument-revieweron a Design Doc missing the Minimal Surface Alternatives section and verifycriticalissue is raised🤖 Generated with Claude Code