Back to Skills

Parsing and Mutating Strings

inocan-group
Updated Today
22 views
18
18
View on GitHub
Designdesign

About

This skill provides utilities for parsing and manipulating strings at both runtime and design-time, with two main approaches for different needs. Use the "Simple" utilities for basic substring operations, stripping content, or ensuring prefixes/suffixes. Use "Structured" utilities when you need language-aware parsing with different rules for different string segments, while maintaining narrow result types.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/inocan-group/inferred-types
Git CloneAlternative
git clone https://github.com/inocan-group/inferred-types.git ~/.claude/skills/Parsing and Mutating Strings

Copy and paste this command in Claude Code to install this skill

Documentation

Parsing and Mutating Strings

Instructions

  1. Identify which of the two best describe your needs:

    1. Simple
      • finding a sub-string inside a string variable
      • stripping or retaining content UNTIL a certain delimiter is found
      • ensuring that the string starts or ends with a certain sub-string
    2. Structured
      • you need to parse a string for language features
      • different parts of the string will have different parsing rules based on the characters which preceded it.
  2. If your need fits the Simple description then ...

    You will likely want to use one of the following type or runtime utilities found in this repo. Every utility's source will have a description above the symbol and many also may include a simple example.

    Type Utilities

    you can import all of these utilities from inferred-types/types

  3. If your need fits the Structured need then ...


Notes:

  • there is often (but not always) a 1:1 relationship between a type utility and a runtime function.
    • The runtime function (often but not always) will leverage the corresponding type utility to produce narrow types.
  • many example links are to test files; these test files use both runtime and type tests. For more about type tests you can read type testing document.

GitHub Repository

inocan-group/inferred-types
Path: .claude/skills/parsing
typescriptutility

Related Skills

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill

Algorithmic Art Generation

Meta

This skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.

View skill

webapp-testing

Testing

This Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.

View skill

requesting-code-review

Design

This skill dispatches a code-reviewer subagent to analyze code changes against requirements before proceeding. It should be used after completing tasks, implementing major features, or before merging to main. The review helps catch issues early by comparing the current implementation with the original plan.

View skill