Files
nexus/wiki/concepts/Claude-Skills.md

38 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Claude Skills"
type: concept
tags: [claude, anthropic, ai-agent, skill, workflow]
last_updated: 2026-01-08
---
## Definition
将反复执行的有固定流程的任务拆解为 AI 能理解、能稳定复用、能自动执行的一套流程。是 AI 应用从「提示词工程」向「流程工程」转变的核心产物,本质是写给 Claude 的"说明书"和"SOP标准作业程序"。
## Core Components
- **说明书**:告诉 Claude 做什么、怎么做
- **SOP**:标准作业程序,确保流程稳定可复现
- **工具集**Claude 可调用的具体工具和能力
- **容错策略**:异常处理和边界情况处理
## Key Principles
1. **只写 Agent 不知道的东西**:背景知识、专有信息、踩坑清单
2. **重点写踩坑清单**:真实业务中容易出错的地方
3. **给工具不给指令**:描述可用的工具能力,而非一步步的命令
4. **可复用**:同一 Skill 可在不同项目中重复使用
5. **可组合**:多个 Skill 可组合形成更复杂的 Agent 工作流
## Three-Layer Architecture
1. **描述层Description**Skill 名称、功能、适用场景
2. **指令层Instructions**:具体的 SOP、步骤、注意事项
3. **工具层Tools**Claude 可调用的 API、脚本、工具
## Related Concepts
- [[Claude Code Skills]]Claude Code CLI 工具上的 Skills 实现
- [[Vibe Coding]]AI 辅助编程Skills 是其规模化落地的关键
- [[Workflow Engineering]]流程工程Skills 是其核心产物
- [[AI Agent]]Claude Skills 使 Agent 能够执行更复杂的自主任务
## Sources
- [[Anthropic/skills]]github.com/anthropics/skills— 官方 Claude Skills 仓库
- [[3-2-万人收藏的-claude-skills-才是-ai-这条路上最值得研究的一套范式-1]]