Parsing and Mutating Strings
БесплатноБез исполняемых скриптовНе проверенUtilities in this library which provide effective ways to parse or mutate text at both runtime and design-time while ensuring that the resulting type is as…
Об этом скилле
Parsing and Mutating Strings
Instructions
Identify which of the two best describe your needs:
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
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.
If your need fits the
Simpledescription 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- Trim whitespace
- Strip a subsection of content
StripAfter<TStr,TBreak>[ source, examples ] - stripTStripafter first instance ofTBreakStripAfterLast<TStr,TBreak>[ source, examples ] - stripTStripafter last instance ofTBreakStripBefore<TStr,TBreak>[ source, examples ] - stripTStrbefore the substringTBreakis found; retain the restStripFirst<T,U>[ source, examples ]StripLeading<T,U>[ source, examples ]StripSurround<T,U>[ source, examples ]StripTrailing<T,U>[ source, examples ]StripUntil<T,U>[ source, examples ]
- Retain a subsection of content (the inverse of "strip")
- String Interpolation (aka, injecting content into sections of a corpus of text)
- TODO
If your need fits the
Structuredneed 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.
Установить Parsing and Mutating Strings в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Parsing and Mutating Strings?
Utilities in this library which provide effective ways to parse or mutate text at both runtime and design-time while ensuring that the resulting type is as narrow as possible.
Как установить скилл Parsing and Mutating Strings?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Parsing and Mutating Strings запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic