Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计通过

expertise-file-design专业知识档案设计

Agent Skill

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

总安装

259

周安装

11

GitHub Stars

61

下载量

91
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/melodic-software/claude-code-plugins --skill expertise-file-design

简介

设计 YAML 格式专业知识档案作为 Agent 心智模型。

  • 遵循 act-learn-reuse 上下文加速执行原则。
  • 限制行长保护上下文窗口完整性。expertise-file-design 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 强制对接实际代码库作为 truth source。
  • 适用于领域特定 Agent 的知识体系建设。

SKILL.md

Expertise File Design

Guide for designing YAML expertise files that serve as mental models for agent experts.

MANDATORY: Act-Learn-Reuse Context

Expertise files are mental models, NOT sources of truth. They:

  • Accelerate agent execution by pre-loading domain knowledge
  • Are maintained by self-improve prompts, not humans
  • Validate against the actual codebase (source of truth)
  • Have enforced line limits to protect context windows

When to Use

  • Creating mental models for new domain-specific agents
  • Defining expertise schema structures (YAML)
  • Structuring knowledge for Act-Learn-Reuse workflows
  • Reviewing or auditing existing expertise file designs
  • Setting up line limits and section priorities

Expertise File Structure

Core Template

# {domain}/expertise.yaml
# Mental model for {domain} agent expert
# Last updated: {timestamp}
# Lines: {current}/{max}

overview:
  description: "Brief description of this domain"
  primary_technology: "Main tech/framework"
  architecture_pattern: "Key pattern used"

core_implementation:
  main_module:
    file: "path/to/main/file.ext"
    lines: approximate_line_count
    purpose: "What this module does"
    key_exports:
      - name: "FunctionOrClass"
        type: "function|class|constant"
        purpose: "Brief description"

  supporting_modules:
    - file: "path/to/support.ext"
      purpose: "Supporting functionality"

schema_structure:  # For database/API domains
  entities:
    entity_name:
      fields:
        - name: "field_name"
          type: "data_type"
          constraints: "nullable, unique, etc."
      relationships:
        - target: "other_entity"
          type: "one-to-many|many-to-many"

key_operations:
  operation_category:
    operation_name:
      function: "function_name"
      file: "path/to/file.ext"
      signature: "func(param: Type) -> ReturnType"
      logic: "Brief description of what it does"
      edge_cases:
        - "Important edge case 1"
        - "Important edge case 2"

patterns_and_conventions:
  naming:
    - "Convention description"
  error_handling:
    - "How errors are handled"
  data_flow:
    - "How data moves through system"

best_practices:
  - "Practice 1: Explanation"
  - "Practice 2: Explanation"

known_issues:
  - issue: "Issue description"
    workaround: "How to handle it"
    status: "open|resolved|wontfix"

integration_points:
  - system: "External system name"
    method: "How integration works"
    considerations: "Important notes"

testing_notes:
  - "How to test this domain"
  - "Key test scenarios"

Line Limits

Domain ComplexityMax LinesGuidance
Small/Focused300Single module, simple operations
Medium500-600Multiple modules, moderate complexity
Large/Complex800-1000Full subsystem, many operations
Absolute Max1000Never exceed - split into sub-experts

Section Priority

When approaching line limits, prioritize sections in this order:

  1. core_implementation - Essential for navigation
  2. key_operations - Critical for task execution
  3. best_practices - Prevents mistakes
  4. known_issues - Avoids wasted effort
  5. patterns_and_conventions - Nice to have
  6. testing_notes - Can reference external docs

Domain-Specific Templates

Database Domain

overview:
  database_system: "PostgreSQL|MySQL|MongoDB|etc"
  orm_pattern: "Raw SQL|ORM name|Query builder"
  connection_strategy: "Pooling|Single|Per-request"

schema_structure:
  tables:
    table_name:
      purpose: "What this table stores"
      primary_key: "id (UUID|INT)"
      fields: [...]
      indexes: [...]
      foreign_keys: [...]

key_operations:
  crud:
    create: {function: "", file: "", logic: ""}
    read: {function: "", file: "", logic: ""}
    update: {function: "", file: "", logic: ""}
    delete: {function: "", file: "", logic: ""}

  specialized:
    bulk_insert: {...}
    transaction_handling: {...}

API/Service Domain

overview:
  api_style: "REST|GraphQL|gRPC"
  auth_method: "JWT|OAuth|API Key"
  versioning: "URL|Header|None"

endpoints:
  resource_name:
    base_path: "/api/v1/resource"
    operations:
      list: {method: "GET", auth: "required", pagination: "cursor"}
      create: {method: "POST", auth: "required", validation: "..."}

request_response_patterns:
  success_format: {...}
  error_format: {...}

Frontend/UI Domain

overview:
  framework: "React|Vue|Angular|etc"
  state_management: "Redux|Zustand|Context|etc"
  styling: "CSS Modules|Tailwind|Styled Components"

component_hierarchy:
  pages:
    - name: "PageName"
      route: "/path"
      children: [...]

  shared:
    - name: "ComponentName"
      purpose: "Reusable for X"

state_structure:
  stores:
    store_name:
      shape: {...}
      actions: [...]

Seeding Strategy

When creating a new expertise file:

  1. Start minimal - Begin with overview and core_implementation only
  2. Let agent discover - Run self-improve to populate
  3. Iterate - Run self-improve until stable (no changes)
  4. Review - Human validates accuracy
  5. Maintain - Self-improve after every ACT

Anti-Patterns

PatternProblemSolution
Copy-pasting docsDuplicates source of truthReference files, don't copy
Including codeBloats file, goes staleReference by function name
No line limitsContext window overflowEnforce max lines strictly
Manual updatesHuman time wastedSelf-improve prompt only
Flat structureHard to navigateUse nested YAML sections

Validation Checklist

Before considering an expertise file complete:

  • Valid YAML syntax (no parse errors)
  • Under line limit for domain complexity
  • All file paths verified to exist
  • All function names verified accurate
  • Overview section complete
  • Key operations documented
  • Best practices included
  • Known issues captured

Related Skills

  • agent-expert-creation: Full agent expert workflow
  • self-improve-prompt-design: Maintaining expertise accuracy
  • meta-agentic-creation: Building experts that build experts

Last Updated: 2025-12-15

Version History

  • v1.0.0 (2025-12-26): Initial release

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Antigravity

28.95%
按下载量换算26

trae

22.44%
按下载量换算20

windsurf

15.9%
按下载量换算14

Claude Code

11.37%
按下载量换算10

Codex

7.16%
按下载量换算7

Gemini CLI

3.71%
按下载量换算3

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills