After

From curiositech/some_claude_skills · View interactive version

After is an AI agent skill from the GitHub repository curiositech/some_claude_skills. Guides creation of high-quality Agent Skills with domain expertise, anti-pattern detection, and progressive disclosure best practices. Use when creating skills, reviewing existing skills, or when users mention improving skill quality, encoding expertise, or avoiding common AI tooling mistakes. Activ

How to use this skill

Skill file

Skill Coach: Creating Expert-Level Agent Skills

This skill helps you create Agent Skills that encode real domain expertise, not just surface-level instructions. It focuses on the shibboleths - the deep knowledge that separates novices from experts.

When to Use This Skill

✅ Use for:

❌ NOT for:

What Makes a Great Skill

Great skills are progressive disclosure machines that:

  1. Activate precisely - Specific keywords trigger, NOT clause prevents false activation
  2. Encode shibboleths - Expert knowledge that separates novice from expert approaches
  3. Surface anti-patterns - "If you see X, that's wrong because Y, use Z instead"
  4. Capture temporal knowledge - "Pre-2024: X. 2024+: Y. Watch for: LLMs suggesting X"
  5. Know their limits - "Use this for A, B, C. NOT for D, E, F. For D use skill-name-2"
  6. Provide decision trees - Not templates, but "If X then A, if Y then B, never C"
  7. Stay under 500 lines - Core in SKILL.md, deep dives in /references

Quick Wins

Immediate improvements for existing skills:

  1. Add NOT clause to description → Prevents false activation
  2. Add 1-2 anti-patterns → Prevents common mistakes
  3. Check line count (wc -l) → Should be <500
  4. Remove dead files → Delete unreferenced scripts/references
  5. Test activation → Ask questions that should/shouldn't trigger it

Quick Start

Creating a New Skill:

  1. Define scope: What expertise? What keywords? What NOT to handle?
  2. Write description with keywords and NOT clause
  3. Add anti-patterns you've observed
  4. Test activation thoroughly
  5. Use Review Checklist below

Core Principles

1. Progressive Disclosure Architecture

Skills load in three phases:

Critical: Keep SKILL.md under 500 lines. Split details into /references.

2. Description Field Design

The description is your activation trigger. Formula: [What] [Use for] [Keywords] NOT for [Exclusions]

Progression from Bad → Good:

❌ Bad: description: Helps with images

⚠️ Better: description: Image processing with CLIP

✅ Good: description: CLIP semantic search. Use for image-text matching, zero-shot classification. Activate on "CLIP", "embeddings", "image search". NOT for counting, fine-grained classification, spatial reasoning.

3. Anti-Pattern Detection

Great skills actively warn about common mistakes. Structure:

## Common Anti-Patterns

### Pattern: [Name]
**What it looks like**: [Code example or description]
**Why it's wrong**: [Fundamental reason]
**What to do instead**: [Better approach]
**How to detect**: [Validation rule]

4. Temporal Knowledge

Technology evolves. Capture what changed and when:

## Evolution Timeline

### Pre-2024: Old Approach
[What people used to do]

### 2024-Present: Current Best Practice
[What changed and why]

### Watch For
[Deprecated patterns LLMs might still suggest]

Skill Structure

Mandatory:

your-skill/
└── SKILL.md           # Core instructions (<500 lines)

Optional (only if needed):

├── scripts/           # Working code (not templates)
├── references/        # Deep dives (referenced from SKILL.md)
├── assets/            # Config files, templates
└── examples/          # Concrete good/bad examples

Anti-pattern: Creating structure "just in case" - only add files that SKILL.md references

SKILL.md Template Structure

---
name: your-skill-name
description: [What] [When] [Triggers]. NOT for [Exclusions].
allowed-tools: Read,Write  # Minimal only
---

# Skill Name
[One sentence purpose]

## When to Use
✅ Use for: [A, B, C]
❌ NOT for: [D, E, F]

## Core Instructions
[Step-by-step, decision trees, not templates]

## Common Anti-Patterns
### [Pattern]
**Symptom**: [Recognition]
**Problem**: [Why wrong]
**Solution**: [Better approach]

Anti-Patterns in Skill Creation

Anti-Pattern: The Reference Illusion

What it looks like: Skill references scripts/files that don't exist

# Quick Start
Run `python scripts/validate.py` to check your skill

But /scripts/validate.py doesn't exist in the skill directory.

Why it's wrong: Claude will try to use non-existent files, causing errors and confusion.

What to do instead: Only reference files that actually exist. If you want to suggest scripts, either:

  1. Include them in the skill
  2. Show inline code examples
  3. Clearly mark as "Example - not included"

How to detect: find skill-dir/ -type f and verify all referenced paths exist

Anti-Pattern: Description Soup

What it looks like:

description: Helps with many things including X, Y, Z, and also A, B, C, plus general assistance

Why it's wrong: Vague descriptions cause:

What to do instead: Specific trigger keywords + clear exclusions

description: [Core capability]. Use for [A, B, C]. Activate on keywords: "X", "Y", "Z". NOT for [D, E, F].

Anti-Pattern: Template Theater

What it looks like: Skill is 90% templates and examples, 10% actual instructions

Why it's wrong: Claude doesn't need templates - it needs expert knowledge and decision trees. Templates are for humans.

What to do instead:

Anti-Pattern: The Everything Skill

What it looks like: One skill trying to handle an entire domain

name: web-dev-expert
description: Handles all web development tasks

Why it's wrong:

What to do instead: Create focused, composable skills:

Anti-Pattern: Orphaned Sections

What it looks like: Skill has /references/deep_dive.md but never tells Claude when to read it

Why it's wrong: Files exist but are never used = wasted space

What to do instead: Explicit triggers in main SKILL.md:

For database-specific anti-patterns, see `/references/database_antipatterns.md`

Evolution Timeline: Skill Framework Best Practices

2024 Early: First Skills

2024 Mid: Progressive Disclosure

2024 Late: Anti-Pattern Focus

2025: Current Best Practices

Domain-Specific Shibboleths

Shibboleths = deep knowledge that separates novices from experts.

Skill Creation Shibboleths

Novice skill creator:

Expert skill creator:

Domain Example Shibboleths

CLIP Embeddings:

MCPs vs Scripts:

Validation Best Practices

Plan-Validate-Execute Pattern:

  1. Generate plan → 2. Validate BEFORE execution → 3. Execute → 4. Verify

Pre-Flight Checks (include in skills that modify state):

Example: Good vs Bad Skills

Good Skill - Specific, expert knowledge, clear boundaries:

name: clip-aware-embeddings
description: CLIP semantic search. Use for image-text matching, zero-shot classification. Activate on "CLIP", "embeddings", "image search". NOT for counting, fine-grained classification, spatial reasoning.

✅ Includes: When NOT to use, alternatives (DETR/PC-CLIP), temporal evolution, anti-patterns

Bad Skill - Vague, template-heavy, no expertise:

name: image-processing
description: Processes images

❌ Problems: No activation triggers, no exclusions, no expert knowledge, just generic templates

Integration with Other Tools

Works Well With

Conflicts With

Common Workflows

Workflow 1: Create Skill from Expertise

  1. You have domain expertise → Activate skill-coach
  2. Ask: "Help me create a skill for [domain]"
  3. Define scope, keywords, exclusions
  4. Encode shibboleths (expert knowledge)
  5. Add anti-patterns you've observed
  6. Test activation

Workflow 2: Debug Activation Issues

  1. Skill not activating → Activate skill-coach
  2. Ask: "Review my skill's description and activation triggers"
  3. Add missing keywords
  4. Clarify NOT clause
  5. Test with specific phrases

Workflow 3: Reduce False Activations

  1. Skill activates too often → Activate skill-coach
  2. Ask: "Help me narrow this skill's scope"
  3. Add NOT clause with exclusions
  4. Consider splitting into multiple focused skills
  5. Test edge cases

Iterating on Skills

Improvement Loop (use Claude to improve skills):

# 1. Use the skill on real tasks
# 2. Ask: "What anti-patterns did you encounter?"
# 3. Ask: "What decision points were unclear?"
# 4. Update SKILL.md with learnings
# 5. Test: Does it activate correctly now?

Red Flags:

Tool Permissions

This skill uses: Read,Write,Bash,Glob,Grep,Edit

Guidelines:

Security Audit:

Skill Review Checklist

CRITICAL (must-have):

HIGH PRIORITY (should-have):

NICE TO HAVE (polish):

Testing Your Skill

Activation Test

Ask Claude questions that SHOULD trigger the skill:

# Example for a React skill:
"Help me optimize this React component's re-renders"
# Check: Did the skill activate?

Ask questions that SHOULD NOT trigger the skill:

# Example for a React skill:
"Help me write a Python script"
# Check: Did it correctly NOT activate?

Integration Test

Decision Trees

When to create a NEW skill?

Skill vs Subagent vs MCP?

Common Questions

Q: SKILL.md vs /references?

SKILL.md: Core instructions (<500 lines). /references: Deep dives (loaded as needed).

Q: How do I handle deprecated patterns?

## ⚠️ Deprecated: [Pattern]
**Until**: [Date] | **Why**: [Reason] | **Now use**: [Current]
**Watch**: LLMs may suggest this due to training data

Success Metrics


This skill guides: Skill creation | Skill auditing | Anti-pattern detection | Progressive disclosure | Domain expertise encoding

Meta-note: This skill practices what it preaches - it has been iteratively improved using its own guidance, demonstrating the iteration loop it recommends.

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.