Token导航 LogoToken导航

Agent Skill · 研究检索

subsystem-design-spec(子系统设计规范)

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

subsystem-design-spec 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 57,864。

总安装 423周安装 18GitHub Stars 公开资料未说明下载 148核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mpurbo/purbo-skills --skill subsystem-design-spec

这个 Skill 是做什么的

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

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。当前顶部介绍:subsystem-design-spec 用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。当前底部简介为空,暂无补充说明。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

subsystem-design-spec 怎么安装?

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

subsystem-design-spec 支持哪些 AI 工具?

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

subsystem-design-spec 需要什么权限?

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

subsystem-design-spec 是免费的吗?

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

subsystem-design-spec 用的人多吗?

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

subsystem-design-spec 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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调用外部服务未明确有提醒
subsystem-design-spec

子系统设计规范 · 本页

423—执行命令未明确通过

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

SKILL.md 原文

Subsystem Design Spec

A Subsystem Design Spec is the bridge between a high-level System Spec and OpenSpec's change workflow. It takes one subsystem from the system-level architecture and produces a comprehensive, implementation-ready specification with opinionated progressive phases.

Core principle: Define contracts and phases before any code exists. Each phase is independently testable, contract-bounded, and follows FP progression: types -> pure functions -> effects -> composition.

When to Use

  • A System Spec (high-level) exists with subsystems identified
  • You're ready to deep-dive on one subsystem before starting OpenSpec
  • You're creating the second+ subsystem spec and need convention consistency

Do NOT use for:

  • High-level system specs (use superpowers:brainstorming)
  • OpenSpec artifacts (proposal, design, tasks) — OpenSpec handles those
  • Specs that don't decompose into implementation phases

Process

Step 1: Load Conventions

Before writing anything, check for a project conventions file:

Search: docs/conventions.md, docs/spec-conventions.md

If conventions file exists: Load it. It contains established naming patterns, section structure, phase coding, and cross-subsystem contracts. Skip scanning individual specs — the conventions file is the single source of truth.

If no conventions file exists: Scan for prior subsystem specs:

Search: docs/**/*-spec*.md, docs/**/*-design*.md, docs/prd/**/*.md

If prior specs are found, extract conventions from them:

  • Section structure and depth — which sections, how detailed
  • Phase coding scheme — e.g., S1.1, S1.2 (carry forward S2.1, S2.2, etc.)
  • Naming patterns — design decisions (D1, D2...), user stories (US-{n}), acceptance criteria (AC-{n}.{y})
  • Cross-subsystem contracts — types, traits, or schemas already defined
  • Phase granularity — typical size estimates, task counts per phase

Present extracted conventions to the user before proceeding. Follow-on subsystem specs MUST maintain consistency with established conventions.

Step 2: Reference the System Spec

Load the parent System Spec section for this subsystem. Extract:

  • Subsystem purpose and boundaries
  • Input/output contracts with adjacent subsystems
  • Technology choices already decided at system level
  • Architecture principles (FP-first, immutability, etc.)

Step 3: Guide Document Creation

Create the subsystem design spec iteratively with the user. The document follows this structure (all sections required unless marked optional):

# S{n} {Subsystem Name} — Subsystem Design Spec

**Version:** x.y
**Status:** Draft
**Date:** YYYY-MM-DD
**Parent Spec:** [System Spec Name](path) (Section N, S{n})

---

## 1. Overview
### 1.1 Goals
### 1.2 Non-Goals

## 2. Architecture
### 2.1 Component Diagram (mermaid)
### 2.2 Key Design Decisions
    D1 — {Title}: rationale, tradeoffs
    D2 — {Title}: rationale, tradeoffs
    ...

## 3. User Stories
    US-1: {Story} with AC-1.1, AC-1.2, ...
    US-2: {Story} with AC-2.1, AC-2.2, ...
    ...

## 4. Detailed Design
    Per-component subsections with behavior, schemas, flows

## 5. Output Contract
    Data schemas, file structures, API contracts, column definitions,
    constraints — the interface downstream consumers depend on

## 6. Error Handling
    Exit codes, error categories, handling strategy per category

## 7. Testing Strategy
    ### 7.1 Unit Tests — what's covered, key scenarios
    ### 7.2 Integration Tests — with mocks, full flows
    ### 7.3 End-to-End Tests — opt-in, real external services

## 8. Performance Considerations

## 9. Future Considerations (out of scope for v1)

## 10. Dependencies
    ### 10.1 Packages/Crates
    ### 10.2 External Dependencies

## 11. Implementation Phases
    (See Phase Design Discipline below)

## 12. Acceptance Summary
    Numbered list of acceptance conditions

## Appendices (optional)
    Reference material, API response structures, etc.

Step 4: Apply Phase Design Discipline (Section 11)

This is the core opinionated section. Each phase must satisfy:

  • Independently testable — verifiable with mocks, no prior phase fully needed
  • Contract-bounded — exposes explicit types/traits/interfaces for downstream
  • Reviewable — a human can review the phase's OpenSpec output in <=30 minutes
  • Sized for OpenSpec — each phase becomes one OpenSpec change with <=8 tasks
Phase Template
### S{n}.{m}: {Phase Name}

**Scope:** What this phase delivers — concrete, verifiable
**Size estimate:** ~N files, ~N lines
**Contracts consumed:** Prior phase contracts (or "None")
**Contracts exposed:**
- Type/trait/interface names and signatures
**Gate:** Exact command to verify (e.g., `cargo build && cargo test`)
**Verification:** How a human reviewer manually verifies this phase works
  beyond the gate command — what to inspect, what to run, what output to expect.
  This becomes the reviewer's checklist during the human review checkpoint.
**Review tier:** gate-only | spot-check | full-review (see Review Tiers below)
**Dependencies:** Which prior phases, and what specifically (contracts only)
Phase Ordering — FP Progression
  1. Phase 1 — always: Domain types, core traits/interfaces, project scaffolding. No business logic. Only the type-level skeleton.
  2. Early phases (parallel-safe): Config parsing, state management, I/O utilities, rate limiting — independent modules consuming Phase 1 types.
  3. Middle phases: Pure-core logic, then effects/IO at boundaries. Concrete trait implementations (e.g., data source providers).
  4. Final phase: Integration wiring, CLI/main entry point, dependency assembly. The imperative shell.
Phase Design Checklist

Before finalizing phases:

  • Phase 1 defines ALL shared types and trait contracts
  • Phases 2..N-1 are maximally independent (parallelizable where possible)
  • Each phase has <=8 OpenSpec tasks (split if more)
  • Contract types are defined BEFORE implementation that uses them
  • Phase N can be tested with mocks even if Phase N-1 isn't implemented
  • No phase has hidden coupling to another phase's internals
  • Each phase has a concrete gate command
  • Each phase has a verification section describing how to manually test it
  • Each phase has a review tier assigned (gate-only, spot-check, full-review)
  • Phase dependency graph is included showing parallelization opportunities
Phase Dependency Graph

Include a text diagram showing phase dependencies:

S{n}.1 (Types & Contracts)
 |-- S{n}.2 (Component A)
 |-- S{n}.3 (Component B)      <- parallel with S{n}.2
 |-- S{n}.4 (Component C)      <- parallel with S{n}.2, S{n}.3
 |    |
 |    |-- S{n}.5 (Provider X)  <- depends on S{n}.4
 |
 |-- S{n}.6 (Orchestration)    <- depends on S{n}.2-S{n}.4 contracts
      |
      --- S{n}.7 (CLI Wiring)  <- depends on all

Parallelizable: S{n}.2, S{n}.3, S{n}.4 can proceed in parallel after S{n}.1.
Review Tiers

Each phase is assigned a review tier that determines how much human attention it needs at the checkpoint. This prevents the human from becoming the bottleneck in a large system with many phases.

TierWhen to UseWhat Happens at Checkpoint
gate-onlyScaffolding, boilerplate, type definitions, infrastructure. Low risk, mechanical output.Gate command passes → auto-proceed. Human is notified but doesn't need to act.
spot-checkWell-constrained phases with clear contracts. Moderate risk.Human glances at the diff, verifies gate passed, proceeds unless something looks off.
full-reviewOrchestration, business logic, external integrations, security-sensitive code. High risk.Human reads the diff, runs verification guide, thinks about edge cases before proceeding.

Guidelines for assigning tiers:

  • Phase 1 (types & scaffolding): gate-only — if it compiles and tests pass, the types are correct
  • Pure utility phases (rate limiting, CSV writer): spot-check — contracts constrain the implementation, quick glance suffices
  • External integration phases (API clients, data sources): full-review — HTTP behavior, error handling, and edge cases need human judgment
  • Orchestration / composition phases: full-review — this is where subtle bugs hide
  • CLI / wiring phases: spot-check — mechanical assembly of already-reviewed components

Step 5: Produce Conventions File

After the first subsystem spec is complete and reviewed, produce (or update) a lightweight conventions file at docs/conventions.md. This file is the single source of truth for subsequent subsystems — they read this instead of scanning all prior specs.

# Project Conventions

## Naming
- Subsystem codes: S1 (Downloader), S2 (DB Sync), S3 (Stream Ingest), ...
- Phase codes: S{n}.{m} (e.g., S1.1, S1.2)
- Design decisions: D{n} — {Title} with rationale
- User stories: US-{n} with acceptance criteria AC-{n}.{y}

## Document Structure
<list the section structure established in the first subsystem spec>

## Phase Design
- Ordering: types -> pure functions -> effects -> composition
- Max tasks per phase: 8
- Each phase exposes contracts consumed/exposed
- Phase dependency graph required

## Established Contracts
<list cross-subsystem contracts defined so far>
- S1 output: CSV files at data/{market}/{ticker}/{resolution}.csv (Section 5)
- S1 types in sati-contracts: OhlcvBar, TickerInfo, Resolution, CsvRecord

Update this file after each subsystem spec is finalized. Add new cross-subsystem contracts and any convention refinements. Keep it under 50 lines.

Step 6: Review and Iterate

Present the draft spec to the user. Iterate on:

  • Phase boundaries — are they clean? Any hidden coupling?
  • Contract completeness — are all inter-phase interfaces explicit?
  • Design decisions — are tradeoffs documented?
  • Size estimates — realistic for the scope?

Naming Conventions

ElementFormatExample
Subsystem codeS{n}S1, S2, S3
Phase codeS{n}.{m}S1.1, S1.2, S2.3
Design decisionD{n}D1, D2, D3
User storyUS-{n}US-1, US-2
Acceptance criterionAC-{story}.{criterion}AC-1.1, AC-1.2, AC-3.4
Spec file{project}-s{n}-{name}-v{version}.mdsati-s1-downloader-v1.md

Anti-Rationalization Table

ThoughtReality
"The system spec is detailed enough"System specs define boundaries. Design specs define internals. Different levels.
"I'll figure out phases during implementation"Phases defined after coding starts are retrofitted, not designed. Contracts leak.
"These two phases are too small, I'll combine them"Small phases are a feature. They enable focused review and parallel work.
"The contract is obvious, no need to write it"Explicit contracts enable mock testing and subsystem isolation. Write it.
"I'll add the dependency graph later"The graph exposes parallelization. Without it, phases are assumed sequential.
"This subsystem is simple, skip the full structure"Simple subsystems still need contracts, phases, and testing strategy.
"I'll just follow the same structure as last time"Read the existing specs and extract conventions explicitly. Memory drifts.

平台分布

Codex

34.08%
按下载量换算50

Claude

29.84%
按下载量换算44

Cursor

19.13%
按下载量换算28

Gemini CLI

10%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

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

继续浏览同类 Skills