Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计通过

compoundcompound 效率

Agent Skill

compound 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

261

周安装

11

GitHub Stars

1

下载量

92
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sebastiaanwouters/dotagents --skill compound

简介

用于高效检索项目知识与设计系统信息,提升上下文理解速度。

  • 支持快速加载设计令牌、UI 模式和组件规范,保持跨页面一致性。
  • 适用于迭代开发中快速获取历史决策与 UI 约束,减少重复调研。
  • 可通过命令存储新发现的设计规则或组件用法,形成团队知识库。
  • 安装前建议确认是否有写入权限以更新本地记忆文件。

SKILL.md

Compound 🧠

Efficient project knowledge and design system management. Retrieve context fast, store learnings without bloat, maintain consistent UI across pages.

Commands

CommandWhenPurpose
compound retrieveStart of iterationFind relevant knowledge for current task
compound storeEnd of iterationPersist learnings not captured in code
compound design retrieveBefore building UILoad design system tokens and patterns
compound design storeAfter UI decisionsPersist design tokens, patterns, components
compound design syncCross-page workEnsure consistency with existing UI

Compound Retrieve

Goal: Get relevant context in <30 seconds with minimal token waste.

Step 1: Index Scan

# List all knowledge files (cached mentally for the session)
find docs -name "*.md" -type f 2>/dev/null | head -50

Step 2: Keyword Extraction

From the current ticket/task, extract 3-5 keywords:

  • Entity names (User, Auth, API)
  • Technical terms (JWT, WebSocket, migration)
  • Domain concepts (billing, notifications)

Step 3: Targeted Grep

# Search for keywords in docs (parallel, fast)
grep -ril "keyword1\|keyword2\|keyword3" docs/ | head -10

Step 4: Smart Read

  • Small files (<100 lines): Read fully
  • Large files: Read only matching sections (grep -B2 -A5)
  • Index files (README, index.md): Skim for pointers

Step 5: Relevance Filter

Only load knowledge that's directly applicable:

  • ✅ "JWT refresh tokens expire after 7 days" (for auth task)
  • ❌ "We chose React over Vue" (not relevant to auth)

Output: Mental model of relevant project context, ready to apply.


Compound Store

Goal: Persist valuable learnings without creating duplicates or bloat.

Step 1: Identify Storable Knowledge

Only store what code comments can't capture:

  • ✅ Why we chose X over Y (decision rationale)
  • ✅ Non-obvious gotchas discovered during implementation
  • ✅ Cross-component relationships not visible in one file
  • ✅ External API quirks, rate limits, undocumented behavior
  • ❌ What the code does (that's what code is for)
  • ❌ How to run commands (put in README or AGENTS.md)

Step 2: Duplicate Check (CRITICAL)

Before writing ANYTHING, search for existing coverage:

# Check if topic already exists
grep -ril "topic keyword" docs/

# Check similar filenames
find docs -name "*keyword*" -type f

If found:

  • Read the existing file
  • UPDATE it rather than create new
  • Merge new info into existing sections
  • Add/update the updated: frontmatter date

Step 3: Choose Location

Content TypeLocationExample
Architecture decisionsdocs/arch/docs/arch/auth-flow.md
Why X over Ydocs/decisions/docs/decisions/adr-001-db-choice.md
Gotchas, edge casesdocs/gotchas/docs/gotchas/jwt-refresh-edge-cases.md
Reusable patternsdocs/patterns/docs/patterns/error-handling.md
External API notesdocs/integrations/docs/integrations/stripe-webhooks.md
Design systemdocs/design/docs/design/tokens.md

Step 4: File Format

---
tags: [searchable, terms, here]
updated: 2024-01-23
related: [../arch/auth.md, ../patterns/error-handling.md]
---

# Clear Descriptive Title

## Context
[Why this knowledge exists - 1-2 sentences]

## Key Points
- Bullet points for scannability
- One concept per bullet
- Include specifics (numbers, names, versions)

## Examples (if applicable)
[Code or scenarios that illustrate the point]

## See Also
- [Related doc](../path/to/related.md)

Step 5: Size Management

Per-file limits:

  • Target: 50-150 lines per file
  • Max: 200 lines (split if larger)
  • One focused topic per file

Folder hygiene:

# Check folder sizes periodically
find docs -name "*.md" | wc -l  # Should stay <50 files

# Find potential duplicates (similar names)
ls docs/**/*.md | sort | uniq -d

If docs/ grows too large (>50 files):

  1. Consolidate related small files
  2. Archive obsolete knowledge to docs/_archive/
  3. Merge overlapping content

Compound Design

Goal: Maintain consistent UI across all pages through tracked design tokens, patterns, and component decisions.

Design System Location

All design system knowledge lives in docs/design/:

FilePurposeExample Content
docs/design/tokens.mdDesign tokensColors, spacing, typography, shadows, breakpoints
docs/design/components.mdComponent patternsButton variants, card styles, form inputs
docs/design/layout.mdLayout conventionsGrid systems, page structures, responsive behavior
docs/design/motion.mdAnimation & transitionsDurations, easing curves, animation patterns
docs/design/decisions.mdDesign rationaleWhy X font, why Y color palette

Compound Design Retrieve

Before building ANY UI component:

# Check for design system folder
ls docs/design/ 2>/dev/null

# Load tokens first (always required)
cat docs/design/tokens.md 2>/dev/null

# Load component patterns if building components
cat docs/design/components.md 2>/dev/null

# Load layout patterns if building pages
cat docs/design/layout.md 2>/dev/null

If no design system exists: Run mise-en-place Phase 2, or create one during first UI work. Don't proceed with UI without establishing tokens.

Compound Design Store

After making UI decisions, persist them to docs/design/.

Step 1: Check for existing design system

ls docs/design/ 2>/dev/null

If exists, UPDATE the relevant file. If not, create the structure.

Step 2: Store tokens in docs/design/tokens.md

---
updated: 2024-01-23
---

# Design Tokens

## Colors
| Token | Value | Usage |
|-------|-------|-------|
| `--color-primary` | oklch(55% 0.18 250) | CTAs, links, active states |
| `--color-surface` | oklch(98% 0.01 250) | Card backgrounds |
| `--color-text` | oklch(20% 0.02 250) | Body text |
| `--color-muted` | oklch(50% 0.01 250) | Secondary text |
| `--color-border` | oklch(90% 0.01 250) | Borders, dividers |
| `--color-error` | oklch(55% 0.2 25) | Error states |
| `--color-success` | oklch(55% 0.15 145) | Success states |

## Typography
| Token | Value | Usage |
|-------|-------|-------|
| `--font-display` | 'Instrument Serif', serif | Headings |
| `--font-body` | 'Inter', sans-serif | Body text |
| `--font-mono` | 'JetBrains Mono', monospace | Code |
| `--text-xs` | 0.75rem | Small labels |
| `--text-sm` | 0.875rem | Secondary text |
| `--text-base` | 1rem | Body text |
| `--text-lg` | 1.125rem | Emphasis |
| `--text-xl` | 1.25rem | Subheadings |
| `--text-2xl` | 1.5rem | Headings |

## Spacing
| Token | Value | Usage |
|-------|-------|-------|
| `--space-1` | 0.25rem | Tight groupings |
| `--space-2` | 0.5rem | Related items |
| `--space-4` | 1rem | Default gap |
| `--space-6` | 1.5rem | Medium separation |
| `--space-8` | 2rem | Section separation |
| `--space-12` | 3rem | Large separation |
| `--space-16` | 4rem | Major divisions |

## Border Radius
| Token | Value | Usage |
|-------|-------|-------|
| `--radius-sm` | 4px | Buttons, inputs |
| `--radius-md` | 8px | Cards |
| `--radius-lg` | 12px | Modals |
| `--radius-full` | 9999px | Avatars, pills |

## Shadows
| Token | Value | Usage |
|-------|-------|-------|
| `--shadow-sm` | 0 1px 2px oklch(0% 0 0 / 0.05) | Subtle elevation |
| `--shadow-md` | 0 4px 6px oklch(0% 0 0 / 0.1) | Cards |
| `--shadow-lg` | 0 10px 15px oklch(0% 0 0 / 0.1) | Modals, dropdowns |

## Breakpoints
| Token | Value | Usage |
|-------|-------|-------|
| `--bp-sm` | 640px | Mobile landscape |
| `--bp-md` | 768px | Tablet |
| `--bp-lg` | 1024px | Desktop |
| `--bp-xl` | 1280px | Wide desktop |

Step 3: Store component patterns in docs/design/components.md

---
updated: 2024-01-23
---

# Component Patterns

## Buttons
- **Primary**: solid bg `--color-primary`, white text
- **Secondary**: border only, `--color-primary` border/text
- **Ghost**: no border, subtle hover bg
- **Destructive**: `--color-error` bg, white text
- All: `--radius-sm`, `--space-2` `--space-4` padding

## Cards
- `--color-surface` bg, `--radius-md`
- Padding: `--space-4` to `--space-6`
- Border: 1px `--color-border`
- NO nested cards, NO excessive shadows

## Forms
- Labels above inputs, `--space-1` gap
- Inputs: 1px border, `--radius-sm`, `--space-2` padding
- Focus: 2px ring `--color-primary`
- Error: border `--color-error`, message below

## Navigation
- Header height: 64px
- Sidebar width: 280px (collapsible to 64px)
- Active state: `--color-primary` accent

Step 4: Store layout patterns in docs/design/layout.md

---
updated: 2024-01-23
---

# Layout Patterns

## Container
- Max-width: 1280px
- Padding: `--space-4` (mobile), `--space-8` (desktop)

## Page Layouts
- **Sidebar**: 280px fixed left, fluid content
- **Stacked**: header, main content, footer
- **Centered**: max-width content, centered

## Grid
- 12-column base grid
- Gap: `--space-4` default
- Responsive: 1 col mobile, 2-3 col tablet, 4+ col desktop

Compound Design Sync

When working on a new page in existing project:

  1. Load the design system first cat docs/design/tokens.md docs/design/components.md docs/design/layout.md 2>/dev/null
  2. Verify consistency before writing UI

- Use exact token names from tokens.md (e.g., var(--color-primary)) - Follow component patterns from components.md - Match layout conventions from layout.md

  1. Update design system if extending

- Adding a new color? Update docs/design/tokens.md - New component variant? Update docs/design/components.md - New layout pattern? Update docs/design/layout.md - Never create one-off values—extend the system or reuse existing

Design System Anti-Patterns

Hardcoding values instead of tokens

/* Wrong */
color: #3b82f6;
padding: 16px;

/* Right - use established tokens */
color: var(--color-primary);
padding: var(--space-md);

Creating inconsistent component variants

/* Wrong - different button styles per page */
<button className="rounded-lg px-4">  {/* Page A */}
<button className="rounded-md px-6">  {/* Page B */}

/* Right - one consistent pattern */
<Button variant="primary">

Ignoring existing design system

# Wrong - building UI without checking
# Just start coding...

# Right - always check first
cat docs/design/tokens.md
# Then build using those tokens

Storing design tokens in code comments

/* Wrong - tokens scattered in code */
/* Primary color: #3b82f6, spacing: 16px */

/* Right - centralized in docs/design/tokens.md */

Creating tokens outside the system

/* Wrong - one-off values */
padding: 18px;
color: #4a7c59;

/* Right - use or extend the system */
padding: var(--space-4);  /* existing token */
/* Or add to docs/design/tokens.md first */

Anti-Patterns

Creating near-duplicate files

docs/gotchas/auth-issues.md
docs/gotchas/authentication-problems.md  # DUPLICATE!

Storing obvious information

# How to Start the Server
Run the dev server command  # This belongs in README/AGENTS.md!

Huge monolithic files

docs/knowledge.md  # 500 lines of everything

Vague file names

docs/notes.md
docs/stuff.md
docs/misc.md

Forgetting to update existing files

# Wrong: Create new file
touch docs/gotchas/jwt-issue-2.md

# Right: Update existing
edit docs/gotchas/jwt-refresh-edge-cases.md

Quick Reference

Retrieve Checklist

  • List docs structure
  • Extract task keywords
  • Grep for relevant files
  • Read only what's needed
  • Apply context to task

Store Checklist

  • Is this code-external knowledge?
  • Search for existing coverage
  • Update existing OR create focused new file
  • Add frontmatter (tags, updated, related)
  • Keep file <150 lines
  • Verify no duplicates created

Design Retrieve Checklist

  • Check for docs/design/ folder
  • Load tokens.md first (always required)
  • Load components.md if building components
  • Load layout.md if building pages
  • If no design system, run mise-en-place or create one

Design Store Checklist

  • Check if docs/design/ exists
  • Create folder structure if missing
  • Store tokens in tokens.md
  • Store component patterns in components.md
  • Store layout patterns in layout.md
  • Update updated: date in frontmatter

Design Sync Checklist

  • Load all design files before new page
  • Use exact token names (var(--color-primary))
  • Follow component patterns exactly
  • If extending: update the appropriate file in docs/design/
  • Never use hardcoded values—extend the system

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

29.75%
按下载量换算27

windsurf

20.19%
按下载量换算19

trae

15.92%
按下载量换算15

OpenCode

12.35%
按下载量换算11

Codex

8.14%
按下载量换算7

github-copilot

3.58%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills