Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计未展示

wtf.design-taskwtf 设计任务

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

710

周安装

29

GitHub Stars

3

下载量

227
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wtf.design-task(wtf 设计任务)
来源仓库:https://github.com/xiduzo/wtf
仓库路径:skills/wtf.design-task
安装命令:
npx skills add https://github.com/xiduzo/wtf --skill wtf.design-task
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/xiduzo/wtf --skill wtf.design-task

简介

wtf.design-task 用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案或改进组件层级。
  • 使用时需结合现有品牌、设计系统和用户任务,避免堆砌装饰元素;涉及真实页面改动时应通过截图或浏览器预览检查表现。
  • 通过 npx skills add 命令从 GitHub 仓库安装,建议确认权限及是否会触发文件读写或构建流程。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Design Task

Pick up an existing Task as a designer. Core value: reads the Gherkin scenarios to identify every UI state that needs design coverage, then helps you document the design references back into the issue so developers have a single source of truth.

See references/component-spec-template.md for the expected structure when scaffolding a component spec without Figma frames.

Process

0. GitHub CLI setup

Run steps 1–2 of ../references/gh-setup.md (install check and auth check). Stop if gh is not installed or not authenticated. Extensions are not required for this skill.

Skip this step if invoked from wtf.write-task or another skill that already ran gh-setup this session.

1. Identify the Task

If the user provided an issue number in their request, use it directly. Otherwise search for recent open issues with label task to populate options and call AskUserQuestion with question: "Which Task are you designing?", header: "Task", and options pre-filled with 1–2 likely open Task issue references inferred from GitHub search (e.g. recent open issues labeled task).

Fetch the Task first, extract the Feature number from its Context section, then fetch the Feature:

gh issue view <task_number>    # Functional Description, Gherkin, Design Reference — also yields feature number
# Extract feature number, then:
gh issue view <feature_number> # User stories, ACs, visual context

2. Lifecycle check

Check whether the task already has a designed label:

gh issue view <task_number> --json labels --jq '.labels[].name'

If the designed label is present, call AskUserQuestion with:

  • question: "This task already has a designed label. Continuing will overwrite the existing Design Reference. How would you like to proceed?"
  • header: "Already designed"
  • options: [{label: "Redesign it", description: "Overwrite the existing Design Reference with a new one"}, {label: "Exit", description: "Leave the existing design as-is"}]
  • Redesign it → continue.
  • Exit → exit immediately.

If the designed label is absent, continue silently.

3. Load the design steering document

Use the Read tool to attempt reading docs/steering/DESIGN.md.

If the file exists: keep its content in context. Use its design principles, tokens, component patterns, and accessibility standards to inform every decision in this session. Do not surface it to the user — just apply it silently.

If the file does not exist, call AskUserQuestion with:

  • question: "docs/steering/DESIGN.md doesn't exist yet. This document captures your design principles, tokens, and component patterns. Would you like to create it now?"
  • header: "Design steering doc missing"
  • options: [{label: "Create it now", description: "Runwtf.steer-designbefore continuing (recommended)"}, {label: "Skip for this session", description: "Continue without it — design decisions won't reference project standards"}]
  • Create it now → follow the wtf.steer-design process, then return to this skill and continue from step 4.
  • Skip for this session → continue without it.

4. Explore the design system

Use the Agent tool with these concrete searches (run in parallel):

  • Glob('src/components/**/*', 'src/**/components/**/*', 'components/**/*') — existing UI components; note file names that match domain objects or UI states in the Task
  • Glob('**/{tokens,theme,variables,design-tokens}.{css,scss,ts,js,json}') + Grep for CSS custom property declarations (--) or Tailwind config keys — design tokens in use (colors, spacing, typography)
  • Glob('src/**/*.{stories,story}.{ts,tsx,js,jsx,mdx}') — Storybook stories as pattern references for similar screens or flows
  • Grep for figma.com URLs across all .md, .mdx, and issue body files in the repo — existing Figma references linked in related issues or docs

5. Identify UI states from Gherkin

For each Gherkin scenario in the Task:

  • Identify the UI state it represents (e.g. empty, loading, error, success, disabled, edge case)
  • Note any interaction or transition implied by the When/Then steps

List these states explicitly — this becomes the design coverage checklist.

6. Ask about design assets

Call AskUserQuestion with question: "How would you like to handle design assets for this task?", header: "Design assets", and options:

  • {label: "I have Figma frames", description: "Provide frame URLs — I'll validate coverage against Gherkin scenarios"}
  • {label: "Generate designs for me", description: "I'll use Figma MCP to generate frames from the Gherkin scenarios and design system"}
  • {label: "Scaffold a spec only", description: "No Figma — produce a text component spec from the scenarios"}
  • {label: "Partial — some states designed", description: "Provide available frames; remaining states go to generate or scaffold"}

Path A — Human provides frames: Collect frame URLs. For each Gherkin scenario from step 5, check whether a frame covers it. Flag any scenario with no matching frame as a gap. Present the coverage matrix: scenario → frame URL (or ⚠ gap). If gaps exist, call AskUserQuestion asking whether to generate the missing frames (route to Path B) or leave them as pending.

Path B — AI generates via Figma MCP: Check whether the Figma MCP tool generate_figma_design is available. If unavailable, warn the user and fall back to Path C (scaffold).

If available: for each uncovered UI state, call generate_figma_design with:

  • The Gherkin scenario as the design brief
  • Component patterns and tokens from docs/steering/DESIGN.md (loaded in step 3)
  • Any shared components identified in the parent Feature's Design Handoff (if available)

Collect the generated frame URLs and treat them as Path A frames from this point forward.

Path C — Scaffold spec only: Draft a component spec using the structure in references/component-spec-template.md, listing each state with its required UI elements and interactions. No Figma frames — this is a text-only design brief for the developer.

Partial: Collect available frame URLs, run Path A validation on covered states. For uncovered states, call AskUserQuestion asking whether to generate (Path B) or scaffold (Path C) the remainder.

7. Draft the Design Reference

Produce the content for the Design Reference section of the Task:

  • Frame URLs mapped to Gherkin scenarios (Path A/B), or scaffolded component spec (Path C)
  • Coverage matrix: scenario → frame URL or ⚠ pending
  • Component breakdown: which exist in codebase, which are new
  • Interaction notes: hover, focus, error states, transitions
  • Responsive behavior if applicable
  • Design tokens to apply

8. Review with user

Show the draft. Then call AskUserQuestion with question: "Does this cover all the states in the Gherkin?", header: "Review", and options: [{label: "Yes — looks complete", description: "Proceed to update the task"}, {label: "Missing states", description: "I want to add more coverage"}, {label: "Other changes", description: "I want to adjust something else"}].

Apply edits, then proceed.

9. Update the Task issue

Note: read the current issue body first (gh issue view <task_number>), replace only the Design Reference section with the new content, and preserve all other sections unchanged. Write the full updated body to a temp file and use --body-file.
gh issue edit <task_number> --body-file /tmp/wtf.design-task-<task_number>-body.md

Add the designed lifecycle label to mark this step complete:

gh issue edit <task_number> --add-label "designed"

Print the updated Task issue URL.

10. Offer to continue

Call AskUserQuestion with:

  • question: "What's next?"
  • header: "Next step"
  • options: [{label: "Implement this Task", description: "Runwtf.implement-taskfor this Task now (default)"}, {label: "Design another Task", description: "Design another Task for the same Feature"}, {label: "Stop here", description: "Exit — no further action"}]
  • Implement this Task → follow the wtf.implement-task process, passing the Task number in as context so the user is not asked for it again.
  • Design another Task → restart this skill from step 1, reusing the same Feature context.
  • Stop here → exit.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.63%
按下载量换算88

Claude

31.15%
按下载量换算71

Cursor

19.29%
按下载量换算44

Gemini CLI

8.71%
按下载量换算20

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills