·shell-command
</>

shell-command

执行 shell 命令时严格遵守非交互式标志和环境变量,以防止在 OpenCode 的无头环境中挂起。

10安装·4热度·@iyaki

安装

$npx skills add https://github.com/iyaki/opencode-base-template --skill shell-command

如何安装 shell-command

通过命令行快速安装 shell-command AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/iyaki/opencode-base-template --skill shell-command
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:iyaki/opencode-base-template。

SKILL.md

查看原文

Context: OpenCode's shell environment is strictly non-interactive. It lacks a TTY/PTY, meaning any command that waits for user input, confirmation, or launches a UI (editor/pager) will hang indefinitely and timeout.

Goal: Achieve parity with Claude Code's shell capabilities through internalized knowledge of non-interactive flags and environment variables.

To match the high-agency, autonomous capabilities of advanced models (like Claude Sonnet), this strategy enforces strict cognitive patterns. These are not just shell tips; they are behavioral requirements for success in this environment.

执行 shell 命令时严格遵守非交互式标志和环境变量,以防止在 OpenCode 的无头环境中挂起。 来源:iyaki/opencode-base-template。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/iyaki/opencode-base-template --skill shell-command
分类
</>开发工具
认证
收录时间
2026-03-10
更新时间
2026-03-10

Browse more skills from iyaki/opencode-base-template

快速解答

什么是 shell-command?

执行 shell 命令时严格遵守非交互式标志和环境变量,以防止在 OpenCode 的无头环境中挂起。 来源:iyaki/opencode-base-template。

如何安装 shell-command?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/iyaki/opencode-base-template --skill shell-command 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/iyaki/opencode-base-template

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-03-10

相关 Skills

暂无