Case Convert
/install case-convert
Case Converter
Convert text between 15 different case styles simultaneously.
Input
- The text to convert
- Optionally, the target case style (if not specified, show all 15)
Output
- The converted text in the requested case style(s)
- If no target specified, show all 15 transformations
Instructions
Apply each transformation exactly as follows:
-
lowercase —
s.toLowerCase()Example:hello world example -
UPPERCASE —
s.toUpperCase()Example:HELLO WORLD EXAMPLE -
Title Case — Capitalize each word EXCEPT articles/prepositions when not first: Small words (keep lowercase unless first): a, an, and, as, at, but, by, for, in, nor, of, on, or, so, the, to, up, yet, via, with Always capitalize: first word of the string, first word after
.,!,?Example:Hello World Example(but:The Art of War) -
Sentence case — Lowercase everything; capitalize first letter of each sentence (after
.,!,?followed by whitespace, and the very first character) Example:Hello world example. Another sentence. -
camelCase — Remove non-word characters (replace with space), trim, lowercase, then uppercase the first letter of every subsequent word, remove all spaces Example:
helloWorldExample -
PascalCase — Same as camelCase but also capitalize the very first letter Example:
HelloWorldExample -
snake_case — Lowercase, remove non-word non-space characters, replace spaces with
_, collapse consecutive_Example:hello_world_example -
kebab-case — Lowercase, remove non-word non-space characters, replace spaces with
-, collapse consecutive-Example:hello-world-example -
CONSTANT_CASE — Uppercase, remove non-word non-space characters, replace spaces with
_, collapse consecutive_Example:HELLO_WORLD_EXAMPLE -
dot.case — Lowercase, remove non-word non-space characters, replace spaces with
., collapse consecutive.Example:hello.world.example -
path/case — Lowercase, remove non-word non-space characters, replace spaces with
/, collapse consecutive/Example:hello/world/example -
iNVERSE cASE — For each character: if uppercase → lowercase, if lowercase → uppercase, else unchanged Example:
hELLO wORLD eXAMPLE -
aLtErNaTe CaSe — For each character at index i: if i is even → lowercase, if i is odd → uppercase Example:
hElLo wOrLd eXaMpLe -
esreveR — Reverse the entire string character by character Example:
elpmaxE dlroW olleH -
SpOnGeBoB cAsE — Iterate through alphabetic characters only, alternating upper/lower (non-alphabetic characters pass through unchanged, but do NOT advance the alternation counter) Example:
hElLo WoRlD eXaMpLe
Options
target— specific case name (if omitted, output all 15)batchMode— if true, apply the transformation to each line independently
Examples
Request: "Convert 'hello world' to camelCase"
Output: helloWorld
Request: "Convert 'USER_LOGIN_COUNT' to all cases"
Output:
- lowercase:
user_login_count - UPPERCASE:
USER_LOGIN_COUNT - Title Case:
User_login_count - Sentence case:
User_login_count - camelCase:
userLoginCount - PascalCase:
UserLoginCount - snake_case:
user_login_count - kebab-case:
user-login-count - CONSTANT_CASE:
USER_LOGIN_COUNT - dot.case:
user.login.count - path/case:
user/login/count - iNVERSE cASE:
user_login_count - aLtErNaTe CaSe:
uSeR_lOgIn_cOuNt - esreveR:
TNUOC_NIGOL_RESU - SpOnGeBoB cAsE:
uSeR_lOgIn_cOuNt
Request: "snake_case this: 'My Component Name'"
Output: my_component_name
Error Handling
- If input is empty, return an empty string for all cases
- If target case style is not recognized, list all 15 available styles and ask which one the user wants
- For very long inputs (>10,000 characters), process normally but note the length
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install case-convert - 安装完成后,直接呼叫该 Skill 的名称或使用
/case-convert触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Case Convert 是什么?
Convert text between different case styles. Use when the user asks to convert text to camelCase, snake_case, kebab-case, PascalCase, UPPERCASE, lowercase, Ti... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 174 次。
如何安装 Case Convert?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install case-convert」即可一键安装,无需额外配置。
Case Convert 是免费的吗?
是的,Case Convert 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Case Convert 支持哪些平台?
Case Convert 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Case Convert?
由 Omar Hernandez(@ohernandez-dev-blossom)开发并维护,当前版本 v1.0.0。