agentleFS
sbussosbusso/claudeclaw/skills/customize/SKILL.md

customize

Skill194 starsChanged 8 months agoMITView on GitHub

Add new capabilities or modify ClaudeClaw 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.

  • Reads credentials
  • Installs packages

21 other projects use a version of this, 8 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-slack, update-nanoclaw and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 6 projects that use this

  • MicrosoftSkill

    update-nanoclaw

    Efficiently bring upstream NanoClaw updates into a customized install, with preview, selective cherry-pick, and low token usage.

    Also in 5 projects that use this

  • +1 more from microsoft

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 9 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check if .claude-plugin/plugin.json exists in cwd:

    line 12
  2. Distinctive:

    If plugin mode, offer the user a choice via AskUserQuestion:

    line 17
  3. Very specific:

    If "Fork to developer mode" is chosen, run the migration flow below.

    line 21
  4. Distinctive:

    Stop running service (service name derived from current directory name):

    line 29
  5. Very specific:

    Run service setup: cd <clone-path> && npx tsx setup/index.ts --step service

    line 38
  6. Distinctive:

    Understand the request: - Ask clarifying questions

    line 43
  7. Distinctive:

    Should messages from this channel go to existing groups or new ones?

    line 70
  8. Very specific:

    Create src/channels/{name}.ts implementing the Channel interface from src/orchestrator/types.ts (see src/channels/whatsapp.ts for reference)

    line 73
  9. Very specific:

    Add the channel instance to main() in src/index.ts and wire callbacks (onMessage, onChatMetadata)

    line 74
  10. Very specific:

    Add MCP server config to the container settings (see src/orchestrator/container-runner.ts for how MCP servers are mounted)

    line 85
  11. Very specific:

    Document available tools in groups/CLAUDE.md

    line 86
  12. Distinctive:

    Create appropriate service files

    line 116
  13. Distinctive:

    Update paths in config

    line 117
  14. Distinctive:

    Always tell the user:

    line 122
  15. Distinctive:

    Ask: "Should Telegram use the same @Andy trigger, or a different one?"

    line 137
  16. Distinctive:

    Ask: "Should Telegram messages create separate conversation contexts, or share with WhatsApp groups?"

    line 138
  17. Very specific:

    Create src/channels/telegram.ts implementing the Channel interface (see src/channels/whatsapp.ts)

    line 139
  18. Very specific:

    Add the channel to main() in src/index.ts

    line 140

“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ClaudeClaw Customization

This skill helps users add capabilities or modify behavior. Use AskUserQuestion to understand what they want before making changes.

Mode Detection

Check if .claude-plugin/plugin.json exists in cwd:

cat .claude-plugin/plugin.json 2>/dev/null | grep '"name": "claudeclaw"' && echo "DEVELOPER_MODE" || echo "PLUGIN_MODE"

If plugin mode, offer the user a choice via AskUserQuestion:

  • Fork to developer mode (Recommended) — Clone the repo into a new directory, copy state, full self-improvement and customization
  • Continue in plugin mode — Limited to channel setup and config changes (no code editing)

If "Fork to developer mode" is chosen, run the migration flow below. Otherwise, proceed with the normal workflow (limited to invoking existing skills like /add-slack, /add-telegram).

Migration: Plugin → Developer Mode

  1. AskUserQuestion: "To customize ClaudeClaw fully, you need your own fork. First, fork sbusso/claudeclaw on GitHub. What's your GitHub username?"
  2. AskUserQuestion: "Where should I clone the repo?" (default: ~/Code/claudeclaw)

Service name: Derived from the directory name: com.claudeclaw.<dirname> (macOS) / claudeclaw-<dirname> (Linux). For example, if cwd is my-assistant, the service is com.claudeclaw.my-assistant. Determine the correct service name before running service commands below.

  1. Stop running service (service name derived from current directory name):
    • macOS: launchctl unload ~/Library/LaunchAgents/com.claudeclaw.<dirname>.plist
    • Linux: systemctl --user stop claudeclaw-<dirname>
  2. Clone: git clone https://github.com/<username>/claudeclaw.git <clone-path>
  3. Copy state from current data directory: cp -r store groups .env <clone-path>/
  4. AskUserQuestion: "Copy logs too?" If yes: cp -r logs <clone-path>/
  5. Clear stale sessions: sqlite3 <clone-path>/store/messages.db "DELETE FROM sessions"
  6. Install and build: cd <clone-path> && npm install && npm run build
  7. Set up upstream: cd <clone-path> && git remote add upstream https://github.com/sbusso/claudeclaw.git
  8. Run service setup: cd <clone-path> && npx tsx setup/index.ts --step service
  9. Print: "Migration complete! Run cd <clone-path> && claude to use developer mode. Remove --plugin-dir from your Claude Code invocation."

Workflow

  1. Understand the request - Ask clarifying questions
  2. Plan the changes - Identify files to modify. If a skill exists for the request (e.g., /add-telegram for adding Telegram), invoke it instead of implementing manually.
  3. Implement - Make changes directly to the code
  4. Test guidance - Tell user how to verify

Key Files

FilePurpose
src/service.tsService entry: loads channels/extensions, starts message loop
src/index.tsPlugin entry: non-blocking, loaded by Claude Code
src/orchestrator/message-loop.tsCore loop: poll, trigger, queue, dispatch agents
src/orchestrator/config.tsSTATE_ROOT, paths, trigger pattern, runtime selection
src/orchestrator/channel-registry.tsChannel self-registration
src/orchestrator/extensions.tsExtension system (IPC, DB schema, startup hooks)
src/orchestrator/types.tsTypeScript interfaces (Channel, RegisteredGroup, AgentConfig)
src/orchestrator/db.tsDatabase initialization and queries
groups/CLAUDE.mdGlobal 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:

  1. Create src/channels/{name}.ts implementing the Channel interface from src/orchestrator/types.ts (see src/channels/whatsapp.ts for reference)
  2. Add the channel instance to main() in src/index.ts and wire callbacks (onMessage, onChatMetadata)
  3. Messages are stored via the onMessage callback; routing is automatic via ownsJid()

Adding a New MCP Integration

Questions to ask:

  • What service? (Calendar, Notion, database, etc.)
  • What operations needed? (read, write, both)
  • Which groups should have access?

Implementation:

  1. Add MCP server config to the container settings (see src/orchestrator/container-runner.ts for how MCP servers are mounted)
  2. Document available tools in groups/CLAUDE.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/orchestrator/config.ts Persona changes → edit groups/CLAUDE.md Per-group behavior → edit specific group's CLAUDE.md

Adding New Commands

Questions to ask:

  • What should the command do?
  • Available in all groups or main only?
  • Does it need new MCP tools?

Implementation:

  1. Commands are handled by the agent naturally — add instructions to groups/CLAUDE.md or the group's CLAUDE.md
  2. For trigger-level routing changes, modify processGroupMessages() in src/index.ts

Changing Deployment

Questions to ask:

  • Target platform? (Linux server, Docker, different Mac)
  • Service manager? (systemd, Docker, supervisord)

Implementation:

  1. Create appropriate service files
  2. Update paths in config
  3. Provide setup instructions

After Changes

Always tell the user:

# Rebuild and restart
npm run build
# macOS:
launchctl unload ~/Library/LaunchAgents/com.claudeclaw.plist
launchctl load ~/Library/LaunchAgents/com.claudeclaw.plist
# Linux:
# systemctl --user restart claudeclaw

Example Interaction

User: "Add Telegram as an input channel"

  1. Ask: "Should Telegram use the same @Andy trigger, or a different one?"
  2. Ask: "Should Telegram messages create separate conversation contexts, or share with WhatsApp groups?"
  3. Create src/channels/telegram.ts implementing the Channel interface (see src/channels/whatsapp.ts)
  4. Add the channel to main() in src/index.ts
  5. Tell user how to authenticate and test

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.