闲社服务运行正常AI智能体自动化平台
c

大小写转换

技能标识: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, Title Case, CONSTANT_CASE, dot.case, path/case, Sentence case, inverse case, alternate case, or any other case format.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

大小写转换

大小写转换器

同时在15种不同的大小写风格之间转换文本。

输入

  • - 要转换的文本
  • 可选:目标大小写风格(如果未指定,则显示全部15种)

输出

  • - 按请求的大小写风格转换后的文本
  • 如果未指定目标,则显示全部15种转换结果

操作说明

严格按照以下方式应用每种转换:

  1. 1. 全小写 — s.toLowerCase()
示例:hello world example
  1. 2. 全大写 — s.toUpperCase()
示例:HELLO WORLD EXAMPLE
  1. 3. 标题大小写 — 每个单词首字母大写,但冠词/介词不在首位时除外:
小写单词(除非在首位):a, an, and, as, at, but, by, for, in, nor, of, on, or, so, the, to, up, yet, via, with 始终大写:字符串的第一个单词,以及.、!、?后的第一个单词 示例:Hello World Example(但:The Art of War)
  1. 4. 句子大小写 — 全部小写;每个句子的首字母大写(在.、!、?后跟空格处,以及第一个字符)
示例:Hello world example. Another sentence.
  1. 5. 驼峰式 — 移除非单词字符(替换为空格),修剪,转小写,然后将后续每个单词的首字母大写,移除所有空格
示例:helloWorldExample
  1. 6. 帕斯卡式 — 与驼峰式相同,但第一个字母也大写
示例:HelloWorldExample
  1. 7. 蛇形式 — 转小写,移除非单词非空格字符,将空格替换为,合并连续的
示例:helloworldexample
  1. 8. 串式 — 转小写,移除非单词非空格字符,将空格替换为-,合并连续的-
示例:hello-world-example
  1. 9. 常量式 — 转大写,移除非单词非空格字符,将空格替换为,合并连续的
示例:HELLOWORLDEXAMPLE
  1. 10. 点式 — 转小写,移除非单词非空格字符,将空格替换为.,合并连续的.
示例:hello.world.example
  1. 11. 路径式 — 转小写,移除非单词非空格字符,将空格替换为/,合并连续的/
示例:hello/world/example
  1. 12. 反转大小写 — 每个字符:大写→小写,小写→大写,其他不变
示例:hELLO wORLD eXAMPLE
  1. 13. 交替大小写 — 索引i处的每个字符:i为偶数→小写,i为奇数→大写
示例:hElLo wOrLd eXaMpLe
  1. 14. 反转 — 逐个字符反转整个字符串
示例:elpmaxE dlroW olleH
  1. 15. 海绵宝宝大小写 — 仅遍历字母字符,交替大小写(非字母字符保持不变,但不推进交替计数器)
示例:hElLo WoRlD eXaMpLe

选项

  • - target — 特定大小写名称(如果省略,则输出全部15种)
  • batchMode — 如果为true,则对每一行独立应用转换

示例

请求: 将hello world转换为驼峰式

输出: helloWorld



请求: 将USERLOGINCOUNT转换为所有大小写

输出:

  • - 全小写:userlogincount
  • 全大写:USERLOGINCOUNT
  • 标题大小写:Userlogincount
  • 句子大小写:Userlogincount
  • 驼峰式:userLoginCount
  • 帕斯卡式:UserLoginCount
  • 蛇形式:userlogincount
  • 串式:user-login-count
  • 常量式:USERLOGINCOUNT
  • 点式:user.login.count
  • 路径式:user/login/count
  • 反转大小写:userlogincount
  • 交替大小写:uSeRlOgIncOuNt
  • 反转:TNUOCNIGOLRESU
  • 海绵宝宝大小写:uSeRlOgIncOuNt



请求: 蛇形式转换:My Component Name

输出: mycomponentname

错误处理

  • - 如果输入为空,所有大小写返回空字符串
  • 如果目标大小写风格无法识别,列出全部15种可用风格并询问用户需要哪一种
  • 对于超长输入(超过10,000个字符),正常处理但注明长度

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 case-convert-1776083342 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 case-convert-1776083342 技能

通过命令行安装

skillhub install case-convert-1776083342

下载

⬇ 下载 case-convert v1.0.0(免费)

文件大小: 2.23 KB | 发布时间: 2026-4-14 11:06

v1.0.0 最新 2026-4-14 11:06
- Initial release of case-convert skill.
- Converts text between 15 different case styles, including camelCase, snake_case, kebab-case, PascalCase, UPPERCASE, lowercase, Title Case, and more.
- Supports converting a single string or each line individually (batchMode).
- Provides helpful error handling, including style suggestions and long input notices.
- If no target style is given, outputs all 15 transformations at once.
返回顶部