← 返回 Skills 市场
ohernandez-dev-blossom

Case Convert

作者 Omar Hernandez · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
174
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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:

  1. lowercases.toLowerCase() Example: hello world example

  2. UPPERCASEs.toUpperCase() Example: HELLO WORLD EXAMPLE

  3. 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)

  4. 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.

  5. camelCase — Remove non-word characters (replace with space), trim, lowercase, then uppercase the first letter of every subsequent word, remove all spaces Example: helloWorldExample

  6. PascalCase — Same as camelCase but also capitalize the very first letter Example: HelloWorldExample

  7. snake_case — Lowercase, remove non-word non-space characters, replace spaces with _, collapse consecutive _ Example: hello_world_example

  8. kebab-case — Lowercase, remove non-word non-space characters, replace spaces with -, collapse consecutive - Example: hello-world-example

  9. CONSTANT_CASE — Uppercase, remove non-word non-space characters, replace spaces with _, collapse consecutive _ Example: HELLO_WORLD_EXAMPLE

  10. dot.case — Lowercase, remove non-word non-space characters, replace spaces with ., collapse consecutive . Example: hello.world.example

  11. path/case — Lowercase, remove non-word non-space characters, replace spaces with /, collapse consecutive / Example: hello/world/example

  12. iNVERSE cASE — For each character: if uppercase → lowercase, if lowercase → uppercase, else unchanged Example: hELLO wORLD eXAMPLE

  13. aLtErNaTe CaSe — For each character at index i: if i is even → lowercase, if i is odd → uppercase Example: hElLo wOrLd eXaMpLe

  14. esreveR — Reverse the entire string character by character Example: elpmaxE dlroW olleH

  15. 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
安全使用建议
This skill appears coherent and low-risk: it only describes how to transform text and asks for no credentials or installs. Before relying on it, test it with representative inputs (underscores, dots, punctuation, and Unicode) because some transformation rules are ambiguous and at least one example appears inconsistent (e.g., how underscores are handled in Title/Sentence case). If you need deterministic behavior for edge cases, ask the author to clarify rules for separators, Unicode handling, and how batchMode treats blank lines. Autonomous invocation is normal here but, as always, only enable skills you trust.
功能分析
Type: OpenClaw Skill Name: case-convert Version: 1.0.0 The skill bundle is a straightforward text transformation utility for converting strings between various case formats (e.g., camelCase, snake_case). It contains no executable code, network requests, or instructions that could lead to data exfiltration or unauthorized system access, and is entirely aligned with its stated purpose in SKILL.md.
能力评估
Purpose & Capability
Name/description (case conversion) match the SKILL.md instructions: the document provides 15 explicit text transformations and options (target, batchMode). No unrelated binaries, environment variables, or config paths are requested.
Instruction Scope
SKILL.md is self-contained and does not instruct reading files, env vars, network calls, or other system data. However, several transformation definitions contain ambiguous or inconsistent details that could lead to surprising outputs (e.g., inconsistent phrasing 'remove non-word characters (replace with space)' vs 'remove non-word non-space characters', and the example for Title/Sentence case on 'USER_LOGIN_COUNT' retains underscores rather than showing them treated as separators). These are correctness/usability concerns rather than security issues.
Install Mechanism
No install spec and no code files — instruction-only skill (lowest install risk). Nothing is written to disk or downloaded by the skill itself.
Credentials
The skill requires no environment variables, credentials, or config paths. The requested surface is minimal and appropriate for a pure text-transformation utility.
Persistence & Privilege
always is false and the skill does not request elevated or persistent privileges or modification of other skills/configuration. Autonomous invocation is allowed by default, which is normal for skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install case-convert
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /case-convert 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 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.
元数据
Slug case-convert
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

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。

💬 留言讨论