skill-authoring by pproenca/dot-skills
npx skills add https://github.com/pproenca/dot-skills --skill skill-authoringAI 代理技能的设计与开发指南,涵盖 Claude Code 技能和 MCP 工具。包含 8 个类别共 46 条规则,按影响优先级排序,以指导技能的创建、评审和优化。
1. 描述驱动激活。 Claude 根据描述与用户意图的匹配度来选择技能。描述中应包含具体能力、触发关键词和负面案例。描述模糊的技能会导致激活不稳定或从不激活。
2. 前置关键指令。 Claude 可能会截断过长的内容。将不可协商的规则放在前 100 行内。将重要约束放在末尾会导致其被忽略。
3. 渐进式披露节省令牌。 仅在需要时加载详细内容。一个 2000 行的技能会在每次激活时浪费上下文。建议结构为:SKILL.md(概述)→ references/(详细信息)→ scripts/(执行)。
4. 测试激活,而不仅仅是执行。 一个功能完美但从不触发的技能毫无价值。在部署前使用真实的用户短语、同义词和边缘案例进行测试。
5. 一个领域对应一个技能。 重叠的技能会导致激活冲突。应按清晰的边界(语言、框架、工作流阶段)划分,并使用不同的触发关键词。
| 优先级 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 技能元数据设计 | 关键 | meta- |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 2 | 描述工程 | 关键 | desc- |
| 3 | 内容结构 | 高 | struct- |
| 4 | 触发优化 | 高 | trigger- |
| 5 | 渐进式披露 | 中高 | prog- |
| 6 | MCP 工具设计 | 中 | mcp- |
| 7 | 测试与验证 | 中 | test- |
| 8 | 维护与分发 | 低中 | maint- |
meta-name-format - 使用小写连字符分隔的技能名称meta-name-hyphen-boundaries - 名称开头或结尾切勿使用连字符meta-name-no-consecutive-hyphens - 避免名称中出现连续的连字符meta-name-uniqueness - 确保技能名称全局唯一meta-required-frontmatter - 包含所有必需的前置元数据字段meta-allowed-frontmatter-fields - 仅使用允许的前置元数据字段meta-frontmatter-yaml-syntax - 使用有效的 YAML 前置元数据语法meta-name-length - 技能名称保持在 64 个字符以内meta-directory-match - 技能名称与目录名称匹配desc-specific-capabilities - 在描述中明确具体能力desc-trigger-keywords - 在描述中包含用户触发关键词desc-third-person-voice - 以第三人称撰写描述desc-length-optimization - 优化描述长度以利于发现desc-avoid-vague-terms - 避免在描述中使用模糊术语desc-differentiate-similar-skills - 使用不同的触发器区分相似技能desc-include-negative-cases - 包含负面案例以提高精确度struct-header-hierarchy - 使用一致的标题层级struct-instructions-first - 将关键指令放在内容开头struct-imperative-instructions - 以祈使语气撰写指令struct-code-blocks-with-language - 在代码块中指定语言struct-line-limit - 将 SKILL.md 保持在 500 行以内struct-single-responsibility - 一个领域对应一个技能trigger-slash-command-aliases - 在描述中包含斜杠命令别名trigger-file-type-patterns - 在描述中包含文件类型模式trigger-workflow-stages - 在描述中引用工作流阶段trigger-error-patterns - 在调试技能中包含错误模式trigger-synonym-coverage - 覆盖同义词和替代表达方式prog-three-level-disclosure - 实现三级渐进式披露prog-one-level-deep-links - 将引用链接限制在一层深度prog-scripts-execute-not-read - 执行脚本而非读取代码prog-lazy-load-examples - 延迟加载示例和参考资料prog-mutual-exclusion - 分离互斥的上下文mcp-tool-naming - 使用清晰的动作-对象工具名称mcp-parameter-descriptions - 记录所有工具参数mcp-error-messages - 返回可操作的错误消息mcp-tool-scope - 设计单一用途的工具mcp-allowed-tools - 使用 allowed-tools 进行安全约束mcp-idempotent-operations - 设计幂等的工具操作test-trigger-phrases - 使用真实用户短语测试技能激活test-edge-cases - 使用边缘案例输入测试技能test-negative-scenarios - 测试技能在无关请求下是否不触发test-instruction-clarity - 使用全新上下文测试指令清晰度maint-semantic-versioning - 对技能发布使用语义化版本控制maint-changelog - 为技能更新维护变更日志maint-plugin-packaging - 将技能打包为插件以便分发maint-audit-security - 从外部源安装前审计技能复制 assets/templates/_template.md 并遵循前置元数据模式:
---
title: 规则标题
impact: CRITICAL|HIGH|MEDIUM-HIGH|MEDIUM|LOW-MEDIUM|LOW
impactDescription: 量化的影响(例如,"2-10 倍改进")
tags: 前缀, 技术, 相关概念
---
参考文件使用模式:references/{prefix}-{slug}.md
每周安装量
101
仓库
GitHub Stars
89
首次出现
2026年1月22日
安全审计
安装于
claude-code84
codex81
opencode80
gemini-cli78
cursor75
github-copilot73
Design and development guide for AI agent skills, including Claude Code skills and MCP tools. Contains 46 rules across 8 categories, prioritized by impact to guide skill creation, review, and optimization.
1. Descriptions drive activation. Claude selects skills based on description matching against user intent. Include specific capabilities, trigger keywords, and negative cases. A skill with a vague description activates inconsistently or never.
2. Front-load critical instructions. Claude may truncate long content. Place non-negotiable rules in the first 100 lines. Bury important constraints at the end and they get ignored.
3. Progressive disclosure saves tokens. Load detailed content only when needed. A 2000-line skill wastes context on every activation. Structure as: SKILL.md (overview) → references/ (details) → scripts/ (execution).
4. Test activation, not just execution. A skill that works perfectly but never triggers provides zero value. Test with real user phrases, synonyms, and edge cases before deployment.
5. One skill per domain. Overlapping skills create activation conflicts. Split by clear boundaries (language, framework, workflow stage) with distinct trigger keywords.
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Skill Metadata Design | CRITICAL | meta- |
| 2 | Description Engineering | CRITICAL | desc- |
| 3 | Content Structure | HIGH | struct- |
| 4 | Trigger Optimization | HIGH | trigger- |
| 5 | Progressive Disclosure | MEDIUM-HIGH | prog- |
| 6 | MCP Tool Design |
meta-name-format - Use lowercase hyphenated skill namesmeta-name-hyphen-boundaries - Never start or end names with hyphensmeta-name-no-consecutive-hyphens - Avoid consecutive hyphens in namesmeta-name-uniqueness - Ensure skill names are globally uniquemeta-required-frontmatter - Include all required frontmatter fieldsmeta-allowed-frontmatter-fields - Use only allowed frontmatter fieldsmeta-frontmatter-yaml-syntax - Use valid YAML frontmatter syntaxmeta-name-length - Keep skill names under 64 charactersmeta-directory-match - Match skill name to directory namedesc-specific-capabilities - Name specific capabilities in descriptiondesc-trigger-keywords - Include user trigger keywords in descriptiondesc-third-person-voice - Write descriptions in third persondesc-length-optimization - Optimize description length for discoverydesc-avoid-vague-terms - Avoid vague terms in descriptionsdesc-differentiate-similar-skills - Differentiate similar skills with distinct triggersdesc-include-negative-cases - Include negative cases for precisionstruct-header-hierarchy - Use consistent header hierarchystruct-instructions-first - Put critical instructions early in contentstruct-imperative-instructions - Write instructions in imperative moodstruct-code-blocks-with-language - Specify language in code blocksstruct-line-limit - Keep SKILL.md under 500 linesstruct-single-responsibility - One skill per domaintrigger-slash-command-aliases - Include slash command aliases in descriptiontrigger-file-type-patterns - Include file type patterns in descriptiontrigger-workflow-stages - Reference workflow stages in descriptiontrigger-error-patterns - Include error patterns in debugging skillstrigger-synonym-coverage - Cover synonyms and alternate phrasingsprog-three-level-disclosure - Implement three-level progressive disclosureprog-one-level-deep-links - Limit reference links to one level deepprog-scripts-execute-not-read - Execute scripts instead of reading codeprog-lazy-load-examples - Lazy load examples and reference materialprog-mutual-exclusion - Separate mutually exclusive contextsmcp-tool-naming - Use clear action-object tool namesmcp-parameter-descriptions - Document all tool parametersmcp-error-messages - Return actionable error messagesmcp-tool-scope - Design single-purpose toolsmcp-allowed-tools - Use allowed-tools for safety constraintsmcp-idempotent-operations - Design idempotent tool operationstest-trigger-phrases - Test skill activation with real user phrasestest-edge-cases - Test skills with edge case inputstest-negative-scenarios - Test that skills do NOT trigger on unrelated requeststest-instruction-clarity - Test instructions with fresh contextmaint-semantic-versioning - Use semantic versioning for skill releasesmaint-changelog - Maintain a changelog for skill updatesmaint-plugin-packaging - Package skills as plugins for distributionmaint-audit-security - Audit skills before installing from external sourcesCopy assets/templates/_template.md and follow the frontmatter schema:
---
title: Rule Title Here
impact: CRITICAL|HIGH|MEDIUM-HIGH|MEDIUM|LOW-MEDIUM|LOW
impactDescription: Quantified impact (e.g., "2-10x improvement")
tags: prefix, technique, related-concepts
---
Reference files use the pattern: references/{prefix}-{slug}.md
Weekly Installs
101
Repository
GitHub Stars
89
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code84
codex81
opencode80
gemini-cli78
cursor75
github-copilot73
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
116,600 周安装
Web Artifacts Builder:React + TypeScript + Vite 前端工件构建工具,一键打包为单HTML文件
329 周安装
YouTube字幕下载器 - 一键下载视频字幕/说明文字,支持yt-dlp与Whisper转录
326 周安装
AI会话交接技能:无缝延续工作流,创建结构化交接文档和提示
337 周安装
统计分析技能:假设检验、回归、贝叶斯分析与APA报告
328 周安装
SQLAlchemy Alembic 专家最佳实践与代码审查指南 - 生产级数据库迁移优化
334 周安装
React Three Fiber物理引擎教程 - r3f-physics(Rapier)快速入门与实战
332 周安装
| MEDIUM |
mcp- |
| 7 | Testing and Validation | MEDIUM | test- |
| 8 | Maintenance and Distribution | LOW-MEDIUM | maint- |