skills/claude-code-operator/SKILL.md
Operate and control Claude Code CLI from within Clawdbot. Allows spawning Claude Code processes, executing commands in Claude Code, managing sessions, and deploying projects using Claude Code's capabilities.
npx skillsauth add stvlynn/skills claude-code-operatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill enables controlling Claude Code CLI programmatically from Clawdbot.
Claude Code is Anthropic's agentic coding tool that operates in the terminal. This skill provides workflows for:
npm install -g @anthropic-ai/claude-code~/.claude/mcp-settings.jsonSet environment variables before running Claude Code:
export ANTHROPIC_AUTH_TOKEN="your-zhipu-api-key"
export ANTHROPIC_BASE_URL="https://open.bigmodel.cn/api/anthropic"
export API_TIMEOUT_MS="3000000"
Or configure in ~/.claude/settings.json:
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "your-api-key",
"ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic",
"API_TIMEOUT_MS": "3000000"
}
}
Add to ~/.claude/mcp-settings.json:
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"url": "https://mcp-on-edge.edgeone.app/mcp-server"
}
}
}
| Command | Description |
|---------|-------------|
| claude | Start Claude Code in current directory |
| claude --version | Check installed version |
| claude --continue | Resume last session |
| claude --resume <name> | Resume specific session |
| claude -p / claude --print | Print mode (non-interactive) |
| claude --debug | Debug mode with detailed logs |
| Command | Description |
|---------|-------------|
| /mcp | List available MCP servers and tools |
| /help | Show available commands |
| /context | Show context window usage |
| /status | Check current model and configuration |
| /login | Re-authenticate |
| /plugin | Manage plugins |
Method 1: Using MCP directly (recommended)
# Call deploy-html tool directly
curl -X POST https://mcp-on-edge.edgeone.app/mcp-server \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "deploy-html",
"arguments": {
"value": "HTML content here"
}
},
"id": 1
}'
Method 2: Using Claude Code in print mode
# Export environment variables first
export ANTHROPIC_AUTH_TOKEN="your-api-key"
export ANTHROPIC_BASE_URL="https://open.bigmodel.cn/api/anthropic"
# Deploy using Claude Code
cd /path/to/project
echo "Deploy index.html to EdgeOne Pages" | claude -p
Method 3: Interactive mode
claude
# Then type: Deploy index.html to EdgeOne Pages
# Start Claude Code with specific task
cd /path/to/project
claude -p << 'EOF'
Generate a React component for a todo list with the following features:
1. Add new todos
2. Mark todos as complete
3. Delete todos
4. Filter by status
EOF
# List all MCP tools
curl -s -X POST https://mcp-on-edge.edgeone.app/mcp-server \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/list",
"id": 1
}' | jq '.result.tools'
Create a setup script for Zhipu users:
#!/bin/bash
# setup_claude_code_env.sh
echo "🚀 Setting up Claude Code environment..."
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js not found. Please install Node.js 18+ first."
exit 1
fi
# Check Node version
NODE_VERSION=$(node --version | cut -d'v' -f2 | cut -d'.' -f1)
if [ "$NODE_VERSION" -lt 18 ]; then
echo "❌ Node.js version must be 18+. Current: $(node --version)"
exit 1
fi
echo "✅ Node.js version: $(node --version)"
# Install Claude Code if not present
if ! command -v claude &> /dev/null; then
echo "📦 Installing Claude Code..."
npm install -g @anthropic-ai/claude-code
else
echo "✅ Claude Code already installed: $(claude --version)"
fi
# Create config directory
mkdir -p ~/.claude
# Configure for Zhipu
echo "🔑 Configuring for Zhipu..."
cat > ~/.claude/settings.json << 'CONFIGEOF'
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "YOUR_ZHIPU_API_KEY_HERE",
"ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic",
"API_TIMEOUT_MS": "3000000",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": 1
}
}
CONFIGEOF
echo ""
echo "✅ Configuration template created at ~/.claude/settings.json"
echo "⚠️ Please edit the file and replace YOUR_ZHIPU_API_KEY_HERE with your actual API key"
echo ""
echo "🎉 Setup complete! Run 'claude' to start using Claude Code."
Cause: API key not properly configured
Solution:
# Check if env vars are set
env | grep ANTHROPIC
# Or check config file
cat ~/.claude/settings.json
# Re-run setup script
bash setup_claude_code_env.sh
Cause: MCP server not configured
Solution:
# Check MCP config
cat ~/.claude/mcp-settings.json
# Restart Claude Code after config changes
claude
Cause: Network issues or API rate limits
Solution:
# Increase timeout
export API_TIMEOUT_MS="3000000"
# Or run in debug mode to see detailed logs
claude --debug
# Create HTML file
cat > demo.html << 'EOF'
<!DOCTYPE html>
<html>
<head><title>Demo</title></head>
<body><h1>Hello from Claude Code!</h1></body>
</html>
EOF
# Deploy using curl (fastest)
curl -X POST https://mcp-on-edge.edgeone.app/mcp-server \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "deploy-html",
"arguments": {
"value": "'"$(cat demo.html | sed 's/"/\\"/g')"'"
}
}
}'
# Process multiple files
for file in *.html; do
echo "Processing $file..."
# Send to Claude Code for processing
cat "$file" | claude -p << 'EOF'
Optimize this HTML for performance and accessibility
EOF
done
# In a CI/CD pipeline
claude -p << 'EOF'
Review the recent changes in this repository and:
1. Check for any security issues
2. Suggest performance improvements
3. Generate a summary of changes
EOF
--debug flag for troubleshooting connection issuestools
小红书搜索、发布、获取帖子详情。使用本地 MCP 服务器访问小红书内容,需要先登录。适用于搜索旅游攻略、美食推荐、获取帖子详情等场景。
tools
Manage Telegram sticker packs via tsticker CLI. Init, push, sync, download, and trace sticker packs. Use when user wants to create/update Telegram sticker packs, push stickers to Telegram, sync packs, or manage sticker collections. Integrates with create-sticker for end-to-end sticker generation → publish workflow.
tools
Reuse local Youtu-Tip GUI capabilities through a safe adapter CLI so OpenClaw/Codex-style agents can inspect desktop GUI state and perform guarded single-step actions on macOS.
development
Privacy-respecting web search powered by a local SearXNG instance. Use when searching the web, looking up information, researching topics, or needing quick answers. Supports multiple categories including general, images, videos, news, and more. Aggregates results from 70+ search engines without tracking.