MCP HubMCP Hub
スキル一覧に戻る

Parsing and Mutating Strings

inocan-group
更新日 Today
50 閲覧
18
18
GitHubで表示
デザインdesign

について

このスキルは、ランタイムとデザイン時の両方で文字列を解析・操作するユーティリティを提供し、異なるニーズに応じて2つの主要なアプローチを採用しています。基本的な部分文字列操作、コンテンツの除去、プレフィックス/サフィックスの保証が必要な場合は「シンプル」ユーティリティを、言語を意識した解析と異なる文字列セグメントに対する個別のルール適用、かつ厳格な結果型の維持が必要な場合は「構造化」ユーティリティをご利用ください。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/inocan-group/inferred-types
Git クローン代替
git clone https://github.com/inocan-group/inferred-types.git ~/.claude/skills/Parsing and Mutating Strings

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

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 リポジトリ

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

関連スキル

content-collections

メタ

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

スキルを見る

creating-opencode-plugins

メタ

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

スキルを見る

polymarket

メタ

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

スキルを見る

cloudflare-turnstile

メタ

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

スキルを見る