Text

👤 ivangdavila 📦 v1.0.0 ⭐ 4.3 ⬇️ 2.1K 下載
💻 開發程式設計 免費

📖 技能介紹


name: Text description: Transform, format, and process text with patterns for writing, data cleaning, localization, citations, and copywriting.


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

推薦訪問7w4.net獲取更多AI技能。


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)

🤖 AI 評測

這個 Skill 質量不錯,涵蓋了寫作、清洗資料、寫營銷文案、學術引用和翻譯等多個實用場景。規則寫得很清晰,可以直接照著做,對日常文書處理工作很有幫助。美中不足的是沒有獨立的使用說明,各部分內容之間的關聯不夠明顯,部分例子也可以更豐富。總體來說值得推薦,質量可靠。

📊 多維度評分

適應性3.9
規範性4.3
有效性4.7
可靠性4.2
可信度4.3

📁 包含檔案 (7 個)

📄 SKILL.md 2 KB
📄 _meta.json 123 B
📄 academic.md 4.4 KB
📄 copy.md 4.3 KB
📄 data.md 4.9 KB
📄 localization.md 4.2 KB
📄 writing.md 3.5 KB