首页龙虾技能列表 › Case Convert

Case Convert

v1.0.0

Convert text between different case styles. Use when the user asks to convert text to camelCase, snake_case, kebab-case, PascalCase, UPPERCASE, lowercase, Ti...

0· 132·1 当前·1 累计
by @ohernandez-dev-blossom (Omar Hernandez)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/23
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill is an instruction-only text case converter and its requirements and runtime instructions are consistent with that purpose; it does not request credentials, install software, or access system files.
评估建议
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...
详细分析 ▾
用途与能力
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.
指令范围
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.
安装机制
No install spec and no code files — instruction-only skill (lowest install risk). Nothing is written to disk or downloaded by the skill itself.
凭证需求
The skill requires no environment variables, credentials, or config paths. The requested surface is minimal and appropriate for a pure text-transformation utility.
持久化与权限
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.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/23

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

● 无害

安装命令 点击复制

官方npx clawhub@latest install case-convert
镜像加速npx clawhub@latest install case-convert --registry https://cn.clawhub-mirror.com

技能文档

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:

  • lowercases.toLowerCase()
Example: hello world example

  • UPPERCASEs.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
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务