360 Secure SkillHub
360 安全技能中心

Text Tools Pro

名为 Text Tools Pro 的文本处理工具集,提供文本清理与规范化、Markdown/HTML 及大小写转换、字数统计与阅读时间估算、查找替换、文本比较、URL/邮箱/电话提取等功能,通过命令行调用 scripts 目录下的 Python 脚本;实际文件仅含 text_analyze.py 与 text_clean.py 两个脚本。

awdasfdada
awdasfdada
热度 16.02
最近更新 2026-06-13 23:34:56
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 文件转换 / 校对润色

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add text-tools-pro
Metadata
name
text-tools-pro
description
Text processing toolkit - format, clean, convert, analyze text. Includes markdown formatting, text cleaning, word count, case conversion, find/replace, text comparison, and more. Use when users need to process, format, clean, or analyze text content.

Text Tools Pro

A comprehensive text processing toolkit for everyday text manipulation tasks.

Features

  • Text Cleaning: Remove extra spaces, fix line breaks, normalize encoding
  • Format Conversion: Markdown ↔ HTML, Case conversion (upper/lower/title)
  • Text Analysis: Word count, character count, reading time estimate
  • Find & Replace: Batch text replacement with regex support
  • Text Comparison: Diff two texts and highlight differences
  • Line Operations: Sort lines, remove duplicates, reverse order
  • Text Extraction: Extract URLs, emails, phone numbers from text

Quick Start

Clean Text

text-tools clean --input file.txt --output clean.txt

Convert Case

text-tools case --input file.txt --to upper  # upper, lower, title, sentence

Count Words

text-tools count --input file.txt

Find & Replace

text-tools replace --input file.txt --find "old" --replace "new" --output result.txt

Compare Texts

text-tools diff --file1 a.txt --file2 b.txt --output diff.html

Extract Data

text-tools extract --input file.txt --type urls    # urls, emails, phones

Scripts

All functionality available in scripts/:

  • text_clean.py - Text cleaning and normalization
  • text_convert.py - Format and case conversion
  • text_analyze.py - Text analysis and statistics
  • text_replace.py - Find and replace operations
  • text_diff.py - Text comparison
  • text_extract.py - Data extraction from text