算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
recipe-front-adjust【设计与创意】Adjust an already-implemented UI in-session with verification against the design source
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
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.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.
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
Included in this skill:
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
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.
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.
No work plan. Build a minimal adjustment context for the parent session:
Present the adjustment context to the user for review.
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:
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 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.qualityCommand when available (caller first, otherwise current task).status:
pass → proceed to Step 7stub_detected → return to Step 5 to complete the confirmed adjustment, then re-invoke quality-fixer-frontendverification_incomplete → retain the complete result for final retry and proceed to Step 7blocked → Apply subagents-orchestration-guide Specialist Result Acceptance using the result's semantic evidence, changed files, and repository stateBefore 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 pass 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. When the retry returns pass, remove that limitation from retained state. Commit any resulting fixes through Steps 6→7, and include only a repeated limitation in the completion report.
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]