skills/recipe-front-adjust/SKILL.md
Adjust an already-implemented UI in-session with verification against the design source
npx skillsauth add shinpr/claude-code-workflows recipe-front-adjustInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Context: UI adjustment on already-implemented features. The verification loop (edit → check against the design source → refine) runs in the parent session.
Core Identity: "I am a guided executor. I run the adjustment and the verification loop myself; subagents handle one-shot tasks."
Execution Protocol:
[Stop: ...] marker before proceeding.Task Registration: Before Step 1, register the recipe's execution flow using TaskCreate so progress is trackable. Register Steps 1-7 below as individual tasks plus a final task "Verify completion against Completion Criteria". Update status using TaskUpdate as each step starts and completes.
Adjustment request → external resource hearing (parent session, AskUserQuestion)
↓
ui-analyzer (subagent: fetch external sources + analyze code + propose candidateWriteSet)
↓
write-set confirmation (parent session, AskUserQuestion)
↓
scale judgment on confirmed write set (documentation-criteria matrix)
↓
┌────────────────────┴────────────────────┐
↓ ↓
(1-2 files: inline) (3-5 files: work-planner subagent → [Stop])
↓ ↓
└─→ adjustment + verification (parent session) ←──┘
↓
quality-fixer-frontend (subagent: typecheck/lint/test)
↓
commit
Included in this skill:
Responsibility Boundary: This skill completes when the adjustment is committed and quality has passed. Adjustment work is end-to-end within this recipe; parent session owns edits, verification loops, quality-result routing, and commits.
Escalation Boundary: Escalate to the full frontend design phase when the request requires PRD, UI Spec, Design Doc, new architecture, multi-screen redesign, or any ADR Creation Condition from documentation-criteria.
Adjustment request: $ARGUMENTS
Run the hearing protocol per the external-resource-context skill (frontend domain).
subagent_type: "dev-workflows-frontend:ui-analyzer"description: "UI fact gathering for adjustment"prompt: "requirement_analysis: { affectedFiles: [files inferred from the adjustment request], scale: 'small', purpose: 'UI adjustment', technicalConsiderations: [] }. requirements: [adjustment request]. target_components: [components named in the request]. ui_spec_path: [path if an existing UI Spec covers the affected components, else absent]. Read docs/project-context/external-resources.md, fetch external UI sources via the declared access methods, and analyze the existing UI codebase. Populate candidateWriteSet[] with the files most likely to require modification."candidateWriteSet[] from ui-analyzer output.c, send a follow-up plain message asking the user to paste the edited file list, then proceed with that list.Branch on the scale outcome.
No work plan. Build a minimal adjustment context for the parent session:
ui: prefix is only applied when merging with codebase-analysis facts in a Fact Disposition Table, which Branch A does not do)Present the adjustment context to the user for review.
Create a right-sized work plan. Invoke work-planner using Agent tool:
subagent_type: "dev-workflows-frontend:work-planner"description: "Adjustment work plan"prompt: "Create a work plan for this UI adjustment. Adjustment request: [verbatim]. ui_analysis: [ui-analyzer JSON]. External resources: docs/project-context/external-resources.md. Scale: 3-5 files (no Design Doc, no ADR). Each phase should be implementable as 1-3 commits. Include a quality checklist matched to the affected components: visual verification, accessibility, i18n parity, generated artifact regeneration when relevant. Output path: docs/plans/[YYYYMMDD]-adjust-[short-description].md."After work-planner returns:
For each adjustment unit (per file in Branch A; per work plan phase in Branch B):
docs/project-context/external-resources.md declares for each axis:
When the project-tier file declares no automated verification mechanism for an axis, ask the user to confirm the result manually, or use file-based comparison when a specification file is available.
subagent_type: "dev-workflows-frontend:quality-fixer-frontend"description: "Quality verification for adjustment unit"filesModified; task_file (when passed) is a supplementary hint that quality-fixer-frontend may use to read the document's "Quality Assurance Mechanisms" section.
task_file. Pass filesModified: [list of files edited in this adjustment unit].task_file: <work plan path> (supplementary hint) AND filesModified: [list of files edited in this adjustment unit] (primary scope).prompt: "filesModified: [src/components/Card/Card.tsx, src/components/Card/Card.module.css]. Run quality checks across the listed files."prompt: "task_file: docs/plans/[plan-name].md. filesModified: [src/components/Card/Card.tsx, src/components/Card/Card.module.css]. Run quality checks across the listed files."status:
approved → proceed to Step 7stub_detected → return to Step 5 to complete the implementation for this unit, then re-invoke quality-fixer-frontendblocked → read reason. When "Cannot determine due to unclear specification", surface blockingIssues[] to the user and stop. When "Execution prerequisites not met", surface missingPrerequisites[] with resolutionSteps to the user and stopCommit the adjustment unit on quality approval. Include the affected files and any regenerated artifacts (CSS module typings, message catalog typings, etc.) flagged by ui-analyzer's generatedArtifacts section.
Then loop back to Step 5 for the next unit (Branch B work plan phase, or next file in Branch A) until all units are committed.
filesModified scopingFrontend adjustment completed.
- External resources: docs/project-context/external-resources.md (updated|unchanged)
- UI fact gathering: ui-analyzer focused on [N] components, [M] focus areas, external sources [fetched|partial|not_recorded]
- Scale: <1-2 files | 3-5 files>
- Work plan: <path | not required>
- Adjustment units committed: [count]
- Quality status: all passed
documentation
Guides subagent coordination through implementation workflows. Use when orchestrating multiple agents, managing workflow phases, or determining autonomous execution mode.
documentation
Guides subagent coordination through implementation workflows. Use when orchestrating multiple agents, managing workflow phases, or determining autonomous execution mode.
documentation
Guides subagent coordination through implementation workflows. Use when orchestrating multiple agents, managing workflow phases, or determining autonomous execution mode.
documentation
Guides subagent coordination through implementation workflows. Use when orchestrating multiple agents, managing workflow phases, or determining autonomous execution mode.