string-algorithm-matcher

Match string problems to appropriate algorithms

509 stars

Best use case

string-algorithm-matcher is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Match string problems to appropriate algorithms

Teams using string-algorithm-matcher should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/string-algorithm-matcher/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/algorithms-optimization/skills/string-algorithm-matcher/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/string-algorithm-matcher/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How string-algorithm-matcher Compares

Feature / Agentstring-algorithm-matcherStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Match string problems to appropriate algorithms

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# String Algorithm Matcher Skill

## Purpose

Match string processing problems to the most appropriate algorithms based on requirements and constraints.

## Capabilities

- Pattern matching algorithm selection (KMP, Z, Rabin-Karp)
- Suffix structure selection (array vs tree vs automaton)
- Palindrome detection algorithm selection
- Rolling hash implementation guidance
- String DP technique matching

## Target Processes

- pattern-matching-algorithms
- trie-suffix-structures
- string-processing

## Algorithm Selection Guide

### Single Pattern Matching
| Scenario | Algorithm | Complexity |
|----------|-----------|------------|
| Single pattern | KMP | O(n+m) |
| Multiple patterns | Aho-Corasick | O(n+m+z) |
| Approximate match | Rolling Hash | O(n*m) average |

### Suffix Structures
| Need | Structure | Build Time |
|------|-----------|------------|
| Substring search | Suffix Array | O(n log n) |
| Multiple queries | Suffix Tree | O(n) |
| Subsequence counting | Suffix Automaton | O(n) |

### Palindromes
| Problem | Algorithm |
|---------|-----------|
| Longest palindromic substring | Manacher |
| Palindrome partitioning | DP + Manacher |
| Palindrome queries | Hashing |

## Input Schema

```json
{
  "type": "object",
  "properties": {
    "problemDescription": { "type": "string" },
    "problemType": {
      "type": "string",
      "enum": ["patternMatch", "suffixQueries", "palindrome", "subsequence", "dp"]
    },
    "constraints": { "type": "object" }
  },
  "required": ["problemDescription"]
}
```

## Output Schema

```json
{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "algorithm": { "type": "string" },
    "complexity": { "type": "string" },
    "alternatives": { "type": "array" },
    "implementation": { "type": "string" }
  },
  "required": ["success", "algorithm"]
}
```

Related Skills

slam-algorithms

509
from a5c-ai/babysitter

Expert skill for SLAM algorithm selection, configuration, and tuning. Configure visual SLAM (ORB-SLAM3, RTAB-Map), LiDAR SLAM (Cartographer, LIO-SAM), tune parameters, evaluate accuracy, and optimize for real-time performance.

graph-algorithm-library

509
from a5c-ai/babysitter

Comprehensive graph algorithms implementation

image-algorithm-validator

509
from a5c-ai/babysitter

Medical image processing algorithm validation skill for segmentation, detection, and analysis algorithms

string-network-analyzer

509
from a5c-ai/babysitter

STRING protein interaction network skill for functional enrichment and network visualization

hpo-phenotype-matcher

509
from a5c-ai/babysitter

Human Phenotype Ontology skill for phenotype-driven gene prioritization

network-matcher

509
from a5c-ai/babysitter

Matches portfolio company needs with investor network resources

genetic-algorithm-optimizer

509
from a5c-ai/babysitter

Genetic algorithm skill for complex optimization problems with non-linear objectives or discontinuous search spaces

graph-algorithm-selector

509
from a5c-ai/babysitter

Select optimal graph algorithm based on problem constraints

geometry-algorithm-library

509
from a5c-ai/babysitter

Implement computational geometry algorithms

algorithm-visualizer

509
from a5c-ai/babysitter

Generate visual representations of algorithm execution

process-builder

509
from a5c-ai/babysitter

Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.

Workflow & Productivity

babysitter

509
from a5c-ai/babysitter

Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)