Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

sdd-design设计

Agent Skill

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

总安装

465

周安装

19

GitHub Stars

公开资料未说明

下载量

150
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/fearovex/claude-config --skill sdd-design

简介

sdd-design 产出技术设计方案,明确架构决策、数据流和文件修改计划。

  • 适用于连接需求与实现的桥梁建设阶段。
  • 必须记录技术选型理由及其权衡过程。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 建议与开发团队同步评审后再进入编码环节。
  • sdd-design 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

sdd-design

Produces the technical design with architecture decisions, data flow, and a file change plan.

Triggers: /sdd-design <change-name>, technical design, change architecture, sdd design


Purpose

The design defines HOW to implement what the specs say the system MUST do. It is the bridge between requirements and code. It documents technical decisions and their justification.


Process

Skill Resolution

When the orchestrator launches this sub-agent, it resolves the skill path using:

1. .claude/skills/sdd-design/SKILL.md     (project-local — highest priority)
2. ~/.claude/skills/sdd-design/SKILL.md   (global catalog — fallback)

Project-local skills override the global catalog. See docs/SKILL-RESOLUTION.md for the full algorithm.


Step 0 — Load project context + Spec context preload

Follow skills/_shared/sdd-phase-common.md Section F (Project Context Load) and Section G (Spec Context Preload). Both are non-blocking.


Step 1 — Read prior artifacts

I must read:

  • The proposal artifact:

- mem_search(query: "sdd/{change-name}/proposal")mem_get_observation(id). - If not found and Engram not reachable: proposal content passed inline from orchestrator.

  • The spec artifact:

- mem_search(query: "sdd/{change-name}/spec")mem_get_observation(id). - If not found and Engram not reachable: spec content passed inline from orchestrator.

  • ai-context/architecture.md if it exists
  • ai-context/conventions.md if it exists

Then I read real code:

  • Relevant entry points
  • Files that will be affected according to the proposal
  • Existing patterns to follow (not reinvent)
  • Existing tests (they reveal current contracts)

Step 2 — Design the technical solution

I evaluate the solution considering:

  • Patterns already used in the project (prefer consistency)
  • Minimal impact on existing code
  • Testability
  • Reversibility (rollback plan from the proposal)

Skills Registry cross-reference

When recommending a skill, library, or technology pattern in the design, I MUST check the project Skills Registry extracted in Step 0 and follow these rules:

  • Registered skill: reference it by its exact registered name (e.g., typescript, react-19).
  • Global catalog skill, not registered in project: mark it as optional with a note, e.g. [optional — not registered in project; add via /skill-add <name>].
  • Skill not in the global catalog: state it as a new dependency and flag it for review.

This check applies to the Technical Decisions table, the Testing Strategy table, and any inline recommendations in the design narrative. It ensures design output stays aligned with the project's declared toolset.

Step 3 — Create design.md

I persist the design artifact to engram:

Call mem_save with topic_key: sdd/{change-name}/design, type: architecture, project: {project}, content = full design markdown. Do NOT write any file.

If Engram MCP is not reachable: skip persistence. Return design content inline only.

Content format:

# Technical Design: [change-name]

Date: [YYYY-MM-DD]
Proposal: engram:sdd/[name]/proposal

## General Approach

[High-level description of the technical solution in 3-5 lines]

## Technical Decisions

| Decision   | Choice           | Discarded Alternatives         | Justification     |
| ---------- | ---------------- | ------------------------------ | ----------------- |
| [decision] | [what is chosen] | [alternative A, alternative B] | [why this choice] |

## Data Flow

[ASCII diagram or description of the flow]

Example:

Request → Middleware → Controller → Service → Repository → DB ↓ Validator (Zod) ↓ Response DTO

## File Change Matrix
| File | Action | What is added/modified |
|------|--------|------------------------|
| `src/modules/auth/auth.service.ts` | Modify | Add `refreshToken()` method |
| `src/modules/auth/auth.controller.ts` | Modify | New endpoint POST /auth/refresh |
| `src/modules/auth/dto/refresh.dto.ts` | Create | DTO for refresh request |
| `src/modules/auth/auth.module.ts` | Modify | Register new provider |
| `tests/auth/refresh-token.spec.ts` | Create | Tests for the new endpoint |

## Interfaces and Contracts
[Type definitions, interfaces, DTOs, schemas to be created]

// Example interface RefreshTokenRequest { refreshToken: string; }

