pattern-matching
Expert skill for implementing pattern matching including exhaustiveness checking, decision tree compilation, and efficient match dispatch code generation.
npx skills add a5c-ai/babysitter --skill pattern-matching --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Capabilities
- Usage
- Inputs
- Pattern Types
- Feature Options
- Output Structure
- Pattern Syntax
- Exhaustiveness Checking
- Decision Tree Compilation
- Guard Clause Handling
- Code Generation
- Or-Patterns and As-Patterns
- Workflow
- Best Practices Applied
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.
