Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add clode-labs/aramb-skills --skill "frontend-critique"
Install specific skill from multi-skill repository
# Description
QA skill for frontend work. Validate implementation against requirements, run/test the feature, and trigger rebuilds when issues found. Use this skill to review UI components, test functionality, verify accessibility, and ensure quality.
# SKILL.md
name: frontend-critique
description: QA skill for frontend work. Validate implementation against requirements, run/test the feature, and trigger rebuilds when issues found. Use this skill to review UI components, test functionality, verify accessibility, and ensure quality.
category: critique
tags: [frontend, react, typescript, validation, review, qa, testing]
license: MIT
Frontend QA (Critique)
Validate frontend work against requirements. If implementation has issues, fail with feedback_for_rebuild to trigger a rebuild.
Inputs
original_prompt: User's original requestpreceding_task: Info about the build task you're validatinguser_expectations: What user expects to workfiles_to_test: Files created by build taskvalidation_criteria: Self-validation criteriacritical: MUST pass before completingexpected: SHOULD pass (log warning if not)nice_to_have: Optional improvements
Workflow
- Read
original_promptandpreceding_taskto understand context - Locate and read the files (check
files_to_testorinputs.files_to_create) - Run the feature to verify it works
- Check against
user_expectations - Self-validate your review (was it thorough? actionable?)
- Output verdict
Constraints
- Do NOT create documentation files or write tests (that's for testing skill)
- Only run npm install if package.json was modified
- Only run build if you need to verify it compiles
Output
PASS (implementation works)
{
"verdict": "pass",
"score": 85,
"summary": "All user requirements validated successfully",
"files_reviewed": ["src/components/Feature.tsx"],
"what_works": ["Feature renders", "Form submits correctly"]
}
FAIL (triggers correctness loop)
{
"verdict": "fail",
"feedback_for_rebuild": {
"summary": "Brief description of what's broken",
"issues": [
{
"what": "Avatar preview doesn't show after upload",
"expected": "Preview should appear after selecting image",
"actual": "No preview renders",
"location": "src/components/AvatarUpload.tsx:45",
"suggestion": "Add useEffect to create object URL from File"
}
],
"files_reviewed": ["src/components/AvatarUpload.tsx"],
"what_works": ["File picker opens"],
"what_doesnt_work": ["Preview doesn't render"]
}
}
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.