Agent skill · AI & Agents

pattern-matching

Expert skill for implementing pattern matching including exhaustiveness checking, decision tree compilation, and efficient match dispatch code generation.

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill pattern-matching --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Allowed tools: ReadWriteEditBashGlobGrep
Path: library/specializations/programming-languages/skills/pattern-matching/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Pattern Matching Skill Implement pattern matching for programming languages including exhaustiveness checking, usefulness analysis, and efficient compilation to decision trees. ## Capabilities - Parse pattern syntax (constructor, wildcard, binding, literals) - Implement exhaustiveness and usefulness checking - Compile patterns to decision trees - Implement guard clause handling - Design or-patterns and as-patterns - Implement nested pattern matching - Optimize pattern match coverage - Generate efficient match dispatch code ## Usage Invoke this skill when you need to: - Add pattern matching to a language - Implement exhaustiveness checking - Compile patterns efficiently - Handle complex pattern features ## Inputs | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | patternTypes | array | Yes | Types of patterns to support | | targetLanguage | string | Yes | Language for implementation | | compilationStrategy | string | No | Strategy (decision-tree, backtracking) | | features | array | No | Advanced features to implement | ### Pattern Types ```json { "patternTypes": [ "wildcard", "variable", "literal", "constructor", "tuple", "record", "list

What's inside
Steps it walks through
  1. Capabilities
  2. Usage
  3. Inputs
  4. Pattern Types
  5. Feature Options
  6. Output Structure
  7. Pattern Syntax
  8. Exhaustiveness Checking
  9. Decision Tree Compilation
  10. Guard Clause Handling
  11. Code Generation
  12. Or-Patterns and As-Patterns
  13. Workflow
  14. Best Practices Applied
Ships with 1 file
  • README.md
More from babysitter
All skills →
About this skill
What does the pattern-matching skill do?

Expert skill for implementing pattern matching including exhaustiveness checking, decision tree compilation, and efficient match dispatch code generation.

How do I install it?

Run `npx skills add a5c-ai/babysitter --skill pattern-matching --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going