Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

agent-expert-creationAgent 专家创建

Agent Skill

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

总安装

376

周安装

16

GitHub Stars

61

下载量

132
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/melodic-software/claude-code-plugins --skill agent-expert-creation

简介

Agent Expert Creation 创建能够学习并维护领域知识的专用专家代理,通过 Act-Learn-Reuse 模式持续积累经验。

  • 适用于重复性高、风险大的复杂任务场景,如数据库操作、支付系统或快速演进的代码库管理。
  • 自动生成专家知识文件(mental models),与代码库同步更新,确保跨会话的一致性领域专长。
  • 安装后需注意权限范围,避免敏感数据泄露;建议在受控环境中测试学习机制对生产代码的影响。
  • agent-expert-creation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Agent Expert Creation Skill

Create specialized agent experts that learn and maintain domain knowledge through the Act-Learn-Reuse pattern.

Core Problem Solved

"The massive problem with agents is this. Your agents forget. And that means your agents don't learn."

Generic agents execute and forget. Agent experts execute and learn by maintaining expertise files (mental models) that sync with the codebase.

When to Use

  • Repeated complex tasks in a domain (database, billing, WebSocket)
  • High-risk systems where mistakes cascade (security, payments)
  • Rapidly evolving code that needs tracked mental models
  • Need consistent domain expertise across sessions
  • Building plan-build-improve automation cycles

The Act-Learn-Reuse Pattern

┌─────────────────────────────────────────────────────────────┐
│                    ACT-LEARN-REUSE CYCLE                    │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│   ACT ──────────► LEARN ──────────► REUSE                   │
│    │                │                  │                    │
│    │                │                  │                    │
│    ▼                ▼                  ▼                    │
│  Take useful    Update expertise    Read expertise          │
│  action         file via            file FIRST on           │
│  (build, fix)   self-improve        next execution          │
│                 prompt                                      │
│                                                             │
└─────────────────────────────────────────────────────────────┘
StepActionPurpose
ACTTake a useful actionGenerate data to learn from (build, fix, answer)
LEARNStore new information in expertise fileBuild mental model automatically via self-improve prompt
REUSERead expertise first on next executionFaster, more confident execution from mental model

Expertise Files (Mental Models)

"The expertise file is the mental model of the problem space for your agent expert... This is not a source of truth. This is a working memory file, a mental model."

Critical Distinction

ConceptIsIs NOT
Expertise fileMental modelSource of truth
Expertise fileWorking memoryDocumentation
Source of truthThe actual codebaseThe expertise file

Expertise File Structure (YAML)

overview:
  description: "High-level system description"
  tech_stack: "Key technologies"
  patterns: "Architectural patterns"

core_implementation:
  module_name:
    file: "path/to/file.py"
    lines: 400
    purpose: "What this module does"

schema_structure:  # For database experts
  tables:
    table_name:
      purpose: "What this table stores"
      key_columns: ["id", "created_at"]

key_operations:
  operation_category:
    operation_name:
      function: "function_name()"
      logic: "How it works"

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

known_issues:
  - "Issue 1 with workaround"

Line Limits (Critical)

SizeLinesUse Case
Small~300-500Simple domains, focused scope
Medium~600-800Complex domains, moderate scope
Maximum~1000Very complex domains (enforce limit)

Why limits matter: Context window protection. Expertise files must remain scannable.

Expert Creation Process

Step 1: Define the Domain

Identify expertise areas based on risk and complexity:

Risk LevelDomain ExamplesWhy Expert?
CriticalBilling, SecurityRevenue/security impact
HighDatabase, AuthFoundation for everything
Medium-HighWebSocket, APIComplex event flows
MediumDevOps, CI/CDInfrastructure dependencies

Step 2: Design Expert Directory Structure

.claude/commands/experts/{domain}/
  expertise.yaml        # Mental model (~600-1000 lines max)
  question.md           # REUSE: Query expertise without coding
  self-improve.md       # LEARN: Sync mental model with codebase
  plan.md               # REUSE: Create plan using expertise
  plan-build-improve.md # Full ACT→LEARN→REUSE workflow