interface RefreshTokenResponse { accessToken: string; expiresIn: number; }


## Testing Strategy

| Layer | What to test | Tool |
| --- | --- | --- |
| Unit | [service/function] | [jest/vitest/pytest] |
| Integration | [endpoint/module] | [supertest/httpx] |
| E2E | [full flow if applicable] | [playwright/cypress] |

## Migration Plan

[If there are changes to DB, schema, or existing data:]

- Step 1: [migration script]
- Step 2: [gradual rollout if applicable]
- Step 3: [post-cleanup]

[If no migration: "No data migration required."]

## Open Questions

[Aspects that need clarification before implementing]

- [question]: [impact if not resolved]

[If none: "None."]

Step 4 — ADR Detection and Generation

This step is non-blocking: any failure produces a warning in the output, never status: blocked or status: failed.

  1. Scan for significant decisions: read the Technical Decisions table in the newly created design.md. For each row, check whether the text (across all columns) contains any of the following keywords (case-insensitive):

pattern, convention, cross-cutting, replaces, introduces, architecture, global, system-wide, breaking

  1. No match → skip silently: if no row matches any keyword, do nothing and produce no output for this step.
  1. Match found → generate ADR:

a. Prerequisite check: if docs/templates/adr-template.md does not exist OR docs/adr/README.md does not exist, log the warning "ADR infrastructure not found (docs/templates/adr-template.md or docs/adr/README.md missing) — skipping ADR generation" and stop this step. b. Determine next ADR number: count existing files matching docs/adr/[0-9][0-9][0-9]-*.md. The next number is count + 1, zero-padded to 3 digits (e.g., 001, 012, 100). c. Derive slug: <NNN>-<change-name>[-<first-matched-keyword>], all lowercase, spaces replaced with hyphens, non-alphanumeric characters (except hyphens) removed, truncated to 50 characters. d. Copy template: copy docs/templates/adr-template.md to docs/adr/<slug>.md. e. Pre-fill content in the new ADR file: - Title (H1): derived from the slug (replace hyphens with spaces, title-case) - Status: Proposed - Context section: content from the Justification column of the first matched row - Decision section: content from the Choice column of the first matched row f. Update index: append a new row to the ADR index table in docs/adr/README.md: | [NNN] | [Title] | Proposed | [YYYY-MM-DD] | [brief one-line context] | g. Artifacts: add docs/adr/<slug>.md to the artifacts list.


Examples of well-documented decisions

Well documented

| Input validation | Zod at controller layer | Class-validator, manual |
The project already uses Zod for DB schemas (Drizzle).
Maintaining consistency avoids two validation systems. |

Poorly documented

| Validation | Zod | others | It's better |

Useful ASCII diagrams

# Authentication flow
Client → POST /auth/login
            ↓
        AuthController
            ↓
        AuthService.validateCredentials()
            ↓
        UserRepository.findByEmail()
            ↓
        bcrypt.compare(password, hash)
            ↓ (success)
        JwtService.sign(payload)
            ↓
        Response { token, refreshToken }

# Module structure
auth/
├── auth.module.ts
├── auth.controller.ts
├── auth.service.ts
├── strategies/
│   ├── jwt.strategy.ts
│   └── local.strategy.ts
└── dto/
    ├── login.dto.ts
    └── refresh.dto.ts

Step 5 — Summary to orchestrator

I return a clear executive summary to the orchestrator with all artifacts produced (design.md and any ADR file created in Step 4).


Output to Orchestrator

{
  "status": "ok|warning|blocked",
  "summary": "Design for [change-name]: [N] affected files, approach [brief description], risk [level].",
  "artifacts": ["engram:sdd/{change-name}/design"],
  "next_recommended": ["sdd-tasks (requires spec + design completed)"],
  "risks": ["[technical risk if found]"]
}

Rules

  • ALWAYS read real code before designing — never assume the structure
  • Every decision MUST have justification (the "why", not just the "what")
  • Follow existing project patterns unless the change explicitly corrects them
  • The file matrix must be concrete (real paths, not "some auth file")
  • ASCII diagrams are preferable to long descriptions
  • If I detect that the proposal is incompatible with the current architecture, I report it as a blocker
  • I do NOT write implementation code — that is sdd-apply

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.95%
按下载量换算54

Claude

28.71%
按下载量换算43

Cursor

17.63%
按下载量换算26

Gemini CLI

8.76%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills