Agent搜索
- 作者仓库星标 196
- 作者更新于 实时读取
- 作者仓库 daaf
- 领域
- 通用
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @DAAF-Contribution-Community · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- Windows
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 允许外网请求
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: skill-authoring
description: >- Guide for creating and auditing DAAF agent skills. Covers SKILL.md format, frontmatter requir…
category: 通用
runtime: 无特殊运行时
---
# skill-authoring 输出预览
## PART A: 任务判断
- 适用问题:通用任务拆解、检查和交付。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“What is a Skill? / How to Use This Skill / Reference File Structure”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于通用任务拆解、检查和交付,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“What is a Skill? / How to Use This Skill / Reference File Structure”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、会按任务需要访问外部网络、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;会按任务需要访问外部网络;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“What is a Skill? / How to Use This Skill / Reference File Structure”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: skill-authoring
description: >- Guide for creating and auditing DAAF agent skills. Covers SKILL.md format, frontmatter requir…
category: 通用
source: DAAF-Contribution-Community/daaf
---
# skill-authoring
## 什么时候使用
- 用于审阅代码、文档或方案并给出可执行反馈 适合处理通用任务拆解、检查、交付和复盘,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常不需要额外 API K…
- 面向通用任务拆解、检查和交付,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「What is a Skill? / How to Use This Skill / Reference File Structure」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;会按任务需要访问外部网络;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "skill-authoring" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> What is a Skill? / How to Use This Skill / Reference File Structure
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令 | 会按任务需要访问外部网络
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Skill Authoring
Guide for creating and auditing DAAF agent skills. Covers SKILL.md format, frontmatter requirements and validation rules, controlled vocabulary for metadata, progressive disclosure patterns, decision trees, reference files, and bundled resource organization. Use when creating a new skill, reviewing or auditing skill structure and frontmatter, or debugging skill loading and triggering issues. For creating agent definition files (.claude/agents/*.md), use agent-authoring instead.
Quick reference for creating well-structured Skills. Use decision trees below to find guidance, then load detailed references as needed.
What is a Skill?
A Skill is a reusable instruction set that extends agent capabilities:
- SKILL.md file: Required entry point with YAML frontmatter + Markdown body
- Progressive disclosure: Metadata loaded at startup, body on trigger, resources on-demand
- Bundled resources: Optional
scripts/,references/,assets/directories - On-demand loading: Agent calls
skill({ name: "skill-name" })to load
How to Use This Skill
Reference File Structure
| File | Purpose | When to Read |
|---|---|---|
quickstart.md |
Minimal skill, directory setup | Creating first skill |
frontmatter.md |
YAML spec, validation rules, description writing | Writing frontmatter |
structure.md |
Body patterns, section templates, content patterns | Organizing content |
progressive-disclosure.md |
Three-level loading, splitting | Managing token budget |
references-resources.md |
scripts/, references/, assets/ | Adding bundled resources |
testing-iteration.md |
Test prompts, iteration workflow, multi-model testing | Validating and improving skills |
gotchas.md |
Anti-patterns, validation errors, diagnostics | Debugging or reviewing |
Reading Order
- Creating a skill? Start with
quickstart.mdthenfrontmatter.md - Structuring content? Read
structure.mdthenprogressive-disclosure.md - Adding resources? See
references-resources.md - Testing and improving? See
testing-iteration.md - Having issues? Check
gotchas.mdfirst
Quick Decision Trees
"I need to create a skill"
Creating a new skill?
├─ Where to put it → ./references/quickstart.md
├─ Minimal example → ./references/quickstart.md
├─ Write frontmatter → ./references/frontmatter.md
├─ Name validation → ./references/frontmatter.md
└─ Description best practices → ./references/frontmatter.md
"I need to structure the body"
Structuring SKILL.md body?
├─ Workflow-based (sequential steps) → ./references/structure.md
├─ Task-based (tool collection) → ./references/structure.md
├─ Reference-based (standards/specs) → ./references/structure.md
├─ Capabilities-based (features) → ./references/structure.md
├─ Decision tree format → ./references/structure.md
└─ Table conventions → ./references/structure.md
"I need to manage content size"
Content too large?
├─ Understand three-level loading → ./references/progressive-disclosure.md
├─ When to split into references → ./references/progressive-disclosure.md
├─ Domain-specific organization → ./references/progressive-disclosure.md
├─ Framework/variant splitting → ./references/progressive-disclosure.md
└─ Token budget guidelines → ./references/progressive-disclosure.md
"I need to add resources"
Adding bundled resources?
├─ Executable scripts → ./references/references-resources.md
├─ Documentation files → ./references/references-resources.md
├─ Template assets → ./references/references-resources.md
├─ When to use each type → ./references/references-resources.md
└─ Directory structure → ./references/references-resources.md
"I need to test or improve a skill"
Testing or iterating?
├─ Create test prompts → ./references/testing-iteration.md
├─ Test triggering accuracy → ./references/testing-iteration.md
├─ Iterate based on feedback → ./references/testing-iteration.md
├─ Test across models → ./references/testing-iteration.md
└─ Observe navigation patterns → ./references/testing-iteration.md
"Something isn't working"
Debugging a skill?
├─ Skill not loading → ./references/gotchas.md
├─ Skill undertriggering → ./references/gotchas.md
├─ Skill overtriggering → ./references/gotchas.md
├─ Validation errors → ./references/gotchas.md
├─ Name format issues → ./references/frontmatter.md
├─ Description too long → ./references/frontmatter.md
└─ Common anti-patterns → ./references/gotchas.md
Quick Reference
Minimal SKILL.md Template
---
name: my-skill-name
description: What this skill does. When to use it (specific triggers).
metadata:
audience: target-users
domain: skill-domain
---
# My Skill Name
Brief intro sentence.
## Section 1
Content here.
Directory Structure
.claude/skills/<name>/
├── SKILL.md # Required
├── scripts/ # Optional: executable code
├── references/ # Optional: documentation
└── assets/ # Optional: templates, images
Frontmatter Validation Rules
| Field | Required | Constraints |
|---|---|---|
name |
Yes | Lowercase alphanumeric + hyphens, 1-64 chars, no leading/trailing/consecutive hyphens |
description |
Yes | 1-1024 chars, no angle brackets (< >), include what + when |
metadata |
No | Key-value pairs (strings) |
Name Validation Regex
^[a-z0-9]+(-[a-z0-9]+)*$
Content Limits
| Component | Limit | Notes |
|---|---|---|
| Name | 64 chars | Lowercase hyphen-case |
| Description (frontmatter) | 250 chars | Hard limit — truncated at 250 chars in system prompt; all agents see this |
| Description (body) | ~500 chars | Full description as plain paragraph after # Title; loaded with skill |
| SKILL.md body | <500 lines | Guideline, not enforced |
| SKILL.md body | <5000 words | Keep concise |
| Metadata per skill | ~100 words | Always in context |
Core Principles
| Principle | Meaning |
|---|---|
| Concise is Key (SKILL.md) | The SKILL.md body shares context with conversation history; justify every token there. Claude is already smart — only add context it doesn't already have |
| Thorough is Key (references) | Reference files are loaded on-demand at Level 3. Their token cost is incurred only when needed, so they should be comprehensive — encode all discovered knowledge rather than summarizing. Err on the side of more detail in reference files |
| Progressive Disclosure | Load only what's needed, when needed |
| Appropriate Freedom | Match specificity to task fragility (high freedom for flexible tasks, low freedom for fragile/critical operations) |
| Explain the Why | Use reasoning over rigid directives. If you find yourself writing ALWAYS/NEVER in all caps, reframe and explain the reasoning instead — it's more effective |
| Examples over Prose | Show input/output pairs rather than describing behavior in paragraphs |
| Test and Iterate | Create test prompts, observe behavior, refine. See ./references/testing-iteration.md |
Essential Do's
- Before creating a new skill, read 1-2 existing skills of the same type as structural exemplars (e.g., for data source skills, read an existing data source SKILL.md; for tool skills, read
polarsorplotnine) - Include "what it does" AND "when to use it" in description
- Keep frontmatter description ≤250 chars — this is the ONLY text agents see when deciding whether to load a skill; it gets truncated at 250 chars in the system prompt
- Preserve the full description as a plain paragraph immediately after the
# Titleheading in the body — this provides complete context once the skill is loaded - Prioritize in the 250-char budget: (1) what it is, (2) key triggers/use cases, (3) disambiguation from similar skills (e.g., "For FE use pyfixest; for GLM use statsmodels")
- Write descriptions in third person ("Processes files" not "I help you process files")
- Make descriptions slightly "pushy" to combat undertriggering
- Front-load important words in description (may be truncated in UI)
- Explain why behind instructions, not just what
- Use decision trees for navigation
- Keep SKILL.md under 500 lines
- Split large content into
references/files - Use tables for quick lookup
- Use consistent terminology throughout (pick one term, stick with it)
- Test skills with realistic prompts before finalizing
- Test scripts before including
- Include metadata references (codebook URLs) for data source skills — see
datasets-reference.mdcodebook column
Essential Don'ts
- Don't include README.md, CHANGELOG.md, or auxiliary docs
- Don't put "When to Use" sections in body (loaded too late)
- Don't duplicate content between SKILL.md and references
- Don't nest references more than one level deep
- Don't use angle brackets in description
- Don't start/end name with hyphens
- Don't use heavy-handed ALWAYS/NEVER/MUST in all caps — explain reasoning instead
- Don't offer too many options — provide a default with an escape hatch
- Don't include time-sensitive information (use "Old patterns"
<details>sections if needed) - Don't use Windows-style backslash paths (always forward slashes)
Skill Registration
Skills are automatically discovered via their YAML frontmatter — the orchestrator sees all skills listed in the system message at conversation start. No manual registration is needed for triggering. Once the skill's SKILL.md is placed in .claude/skills/{skill-name}/, it becomes available immediately.
Framework integration beyond discovery: If the skill should be preloaded by specific agents (via skills: frontmatter), referenced in pipeline stage mappings, or wired into workflow documentation, additional registration is required. See agent_reference/FRAMEWORK_INTEGRATION_CHECKLIST.md § 1 (items S8-S10) for the complete list of conditional integration points.
Data Source Skills: Metadata References
When authoring a data source skill, include a codebook reference section if codebooks exist for the source. Follow the existing pattern (modeled after PSEO):
### [Source] Codebooks
| Dataset | Codebook Path |
|---------|---------------|
| ... | `path/to/codebook_name` |
> Codebooks are `.xls` files on both mirrors. See `datasets-reference.md` for full catalog
> and `fetch-patterns.md` for `get_codebook_url()`. For human reference — not parsed programmatically.
The codebook path comes from the codebook column in datasets-reference.md. Metadata files are for human reference only — they are not parsed programmatically by the pipeline.
Topic Index
| Topic | Reference File |
|---|---|
| Directory location | ./references/quickstart.md |
| Minimal example | ./references/quickstart.md |
| First skill walkthrough | ./references/quickstart.md |
| Name field spec | ./references/frontmatter.md |
| Description field spec | ./references/frontmatter.md |
| Description writing tips | ./references/frontmatter.md |
| Optional fields | ./references/frontmatter.md |
| Validation rules | ./references/frontmatter.md |
| Body patterns | ./references/structure.md |
| Decision tree format | ./references/structure.md |
| Table conventions | ./references/structure.md |
| Section templates | ./references/structure.md |
| Content patterns (checklists, feedback loops) | ./references/structure.md |
| Three-level loading | ./references/progressive-disclosure.md |
| Content splitting | ./references/progressive-disclosure.md |
| Token budget | ./references/progressive-disclosure.md |
| scripts/ directory | ./references/references-resources.md |
| Script error handling | ./references/references-resources.md |
| references/ directory | ./references/references-resources.md |
| assets/ directory | ./references/references-resources.md |
| Test prompts | ./references/testing-iteration.md |
| Triggering tests | ./references/testing-iteration.md |
| Multi-model testing | ./references/testing-iteration.md |
| Iteration workflow | ./references/testing-iteration.md |
| Observing skill behavior | ./references/testing-iteration.md |
| Validation errors | ./references/gotchas.md |
| Anti-patterns | ./references/gotchas.md |
| Undertriggering / overtriggering | ./references/gotchas.md |
| Pre-submission checklist | ./references/gotchas.md |
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核