9 kensaurus

shell Skill

将 /shell 请求的剩余内容作为字面 shell 命令运行。仅在用户显式调用 /shell 并希望后续文本直接在终端执行时使用。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Run Shell Commands

Use this skill only when the user explicitly invokes /shell.

Behavior

  1. Treat all user text after the /shell invocation as the literal shell command to run.
  2. Execute that command immediately with the terminal tool.
  3. Do not rewrite, explain, or "improve" the command before running it.
  4. Do not inspect the repository first unless the command itself requires repository context.
  5. If the user invokes /shell without any following text, ask them which command to run.

Response

  • Run the command first.
  • Then briefly report the exit status and any important stdout or stderr.

配合站内内容