Skill authoring

From pproenca/dot-skills · View interactive version

Skill authoring is an AI agent skill from the GitHub repository pproenca/dot-skills. Design and development best practices for Claude Code skills, MCP tools, and AI agent capabilities. Use when creating skills, writing SKILL.md files, designing tool descriptions, or optimizing triggers. Triggers on "create a skill", "skill template", "write skill instructions", SKILL.md, metadata.js

How to use this skill

Skill file

AI Agent Skills Best Practices

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.

When to Apply

Core Principles

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.

Rule Categories

| 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 | MEDIUM | mcp- |

| 7 | Testing and Validation | MEDIUM | test- |

| 8 | Maintenance and Distribution | LOW-MEDIUM | maint- |

Quick Reference

1. Skill Metadata Design (CRITICAL)

2. Description Engineering (CRITICAL)

3. Content Structure (HIGH)

4. Trigger Optimization (HIGH)

5. Progressive Disclosure (MEDIUM-HIGH)

6. MCP Tool Design (MEDIUM)

7. Testing and Validation (MEDIUM)

8. Maintenance and Distribution (LOW-MEDIUM)

Creating Rules

Copy 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

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.