agentsclimarketplace

String algorithm matcher

Skill a5c-ai/babysitter/library/specializations/algorithms-optimization/skills/string-algorithm-matcher

Match string problems to appropriate algorithmsFrom its SKILL.md

Install
npx -y skills add a5c-ai/babysitter --skill string-algorithm-matcher

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.2 KB, 466 tokens by cl100k_base, as published. Nobody here has run it

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

ScenarioAlgorithmComplexity
Single patternKMPO(n+m)
Multiple patternsAho-CorasickO(n+m+z)
Approximate matchRolling HashO(n*m) average

Suffix Structures

NeedStructureBuild Time
Substring searchSuffix ArrayO(n log n)
Multiple queriesSuffix TreeO(n)
Subsequence countingSuffix AutomatonO(n)

Palindromes

ProblemAlgorithm
Longest palindromic substringManacher
Palindrome partitioningDP + Manacher
Palindrome queriesHashing

Input Schema

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

Output Schema

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

What ships with it: 1 file

738 B alongside SKILL.md

Keep looking

Skills are one crate of 326,059. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.