← 返回
未分类 中文

Design Engineering

Orchestrate iterative design and frontend engineering work through research, planning, sub-agent execution, and validation loops. Use when a visual/UI task r...
Orchestrate iterative design and frontend engineering work through research, planning, sub-agent execution, and validation loops. Use when a visual/UI task r...
corbin-breton corbin-breton 来源
未分类 clawhub v1.2.0 2 版本 100000 Key: 无需
★ 0
Stars
📥 569
下载
💾 2
安装
2
版本
#latest

概述

Design Engineering

Orchestrate design-heavy frontend work that requires iteration, technical decisions, and validation. This skill is about the process — how to research, plan, build, validate, and refine — not the aesthetics (use frontend-design for that).

When to Use

  • Visual work that will take multiple iterations to get right
  • Choosing between technical approaches (Canvas vs SVG vs CSS, etc.)
  • Coordinating sub-agents on parallel design/engineering tasks
  • Refining an implementation based on user feedback
  • Any frontend work where "build it and ship" isn't enough

Scope & Safety

  • All file operations stay within the user's project directory — no absolute paths outside the project root
  • Sub-agents operate within the project scope defined by the orchestrator and must not access files outside it
  • Sub-agent outputs (file writes, research findings) are confined to the project working directory
  • No credentials or external services are required
  • Playwright (when used for screenshots) connects only to localhost dev servers — never to external URLs
  • No data is exfiltrated or transmitted to external endpoints; all work is local

The Iteration Loop

Every design-engineering task follows this cycle:

Research → Plan → Approve → Execute → Validate → Feedback → Refine

1. Research Phase

Before touching code, understand the problem space. Spawn 2-3 research sub-agents in parallel with different lenses:

  • Inspiration/reference — find examples of what we're trying to achieve
  • Technical approaches — what tools/techniques solve this class of problem
  • Constraints — performance, browser support, accessibility, progressive enhancement

Research agents should write findings to files within the project's working directory so context is preserved across iterations.

2. Plan Phase

Synthesize research into a concrete plan. Present to user for approval before executing. The plan should include:

  • Architecture decision with rationale (not just "use X" but "use X because Y fails at Z")
  • Layer/component breakdown
  • What gets removed, what gets added, what stays
  • Pre-mortem: "what would cause this to fail?"
  • Estimated sub-agent tasks
  • Horizon estimate: Count estimated steps across all sub-agents. If > 40 steps total, decompose into sub-phases of ≤ 20 steps. If 20–40 steps, insert a midpoint quality checkpoint (screenshot + integration check before proceeding). Under 20 steps, execute directly. This prevents quality collapse on complex design tasks.

3. Execute Phase

Dispatch sub-agents with focused, context-minimal tasks. Key rules in references/subagent-patterns.md.

4. Validate Phase

After sub-agents complete, the orchestrator MUST validate. Build check is necessary but not sufficient. Check integration points — see references/validation-checklist.md.

5. Feedback → Refine

Ship to user for review. Expect 2-5 iterations on visual work. Each iteration:

  1. Screenshot the live result (use Playwright if available)
  2. Identify specific issues from feedback
  3. Make targeted fixes (don't rebuild from scratch each time)
  4. Validate and redeploy

Technical Decision Framework

When choosing between rendering approaches, read references/rendering-decisions.md. Quick heuristic:

NeedUse
-----------
Static decorative patternCSS background-image with SVG data URI
<100 authored animated elementsInline SVG + CSS animations
Procedural generation, >100 elements, full-page coverageCanvas 2D
3D, heavy particle systems, post-processingThree.js/WebGL (last resort — heavy)

Progressive Enhancement Stack

Every visual enhancement must degrade gracefully:

  1. CSS baseline (always works, no JS)
  2. JS-enhanced layer fades in on top
  3. prefers-reduced-motion → skip animations entirely
  4. Low-end device detection → reduce complexity
  5. Light/dark theme awareness

Glass-Panel Pattern

For content floating over animated backgrounds:

.card {
  background: color-mix(in srgb, var(--bg-card) 50-60%, transparent);
  backdrop-filter: blur(8-12px);
  -webkit-backdrop-filter: blur(8-12px);
}

Lets animation show through while keeping text readable. Adjust blur and opacity based on background intensity.

References

  • references/subagent-patterns.md — How to dispatch and validate sub-agent work
  • references/validation-checklist.md — Post-execution checks that catch integration bugs
  • references/rendering-decisions.md — Canvas vs SVG vs CSS decision guide with production lessons

版本历史

共 2 个版本

  • v1.2.0 当前
    2026-05-03 04:52 安全 安全
  • v1.0.0
    2026-03-31 17:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Webapp Testing

corbin-breton
用于通过 Playwright 与本地 Web 应用交互和测试的工具集,支持验证前端功能、调试 UI 行为、捕获...
★ 1 📥 730
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,394 📥 322,388
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,098 📥 825,212