Case Convert
v1.0.0Convert text between different case styles. Use when the user asks to convert text to camelCase, snake_case, kebab-case, PascalCase, UPPERCASE, lowercase, Ti...
详细分析 ▾
运行时依赖
版本
- 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.
安装命令 点击复制
技能文档
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()
hello world example- UPPERCASE —
s.toUpperCase()
HELLO WORLD EXAMPLE- Title Case — Capitalize each word EXCEPT articles/prepositions when not first:
., !, ?
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)
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
helloWorldExample- PascalCase — Same as camelCase but also capitalize the very first letter
HelloWorldExample- snake_case — Lowercase, remove non-word non-space characters, replace spaces with
_, collapse consecutive_
hello_world_example- kebab-case — Lowercase, remove non-word non-space characters, replace spaces with
-, collapse consecutive-
hello-world-example- CONSTANT_CASE — Uppercase, remove non-word non-space characters, replace spaces with
_, collapse consecutive_
HELLO_WORLD_EXAMPLE- dot.case — Lowercase, remove non-word non-space characters, replace spaces with
., collapse consecutive.
hello.world.example- path/case — Lowercase, remove non-word non-space characters, replace spaces with
/, collapse consecutive/
hello/world/example- iNVERSE cASE — For each character: if uppercase → lowercase, if lowercase → uppercase, else unchanged
hELLO wORLD eXAMPLE- aLtErNaTe CaSe — For each character at index i: if i is even → lowercase, if i is odd → uppercase
hElLo wOrLd eXaMpLe- esreveR — Reverse the entire string character by character
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)
hElLo WoRlD eXaMpLeOptions
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
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制