Claw admin

From x-cmd/x-cmd · View interactive version

Claw admin is an AI agent skill from the GitHub repository x-cmd/x-cmd. Claw system administration: service management, IM connections, logs, cron, and workspace diagnostics. Use when the user asks to manage claw services, connect/disconnect IM platforms, view logs, or perform system-wide operations.

How to use this skill

Skill file

Claw Admin Skill

When to Use

Use this skill when the user asks about or needs to:

Service Management

x claw service --help        # Discover all service commands
x claw service start         # Start claw services
x claw service stop          # Stop claw services
x claw service restart       # Restart claw services
x claw service install       # Register claw as a startup service
x claw service uninstall     # Remove claw from startup services
x claw service status        # Check current service status

Always check status after start/restart to confirm services are healthy.

Troubleshooting

Golden rule: When claw is not working correctly:

  1. Check status first: x claw service status
  2. Check logs: x claw log
  3. If status shows issues or logs show persistent errors: x claw service restart
  4. Verify after restart: x claw service status

Restart is the universal fix for most transient issues — use it when status/logs indicate problems that aren't immediately obvious.

IM Connection Management

x claw connect --help        # Discover connect commands
x claw connect weixin        # Connect WeChat
x claw connect telegram      # Connect Telegram
x claw connect feishu        # Connect Feishu
x claw connect qywx          # Connect Enterprise WeChat
x claw disconnect <im>       # Disconnect an IM platform

For Feishu group chats:

Log Management

x claw log                   # View recent claw logs
x claw log --help            # Discover log options

Use logs for diagnostics when:

Scheduled Tasks

x claw cron --help           # Discover cron commands
x claw cron ls               # List all scheduled tasks
x claw cron tz <timezone>    # Set timezone (do this before adding tasks)
x claw cron add --name "<name>" --desc "<desc>" "<expr>" "<cmd>"
x claw cron rm --name "<name>"

Red line: ONLY x claw cron is allowed. Never use system cron or at.

Workspace Diagnostics

All chat workspaces are at $___X_CMD_CLAW_BOT_WS/<im>-<chatid>/.

You may read (but not modify) other workspaces for diagnostics:

Do NOT modify other workspaces' SOUL.md, USER.md, or MEMORY.md.

AI Engine / Model Management

x claw internally uses x agent as its AI execution engine. To change the AI engine or model that claw uses:

Refer to x agent --help for available options.

Cross-Platform Messaging

As Manager, you can send messages to any connected platform:

Safety Checklist

Before performing destructive or impactful operations:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.