Agent skill Review & testing
Frontend Design Direction
Review the accessibility of visible web interface elements and interactions.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add affaan-m/ecc --skill frontend-design-direction --agent claude-code --yesCheck this file in your project.claude/skills/frontend-design-direction/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add affaan-m/ecc --skill frontend-design-directionSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A local route, a real user task, current design constraints, target viewports, and available state fixtures.
View operation manualWhat this skill helps with
- Review the accessibility of visible web interface elements and interactions.
Good for
- Accessible interfaces
- Task
- Move one working screen from a design brief to a checked render
- Inputs
- A local route, a real user task, current design constraints, target viewports, and available state fixtures.
- Workflow reference
- scripts/check-evidence.js
- Skill name
frontend-design-direction- Repository
affaan-m/ecc
Define the problem before changing the UI
A broad prompt
Make this app more polished and choose a better color palette.
A palette alone gives the design no checkable primary action, state behavior, or responsive requirements.
An outcome you can check
- State the user job, primary action, first-viewport hierarchy, and evidence for the direction.
- Capture real before and after states, with keyboard and responsive checks.
- The checker accepts a report backed by local artifacts for every target viewport.
Frontend Design Direction operation manual
Move one working screen from a design brief to a checked render
A local route, a real user task, current design constraints, target viewports, and available state fixtures.
Write a design evidence contract
State the user job, primary action, first-viewport hierarchy, and evidence for the direction.
Prompt · Step 1Use the installed frontend-design-direction Skill on [route, audience and recurring job]. Inspect the existing route and design tokens. Produce a short contract with tone, one memorable detail, primary action, target widths and source observations. Map loading, empty, error, partial, success and permission to triggers and next actions. Use a specific reason when a state truly does not apply.Implement and inspect the actual workflow
Capture real before and after states, with keyboard and responsive checks.
Prompt · Step 2Implement [approved contract] using existing components, tokens and routing. Open the real render at each target width. Exercise applicable states, a long label, a keyboard-only path, visible focus and reduced motion where relevant. Keep screenshots or browser artifacts inside the planned local report directory and write what each capture proves.Run the installed evidence checker
The checker accepts a report backed by local artifacts for every target viewport.
Prompt · Step 3Write [local evidence JSON] with contract, targetViewports, renderedEvidence, accessibility, responsive and all six contentStates as described in the Skill. Use nonempty relative artifact paths beneath the report directory. Run node against the installed scripts/check-evidence.js and this report. If anything failed or was untested, report it and keep the gate open. A passing schema does not prove visual quality.
Look up a workflow detail
Use the installed Skill or the publisher’s source for details.
Why is a mobile screenshot insufficient?SKILL.md
- Command or reference
scripts/check-evidence.js- Examples
- Each distinct target viewport requires its own evidence entry with the actual artifact and observation. Reuse the exact viewport labels in both arrays and inspect the real narrow and wide renders.
Troubleshooting and FAQ
Why is a mobile screenshot insufficient?
Each distinct target viewport requires its own evidence entry with the actual artifact and observation. Reuse the exact viewport labels in both arrays and inspect the real narrow and wide renders.