agentleFS
letitbkletitbk/claude-academic-setup/skills/skill-creator/SKILL.md

skill-creator

Skill46 starsChanged 9 months agoMITView on GitHub

Use when creating new skills, editing existing skills, scaffolding skill directories, packaging skills for distribution, or verifying skills work before deployment. Combines Anthropic's official skill authoring guide with TDD methodology.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use context7-efficient, skill-share and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hfzarslanSkill

    context7-efficient

    Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.

    Also in 5 projects that use this

  • ArogyaReddySkill

    skill-share

    A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

    Also in 20 projects that use this

  • bkootazSkill

    artifacts-builder

    Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

    Also in 39 projects that use this

  • seedprodSkill

    goplaces

    Query Google Places API (New) via the goplaces CLI for text search, place details, resolve, and reviews. Use for human-friendly place lookup or JSON output for scripts.

    Also in 5 projects that use this

  • seedprodSkill

    things-mac

    Manage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database). Use when a user asks OpenClaw to add a task to Things, list inbox/today/upcoming, search tasks, or inspect projects/areas/tags.

    Also in 5 projects that use this

  • JetBrainsSkill

    slack-gif-creator

    Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack.

    Also in 93 projects that use this

  • +1 more from seedprod

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create effective skills using TDD methodology with scaffolding scripts.

    line 8
  2. Distinctive:

    Skills are TDD applied to process documentation: Write test cases (pressure scenarios), watch them fail (baseline behavior), write the …

    line 12
  3. Distinctive:

    Core principle: If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.

    line 14
  4. Very specific:

    Only name and description fields.

    line 41
  5. Distinctive:

    Ask: "What functionality should this skill support?" "Can you give usage examples?"

    line 85
  6. Distinctive:

    Run pressure scenario WITHOUT skill.

    line 89
  7. Distinctive:

    Run scenarios WITH skill. Agent should comply.

    line 98
  8. Distinctive:

    Metadata: - Always in context (~100 words)

    line 119
  9. Very specific:

    SKILL.md body: - When skill triggers (<5k words)

    line 120
  10. Distinctive:

    Never for: Reference material, code examples, linear instructions.

    line 169

“Common” is measured: kept by at least 6 in 10 of the 179 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Creator

Create effective skills using TDD methodology with scaffolding scripts.

Overview

Skills are TDD applied to process documentation. Write test cases (pressure scenarios), watch them fail (baseline behavior), write the skill, watch tests pass, and refactor.

Core principle: If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.

Quick Start

# Initialize new skill
scripts/init_skill.py my-skill --path ~/.claude/skills

# Validate skill structure
scripts/quick_validate.py ~/.claude/skills/my-skill

# Package for distribution
scripts/package_skill.py ~/.claude/skills/my-skill

Skill Structure

skill-name/
├── SKILL.md              # Main reference (required)
├── scripts/              # Executable code (optional)
├── references/           # Documentation loaded as needed (optional)
└── assets/               # Templates, images, fonts (optional)

SKILL.md Frontmatter

Only name and description fields. Max 1024 chars total.

---
name: hyphen-case-name
description: Use when [specific triggering conditions]. Start with "Use when..."
---

CRITICAL: Description = when to use, NOT what skill does. Testing revealed that workflow summaries in descriptions cause agents to skip reading the full skill.

# ❌ BAD: Summarizes workflow
description: Use when executing plans - dispatches subagent with code review between tasks

# ✅ GOOD: Just triggers
description: Use when executing implementation plans with independent tasks

SKILL.md Body Structure

# Skill Name

## Overview
Core principle in 1-2 sentences.

## When to Use
Symptoms and use cases (bullets). When NOT to use.

## Core Pattern
Before/after or key workflow.

## Quick Reference
Table or bullets for scanning.

## Common Mistakes
What goes wrong + fixes.

Creation Process (TDD)

1. Understand with Examples

Ask: "What functionality should this skill support?" "Can you give usage examples?"

2. RED: Baseline Test

Run pressure scenario WITHOUT skill. Document:

  • What choices did agent make?
  • What rationalizations (verbatim)?
  • Which pressures triggered violations?

3. GREEN: Write Minimal Skill

Address those specific rationalizations. Don't add hypothetical content.

Run scenarios WITH skill. Agent should comply.

4. REFACTOR: Close Loopholes

New rationalization found? Add explicit counter. Re-test until bulletproof.

See references/tdd-testing.md for full testing methodology.

Token Efficiency

Target word counts:

  • Frequently-loaded skills: <200 words
  • Other skills: <500 words

Techniques:

  • Move details to --help in scripts
  • Cross-reference other skills instead of repeating
  • Compress examples

Progressive Disclosure

  1. Metadata - Always in context (~100 words)
  2. SKILL.md body - When skill triggers (<5k words)
  3. Bundled resources - As needed (unlimited)

For skills with variants (frameworks, providers), keep core in SKILL.md, move variant details to references/:

cloud-deploy/
├── SKILL.md (workflow + selection)
└── references/
    ├── aws.md
    ├── gcp.md
    └── azure.md

Bundled Resources

scripts/

Deterministic code for fragile or repeated operations. May execute without loading into context.

references/

Documentation loaded on-demand. For 100+ line files, include table of contents.

assets/

Templates, images, fonts used in output (not loaded into context).

CSO (Claude Search Optimization)

Rich description: Include concrete triggers, symptoms, situations. Write in third person.

Keywords: Error messages, symptoms, synonyms, tool names.

Naming: Verb-first, hyphen-case: creating-skills not skill-creation.

Anti-Patterns

Anti-PatternWhy Bad
Narrative example ("In session 2025-10-03...")Too specific, not reusable
Multi-language examplesMediocre quality, maintenance burden
Code in flowchartsCan't copy-paste
Generic labels (step1, helper2)Labels need semantic meaning

Flowchart Usage

Use ONLY for:

  • Non-obvious decision points
  • Process loops where you might stop early
  • "When to use A vs B" decisions

Never for: Reference material, code examples, linear instructions.

The Iron Law

NO SKILL WITHOUT A FAILING TEST FIRST

This applies to NEW skills AND EDITS. Write skill before testing? Delete it. Start over.

Checklist

RED Phase:

  • Create pressure scenarios
  • Run WITHOUT skill, document baseline verbatim
  • Identify rationalization patterns

GREEN Phase:

  • Name: hyphen-case, letters/numbers/hyphens only
  • Description: starts with "Use when...", no workflow summary
  • Address specific baseline failures
  • Run WITH skill, verify compliance

REFACTOR Phase:

  • Identify NEW rationalizations
  • Add explicit counters
  • Re-test until bulletproof

Quality:

  • Flowchart only if decision non-obvious
  • Quick reference table
  • Common mistakes section
  • No narrative storytelling

Deploy:

  • Run quick_validate.py
  • Package with package_skill.py (optional)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.