360 Secure SkillHub
360 安全技能中心

text-util

通过本地 shell 脚本对命令行文本执行大写、小写、反转,以及字符、单词和行数统计;无外部依赖,不涉及网络或外部服务。

terrycarter1985
terrycarter1985
热度 12.14
最近更新 2026-08-16 10:53:13
分类:效率依赖:代码执行应用场景:数据处理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add text-util
Metadata
name
text-util
description
Lightweight text transformation utilities. Uppercase, lowercase, reverse, and count characters/words/lines in any text input. Use when a prompt asks to convert case, reverse a string, or quickly count elements without writing a script.
metadata
{"openclaw":{"emoji":"📝"}}

Text Util

Quick text transformations from the command line.

Commands

Command Description
upper <text> Convert to UPPERCASE
lower <text> Convert to lowercase
reverse <text> Reverse character order
count <text> Count chars, words, lines

Example

$ ./scripts/run.sh upper "hello world"
HELLO WORLD

$ ./scripts/run.sh count "hello world\nfoo bar"
chars: 19  words: 4  lines: 2

Install

No dependencies. Run the shell script directly.