askill
writing-skills

writing-skillsSafety 100Repository

Use when creating new skills, editing existing skills, or verifying skills work before deployment. Follows TDD methodology.

0 stars
1.2k downloads
Updated 1/22/2026

Package Files

Loading files...
SKILL.md

Writing Skills

Overview

Writing skills IS TDD applied to documentation.

Write test (pressure scenario), watch it fail (baseline), write skill, watch it pass, refactor (close loopholes).

When to Create

Create when:

  • Technique wasn't intuitively obvious
  • You'd reference this across projects
  • Pattern applies broadly (not project-specific)
  • Others would benefit

Don't create for:

  • One-off solutions
  • Well-documented standard practices
  • Project-specific conventions (use CLAUDE.md)

Structure Template

---
name: skill-name-with-hyphens
description: Use when [specific triggering conditions]. Third person, no workflow summary.
---

# Skill Title

## Overview
[Core principle in 1-2 sentences]

## When to Use
[Bullet list with symptoms and use cases]

## Core Process
[Main workflow/steps]

## Quick Reference
[Table or bullets for scanning]

## Common Mistakes
[What goes wrong + fixes]

## Examples
[Good and bad with explanations]

Quality Checklist

  • Name uses only letters, numbers, hyphens
  • Description starts with "Use when..." (max 500 chars)
  • Description in third person, no workflow summary
  • Overview has core principle
  • Quick reference table for scanning
  • Common mistakes section
  • Under 100 lines for lean skills, under 500 for comprehensive
  • Keywords throughout for searchability

Testing Requirements

RED Phase:

  1. Create pressure scenarios (3+ combined pressures for discipline skills)
  2. Run scenarios WITHOUT skill - document baseline behavior
  3. Identify patterns in failures/rationalizations

GREEN Phase:

  1. Write minimal skill addressing specific baseline failures
  2. Run scenarios WITH skill - verify compliance

REFACTOR Phase:

  1. Identify NEW rationalizations from testing
  2. Add explicit counters
  3. Re-test until bulletproof

Examples

Good Description:

description: Use when tests have race conditions, timing dependencies, or pass/fail inconsistently

Bad Description:

description: For async testing - write test first, wait for condition, verify result

(Summarizes workflow - Claude may follow description instead of reading skill)

Common Mistakes

MistakeFix
Workflow in descriptionOnly triggers in description
No testing before deployRun RED-GREEN-REFACTOR cycle
Too verbose (500+ lines)Split into SKILL.md + reference files
Generic labels (step1, helper2)Use semantic names
Multi-language examplesOne excellent example is enough

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

85/100Analyzed 3/2/2026

"A well-structured meta-skill documenting TDD methodology for writing skills. Provides comprehensive guidance including when to create skills, structure templates, testing phases (RED-GREEN-REFACTOR), quality checklist, and common mistakes. Highly actionable and reusable across projects."

100
90
90
80
88

Metadata

Licenseunknown
Version-
Updated1/22/2026
Publishererikpr1994

Tags

ci-cdgithub-actionsllmtesting