用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/doobidoo/nanobot-fork --skill claude-code命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | claude-code |
| description | Send prompts to Claude Code running in a tmux session and get responses. |
| metadata | {"nanobot":{"emoji":"🤖","os":["linux"],"requires":{"bins":["tmux"]}}} |
Interact with Claude Code (Anthropic's CLI) running in a persistent tmux session.
The Claude Code tmux session must be running:
systemctl --user start claude-tmux
Or manually:
~/.local/bin/claude-tmux-start.sh
Use the helper script to send a prompt and capture the response:
{baseDir}/scripts/ask-claude.sh "Your prompt here"
Or manually via tmux:
# Send prompt
tmux send-keys -t claude 'Your prompt here' Enter
# Wait for response (check for prompt symbol)
sleep 10
# Capture output
tmux capture-pane -t claude -p -S -100
{baseDir}/scripts/claude-status.sh
Returns:
running - Claude Code is ready for promptsbusy - Claude is processing a requeststopped - Session not running# Start session
systemctl --user start claude-tmux
# Stop session
systemctl --user stop claude-tmux
# Restart session
systemctl --user restart claude-tmux
# Attach to session (interactive)
tmux attach -t claude
# Detach with Ctrl+B, then D
Claude Code output includes:
❯ - Input prompt (ready for new input)● - Claude's response text⏵⏵ - Status line (bypass permissions indicator)To extract just the response:
{baseDir}/scripts/ask-claude.sh "prompt" | grep "^●" | sed 's/^● //'
# Simple question
{baseDir}/scripts/ask-claude.sh "What is 2+2?"
# Code generation
{baseDir}/scripts/ask-claude.sh "Write a Python function to reverse a string"
# File operations (Claude has access to filesystem)
{baseDir}/scripts/ask-claude.sh "Read and summarize ~/notes.txt"
~/.local/share/claude-tmux.log for session logs