NanoClaw Customization
This skill helps users add capabilities or modify behavior. Use AskUserQuestion to understand what they want before making changes.
Workflow
- Understand the request - Ask clarifying questions
- Plan the changes - Identify files to modify
- Implement - Make changes directly to the code
- Test guidance - Tell user how to verify
Key Files
| File |
Purpose |
src/config.ts |
Assistant name, trigger pattern, directories |
src/index.ts |
Message routing, WhatsApp connection, agent invocation |
src/db.ts |
Database initialization and queries |
src/types.ts |
TypeScript interfaces |
src/whatsapp-auth.ts |
Standalone WhatsApp authentication script |
groups/MEMORY.md |
Global memory/persona |
Common Customization Patterns
Adding a New Input Channel (e.g., Telegram, Slack, Email)
Questions to ask:
- Which channel? (Telegram, Slack, Discord, email, SMS, etc.)
- Same trigger word or different?
- Same memory hierarchy or separate?
- Should messages from this channel go to existing groups or new ones?
Implementation pattern:
- Find/add connector or API client for the channel
- Add connection and message handling in
src/index.ts
- Store messages in the database (update
src/db.ts if needed)
- Ensure responses route back to correct channel
Adding a New Integration
Questions to ask:
- What service? (Calendar, Notion, database, etc.)
- What operations needed? (read, write, both)
- Which groups should have access?
Implementation:
- Add host-side integration and authentication
- Expose it via IPC actions (update the agent response schema + action handling)
- Document in
groups/MEMORY.md
Changing Assistant Behavior
Questions to ask:
- What aspect? (name, trigger, persona, response style)
- Apply to all groups or specific ones?
Simple changes → edit src/config.ts
Persona changes → edit groups/MEMORY.md
Per-group behavior → edit specific group's MEMORY.md
Adding New Commands
Questions to ask:
- What should the command do?
- Available in all groups or main only?
- Does it need new IPC actions?
Implementation:
- Add command handling in
processMessage() in src/index.ts
- Check for the command before the trigger pattern check
Changing Deployment
Questions to ask:
- Target platform? (Linux server, Docker, different Mac)
- Service manager? (systemd, Docker, supervisord)
Implementation:
- Create appropriate service files
- Update paths in config
- Provide setup instructions
After Changes
Always tell the user:
# Rebuild and restart
npm run build
launchctl unload ~/Library/LaunchAgents/com.nanoclaw.plist
launchctl load ~/Library/LaunchAgents/com.nanoclaw.plist
Example Interaction
User: "Add Telegram as an input channel"
- Ask: "Should Telegram use the same @Andy trigger, or a different one?"
- Ask: "Should Telegram messages create separate conversation contexts, or share with WhatsApp groups?"
- Find Telegram MCP or library
- Add connection handling in index.ts
- Update message storage in db.ts
- Tell user how to authenticate and test
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: customize-23description: 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. Use when this capability is needed.4---56# NanoClaw Customization78This skill helps users add capabilities or modify behavior. Use AskUserQuestion to understand what they want before making changes.910## Workflow11121. **Understand the request** - Ask clarifying questions132. **Plan the changes** - Identify files to modify143. **Implement** - Make changes directly to the code154. **Test guidance** - Tell user how to verify1617## Key Files1819| File | Purpose |20|------|---------|21| `src/config.ts` | Assistant name, trigger pattern, directories |22| `src/index.ts` | Message routing, WhatsApp connection, agent invocation |23| `src/db.ts` | Database initialization and queries |24| `src/types.ts` | TypeScript interfaces |25| `src/whatsapp-auth.ts` | Standalone WhatsApp authentication script |26| `groups/MEMORY.md` | Global memory/persona |2728## Common Customization Patterns2930### Adding a New Input Channel (e.g., Telegram, Slack, Email)3132Questions to ask:33- Which channel? (Telegram, Slack, Discord, email, SMS, etc.)34- Same trigger word or different?35- Same memory hierarchy or separate?36- Should messages from this channel go to existing groups or new ones?3738Implementation pattern:391. Find/add connector or API client for the channel402. Add connection and message handling in `src/index.ts`413. Store messages in the database (update `src/db.ts` if needed)424. Ensure responses route back to correct channel4344### Adding a New Integration4546Questions to ask:47- What service? (Calendar, Notion, database, etc.)48- What operations needed? (read, write, both)49- Which groups should have access?5051Implementation:521. Add host-side integration and authentication532. Expose it via IPC actions (update the agent response schema + action handling)543. Document in `groups/MEMORY.md`5556### Changing Assistant Behavior5758Questions to ask:59- What aspect? (name, trigger, persona, response style)60- Apply to all groups or specific ones?6162Simple changes → edit `src/config.ts`63Persona changes → edit `groups/MEMORY.md`64Per-group behavior → edit specific group's `MEMORY.md`6566### Adding New Commands6768Questions to ask:69- What should the command do?70- Available in all groups or main only?71- Does it need new IPC actions?7273Implementation:741. Add command handling in `processMessage()` in `src/index.ts`752. Check for the command before the trigger pattern check7677### Changing Deployment7879Questions to ask:80- Target platform? (Linux server, Docker, different Mac)81- Service manager? (systemd, Docker, supervisord)8283Implementation:841. Create appropriate service files852. Update paths in config863. Provide setup instructions8788## After Changes8990Always tell the user:91```bash92# Rebuild and restart93npm run build94launchctl unload ~/Library/LaunchAgents/com.nanoclaw.plist95launchctl load ~/Library/LaunchAgents/com.nanoclaw.plist96```9798## Example Interaction99100User: "Add Telegram as an input channel"1011021. Ask: "Should Telegram use the same @Andy trigger, or a different one?"1032. Ask: "Should Telegram messages create separate conversation contexts, or share with WhatsApp groups?"1043. Find Telegram MCP or library1054. Add connection handling in index.ts1065. Update message storage in db.ts1076. Tell user how to authenticate and test108109---110> Converted and distributed by [TomeVault](https://tomevault.io/claim/chrisfrantz) — claim your Tome and manage your conversions.111<!-- tomevault:4.0:skill_md:2026-04-13 -->