Index of every page on this site: llms.txt
All skills
steelan9199 avatar

/clean-filename-yashu

@9e01957
Run it yourself

清理并规范化文件名中的标点符号,生成 Windows 安全可用的干净文件名。激活条件:用户消息须包含以下关键词之一:`文件名报错`、`文件名错误`、`文件名特殊字符`、`规范化文件名`。

  • 2 files
  • 9.7 KB
  • Updated 3 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/steelan9199/wechat-publisher/clean-filename-yashu

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈66 tokens for metadata: the name and description. ≈363 when used: this file.

Description uses 1.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈116 characters, or 1.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

文件名标点符号清理(clean-filename)

作用

把字符串里的 ASCII 标点规整为对应中文标点、无对应中文的 ASCII 符号直接删除,输出可直接当 Windows 文件名用的干净串(并自动写入剪贴板)。

触发条件

用户提到以下任一关键词即立即执行,不要反问、不要确认:

  • 文件名报错 / 文件名错误 / 文件名特殊字符 / 规范化文件名
  • 类似"文件名里有引号/问号导致存不了、报错"的表述

执行(唯一通道)

用 managed node 绝对路径直跑,脏名走 heredoc(天然兼容引号、?、*、<、> 等特殊字符,无需 shell 转义):

C:\Users\Administrator\.workbuddy\binaries\node\versions\22.22.2\node.exe "C:\Users\Administrator\.workbuddy\skills\clean-filename-yashu\clean_filename.js" <<'EOF'
这里填待清洗的文件名(可含任意特殊字符)
EOF

把用户给出的脏文件名替换进 heredoc 体内即可,其余一律照抄。

交付

只把脚本输出的 清洗后: 那一行展示给用户(剪贴板已自动复制,顺带提一句"已复制到剪贴板"即可)。 不复述原理、不贴完整脚本、不额外解释。

禁令(避免拖慢,违反即算失误)

  • 禁止 Read 脚本源码(clean_filename.js)
  • 禁止先去翻业务文件 / 文档
  • 禁止使用 AskUserQuestion 反问
  • 触发即跑,跑完即展示

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 9e01957. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 3 months ago
disable-model-invocation
false

README badge

README badge for steelan9199/wechat-publisher/clean-filename-yashu