用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/ChessCoach --skill terminal-command-safety命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| type | skill |
| lifecycle | stable |
| inheritance | inheritable |
| name | terminal-command-safety |
| description | Safe terminal command patterns — backtick escaping, output capture, and hang prevention |
| tier | core |
| applyTo | ** |
| currency | 2026-04-20T00:00:00.000Z |
Detailed patterns and examples for safe terminal command execution in AI agent contexts.
Backticks in terminal command arguments break across all shells:
echo "use ls here" executes ls)echo "use n here"` inserts newline)Ref: vscode#295620
# Write content to temp file (single-quoted delimiter prevents interpolation)
cat > /tmp/body.md << 'EOF'
## Changes
- Added `MyClass` to the module
- Updated `config.py`
EOF
# Pass file to command
gh pr create --title "My PR" --body-file /tmp/body.md
rm /tmp/body.md
$body = @'
## Changes
- Added `MyClass` to the module
'@
$body | Out-File -Encoding utf8 "$env:TEMP\body.md"
gh pr create --title "My PR" --body-file "$env:TEMP\body.md"
Remove-Item "$env:TEMP\body.md"
Refs: vscode#308610, vscode#308048, vscode#307173
npm run build 2>&1 | Out-File -Encoding utf8 "$env:TEMP\build-output.txt"
Get-Content "$env:TEMP\build-output.txt" -Tail 50
git log --oneline -20 | Out-String
npm test 2>&1; echo "EXIT_CODE:$LASTEXITCODE"
git log not git log | less (set $env:GIT_PAGER="cat")Get-Help not mangh issue view --json not gh issue view (which opens a pager)Refs: vscode#308610, vscode#306490
mode=async for: npm start, dotnet run, docker compose up, long test suites
mode=sync with timeout=30000 for: npm install, git operations, single test files
npm install --yes
rm -rf (not rm -ri)
az login --use-device-code
git commit --no-edit (merge commits)
npm install --prefer-offline --no-audit
curl --max-time 30 --connect-timeout 10 $url