Token导航 LogoToken导航

Agent Skill · 研究检索

reference-design(参考设计)

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

reference-design 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 7,919。

总安装 17,697周安装 709GitHub Stars 227下载 5,729核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/diodeinc/pcb --skill reference-design

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。适用于移动端、Web 或桌面端的 UI 重构,包括组件层级梳理和动效建议。提供 Figma/Sketch 元素命名规范、间距系统和色彩变量参考。

安装命令:npx skills add https://github.com/diodeinc/pcb --skill reference-design。设计建议需结合品牌指南和业务目标,避免纯美学导向的调整。

来源仓库内路径:skills/reference-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/diodeinc/pcb --skill reference-design;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

reference-design 怎么安装?

在终端执行 npx skills add https://github.com/diodeinc/pcb --skill reference-design。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

reference-design 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

reference-design 需要什么权限?

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

reference-design 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

reference-design 用的人多吗?

公开数据是累计安装 17,697 次,近一周安装 709 次,下载 5,729 次,GitHub 227 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

reference-design 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
reference-design

参考设计 · 本页

17,697227需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Component Package Design

Grow component packages beyond a generated wrapper when the part benefits from reusable surrounding circuitry. A good component package captures the support circuitry, default mode, key equations, layout-sensitive notes, and evidence needed to use the part confidently.

Hard Rules

  1. Reuse before create. Search existing registry/workspace packages first.
  2. New work lives in components/<NAME>/, never in a separate reference/ tree. Legacy reference/ packages in the registry are read-only examples — inspect them for structure and API shape, but don't copy their placement.
  3. The .kicad_sym file is the source of truth for the primitive component interface and pin structure. Keep the .zen API aligned to it.
  4. The .zen docstring is the canonical design document. The README is for usage examples only.
  5. Review pcb build warnings, especially BOM/sourceability warnings such as bom.match_generic.
  6. Don't guess ambiguous passives, straps, sequencing, or oscillator details. Get evidence or stop and ask.
  7. Imitate only strong exemplars. Weak/generated packages are useful for pin lookup and starting structure, not authoring style.
  8. Preserve # pcb:sch... comments (tool-managed schematic layout metadata). When renaming a referenced component, module instance, or net, update the matching # pcb:sch names.
  9. If an existing registry example conflicts with this skill, this skill wins.

Reuse Before Create

  1. Search registry modules and component packages with component-search.
  2. Search registry components or import the IC if it is missing, then inspect close matches with pcb doc --package... and by reading their source.
  3. If an existing package is close, prefer using it or patching it in place.
  4. Grow a package beyond its generated signature only when it adds real reusable design judgment.

Do not grow the package yet if:

  • the datasheet does not clearly specify the required support circuitry
  • the topology still depends on unresolved system-level choices
  • the result would mostly duplicate an existing package with only minor edits
  • the IC symbol/component quality is too poor to wire confidently

Strong Vs Weak Exemplars

Strong exemplars usually have most of these traits:

  • minimal, integrator-facing IO instead of exposing every raw IC pin
  • typed configs for real design choices
  • passive values traceable to datasheet tables, equations, or app-note guidance
  • optional features modeled cleanly, with evidence notes for non-obvious choices
  • sourceable generic choices or documented house-part compromises
  • useful usage examples, and layout/testbench artifacts when complexity warrants them

Weak/generated exemplars usually show warning signs such as:

  • mostly raw IC pins exposed directly
  • little or no design rationale, or magic values with no evidence
  • no attempt to capture the intended application circuit
  • no sourceability thinking
  • README content that is generic, marketing-like, or duplicated from the code

Use weak examples for package API lookup only.

Quality Bar

A high-quality component package is electrically faithful, narrowly scoped, reasonably sourceable, and evidence-backed. Treat the .zen file as the design artifact, not just executable code.

Evidence Extraction

Extract at least:

  • the exact typical application circuit or recommended topology
  • supply rails, limits, sequencing, and required external passives
  • strap, mode-select, reset, enable, bias, compensation, and timing networks
  • equations for programmable values and any datasheet-recommended example points
  • oscillator or crystal requirements, sensitive analog/high-speed connections, and thermal/layout guidance
  • any package-specific caveats that change how the design should be exposed

When the datasheet is ambiguous, look for app notes, eval schematics, or nearby validated registry designs before guessing.

Define The Public API First

Package API rules:

  • Expose the application-level interface, not the raw pinout.
  • Keep layout-sensitive or implementation-detail nodes internal unless external access is genuinely required.
  • Expose configs only for choices an integrator should reasonably tune; do not expose every passive.
  • Prefer one narrow, coherent operating mode over a sprawling universal module.
  • If two operating modes materially change topology, consider separate designs instead of config explosion.

Scaffold And Implement

Directory layout and naming

Name the component package from the functional MPN, not the full orderable SKU.

Use these rules:

  • Start from the manufacturer part number.
  • Keep functional variation in the name: electrical options and package/pinout differences stay.
  • Replace non-functional variation with lowercase x: temperature grade, reel/tray packaging, RoHS/Pb-free, and other ordering-only suffixes.
  • If the only wildcarded characters would be trailing non-functional suffixes, omit the trailing x.
  • If there is only one functional variant, do not add an unnecessary x.
  • If the part exists in multiple footprint or pinout options, make a separate component package for each one.
  • If multiple manufacturers make footprint-compatible parts with different package suffixes, use the common base name plus a clear package suffix.

Examples:

  • DP83867ISRGZR -> DP83867
  • TPS3430WDRCR -> TPS3430WDRC
  • compatible cross-vendor variants with different package suffixes -> L78L05_TO92

Use <NAME> for the resolved package name from the rules above, for example:

components/<NAME>/
├── <NAME>.zen
├── <NAME>.kicad_sym
├── pcb.toml
└── README.md

Scaffold with pcb new package components/<NAME> when creating a fresh package. If the component already exists, evolve the existing components/... package instead of creating a sibling package.

File structure

Organize the .zen file in this order:

  1. Top-of-file docstring
  2. load()s and helper definitions
  3. io() and config() definitions
  4. internal nets and imports
  5. main IC instantiation and supporting circuitry grouped by function
  6. layout / tool-managed metadata

Group support circuitry by electrical function: power, decoupling, feedback, straps, clocks, reset, interface conditioning, protection.

Keep the # pcb:sch... block intact and in sync with renames. Treat the symbol file as canonical for pins and primitive interface naming.

Docstring policy

Include:

  • what circuit/application mode this module implements
  • the exact IC/package or family it targets
  • the intended operating envelope, interfaces, configs, and assumptions
  • evidence notes for important choices and non-obvious layout guidance
  • sourceability compromises such as house-part rounding when relevant

Keep this in the .zen file so the code and rationale stay together.

Comment policy

Good comment targets:

  • datasheet section/table/equation references
  • justification for rounded/clamped values
  • optional-feature stuffing strategy or layout-sensitive placement guidance

Avoid comments that merely restate the code.

Sourceability And BOM Quality

Read registry/.pcb/stdlib/bom/match_generics.zen when sourceability choices matter. The stdlib matcher only covers a constrained house catalog, so generic values, packages, dielectric choices, and voltage ratings affect whether parts match.

Use these rules:

  1. Treat pcb build warnings as review items, especially bom.match_generic.
  2. Prefer generic values/package/voltage combinations that match house parts when that does not compromise the design.
  3. If the datasheet value does not match house parts, a nearby house value is acceptable only when the change is technically defensible.
  4. Whenever you round, clamp, or substitute to land on a house-matchable value, document the reason in the docstring or a nearby comment.
  5. If a generic cannot reasonably match, do not silently force a workaround. Ask the user whether they want to specify an explicit part or suppress the warning with justification.

Typical fixes are choosing the nearest valid house value above a datasheet minimum, clamping computed values to supported parts, or adjusting package/voltage choices without violating the design. Use pcb bom <path> -f json when you need sourcing detail beyond the matcher.

Build Iteratively

Build after every major block, not just at the end.

pcb build components/<NAME>

Typical problems:

  • wrong interface field names or package wiring
  • missing load()s, bad stdlib assumptions, or ambiguous optional-feature modeling
  • unmatched generics or values that are plausible electrically but not sourceable

Format when done:

pcb fmt components/<NAME>

README Policy

Use it for:

  • realistic instantiation examples
  • different application contexts when they materially change integration
  • concise consume-the-module notes only

Do not put general feature lists, design notes, or long rationale sections in the README. That belongs in the .zen docstring.

Minimal README shape:

# <NAME>

## Usage

MyRef = Module("github.com/diodeinc/registry/components/<NAME>/<NAME>.zen")

MyRef( name="U1", VIN=vin, VOUT=vout, GND=gnd, )


## Other Usage Examples

Add additional examples only when they show materially different integration patterns.

Stop Conditions

Stop and ask or gather more evidence when:

  • the datasheet is unclear about a required passive, strap, or topology choice
  • the design depends on unresolved system-level requirements
  • the imported component/symbol quality is too poor to wire safely
  • pcb build warnings suggest unresolved correctness or sourceability issues
  • the design is drifting into a generic breakout instead of a reference module

Final Checklist

  1. Existing registry/workspace packages were checked first.
  2. The package implements one coherent reusable design around the part.
  3. The symbol file remains the source of truth for the primitive component interface.
  4. The docstring explains the design, evidence, and any sourceability compromises.
  5. pcb build was run and warnings were reviewed.
  6. pcb fmt was run, and the README contains usage examples only.

平台分布

Codex

36.63%
按下载量换算2,099

Claude

30.78%
按下载量换算1,763

Cursor

18.4%
按下载量换算1,054

Gemini CLI

9.79%
按下载量换算561

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills