PrincipleDesign
Explain the trade-off. Verify the change.

PrincipleDesign helps you decide which UI change is justified, what should remain unchanged, and how to check the result. Use it for a focused review of one surface or proposed change, including after your chosen design skill has built the UI. Its four routes support audit, shaping, bounded redesign, and verification without imposing a default visual style.
The repository is maintained by studio dawol and is intended for the public repository github.com/seunghyukchoe/PrincipleDesign.
Quick start
Pick the route before writing the brief:
| If you need to… |
Use |
Start with |
| inspect without changing the surface |
Audit |
Audit this surface... |
| decide direction before code |
Shape |
Shape this flow... |
| make a bounded improvement |
Design / redesign |
Redesign only... |
| assess an existing implementation |
Verify |
Verify this implementation... |
For a new user installation, use ~/.agents/skills/principle-design. If the
destination already exists, use the update instructions rather than replacing it.
The official install guidance is Build skills.
principle_design_skill_dir="$HOME/.agents/skills/principle-design"
mkdir -p "$HOME/.agents/skills"
git clone https://github.com/seunghyukchoe/PrincipleDesign.git "$principle_design_skill_dir"
To update, set the variable to the actual existing clone. The example below
is the new-install default; older installations may be under ~/.codex/skills
or a custom CODEX_HOME. Do not move or duplicate them automatically:
principle_design_skill_dir="$HOME/.agents/skills/principle-design"
git -C "$principle_design_skill_dir" pull --ff-only
Open the installed clone as your working project. Start a local preview:
cd "$principle_design_skill_dir"
python3 -m http.server 4173 --bind 127.0.0.1
Start a fresh Codex task in that directory and invoke the skill explicitly:
$principle-design Audit examples/responsive-form/before.html using examples/responsive-form/brief.md and http://127.0.0.1:4173/examples/responsive-form/before.html?state=fail-once. Keep source read-only; local synthetic form interactions are allowed. Check the create/recovery path, then report priority findings, evidence gaps, what should stay unchanged, and an acceptance test.
Expect a concise review, normally up to three priority findings plus every critical finding. Each should connect an observation to a decision and a verification check. Zero findings or zero named principles can be correct. Compare the output with the worked form review, not an overall quality score.
The skill itself is Markdown/YAML. Python is only needed for this preview and optional validation; the catalog validator additionally needs PyYAML. Browser tools are needed to establish actual rendered/task results. No runtime package is added to the product being reviewed.
Troubleshooting
- Destination exists: inspect and update that clone; don’t overwrite local changes.
- Skill missing: confirm
SKILL.md is directly inside the skill folder, check the skill selector, and restart Codex if discovery has not refreshed. Existing legacy/custom locations may require a supported symlink; avoid duplicate copies.
- Preview unavailable: use another free local port and update the URL in the prompt. Source-only review must leave rendered/task evidence unverified.
- PyYAML missing: run the optional validator in a virtual environment with the repository’s pinned
.github/requirements-ci.txt installed; this is not required for normal skill use.
For a useful first run, name the user and job, the allowed surface, real constraints, relevant states, and the evidence you can actually collect. The report templates show the expected output without requiring the entire catalog to be memorized.
Sequential companion prompt after a chosen builder:
The chosen builder has completed its bounded change. Now use $principle-design to explicitly Verify the resulting surface read-only; explain trade-offs, keep the original scope and authorization, and report observed evidence, unknowns, unchanged behavior, and acceptance/revisit checks.
Examples and planning docs
Each example includes a worked review and browser captures. The verification record explains how to reproduce the checks and what remains unverified. In the completed pilot, every condition found the seeded form issues; PrincipleDesign did not establish a general advantage over the strong baseline. The next slice targets shorter reports and more careful claim scope.
Four modes
| Mode |
What it produces |
Boundary |
| Audit |
A read-only, evidence-backed report of observations, uncertainty, findings, and verification checks. |
Does not edit the target or mutate external state. |
| Shape |
A compact decision record covering the user/job, hierarchy, states, acceptance criteria, and trade-offs. |
Does not implement unless implementation is also requested. |
| Design / redesign |
The smallest coherent change inside the named surface and existing implementation contracts. |
Preserves routes, data, permissions, dependencies, and product truth. |
| Verify |
A separate assessment of an implementation or candidate against the brief and selected principles. |
Does not silently fix findings; rendered completion evidence is required for UI claims. |
Every route starts with product truth and an explicit scope. Live submission, publication, deletion, account or credential changes, and production mutations remain outside the default boundary.
Example prompts
Audit a live-looking surface without changing it:
$principle-design Audit the analytics dashboard for a first-time manager. Use the supplied test state only, include loading/empty/error/permission gaps, and do not edit files or submit anything.
Shape a flow before implementation:
$principle-design Shape an onboarding flow for a new team member who must reach a first successful project setup. Mark unknown copy, permissions, and recovery rules instead of inventing them.
Redesign one existing surface inside its current contracts:
$principle-design Redesign only the account-import form in this repository. Keep its route, API, permissions, dependencies, and real labels stable; cover narrow/wide, keyboard, error, empty, disabled, and offline states.
Verify a passing build that still has use failures:
$principle-design Verify this responsive form. The build passes, but inspect the narrow rendered view, keyboard focus, and server-error recovery. Report the mechanical, perceptual, and task-outcome gates independently and do not fix the code.
Evidence model
Principles are lenses for a decision, not a checklist or a score. Select the minimum sufficient set—three to six when useful, fewer or zero when standards or direct task evidence are sufficient—and carry the claim, caveats, intervention, and observable test together. A selected principle should state:
- the product observation or truth that makes it relevant;
- the concrete decision it is allowed to influence;
- the signal that would support or falsify the hypothesis; and
- the evidence method and its limitations.
Validation has three independent lanes. Each lane is reported as PASS, FAIL, PARTIAL, UNKNOWN, or BLOCKED:
- Mechanical — reproducible structure and behavior such as semantics, focus order, contrast when measurable, target dimensions, wrapping, links, state presence, and performance timings.
- Perceptual — what is apparent in an actual render or live state: hierarchy, grouping, legibility, emphasis, density, discoverability, feedback, and motion.
- Task-outcome — an authorized representative path with a known starting state, completion rule, recovery path, and observed result.
A screenshot, source review, manifest, or green build cannot prove interaction, accessibility-tree behavior, persistence, task success, or release readiness by itself. Unknown and blocked evidence stays visible, and the catalog does not produce an overall quality grade.
The catalog distinguishes four evidence classes:
research_backed_finding — a published empirical effect or model that still needs transfer testing in the actual context.
theory_backed_perceptual_principle — a perceptual-organization principle used as a visual-design hypothesis, not a guarantee.
applied_heuristic — a useful design maxim that must be tested locally.
engineering_principle — a protocol or systems-robustness rule, not evidence of human behavior.
See evidence and reporting for the evidence-record schema and conflict resolution for competing predictions.
The 20-principle normalization
The catalog normalizes a screenshot-derived inventory into stable lowercase ASCII IDs while retaining the original labels as aliases. It deliberately folds Target-Distance into fitts-law because distance is already a determinant of Fitts difficulty, deduplicates Postel's Law / Postel’s Law / Robustness Principle labels into postels-law, and includes aesthetic-usability-effect and goal-gradient-effect as canonical entries. The YAML is the source of truth; the canon overview explains the maintenance contract.
| ID |
Name |
Evidence class |
aesthetic-usability-effect |
Aesthetic-Usability Effect |
Research-backed finding |
doherty-threshold |
Doherty Threshold |
Research-backed finding |
fitts-law |
Fitts’s Law |
Research-backed finding |
goal-gradient-effect |
Goal-Gradient Effect |
Research-backed finding |
hicks-law |
Hick’s Law |
Research-backed finding |
jakobs-law |
Jakob’s Law |
Applied heuristic |
law-of-common-region |
Law of Common Region |
Theory-backed perceptual principle |
law-of-proximity |
Law of Proximity |
Theory-backed perceptual principle |
law-of-pragnanz |
Law of Prägnanz |
Theory-backed perceptual principle |
law-of-similarity |
Law of Similarity |
Theory-backed perceptual principle |
law-of-uniform-connectedness |
Law of Uniform Connectedness |
Theory-backed perceptual principle |
millers-law |
Miller’s Law |
Research-backed finding |
occams-razor |
Occam’s Razor |
Applied heuristic |
parkinsons-law |
Parkinson’s Law |
Applied heuristic |
peak-end-rule |
Peak-End Rule |
Research-backed finding |
postels-law |
Postel’s Law |
Engineering principle |
serial-position-effect |
Serial Position Effect |
Research-backed finding |
teslers-law |
Tesler’s Law |
Applied heuristic |
von-restorff-effect |
Von Restorff Effect |
Research-backed finding |
zeigarnik-effect |
Zeigarnik Effect |
Research-backed finding |
Repository tree
.
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.yml
│ │ ├── config.yml
│ │ └── principle_proposal.yml
│ ├── pull_request_template.md
│ ├── requirements-ci.txt
│ └── workflows/
│ └── validate.yml
├── .gitignore
├── LICENSE
├── OUTREACH.md
├── assets/
│ └── social-preview.png
├── docs/ # Plan, competitive assessment and validation
├── evals/ # Pilot protocol, pins and admitted results
├── examples/
│ ├── responsive-form/ # Failure and unchanged retry
│ ├── dense-interface/ # Grouping versus disclosure
│ └── clean-interface/ # Supported non-finding
├── agents/
│ └── openai.yaml
├── references/
│ ├── anti-slop.md
│ ├── audit-mode.md
│ ├── conflict-resolution.md
│ ├── design-mode.md
│ ├── evaluation-scenarios.md
│ ├── evidence-and-reporting.md
│ ├── principles-canon.md
│ ├── principles.yaml
│ └── report-template.md
├── scripts/
│ ├── validate_catalog.py
│ ├── verify_repository.py
│ ├── verify_examples.cjs
│ └── run_pilot.cjs
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── CITATION.cff
├── SECURITY.md
├── SKILL.md
└── README.md
Validation
Run the structural validator from the repository root:
python3 scripts/validate_catalog.py
python3 scripts/verify_repository.py
For rendered, interaction and optional developer-tool checks, see
Verification. Comparative runs are governed by the
pilot protocol; their status is distinct from fixture QA.
It checks the canonical YAML contract, exactly 20 entries, evidence classes, normalized aliases and conflicts, source URL shape, and local Markdown links in SKILL.md. It intentionally does not make network requests or claim that a design works for users. Keep mechanical, perceptual, and task-outcome evidence separate when using the skill. See CONTRIBUTING.md for the catalog change contract.
Limitations
- A principle name is not a universal law. Research-backed findings need context, population, device, task, and transfer testing; applied heuristics need local evidence; perceptual principles describe hypotheses; engineering principles concern robustness boundaries.
- Historical shorthand such as the Doherty
400 ms figure or Miller’s 7 +/- 2 is deliberately caveated in the catalog and must not be treated as a universal threshold.
- A screenshot or attractive render cannot establish keyboard or assistive-technology behavior, hidden states, performance, persistence, authorization, recovery, or task completion.
- The skill does not invent testimonials, metrics, logos, integrations, capabilities, or missing product facts. Unsupported content remains an uncertainty or limitation.
- This repository contains a local skill, catalog, references, and validator. It does not provide a hosted application, user account, or telemetry service.
Contributing
Start with CONTRIBUTING.md. Keep canonical claims and fields in references/principles.yaml, preserve screenshot aliases when normalizing labels, and run the validator before opening a change. For security concerns, follow SECURITY.md. The Code of Conduct describes community expectations.
Citation
If PrincipleDesign informs research, product work, teaching, or evaluation, use the metadata in CITATION.cff. Reuse is governed by the MIT License.
License
PrincipleDesign is licensed under the MIT License.
Maintained by studio dawol · Repository · Issues
评论