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

software-design软件设计

Agent Skill

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

总安装

269

周安装

11

GitHub Stars

12

下载量

87
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化,适合整理页面结构或生成 UI 方案。

  • 它能检查视觉一致性或改进组件层级,使用时需结合现有品牌、设计系统和用户任务。
  • 不应只堆装饰元素,涉及真实页面改动时应通过截图或浏览器预览检查文本溢出和对齐。
  • 通过 npx skills add https://github.com/jackchuka/skills --skill software-design 安装。
  • 适用于界面设计类任务,需确保与项目规范一致。

SKILL.md

Software Design Philosophies

Opinionated guidance on classic design principles and architectural patterns, with concrete code examples and trade-off analysis.

When Applying Design Guidance

  1. Diagnose first — Identify the specific design tension (coupling, cohesion, complexity, rigidity)
  2. Name the principle — State which principle applies and why
  3. Show the trade-off — Every principle has a cost; state it explicitly
  4. Demonstrate with code — Before/after examples grounded in the user's codebase context

Core Stance: Pragmatism Over Dogma

  • Principles are heuristics, not laws. Apply them when they reduce complexity; skip them when they add it.
  • Prefer boring, obvious code over clever, abstract code.
  • The best design is the simplest one that handles current requirements. Speculative generality is a code smell.
  • Three concrete duplications are better than one wrong abstraction (Rule of Three).

Classic Principles Quick Reference

PrincipleOne-linerApply when...Skip when...
SRPOne reason to changeA module mixes unrelated concernsSplitting creates indirection with no clarity gain
OCPExtend, don't modifyYou need plugin-style variationYou're still discovering requirements
LSPSubtypes must be substitutableBuilding type hierarchiesUsing composition instead
ISPSmall, focused interfacesClients depend on methods they don't useInterface has natural cohesion
DIPDepend on abstractionsYou need testability or swappable implementationsOnly one implementation exists or will ever exist
DRYSingle source of truthIdentical logic with identical reasons to changeSimilar-looking code with different reasons to change
KISSSimplest solution that worksAlways the defaultNever skip this
YAGNIDon't build it until you need itTempted to add "just in case" featuresBuilding foundational APIs with known extension points

For detailed explanations, examples, and anti-patterns for each principle, see references/principles.md.

Architectural Patterns Quick Reference

PatternBest forAvoid when
Clean/HexagonalLong-lived systems with complex domainsSimple CRUD apps, prototypes
DDDComplex business logic with domain expertsTechnical/infrastructure-heavy systems
Event-DrivenDecoupled workflows, audit trailsSimple request/response flows
CQRSRead/write asymmetry, complex queriesUniform read/write patterns
Monolith-firstNew projects, small teamsAlready proven need for independent deployment
MicroservicesIndependent team deployment at scaleSmall team, shared database, tight coupling

For detailed guidance on each pattern including structure, trade-offs, and code examples, see references/architecture.md.

Decision Framework

When advising on design, follow this priority order:

  1. Does it work correctly? — Correctness over elegance
  2. Can someone else read it? — Clarity over cleverness
  3. Can it be tested? — Testability over convenience
  4. Can it change safely? — Isolation of change over DRY
  5. Does it perform adequately? — Performance only when measured

Common Design Smells and Remedies

SmellLikely violationRemedy
God class / functionSRPExtract cohesive responsibilities
Shotgun surgery (one change touches many files)Low cohesionColocate related logic
Feature envy (method uses another object's data more than its own)Misplaced responsibilityMove method to the data owner
Primitive obsessionMissing domain conceptIntroduce a value type
Deep inheritance treesFavoring inheritance over compositionFlatten with composition/interfaces
Boolean parametersSRP, OCPSplit into separate functions
Speculative generalityYAGNIDelete unused abstractions

Offering Guidance

When reviewing or advising:

  • Reference the specific principle by name with a one-sentence rationale
  • Show a minimal before/after code example in the user's language
  • State the trade-off honestly ("this adds an interface but isolates the database dependency")
  • If multiple principles conflict, state the tension and recommend based on context
  • Load references/principles.md for deep-dive principle discussions
  • Load references/architecture.md for architectural pattern guidance

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

32.36%
按下载量换算28

Claude

28.47%
按下载量换算25

Cursor

19.17%
按下载量换算17

Gemini CLI

10.06%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills