Web design direction system

From TheGoat395/Codex-Skills · View interactive version

Web design direction system is an AI agent skill from the GitHub repository TheGoat395/Codex-Skills. Resolve shared design intent and guidance.

How to use this skill

Skill file

Web Design Direction System

Use when shared visual intent is unresolved or a recurring design correction requires revising the governing guidance. A settled design or localized implementation goes directly to its specialist; this is not a mandatory router.

Design Guidance Contract

When a project has repeated design decisions, a named design system, or a recurring review failure, read the design guidance evidence loop before changing the standard. Start with the reader's job and the strongest supported answer, then choose the smallest destination that can enforce the decision: guidance, a component primitive, a deterministic check, an exemplar, or an evaluation case.

Do not turn one screenshot, one reviewer preference, or one shipped implementation into a universal rule. Record scope, rationale, evidence, exceptions, and a bad/good example. Keep unresolved decisions visible instead of hiding them inside CSS or component code.

Infer The Design Mode

Before choosing components or CSS, write a compact design read:

Turn those choices into concrete layout, type, color, media, and motion decisions.

Direction Dials

For an open brief, these optional internal dials can help compare directions. They are descriptive aids, not scores or required deliverables:

Illustrative starting profiles: premium public site 6 / 5 / 4 / 6; product dashboard 4 / 3 / 7 / 3; expressive campaign 8 / 7 / 4 / 8. Derive actual choices from the brief; do not impose these values.

Design Lanes

Pick one lane and stay coherent:

If the repo already has a system, preserve its best parts and change only what is weak.

Remove Generic Output

Rewrite these before shipping:

Redesign Protocol

For existing projects:

  1. Inspect the rendered UI or existing files before proposing direction.
  2. Preserve working IA, routes, real copy, assets, and brand anchors unless they are the issue.
  3. Identify the material failures, if any: hierarchy, spacing, type, color, states, motion, content, accessibility, or responsiveness.
  4. Change the smallest set of files that fixes the visible problem.
  5. Compare before and after behavior, not just code diffs.

Image-To-Code Protocol

When the user supplies a reference image or generated comp:

  1. Extract layout skeleton, type scale, spacing rhythm, color roles, surface materials, media crop rules, component vocabulary, and motion implications.
  2. Separate what to match from what to reinterpret.
  3. Preserve semantic HTML and responsive behavior instead of copying pixels blindly.
  4. Implement real components and states, not a screenshot imitation.
  5. Run visual QA against desktop and mobile after implementation.

Motion Rules

Motion should serve sequence, focus, depth, state, continuity, narrative, artistic expression or deliberate delight. Remove motion that lacks a purpose in the actual brief.

Prefer one memorable motion idea over many identical entrance effects. Always define reduced-motion behavior. Never hide content behind animation that may fail in a paused tab, slow browser, or headless QA run.

Evidence Loop

For a repeated design correction, freeze a representative prompt, inputs, viewport, model, and skill version. Save one baseline without the proposed guidance, then compare first-attempt treatment output under the same conditions. Review the pair against a written rubric, keep a small holdout case, and encode only corrections that generalize.

Separate retrieval from application: confirm that the right skill or reference loaded before judging whether the rule was followed. Keep deterministic checks for observable mechanics and keep product judgment in scoped prose. Feed repeated production corrections back into a pending review record rather than editing the standard automatically.

Preflight Before Handoff

Check:

Read the evidence-loop reference when a change updates a shared design standard, evaluation protocol, or recurring correction pattern.

Scope and evidence

Own the shared direction record. Preserve explicit user direction and adequate existing context; blueprint, style director and build gate consume the same spec. Dials are optional internal tools and need not appear in a deliverable.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.