Step 3: Create the Self-Improve Prompt

"Don't directly update this expertise file. Teach your agents how to directly update it so they can maintain it."

The self-improve prompt teaches agents HOW to learn:

# {Domain} Expert - Self-Improve

Maintain expertise accuracy by comparing against actual codebase implementation.

## Workflow

1. **Check Git Diff** (if $1 is true)
   - Run `git diff HEAD~1` to see recent changes
   - Skip if no changes relevant to {domain}

2. **Read Current Expertise**
   - Load expertise.yaml mental model

3. **Validate Against Codebase**
   - Line-by-line verification against source files
   - Check file paths, line counts, function names

4. **Identify Discrepancies**
   - List what changed vs what expertise says
   - Prioritize significant changes

5. **Update Expertise File**
   - Sync mental model with actual code
   - Add new patterns discovered
   - Remove outdated information

6. **Enforce Line Limit (MAX_LINES: 1000)**
   - Condense if exceeding limit
   - Prioritize critical information

7. **Validation Check**
   - Ensure valid YAML syntax
   - Verify all file references exist

Step 4: Create Expert Commands

The plan-build-improve triplet:

CommandPurposeModelTokens (Sub-agent)
{domain}/planInvestigate and create specsopus~80K (protected)
{domain}/buildExecute from specssonnetVaries
{domain}/self-improveUpdate mental modelopusPasses git diff only

Expert Definition Template

Sub-Agent Expert

---
name: {domain}-expert
description: Expert in {domain} for {purpose}
tools: [focused tool list]
model: sonnet
color: blue
---

# {Domain} Expert

You are a {domain} expert specializing in {specific area}.

## Expertise

- Deep knowledge of {domain concepts}
- Experience with {common patterns}
- Understanding of {best practices}

## Workflow

1. Analyze the request
2. Apply domain expertise
3. Provide structured output

## Output Format

{Structured format for this expert's outputs}

Plan Command

---
description: Plan {domain} implementation with detailed specifications
argument-hint: <{domain}-request>
model: opus
allowed-tools: Read, Glob, Grep, WebFetch
---

# {Domain} Expert - Plan

You are a {domain} expert specializing in planning {domain} implementations.

## Expertise

[Pre-loaded domain knowledge here]

## Workflow

1. **Establish Expertise**
   - Read relevant documentation
   - Review existing implementations

2. **Analyze Request**
   - Understand requirements
   - Identify constraints

3. **Design Solution**
   - Architecture decisions
   - Implementation approach
   - Edge cases

4. **Create Specification**
   - Save to `specs/experts/{domain}/{name}-spec.md`

Build Command

---
description: Build {domain} implementation from specification
argument-hint: <spec-file-path>
model: sonnet
allowed-tools: Read, Write, Edit, Bash
---

# {Domain} Expert - Build

You are a {domain} expert specializing in implementing {domain} solutions.

## Workflow

1. Read the specification completely
2. Implement according to spec
3. Validate against requirements
4. Report changes made

Improve Command

---
description: Improve {domain} expert knowledge based on completed work
argument-hint: <work-summary>
model: sonnet
allowed-tools: Read, Write, Edit
---

# {Domain} Expert - Improve

Update expert knowledge based on work completed.

## Workflow

1. Analyze completed work
2. Identify new patterns learned
3. Update expert documentation
4. Capture lessons learned

Example: Hook Expert

Sub-Agent: hook-expert

---
name: hook-expert
description: Expert in Claude Code hooks for automation
tools: [Read, Write, Edit, Bash]
model: sonnet
color: cyan
---

# Claude Code Hook Expert

You are an expert in Claude Code hooks.

## Expertise

- Hook event types (PreToolUse, PostToolUse, UserPromptSubmit, etc.)
- Hook configuration in settings.json
- Python hook implementation patterns
- UV script metadata headers
- Hook input/output contracts

Commands

  • /hook_expert_plan - Plan hook implementation
  • /hook_expert_build - Build from spec
  • /hook_expert_improve - Update hook expertise

Expert File Structure

.claude/
  commands/
    experts/
      {domain}/
        expertise.yaml         # Mental model (600-1000 lines)
        question.md            # Query expertise ($1 = question)
        self-improve.md        # Sync mental model ($1 = check_git_diff)
        plan.md                # Create plan ($1 = task)
        plan-build-improve.md  # Full workflow ($1 = task)

  agents/
    {domain}-expert.md         # Sub-agent definition

specs/
  experts/
    {domain}/
      {feature-name}-spec.md   # Generated specifications

Seeding Strategy

How to Bootstrap an Expert

  1. Start Blank - Let agent discover structure # expertise.yaml (initial) overview: description: "To be populated"
  2. Run Self-Improve - Agent builds initial expertise /experts/{domain}/self-improve true
  3. Iterate - Run self-improve until agent stops finding changes
  4. Validate - Ensure accuracy against codebase

When NOT to Build Experts

Anti-PatternProblem
Stable, unchanging codeWasted effort - no learning needed
Simple/trivial systemsOverhead exceeds benefit
Domains you don't understandGarbage in, garbage out
Everything at onceStart with highest-risk domains

Anti-Patterns

Anti-PatternProblemSolution
Treating expertise as source of truthCreates duplication, conflictsMental model validates against code
Manually updating expertise filesWastes engineer timeLet self-improve prompt maintain
Infinite expertise growthContext window bloatEnforce line limits (~1000 max)
No seeding strategyUnclear starting pointStart simple, let agent define structure
Building experts for stable codeWasted effortOnly for evolving, complex systems
Experts without understandingGarbage in, garbage outYou must understand the domain first

Expert Patterns

Pattern: Read-Only Expert

For analysis without modification:

Tools: Read, Glob, Grep
Purpose: Audit, review, analyze
Output: Reports and recommendations

Pattern: Build Expert

For implementation work:

Tools: Read, Write, Edit, Bash
Purpose: Create, modify, implement
Output: Code changes and artifacts

Pattern: Research Expert

For information gathering:

Tools: WebFetch, Read, Write
Purpose: Fetch, process, organize
Output: Documentation and summaries

Output Format

When creating an expert, generate:

{
  "expert_name": "{domain}-expert",
  "purpose": "{expertise description}",
  "components": {
    "sub_agent": "{domain}-expert.md",
    "plan_command": "{domain}_expert_plan.md",
    "build_command": "{domain}_expert_build.md",
    "improve_command": "{domain}_expert_improve.md"
  },
  "directories_needed": [
    ".claude/commands/experts/{domain}_expert/",
    "specs/experts/{domain}/",
    "ai_docs/{domain}/"
  ],
  "tools_assigned": ["list", "of", "tools"],
  "model_assignment": {
    "plan": "opus",
    "build": "sonnet",
    "improve": "sonnet"
  }
}

Key Quotes

"The difference between a generic agent and an agent expert is simple. One executes and forgets, the other executes and learns." "True experts are always learning. They're updating their mental model." "Build the system that builds the system. Do not work on the application layer."

Cross-References

These are conceptual references to TAC course materials and patterns:

  • One Agent, One Purpose - Specialization principle (TAC Lesson 6)
  • R&D Framework - Reduce & Delegate strategy (TAC Lesson 8)
  • Context Priming Patterns - Loading domain context (TAC Lesson 9)
  • 12 Leverage Points - Leverage point #3: System Prompts (TAC Lesson 3)
  • TAC Lesson 13: Agent Experts - Act-Learn-Reuse pattern source

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.01%
按下载量换算37

Claude Code

22.96%
按下载量换算30

windsurf

19.56%
按下载量换算26

trae

12.34%
按下载量换算16

OpenCode

7.59%
按下载量换算10

Cursor

3.53%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills