From autodesign
Core methodology reference for the autodesign keep/revert cycle. This skill provides the rules, decision logic, and error recovery patterns for the autonomous loop — not the top-level entry point (use /design for that). Applicable when the user asks about "autodesign pattern", "keep/revert logic", "design decision criteria", "design exploration strategy", "run keep/revert design optimization", or needs guidance on how the autonomous explore-evaluate-decide cycle works internally.
How this skill is triggered — by the user, by Claude, or both
Slash command
/autodesign:design-loopThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Core knowledge for driving iterative design exploration cycles that modify target
Core knowledge for driving iterative design exploration cycles that modify target web artifacts, evaluate against quality constraints, and use git-based keep/revert decisions.
The autodesign pattern applies the scientific method to web design: hypothesize a design change, implement it, measure quality, decide keep/revert, repeat.
LOOP:
1. Check git state (current branch/commit)
2. Form design hypothesis (select exploration axis, propose change)
3. Modify target file(s) — one axis per iteration
4. git commit the change
5. Run evaluation command (with timeout)
6. Extract composite_score and constraint_violated
7. IF constraints met AND score improved -> keep commit
ELSE -> git reset --hard HEAD~1 (revert)
8. Log result to design-results.tsv
9. GOTO 1
Unlike autoresearch's single metric comparison, autodesign uses a two-stage decision:
Select one exploration axis per iteration. Strategy:
A good design hypothesis is:
Define in design-config.yaml at project root:
tag: "experiment-name"
target_files:
- "src/app/page.tsx"
eval_target: "http://localhost:3000"
eval_command: "bash ${CLAUDE_PLUGIN_ROOT}/scripts/eval-composite.sh"
metric_name: "composite_score"
metric_direction: "higher"
timeout_seconds: 90
results_file: "design-results.tsv"
evaluators:
structure: { enabled: true, weight: 0.30 }
readability: { enabled: true, weight: 0.20 }
lighthouse: { enabled: true, weight: 0.30 }
completeness: { enabled: true, weight: 0.20 }
constraints:
structure_errors_max: 3
aeo_score_min: 50
lighthouse_avg_min: 70
completeness_score_min: 60
exploration_axes:
- layout
- color
- typography
- animation
- spacing
- imagery
Log every iteration to design-results.tsv (tab-separated, 6 columns):
commit composite_score status constraint axis description
a1b2c3d 78.500000 keep - baseline initial design
b2c3d4e 82.100000 keep - layout asymmetric hero section
c3d4e5f 0.000000 constraint_fail structure animation parallax broke a11y
d4e5f6g 80.300000 discard - color dark palette attempt
Status values: keep, discard, constraint_fail, crash
Each iteration runs as an independent subagent via the Agent tool to avoid context window exhaustion. The designer agent handles one iteration per invocation. State persists externally in git history + design-results.tsv.
For detailed decision logic and criteria:
references/decision-logic.md - Complete keep/revert decision tree with examplesnpx claudepluginhub hironow/dotfiles --plugin autodesignDesigns and iterates production-grade frontend interfaces through live browser iteration, UX audit, visual refinement, and design system work.
Web design and UX guidance for visual systems, accessibility (WCAG 2.2), interaction patterns, and performance-aware interfaces. Provides testing workflows including visual regression and responsive design verification.
Designs, redesigns, critiques, audits, polishes frontend UIs for websites, dashboards, components, forms. Covers UX review, accessibility, performance, responsive design, theming, typography, layout, color, motion, micro-interactions.