Agent skill
formax-web-style-system
Use for all frontend and web UI tasks by default to apply a business-agnostic desktop web visual style system with medium-strength guardrails; if an existing design system is present, follow it first and use this skill only as a style harmonizer.
Install this agent skill to your Project
npx add-skill https://github.com/yusifeng/formax/tree/main/.codex/skills/formax-web-style-system
SKILL.md
Formax Web Style System
Goal
Apply a business-agnostic visual style system for web interfaces.
Enforce a calm, desktop-grade aesthetic with strong readability, token-first styling, and clear interaction hierarchy.
Do not introduce product workflow assumptions, domain copy assumptions, or business IA decisions.
Trigger Contract
Use this skill by default for all frontend and web UI tasks.
If the task is not frontend/UI work, do not apply this skill.
If the repository or task provides an existing design system, brand guide, or component library:
- Follow the existing system first.
- Use this skill only to harmonize tone, spacing rhythm, and state clarity.
- Never override explicit local design constraints.
Workflow
- Read
references/style-doctrine.mdfirst to lock the visual direction. - Read
references/token-blueprint.mdto define CSS variable layers before proposing UI details. - Read
references/layout-patterns.mdwhen composing desktop layout, density, and responsive fallback. - Read
references/component-tone.mdwhen styling components, states, and interaction emphasis. - Read
references/anti-patterns.mdas a final rejection checklist before returning output. - Apply all
CRITICAL STYLE OVERRIDESfrom the references as mandatory constraints.
For small styling requests, keep output concise but still include token strategy and state clarity.
Formax Overrides (Mandatory for CSS Rework)
When the task touches CSS in packages/web-reference-react/**, do this before editing:
- Read
.codex/skills/formax-web-css-convergence-workflow/SKILL.md. - Lock a pre-edit intake contract (target model, non-goals, ownership boundary, acceptance checks).
- Use single-axis passes (geometry -> color -> interaction), avoid mixed multi-axis edits.
- Validate with:
bun run test -- src/App.test.tsx(inpackages/web-reference-react)
- If and only if the task includes transparency/window layering:
- Read
docs/contracts/web/window-transparency-construct.md - Run
bun run test:e2e -- e2e/window-transparency.evidence.spec.js --project=chromium(inpackages/web-reference-react)
- Read
Output Contract
For each frontend/web UI response, always include these sections (explicit headings):
visual_directiontokenslayoutcomponent_toneresponsive_notes
Inside tokens, provide CSS variable categories at minimum for:
- color
- typography
- spacing
- radius
- shadow
- motion
Prefer style system guidance and representative snippets over large hard-coded CSS dumps.
Guardrails
Never do the following:
- Assume product business flows, user journeys, or domain-specific copy.
- Default to purple-first palettes when not requested.
- Default to dark-mode-first styling when not requested.
- Produce generic template-like SaaS visuals without distinct visual intent.
- Hard-code ad-hoc colors and spacing without a token layer.
- Copy screenshot pixels exactly; preserve mood, not exact geometry.
- Replace required glass-material sidebars with opaque flat fills.
- Use bordered inputs in default state when soft-filled inputs are specified.
Always keep medium constraint strength:
- Strong enough to maintain consistent visual quality.
- Flexible enough to adapt to different frontend tasks and local systems.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
formax-dev-loop-workflow
Use when working on Formax code changes and you need a disciplined dev loop: keep a single mainline task, avoid scope drift, run only targeted tests (no coverage), avoid partial staging (MM), run mandatory review before commit, include an incremental optimization check, and keep commits small and reviewable.
formax-rework-convergence-workflow
Use when code has gone through repeated rework and may contain redundant logic, style drift, or tangled structure. Trigger when user asks for "返工收敛", "cleanup-pass", or requests a focused cleanup pass that reduces churn without changing behavior.
formax-tool-ui-blocks-workflow
Implement or refactor Formax tool transcript UI using the Tool UI Blocks (C-lite) pattern (ToolUiBlocks renderer + blocks presenters) to avoid touching many tool presenter files; use when adjusting ⏺/⎿ spacing, indent rules, or migrating additional tools to blocks presenters with targeted Ink/Vitest tests and Codex review before commit.
formax-web-css-convergence-workflow
Use when changing web CSS/UI styling so requirements, state ownership, and acceptance checks are locked before edits to prevent rework churn.
formax-config-settings-workflow
Use when implementing or extending /config (storage, prompt injection, request params, UI-only toggles) with tests and strict UI parity.
formax-semantics-parity-workflow
Use when implementing or modifying behavior that must stay consistent across TUI and Web (mode/input/tool/replay/order). Require canonical semantics first, then TUI/Web adapters, then renderer-specific UI.
Didn't find tool you were looking for?