Stop UI/UX drift in agent-assisted GUI development.
GUI Workflow Guardrails is a small, repo-portable kit (templates + skills) that turns “make the UI better” into a repeatable, reviewable process. It’s built for teams using AI coding agents on browser-based GUIs (React/Vue/Svelte/canvas apps), where it’s easy to accidentally:
- add another way to do the same task,
- ship a feature that has no in-product workflow,
- or break established UI style patterns.
This kit helps agents and humans keep the product coherent over time by making workflows and style explicit.
- Identify repetitive workflows (multiple ways to do the same task)
- Identify missing workflows (feature exists but no in-product path)
- Enforce workflow quality priorities:
- intuitive primary path
- fewer steps
- shorter mouse pointer travel distance
- style consistency (match established UI patterns)
- Require user confirmation only when a change is significant (workflow or style contract break)
- Workflow-first artifacts: encourages living workflow inventories, checklists, and SVG mockups (
.plans/) instead of scattered prompts and tribal knowledge. - De-duplication bias: explicitly requires picking a single primary path and removing/merging redundant entrypoints, rather than accumulating UI.
- Missing-workflow detection: treats “feature exists but only editable via config/YAML” as a first-class bug to fix.
- Style contracts with a tie-break rule: preserves established UI patterns by default, but forces an explicit decision when a style break could improve efficiency.
- Progressive disclosure: uses scoped
AGENTS.mdfiles so you don’t overload the root context with every rule. - CI + PR-friendly: includes optional GitHub Action checks and PR “workflow diff” templates so changes stay reviewable.
skills/workflow-audit/SKILL.md— process skill to audit, name, and de-duplicate workflowsskills/workflow-style-contract/SKILL.md— process skill to extract + enforce style patternstemplates/progressive-disclosure/— starterAGENTS.mdhierarchy (root + scoped files)templates/plans/— starter.plans/workflow artifacts + mockups READMEtemplates/pr/— PR templates including a “workflow diff” sectiontemplates/ci/— optional GitHub Action to enforce presence of workflow artifactsexamples/gui-project/— minimal example layout showing where.plans/artifacts live
- Copy the template
AGENTS.mdfiles into your repo (or adapt them):templates/progressive-disclosure/AGENTS.md→ your repo roottemplates/progressive-disclosure/src/editor/AGENTS.md→ your editor subtreetemplates/progressive-disclosure/src/phaser/AGENTS.md→ your canvas/gesture subtree
- Add the
.plans/templates:- copy
templates/plans/.plans/→ your repo’s.plans/
- copy
- (Optional) Add PR + CI templates:
templates/pr/*templates/ci/*
- Copy one or both skills into your agent’s skills directory (tool-specific), or keep them repo-local and load on demand.
- Maintain
.plans/editor-workflows-inventory.mdand.plans/ux-checklist-workflow-simplification.mdas living workflow artifacts.
Browse:
skills/for the skillstemplates/for drop-in filesexamples/gui-project/for a reference layout