All skills
oaustegard avatar

/creating-skill

@04bfd5b

Builds and revises a complete skill DIRECTORY — SKILL.md, scripts, references, assets — and packages it. Use for "create a skill for X", "turn this into a skill", "update/improve this skill", "why doesn't my skill trigger", "review this SKILL.md", "package this skill", or when a repeated procedure should become a reusable artifact. Enforces the structure that makes skills work — a concrete procedure rather than a goal statement, an explicit applicability boundary, failure modes with their signals, a runtime verification step, and a description checked against the existing catalogue for confusability. For choosing whether the instruction should be a skill at all rather than project instructions or a prompt, use crafting-instructions. For writing quality inside the prose, use writing-instructions.

Use this Skill: https://skilld.dev/gh/oaustegard/claude-skills/creating-skill

This session only. Nothing lands on disk.

referencesoptimization-techniques.md

≈875 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Skill Optimization Techniques

Skill Discovery Optimization ("Tool SEO")

Make your skill easy for Claude to discover and use appropriately.

In the Description Field

Include key terms and triggers users might mention:

  • Use action verbs matching user intent
  • Consider phrases like "use proactively" for auto-triggering
  • For critical skills: "MUST BE USED when..." for high-priority scenarios

Example:

description: "Processes Excel spreadsheets with formulas and formatting. Use proactively when users mention Excel, .xlsx files, spreadsheets, or data analysis tasks requiring structured output."

Token Budget Management

For skills used in resource-constrained environments:

Minimize Initialization Cost

  • Keep SKILL.md under 500 lines
  • Use progressive disclosure aggressively
  • Move verbose examples to reference files
  • Create lightweight wrapper scripts instead of large inline code blocks

Track Context Usage

  • Monitor which files Claude loads most often
  • Consider splitting frequently-used vs. rarely-used content
  • Use mutually exclusive reference files for different domains

Context-Aware Organization

For skills with multiple domains:

bigquery-skill/
├── SKILL.md (navigation only)
└── references/
    ├── finance.md
    ├── sales.md
    └── product.md

Claude loads only the relevant domain file, keeping other domains at zero context cost.

Model-Specific Optimization

For Claude Haiku

  • Provide more explicit guidance
  • Fewer assumptions about implicit knowledge
  • More structured workflows
  • Clearer validation steps

For Claude Sonnet

  • Balance between guidance and flexibility
  • Moderate detail level
  • Standard approaches work well

For Claude Opus

  • Assume more intelligence
  • Focus on edge cases and subtleties
  • Less hand-holding needed
  • Can handle more implicit instructions

Strategy: If supporting multiple models, aim for Sonnet-level detail (works reasonably well for all three).

Making Intent Clear

When bundling code, make execution intent explicit:

For Execution

Run `analyze_form.py` to extract fields
Do not modify the script, execute as-is

For Reference

See `analyze_form.py` for the extraction algorithm details
Review the implementation if you need to understand field detection logic

File Organization for Efficiency

Descriptive Naming

  • Good: stripe_payment_webhook_handler.py
  • Bad: handler.py

Domain-Based Structure

  • Good: references/authentication/, references/payment/
  • Bad: docs/file1.md, docs/file2.md

Table of Contents for Long Files

For reference files >100 lines, include TOC at top:

# API Reference

## Table of Contents
- [Authentication](#authentication)
- [Payments](#payments)
- [Webhooks](#webhooks)
...

## Authentication
...

This lets Claude see full scope when previewing without loading entire file.

Bundle Comprehensive Resources

No context penalty for unbundled resources until accessed. Include:

  • Complete API docs
  • Extensive examples
  • Large datasets
  • Detailed guides

Claude loads only what's needed for each task.

Validation Script Patterns

For operations prone to errors:

  1. Extract structured plan from Claude's intent
  2. Validate plan with deterministic script
  3. Execute only after validation passes

This catches errors early without context cost of loading full validation logic into Claude's reasoning.

Source: SKILL.md on GitHub

1 warning5mo4 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    This skill provides a comprehensive framework and set of instructions for creating, structuring, and packaging AI agent skills. It includes guidance on naming, directory structure, metadata, and documentation, along with a detailed reference of the execution environment.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

  • Runlayer7mo

    9/9 files flagged

Signed by skilld at 04bfd5b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
metadata
{
  "version": "2.3.0"
}

README badge

README badge for oaustegard/claude-skills/creating-skill