Text
Transform, format, and process text with patterns for writing, data cleaning, localization, citations, and copywriting.
от clawic★ 23 звезды на GitHub
Установить Text в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Quick Reference
| Task | Load |
|---|---|
| Creative writing (voice, dialogue, POV) | writing.md |
| Data processing (CSV, regex, encoding) | data.md |
| Academic/citations (APA, MLA, Chicago) | academic.md |
| Marketing copy (headlines, CTA, email) | copy.md |
| Translation/localization | localization.md |
Universal Text Rules
Encoding
- Always verify encoding first:
file -bi document.txt - Normalize line endings:
tr -d '\r' - Remove BOM if present:
sed -i '1s/^\xEF\xBB\xBF//'
Whitespace
- Collapse multiple spaces:
sed 's/:space:\+/ /g' - Trim leading/trailing:
sed 's/^:space:*//;s/:space:*$//'
Common Traps
- Smart quotes (
"") break parsers → normalize to" - Em/en dashes (
–—) break ASCII → normalize to- - Zero-width chars invisible but break comparisons → strip them
- String length ≠ byte length in UTF-8 (
"café"= 4 chars, 5 bytes)
Format Detection
# Detect encoding
file -I document.txt
# Detect line endings
cat -A document.txt | head -1
# ^M at end = Windows (CRLF)
# No ^M = Unix (LF)
# Detect delimiter (CSV/TSV)
head -1 file | tr -cd ',;\t|' | wc -c
Quick Transformations
| Task | Command |
|---|---|
| Lowercase | tr '[:upper:]' '[:lower:]' |
| Remove punctuation | tr -d '[:punct:]' |
| Count words | wc -w |
| Count unique lines | sort -u | wc -l |
| Find duplicates | sort | uniq -d |
| Extract emails | grep -oE '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' |
| Extract URLs | `grep -oE 'https?://[^[:space:]<>"{} |
Before Processing Checklist
- Encoding verified (UTF-8?)
- Line endings normalized
- Delimiter identified (for structured text)
- Target format/style defined
- Edge cases considered (empty, Unicode, special chars)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- academic.md
- copy.md
- data.md
- localization.md
- writing.md
FAQ
Что делает скилл Text?
Transform, format, and process text with patterns for writing, data cleaning, localization, citations, and copywriting.
Как установить скилл Text?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Text запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…