Agent Skillsshinpr/claude-code-workflows › recipe-front-adjust

recipe-front-adjust

GitHub

用于在现有UI基础上进行会话内调整,通过检查代码模式、执行修改并与设计源验证的闭环流程,确保前端界面调整的准确性与质量。

dev-workflows-frontend/skills/recipe-front-adjust/SKILL.md shinpr/claude-code-workflows

Trigger Scenarios

用户要求修改已实现的UI组件或样式 需要对照设计稿对前端页面进行微调或修正

Install

npx skills add shinpr/claude-code-workflows --skill recipe-front-adjust -g -y
More Options

Non-standard path

npx skills add https://github.com/shinpr/claude-code-workflows/tree/main/dev-workflows-frontend/skills/recipe-front-adjust -g -y

Use without installing

npx skills use shinpr/claude-code-workflows@recipe-front-adjust

指定 Agent (Claude Code)

npx skills add shinpr/claude-code-workflows --skill recipe-front-adjust -a claude-code -g -y

安装 repo 全部 skill

npx skills add shinpr/claude-code-workflows --all -g -y

预览 repo 内 skill

npx skills add shinpr/claude-code-workflows --list

SKILL.md

Frontmatter
{
    "name": "recipe-front-adjust",
    "description": "Adjust an already-implemented UI in-session with verification against the design source",
    "disable-model-invocation": true
}

Explicit User Instruction: The user explicitly instructs and authorizes every subagent call named in this recipe. Execute each applicable call when its prerequisites are met.

Execute Skill: llm-friendly-context before writing Agent prompts, handoffs, or generated artifacts.

Context: UI adjustment on already-implemented features. The verification loop (edit → check against the design source → refine) runs in the parent session.

Execution Pattern

Core Identity: "I am a guided executor. I run the adjustment and the verification loop myself; subagents handle one-shot tasks."

Execution Protocol:

  1. Delegate to subagents (one-shot calls): quality-fixer-frontend.
  2. Run in the parent session (multi-step loops and user dialogs): external-resource hearing via AskUserQuestion, write-set inspection, scale judgment, adjustment-context approval, adjustment edits, verification against the design source, iteration until acceptance.
  3. Stop at every [Stop: ...] marker before proceeding.

Execution Gate

Complete Steps 1-7 in order for the confirmed adjustment outcome. Advance only through the current step's stated evidence, quality result, or user stop; skip work only when its stated condition is false. Report completion after every applicable Completion Criterion and retained-limitation retry is satisfied.

Workflow Overview

Adjustment request → conditional external resource evidence
                                  ↓
                     existing-pattern and write-set inspection
                                  ↓
                     structural boundary judgment on candidate write set
                                  ↓
                     local existing-pattern adjustment → [Stop]
                                  ↓
                     adjustment + verification (parent session)
                                  ↓
                     quality-fixer-frontend (subagent: typecheck/lint/test)
                                  ↓
                     commit

Scope Boundaries

Included in this skill:

  • External resource hearing per the external-resource-context skill
  • Existing-pattern and write-set inspection in the parent session
  • Structural boundary judgment via documentation-criteria
  • Adjustment edits and verification against the design source (run in this session)
  • Quality verification via quality-fixer-frontend
  • Commit the confirmed adjustment outcome

Responsibility Boundary: This skill completes when the confirmed adjustment is committed after its quality cycle and any retained proof limitation receives its final retry. 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 crosses a responsibility or approved UI boundary, requires a complete Design Doc, or contains a technical choice that passes documentation-criteria's Choice and Durability filters.

Adjustment request: $ARGUMENTS

Execution Flow

Step 1: External Resource Hearing

Execute Skill: external-resource-context before running the hearing protocol.

Run the hearing protocol only when external evidence can change the current adjustment target or verification result. Otherwise continue with the existing repository/UI Spec evidence and record no external references.

Step 2: Determine the Route and Write Set

Execute Skill: documentation-criteria.

Inspect the named or current UI and the smallest sufficient repository evidence needed to identify the likely write set and preserved visible behavior. Include a generated artifact only when repository tooling shows that a candidate write triggers its generator. When the UI Spec creation condition applies, route to recipe-front-design and stop. Otherwise record the evidence-backed candidate write set for this existing-pattern adjustment.

Step 3: Scale Judgment

  1. Read the candidate write set from Step 2.
  2. Apply Structural Scale to the confirmed outcome and responsibility boundary. Use write-set count as supporting evidence only:
    • 0 files: The adjustment request did not map to any existing file. Escalate to the user with the message "No write target identified from the adjustment request. Please clarify which component(s) should change, or run the full frontend design phase if this is a new feature." Stop this recipe.
    • Direct adjustment: One coherent UI outcome follows existing component, state, interaction, and verification patterns inside one responsibility boundary. Continue directly to adjustment context even when generated or tightly coupled files increase the count.
    • Design required: The change crosses a responsibility or approved UI contract, coordinates independently valuable outcomes, or needs a durable technical choice between credible alternatives. Escalate to the full frontend design phase.

Step 4: Adjustment Context

No work plan. Build a minimal adjustment context for the parent session:

  • Adjustment request (verbatim)
  • Existing UI pattern and preserved visible behavior relevant to the adjustment
  • Evidence-backed affected files list from the candidate write set
  • External resources fetched_summary and access methods that the verification loop will use

Present the adjustment context to the user for review.

  • [STOP]: User confirms the adjustment context covers the work.

Step 5: Adjustment + Verification (parent session)

Execute Skill: frontend-ai-guide before planning or applying adjustment edits. Execute Skill: typescript-rules before planning or applying adjustment edits. Execute Skill: implementation-approach before planning or applying adjustment edits. Execute Skill: test-implement before adding or changing tests.

Implement the confirmed adjustment outcome across its affected files:

  1. Plan the edit from the confirmed adjustment context and relevant external resource (e.g., design origin's fetched_summary).
  2. Apply the edit using Edit / Write / MultiEdit on the affected files.
  3. Verify against external sources using whichever access method docs/project-context/external-resources.md declares for each axis:
    • Design origin: compare current rendering against the design source via the declared access method (e.g., design-tool MCP, WebFetch from a public URL, file read from a specification path)
    • Visual rendering: capture screenshot or run a smoke check via the declared visual verification method (e.g., browser MCP, E2E test runner CLI invoked via Bash, dev-server URL inspection, Storybook URL)
    • Design system tokens / variants: confirm against the declared design system source (e.g., design-system MCP, package import, Storybook URL, internal documentation path)
  4. Refine and re-verify until the adjustment matches the design source, or matches the user-confirmed adjustment target when no separate design source exists.
  5. When the complete adjustment matches the confirmed target, proceed to Step 6.

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.

Step 6: Quality Verification

  • Invoke quality-fixer-frontend using Agent tool
    • subagent_type: "dev-workflows-frontend:quality-fixer-frontend"
    • description: "Quality verification for confirmed adjustment"
    • direct_scope: Copy the confirmed adjustment request and preserved visible behavior from Step 4 unchanged.
    • governing_sources: Pass the existing UI and design source references used for the adjustment unchanged.
    • observable_verification: Pass the confirmed adjustment request from Step 4 and applicable acceptance criteria from the governing sources unchanged.
    • Pass qualityCommand when available (caller first, otherwise current task).
  • Route the quality-fixer-frontend response by status:
    • approved → proceed to Step 7
    • stub_detected → return to Step 5 to complete the confirmed adjustment, then re-invoke quality-fixer-frontend
    • verification_incomplete → retain the complete result for final retry and proceed to Step 7
    • blocked → Apply subagents-orchestration-guide Specialist Result Acceptance using the result's semantic evidence, changed files, and repository state

Step 7: Commit

Before committing, use repository state at the commit boundary as the primary evidence and account for every actual change by mapping it to the confirmed adjustment, preserved pattern, or a necessary dependency, test, or generated artifact. Every required change is ready for the adjustment commit, accidental changes introduced during the adjustment are removed, and existing worktree changes unrelated to the confirmed adjustment remain intact.

Commit the confirmed adjustment after approved or verification_incomplete. For the latter, derive and append one Verification-Limitation: <reason> and Verification-Affected: <affected check or command> trailer pair per retained limitation.

On continuation, reconstruct retained limitations from the verification trailers on commits already completed for this request. After the adjustment is committed, retry each retained verification limitation once with quality-fixer-frontend. Clear an approved result, commit any resulting fixes through Steps 6→7, and include only a repeated limitation in the completion report.

Completion Criteria

  • External resource hearing executed (project-tier file written or update explicitly skipped)
  • UI Spec applicability and the candidate write set were determined from the requested UI and sufficient repository evidence
  • Structural boundary judgment applied; changes requiring complete design or a qualifying durable decision escalated
  • Adjustment context, including the affected files, was presented and confirmed once
  • The confirmed adjustment outcome is implemented; each declared verification mechanism ran, received manual confirmation where required, or retained its exact proof limitation after final retry
  • The confirmed adjustment completed quality-fixer-frontend before commit; retained proof limitations were retried and reported
  • The confirmed adjustment is committed

Output Example

Frontend adjustment completed.
- External resources: docs/project-context/external-resources.md (updated|unchanged)
- UI evidence: existing pattern [path], external sources [fetched|partial|not_recorded]
- Scale: direct existing-pattern adjustment
- Adjustment commit: [commit hash]
- Quality status: all passed | [remaining proof limitations]

Version History

  • 6d58447 Current 2026-09-08 22:26

    优化工作流验证逻辑,对齐直接范围质量保证契约,明确以确认结果作为前端调整验证依据。

  • 7b95bcd 2026-08-28 00:52

    添加仓库感知的实现审查功能

  • e245981 2026-08-19 14:34

    移除了对TaskCreate/TaskUpdate等任务工具工作流的依赖,简化了执行流程。

  • 416af89 2026-08-12 16:36

    重构工作流以对齐证据驱动模型自主性,完善证据驱动工作流的边界定义,将write-set confirmation细化为structural boundary judgment。

  • 0d96a63 2026-08-05 22:03

    移除对ui-analyzer的依赖,简化质量变更审查流程,收敛设计决策。

  • 51b7dbc 2026-08-05 01:44

    移除work-planner子代理,新增llm-friendly-context前置技能,简化规划流程并强化结果导向的编排逻辑。

  • d439b50 2026-07-31 02:51

    重构以最小化工作流提示词,传递权威质量指令,并定稿Opus 5工作流提示词审查。

  • 66e3b29 2026-07-05 11:58

Same Skill Collection

dev-skills/skills/ai-development-guide/SKILL.md
dev-skills/skills/coding-principles/SKILL.md
dev-skills/skills/documentation-criteria/SKILL.md
dev-skills/skills/external-resource-context/SKILL.md
dev-skills/skills/frontend-ai-guide/SKILL.md
dev-skills/skills/implementation-approach/SKILL.md
dev-skills/skills/integration-e2e-testing/SKILL.md
dev-skills/skills/llm-friendly-context/SKILL.md
dev-skills/skills/requirement-convergence/SKILL.md
dev-skills/skills/test-implement/SKILL.md
dev-skills/skills/testing-principles/SKILL.md
dev-skills/skills/typescript-rules/SKILL.md
dev-workflows-frontend/skills/ai-development-guide/SKILL.md
dev-workflows-frontend/skills/coding-principles/SKILL.md
dev-workflows-frontend/skills/documentation-criteria/SKILL.md
dev-workflows-frontend/skills/external-resource-context/SKILL.md
dev-workflows-frontend/skills/frontend-ai-guide/SKILL.md
dev-workflows-frontend/skills/implementation-approach/SKILL.md
dev-workflows-frontend/skills/integration-e2e-testing/SKILL.md
dev-workflows-frontend/skills/llm-friendly-context/SKILL.md
dev-workflows-frontend/skills/recipe-diagnose/SKILL.md
dev-workflows-frontend/skills/recipe-front-build/SKILL.md
dev-workflows-frontend/skills/recipe-front-design/SKILL.md
dev-workflows-frontend/skills/recipe-front-plan/SKILL.md
dev-workflows-frontend/skills/recipe-front-review/SKILL.md
dev-workflows-frontend/skills/recipe-quality-profile/SKILL.md
dev-workflows-frontend/skills/recipe-task/SKILL.md
dev-workflows-frontend/skills/recipe-update-doc/SKILL.md
dev-workflows-frontend/skills/requirement-convergence/SKILL.md
dev-workflows-frontend/skills/subagents-orchestration-guide/SKILL.md
dev-workflows-frontend/skills/task-analyzer/SKILL.md
dev-workflows-frontend/skills/test-implement/SKILL.md
dev-workflows-frontend/skills/testing-principles/SKILL.md
dev-workflows-frontend/skills/typescript-rules/SKILL.md
dev-workflows-fullstack/skills/ai-development-guide/SKILL.md
dev-workflows-fullstack/skills/coding-principles/SKILL.md
dev-workflows-fullstack/skills/documentation-criteria/SKILL.md
dev-workflows-fullstack/skills/external-resource-context/SKILL.md
dev-workflows-fullstack/skills/frontend-ai-guide/SKILL.md
dev-workflows-fullstack/skills/implementation-approach/SKILL.md
dev-workflows-fullstack/skills/integration-e2e-testing/SKILL.md
dev-workflows-fullstack/skills/llm-friendly-context/SKILL.md
dev-workflows-fullstack/skills/recipe-add-integration-tests/SKILL.md
dev-workflows-fullstack/skills/recipe-build/SKILL.md
dev-workflows-fullstack/skills/recipe-design/SKILL.md
dev-workflows-fullstack/skills/recipe-diagnose/SKILL.md
dev-workflows-fullstack/skills/recipe-front-adjust/SKILL.md
dev-workflows-fullstack/skills/recipe-front-build/SKILL.md
dev-workflows-fullstack/skills/recipe-front-design/SKILL.md

Metadata

Files
0
Version
6d58447
Hash
993b39ed
Indexed
2026-07-05 11:58

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 21:50
浙ICP备14020137号-1 $Map of visitor$