360 Secure SkillHub
360 安全技能中心

Uppercase Converter

该 Skill 使用同目录下的 to_upper.py 脚本,将英文小写字母 a-z 转换为大写,数字、标点、空白和非英文字符保持不变。文本可作为命令行参数传入,也可通过标准输入管道传入文件或多行文本,结果打印到标准输出,必要时可写回文件。

分类:效率
jennyli2022
jennyli2022
热度 16.92
最近更新 2026-06-05 16:48:30

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jennyli2022/uppercase-converter
兼容性
Claude Code 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
name
uppercase-converter
description
Convert English lowercase letters to uppercase. Use when the user asks to uppercase text, capitalize all letters, convert lowercase to uppercase, or "转大写". Conversion is performed by a Python script.

Uppercase Converter

Convert English text from lowercase to uppercase using the bundled Python script.

Usage

Run the script to_upper.py in this skill directory. It accepts the text to convert in one of two ways:

  1. As command-line arguments (joined with spaces):

    python "$CLAUDE_SKILL_DIR/to_upper.py" "hello world"
    
  2. From standard input (when no arguments are given) — useful for piping files or large/multiline text:

    cat input.txt | python "$CLAUDE_SKILL_DIR/to_upper.py"
    

The script prints the uppercased result to stdout. Only ASCII English letters a-z are affected; digits, punctuation, whitespace, and non-English characters pass through unchanged.

Instructions

  1. Determine the text the user wants converted.
  2. Invoke the Python script using one of the forms above. Prefer stdin for text that contains quotes, newlines, or shell-special characters.
  3. Return the script's stdout to the user as the converted result.
  4. If the user points to a file, pipe the file into the script via stdin and (if asked) write the output back.