Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

skill-design技能设计

Agent Skill

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

总安装

648

周安装

27

GitHub Stars

公开资料未说明

下载量

216
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/shihyuho/skills --skill skill-design

简介

skill-design 用于辅助界面设计、视觉规范与交互体验优化,适合生成 UI 方案或改进组件层级。

  • 适用于产品页面结构整理、配色布局建议和一致性检查等设计相关任务。
  • 使用时需结合品牌与设计系统,避免堆砌装饰元素;涉及真实改动时应通过截图验证表现。
  • 通过 npx skills add 命令从 GitHub 安装,建议确认权限范围与维护状态后再启用。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Skill Design

Design skills as reusable behavior systems that are easy to discover and execute.

Trigger Contract

Use this skill when users ask to:

  • create a new skill
  • refactor an existing skill
  • improve trigger quality or discoverability
  • align SKILL.md, README.md, and references/
  • remove ambiguity or conflicting guidance

Typical trigger phrases:

  • "create a skill for X"
  • "design a new skill"
  • "refactor this skill"
  • "make this skill reusable"
  • "align README and SKILL behavior"

Core Principles

  • Optimize for reliable agent behavior, not document aesthetics.
  • Make trigger conditions explicit and searchable.
  • Keep instructions executable and verifiable.
  • Avoid implicit project context unless explicitly required.
  • Default to secure-by-construction wording for any instructions that may trigger execution.

Writing Style Rules

  • Use imperative voice.
  • Keep sections short and high-signal.
  • Prefer concrete constraints over abstract advice.
  • Use MUST/NEVER for true invariants (safety, correctness, irreversible failure).
  • For normal guidance, use direct action verbs and clear defaults.
  • Avoid weak modal wording for hard rules (should, could, may, consider, usually).
  • Remove narrative text that does not change execution.

Metadata and Discovery

  • Write frontmatter description in third person.
  • Include both what the skill does and when to use it.
  • Keep trigger terms concrete (file type, task type, user phrasing).
  • Do not put workflow details in description; keep those in the body.

Workflow

Phase 1 - Define Contract

  1. Define who uses the skill and when it triggers.
  2. Define non-negotiable behavior and failure boundaries.
  3. Define deterministic vs heuristic decisions.

Phase 2 - Structure Content

  1. Write trigger and constraints first.
  2. Keep SKILL.md as execution logic and decision constraints.
  3. Move bulky detail to references/ and keep one source of truth per schema.
  4. Add scripts/ only for repeatable deterministic operations.
  5. When composing with other skills, invoke them by name and never copy their instruction bodies.

Phase 2.5 - Outer/Inner Boundary

  1. Treat SKILL.md as outer governance: trigger contract, conservative boundaries, workflow, verification gates, and escalation path.
  2. Treat references/ as inner detail: practical conventions, preferred patterns, examples, and extended rationale.
  3. Do not place decision gates only in references/; keep governing decisions in SKILL.md.
  4. If references/ and SKILL.md conflict, align references/ to SKILL.md.

Phase 3 - Author/Refactor SKILL

  1. Tighten description and trigger wording.
  2. Convert soft guidance into explicit, executable instructions.
  3. Provide one default path first; add alternatives only when necessary.
  4. Remove duplicate or contradictory instructions.

Phase 3.5 - Security Hardening Pass (When Skill Includes Commands/Automation)

  1. Replace direct execution language with review-gated flow (fetch -> review/validate -> explicit approval).
  2. Add trust-boundary disclosure when external services or remote content are involved.
  3. Add forbidden command patterns and safer alternatives.
  4. Add persistence checkpoints for changes that mutate shell/profile/system state.
  5. Add provenance requirements for external artifacts (source rationale, version pin, integrity verification, rollback).
  6. Document residual risk explicitly rather than implying risk elimination.

Phase 4 - Align README (Human-Facing)

  1. Keep README value-first: problem -> value -> example -> activation.
  2. Treat README.md as style charter for future AI output quality.
  3. Keep implementation internals out of README.
  4. Keep claims behavior-accurate.

Phase 5 - Validate

  1. Run available validator for your environment.
  2. If no validator exists, run manual consistency checks.
  3. Confirm no repository-specific assumptions remain unless explicitly intended.

Progressive Disclosure Rules

  • Keep SKILL.md body compact (target under 500 lines).
  • Put advanced or domain-specific detail in references/.
  • Link reference files directly from SKILL.md (avoid deep nested references).
  • For long reference files (100+ lines), add a short table of contents.

README Rules

  • In this skill, README.md means the skill-level README (for example skills/<skill-name>/README.md), not the repository root README.
  • README.md is not required by Agent Skills Specification.
  • README.md is recommended for faster human understanding and adoption.
  • Keep README focused on outcomes, style expectations, and activation cues.

Anti-Patterns

  • Hardcoded local paths as universal defaults.
  • Tool lock-in with no fallback path.
  • Copying external skill instruction bodies instead of invoking the source skill.
  • Workflow summary inside frontmatter description.
  • Duplicated schema definitions across files.
  • Long narrative prose with no executable instruction.
  • Repeating MUST/NEVER for non-critical guidance.
  • Offering too many equivalent options without a default recommendation.
  • Fetch-and-follow phrasing that implies autonomous execution of remote content.
  • Unsafe install examples (curl|bash, wget|bash) without review and verification gates.
  • Persistent environment mutation guidance without explicit confirmation checkpoint.
  • Security logic split across multiple docs with no single source of truth.
  • Keeping conservative boundaries, workflow gates, or escalation rules only in references/.
  • Letting references/ override governing decisions defined in SKILL.md.

Security Patterns (Execution-Sensitive Skills)

Apply these when skills can produce or run commands:

  1. Review Gate Pattern

- Use: fetch -> review/validate -> explicit approval -> execute. - Never imply direct execution from raw URLs.

  1. Trust Boundary Pattern

- Explicitly state outbound data flow to external APIs/services. - Require redaction/sanitization guidance for sensitive content.

  1. Command Safety Pattern

- Define forbidden command patterns. - Provide safer alternatives (pinned versions, checksum/signature, least privilege).

  1. Persistence Checkpoint Pattern

- Prefer session-scoped behavior by default. - Require explicit confirmation before persistent shell/profile mutation.

  1. Provenance Pattern

- Require source rationale, version pin, integrity verification command, rollback/uninstall path.

Required Output Contract for Security Patterns

When applying security patterns, the resulting skill text MUST include explicit, auditable wording:

  1. Review gate text

- MUST include all four steps in order: fetch -> review/validate -> explicit approval -> execute. - MUST include a prohibition sentence equivalent to: "Do not execute remote content directly from URL."

  1. Trust boundary text

- MUST name the external destination (domain/service) when data leaves local context. - MUST include redaction/sanitization instruction before transmission.

  1. Command safety text

- MUST include a forbidden list with concrete examples. - MUST include at least one safer alternative for each high-risk pattern class.

  1. Persistence checkpoint text

- MUST include session-scoped default first. - MUST include explicit confirmation checkpoint before persistent shell/profile change.

  1. Provenance text

- MUST require source rationale, version pin, integrity verification command, and rollback/uninstall path.

Rewrite Templates (Use Verbatim Structure)

  • Replace risky phrase:

- from: Fetch and follow instructions from [URL] - to: Fetch [URL], review and validate steps, ask for explicit approval, then execute.

  • Add prohibition:

- Never execute remote raw content directly from URL.

  • Add persistence checkpoint:

- Use session-scoped change by default; require explicit confirmation before persistent shell rc updates.

Security Verification Checklist (MANDATORY)

Before finalizing an execution-sensitive skill, verify all checks pass:

  1. No fetch-and-follow wording remains.
  2. Forbidden patterns and safer alternatives are both present.
  3. Trust boundary disclosure includes explicit external destination.
  4. Persistent mutation requires explicit confirmation language.
  5. Provenance requirements include all four fields.
  6. Residual risk statement exists and does not claim full elimination.

Consolidation Pattern (Multi-Plan Work)

When multiple plan docs overlap:

  1. Create one consolidated execution plan as single source of truth.
  2. Keep a "Sources Consolidated" section with explicit source paths.
  3. Preserve all unique requirements via phased plan + detailed task matrix.
  4. Prefer deleting superseded plan docs after consolidation to prevent drift.

Done Checklist

  • SKILL.md has explicit trigger contract and executable workflow.
  • SKILL.md defines outer governance boundaries (conservative rules, gates, escalation).
  • Frontmatter description clearly states what + when.
  • README.md defines style expectations for future contributions.
  • references/ contains heavy details only when needed.
  • references/ extends details without conflicting with SKILL.md governance.
  • No stale terms, duplicated schema ownership, or contradictory rules.
  • Validation evidence is recorded (tool-based or manual).
  • Example validation command: npx --yes skills-ref validate./skills/<skill-name>.

See Also

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

33.69%
按下载量换算73

Claude

33.77%
按下载量换算73

Cursor

18.16%
按下载量换算39

Gemini CLI

10.04%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/shihyuho/skills --skill skill-design 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills