Add new capabilities or modify NanoClaw behavior. Use when user wants to add channels (Telegram, Slack, email input), change triggers, add integrations, modify the router, or make any other customizations. This is an interactive skill that asks questions to understand what the user wants.
This skill helps users add capabilities or modify behavior. Use AskUserQuestion to understand what they want before making changes.
| File | Purpose |
|------|---------|
| src/index.ts | Orchestrator: state, message loop, agent invocation |
| src/channels/whatsapp.ts | WhatsApp connection, auth, send/receive |
| src/ipc.ts | IPC watcher and task processing |
| src/router.ts | Message formatting and outbound routing |
| src/types.ts | TypeScript interfaces (includes Channel) |
| src/config.ts | Assistant name, trigger pattern, directories |
| src/db.ts | Database initialization and queries |
| src/whatsapp-auth.ts | Standalone WhatsApp authentication script |
| groups/CLAUDE.md | Global memory/persona |
Questions to ask:
Implementation pattern:
src/channels/{name}.ts implementing the Channel interface from src/types.ts (see src/channels/whatsapp.ts for reference)main() in src/index.ts and wire callbacks (onMessage, onChatMetadata)onMessage callback; routing is automatic via ownsJid()Questions to ask:
Implementation:
src/agent-spawner.ts for how MCP servers are wired into each agent process)groups/CLAUDE.mdQuestions to ask:
Simple changes → edit src/config.ts
Persona changes → edit groups/CLAUDE.md
Per-group behavior → edit specific group's CLAUDE.md
Questions to ask:
Implementation:
groups/CLAUDE.md or the group's CLAUDE.mdprocessGroupMessages() in src/index.tsQuestions to ask:
Implementation:
Always tell the user:
# Rebuild and restart
npm run build
# macOS:
launchctl unload ~/Library/LaunchAgents/com.ghostclaw.plist
launchctl load ~/Library/LaunchAgents/com.ghostclaw.plist
# Linux:
# systemctl --user restart ghostclaw
User: "Add Telegram as an input channel"
src/channels/telegram.ts implementing the Channel interface (see src/channels/whatsapp.ts)main() in src/index.tsSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer