creating-skills

Extract recurring engineering patterns into SKILL.md entries with YAML frontmatter.

5|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/TechyMT/claude-code-superpowers --skill creating-skills-techymt
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: creating-skills
Source: https://github.com/TechyMT/claude-code-superpowers/tree/main/skills/creating-skills
Command: npx skills add https://github.com/TechyMT/claude-code-superpowers --skill creating-skills-techymt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Engineers repeatedly discover the same coding and design patterns across projects but lack a reliable, portable way to teach those patterns to AI assistants so the assistant applies them correctly and only when appropriate. This Skill defines a reproducible format and checklist so patterns become operational knowledge rather than ad-hoc notes.

Core Features & Use Cases

  • Two-layer structure: a generic pattern that any developer can apply plus a grounded source section containing real code and file references.
  • Practical checklist: the six tests (stranger, trigger, real-code, before/after, over-application, domain connection) prevent incorrect or noisy skills from shipping.
  • Before/after transformations: teaches how to show realistic code changes with WHY comments so an AI can apply the change safely.
  • Use Case: convert a recurring error-handling pattern scattered across a repo into a single SKILL.md that automatically loads when prompts ask for improved error handling.

Quick Start

Write a SKILL.md with a YAML frontmatter naming when it should load, a clear generic pattern section, and an "In the source" block showing real code with file path comments.

Frequently Asked Questions about creating-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn recurring code patterns into reusable instructions for an AI assistant?▼

To turn code patterns into reusable AI instructions, extract them into a SKILL.md file containing YAML frontmatter, a generic pattern layer, and a source layer with real-code file references. This format teaches the assistant when and how to apply the pattern.

What format should I use to document engineering patterns for AI code modification?▼

Engineering patterns for AI code modification require a SKILL.md format with YAML frontmatter defining the name and description, followed by a two-layer structure: a generic pattern section and an 'In the source' block showing real code with file path comments.

How do I prevent an AI assistant from incorrectly applying a coding pattern?▼

To prevent incorrect application of a coding pattern, validate the SKILL.md entry against a six-test quality checklist: stranger, trigger, real-code, before/after, over-application, and domain connection tests. This ensures the assistant triggers the pattern only when appropriate.

What is the best way to structure before and after examples for AI skill authoring?▼

The best way to structure examples for AI skill authoring is using realistic before/after code transformations that include WHY comments. This demonstrates the exact code changes required and explains the reasoning, allowing the AI to apply the modification safely.

Do I need real source code references to create a transferable AI skill?▼

Yes, you need real source code references to create a transferable AI skill. The format requires a grounded source section containing actual code and file path comments to ensure the pattern represents operational knowledge rather than ad-hoc notes.

When should I convert a repo's error-handling pattern into a SKILL.md file?▼

You should convert a repo's error-handling pattern into a SKILL.md file when the pattern recurs across multiple projects and you need it to automatically load as operational knowledge when prompts ask for improved error handling in developer workflows.