技能 编写
- 作者仓库星标 205
- 许可证 MIT
- 作者仓库 GitHub-Copilot-for-Azure
Skill Authoring Guide
This skill provides guidance for writing Agent Skills that comply with the agentskills.io specification.
When to Use
- Creating a new skill for this repository
- Reviewing a skill PR for compliance
- Checking if an existing skill follows best practices
- Understanding token budgets and progressive disclosure
Constraints
name: 1-64 chars, lowercase + hyphens, match directorydescription: 1-1024 chars, ≤60 words, explain WHAT and WHEN- Use
WHEN:with quoted trigger phrases (preferred overUSE FOR:) - Avoid
DO NOT USE FOR:unless the skill has trigger overlap with a broader skill (see frontmatter guidelines) - Use inline double-quoted strings (not
>-folded scalars) - SKILL.md: <500 tokens (soft), <5000 (hard)
- references/*.md: <1000 tokens each
Structure
SKILL.md(required) - Instructionsreferences/(optional) - Detailed docsscripts/(optional) - Executable code
Frontmatter: name (lowercase-hyphens), description (WHAT + WHEN)
Progressive Disclosure
Metadata (~100 tokens) loads at startup. SKILL.md (<5000 tokens) loads on activation. References load only when explicitly linked (not on activation). Keep SKILL.md lean.
Reference Loading
References are JIT (just-in-time) loaded:
- Only files explicitly linked via
[text](references/file.md)load - Link to files, not folders -
[Recipes](references/recipes/README.md)not[Recipes](references/recipes/) - Each file loads in full (not sections)
- No caching between requests - write self-contained files
- Use recipes/services patterns for multi-option skills
See REFERENCE-LOADING.md for details.
Validation
# Run from the scripts directory
cd scripts
npm run references # Validate all skill links
npm run tokens -- check # Check token limits
Integrity Checks
When reviewing or authoring skills, verify:
- No broken links - All referenced files exist
- No orphaned references - All reference files are linked
- Token budgets - References under 1000 tokens (split if exceeded)
- No duplicates - Consolidate repeated content
- No out-of-place guidance - Service-specific content belongs in service-specific references
See Validation for detailed procedures.
Reference Documentation
- Guidelines - Detailed writing guidelines
- Token Budgets - Limits and splitting guidance
- Reference Loading - How references load
- Checklist - Pre-submission checklist
- Validation - Link and reference validation
- agentskills.io/specification - Official spec
- 流狐分类
- 写作
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @microsoft · MIT
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS · Linux · Windows
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Creating a new skill for this repository Reviewing a skill PR for compliance Checking if an existing skill follows best practices
name: 1-64 chars, lowercase + hyphens, match directory description: 1-1024 chars, ≤60 words, explain WHAT and WHEN Use WHEN: with quoted trigger phrases (preferred over USE FOR:)
SKILL.md (required) - Instructions references/ (optional) - Detailed docs scripts/ (optional) - Executable code
Metadata (~100 tokens) loads at startup. SKILL.md (<5000 tokens) loads on activation. References load only when explicitly linked (not on activation). Keep SKILL.md lean.
References are JIT (just-in-time) loaded: Only files explicitly linked via text load Link to files, not folders - Recipes not Recipes
Validation
# Skill Authoring Guide
This skill provides guidance for writing Agent Skills that comply with the [agentskills.io specification](https://agentskills.io/specification).
## When to Use
- Creating a new skill for this repository
- Reviewing a skill PR for compliance
- Checking if an existing skill follows best practices
- Understanding token budgets and progressive disclosure
## Constraints
- `name`: 1-64 chars, lowercase + hyphens, match directory
- `description`: 1-1024 chars, ≤60 words, explain WHAT and WHEN
- Use `WHEN:` with quoted trigger phrases (preferred over `USE FOR:`)
- Avoid `DO NOT USE FOR:` unless the skill has trigger overlap with a broader skill (see [frontmatter guidelines](references/guidelines/frontmatter.md))
- Use inline double-quoted strings (not `>-` folded scalars)
- SKILL.md: <500 tokens (soft), <5000 (hard)
- references/*.md: <1000 tokens each
## Structure
- `SKILL.md` (required) - Instructions
- `references/` (optional) - Detailed docs
- `scripts/` (optional) - Executable code
Frontmatter: `name` (lowercase-hyphens), `description` (WHAT + WHEN)
## Progressive Disclosure
Metadata (~100 tokens) loads at startup. SKILL.md (<5000 tokens) loads on activation. References load **only when explicitly linked** (not on activation). Keep SKILL.md lean.
## Reference Loading
References are JIT (just-in-time) loaded:
- Only files explicitly linked via `[text](references/file.md)` load
- **Link to files, not folders** - `[Recipes](references/recipes/README.md)` not `[Recipes](references/recipes/)`
- Each file loads in full (not sections)
- No caching between requests - write self-contained files
- Use recipes/services patterns for multi-option skills
See [REFERENCE-LOADING.md](references/REFERENCE-LOADING.md) for details.
## Validation
```bash
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When to Use → Constraints → Structure → Progressive Disclosure → Reference Loading → Validation
要点 -> only when explicitly linked · Link to files, not folders · No broken links · No orphaned references · Token budgets · No duplicates · No out-of-place guidance
文件/命令 -> name · description · WHEN: · USE FOR: · DO NOT USE FOR: · references/ · scripts/ · [text](references/file.md)
内容 SHA-256 -> 32e398562805
原文结构
适用与边界
原文中的明确线索
name、description、WHEN:、USE FOR:、DO NOT USE FOR:、references/、scripts/、[text](references/file.md)