/craft-skills:simplifyfrom craft-skills
Reviews changed code for reuse opportunities, quality issues, and architecture compliance. Identifies missed shared components and boundary violations.
Ships in craft-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Review changed code for reuse opportunities, quality, and architecture compliance.
The user input is: $ARGUMENTS
git diff + git diff --staged)# If no specific input, check all changes
git diff --name-only
git diff --staged --name-only
Use the graph → LLM → manual priority. Claude should NOT read changed files directly — let LLM do the reading.
Graph (if code-review-graph available): Run build_or_update_graph_tool, then:
get_impact_radius_tool on each changed file — shows blast radius and downstream consumersquery_graph_tool with imports_of on changed files — reveals architecture boundary violations instantlyquery_graph_tool with importers_of on changed files — shows what depends on the changed codeget_architecture_overview_tool, list_communities_tool, or detect_changes_tool — all three can overflow context (90-300K chars)LLM (MANDATORY) — Check LM Studio first (Bash tool, wait for result):
CRAFT_SCRIPTS=$(find ~/.claude/plugins -name "llm-agent.sh" -path "*/craft-skills/*" -exec dirname {} \; 2>/dev/null | head -1) && curl -s --max-time 2 ${LLM_URL:-http://127.0.0.1:1234} > /dev/null 2>&1 && echo "LLM_AVAILABLE:$CRAFT_SCRIPTS" || echo "LLM_UNAVAILABLE"
If LLM_AVAILABLE, run with Bash tool (run_in_background: true, timeout 300000ms):
bash "$CRAFT_SCRIPTS/llm-agent.sh" "Review these changed files for: 1) Reuse opportunities — check if the project's shared modules already have equivalent utilities 2) Architecture boundary violations (cross-module imports between business modules) 3) Unnecessary complexity or premature abstractions 4) Naming consistency. Changed files: [list from git diff]. Also check these related files flagged by graph: [high-risk files from get_impact_radius_tool]" <project-root>
Then unload: bash "$CRAFT_SCRIPTS/llm-unload.sh". If LLM_UNAVAILABLE, fall back to reading files graph flagged as high-risk. Filter out false positives about plugins/skills.
Wait for LLM results before proceeding to Steps 3-5. The LLM handles the file reading — Claude's role in Steps 3-5 is to triage and verify LLM findings using graph data, not to re-read every file.
If LLM is unavailable, fall back to reading only the files graph flagged as high-risk.
Triage LLM findings (if available) and graph results for reuse opportunities:
Only read a specific file if the LLM flagged an issue you need to verify.
Use graph imports_of results and LLM findings:
Based on LLM findings, check for:
UI/UX quality check (conditional, deterministic): If the changed files include UI components (.tsx, .vue, .svelte) AND .claude/aesthetic-direction.md exists, invoke craft-skills:design-review via the Skill tool. It will screenshot the affected routes and audit them against the aesthetic direction and any feature ux-brief.md. This replaces the older opportunistic ui-ux-pro-max invocation — it is deterministic, visual (not just code-based), and cheap (Haiku-first, ~15K tokens per audit).
If .claude/aesthetic-direction.md does not exist, skip silently (no-op). The user can enable this by running craft-skills:aesthetic-direction once.
Iron Law: Evidence before assertions.
Run the project's verification commands:
npm run lintnpx tsc --noEmitnpm run formatnpm run buildReport actual output, not assumptions about output.
Present findings with specific file:line references:
## Review Findings
### Reuse Opportunities
- `src/domain/X/ui/CustomButton.tsx:15` — could use shared `Button` component instead
### Architecture Concerns
- `src/modules/rooms/RoomList.tsx:8` — imports from another business module (boundary violation)
### Quality
- `src/domain/X/utils/formatDate.ts` — single-use utility, inline instead
### Verification
- Lint: PASS
- TypeScript: PASS
- Build: PASS
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/aesthetic-directionGenerate or verify the project's one-time AESTHETIC_DIRECTION.md — a design-language contract used by ux-brief and design-review. Invoked automatically by architect/craft when UI work is planned and .claude/aesthetic-direction.md does not yet exist. Auto-generates without blocking; user can refine the file later./architectUse when the user needs to plan and architect a new feature before implementation begins. This includes analyzing requirements, asking clarifying questions, and creating a detailed implementation plan aligned with the project's architecture. Invoke BEFORE any coding work starts./bootstrapLoaded at session start. Establishes awareness of craft-skills so the assistant invokes relevant skills before acting. Not invoked directly.npx claudepluginhub alexiolan/craft-skills --plugin craft-skillsOther plugins' skills for the same job