S

skill-authoring

by @microsoftv
4.2(38)

专注于AI工程领域的技能创作,利用GitHub Copilot for Azure等工具辅助开发和优化。

ai-agent-developmentprompt-engineeringllm-customizationskill-definition-languageai-workflow-automationGitHub
安装方式
npx skills add microsoft/github-copilot-for-azure --skill skill-authoring
compare_arrows

Before / After 效果对比

1
使用前

在编写Agent技能时,如果不熟悉`agentskills.io`规范,可能导致技能设计不合理、功能不完善或无法通过审核。

使用后

遵循Agent技能编写指南,确保技能符合规范,优化token预算和渐进式披露,从而提高技能的质量、可用性和合规性。

SKILL.md

skill-authoring

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 directory

  • description: 1-1024 chars, ≤60 words, explain WHAT and WHEN

  • Use WHEN: with quoted trigger phrases (preferred over USE FOR:)

  • Do NOT use DO NOT USE FOR: (keyword contamination on Sonnet)

  • 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 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

Weekly Installs292Repositorymicrosoft/githu…or-azureGitHub Stars157First SeenFeb 3, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex270gemini-cli266opencode237github-copilot234cursor228kimi-cli227

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量942
评分4.2 / 5.0
版本
更新日期2026年5月17日
对比案例1 组

用户评分

4.2(38)
5
68%
4
32%
3
0%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月17日
最后更新2026年5月17日