Guide · Agent skill
How to use the NanoClaw Container Debugging agent skill (debug)
Updated · written with AI from the project's own documentation and checked against our catalogue data
The debug skill is a troubleshooting guide that an AI agent reads when a NanoClaw installation misbehaves. NanoClaw runs AI agents in isolated containers for chat channels, and this skill tells the agent where the logs are, how to inspect the message databases shared between the host and each container, and how to recognise common failures such as messages being silently lost. This guide is for developers and maintainers who run a NanoClaw checkout and want an agent to help diagnose it. After reading it, you will know how to install the skill, how to phrase requests that trigger it, and what it can and cannot safely do.
Quick start
- 1Download and unzip the skill. Download the ZIP from this page and unzip it so that SKILL.md sits inside a debug folder.
- 2Place the folder. Move the debug folder to ~/.claude/skills/ for personal use, or to .claude/skills/ in your project. Alternatively, upload the ZIP under Settings → Capabilities → Skills in the Claude apps.
- 3Confirm the NanoClaw requirements. Make sure your checkout has pnpm and tsx, the better-sqlite3 dependency from setup, and access to the logs and data directories.
- 4Describe the symptom. Ask in plain language, naming NanoClaw and the channel, for example that replies have stopped.
- 5Let the agent inspect logs and databases. The agent checks logs/nanoclaw.error.log, then compares inbound.db and outbound.db rows for the session.
- 6Raise the log level if needed. Run with LOG_LEVEL=debug to see spawn commands, mount configurations and container stderr.
- 7Review before repairs. Read any proposed fix, especially gateway steps, before letting the agent run it.
What the debug skill makes the agent do
An agent skill is a folder containing a SKILL.md file with instructions that an agent loads when a request matches the skill's description. The debug skill's description covers cases where things aren't working, a container fails, authentication problems occur, or someone wants to understand how the container system works.
Once loaded, the agent works from the guide's architecture overview and log tables. It knows that the host is a single Node process that starts one container per session, and that the two session databases, inbound.db and outbound.db, are the only input and output channel between host and container. It can therefore check whether a message reached the container, whether a reply was produced, and whether the reply was delivered.
- Locates host errors, the host app log, setup logs and per-session database files
- Runs read-only database queries through the in-tree query wrapper
- Explains how to turn on verbose debug logging
- Walks through a repair step for the credential gateway, and a fix for duplicate service instances
Install the debug skill
Download the ZIP from this page and unzip it. The skill folder contains SKILL.md. Put the folder in one of two places: ~/.claude/skills/ to make it available to you across projects, or a project's .claude/skills/ folder to make it available only to that project.
Alternatively, upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
- Personal: ~/.claude/skills/debug/
- Project: .claude/skills/debug/ inside your project folder
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
Check the requirements before you start
The guide assumes you have a NanoClaw checkout and can run commands in it. The skill's commands use pnpm and tsx, and the query wrapper depends on the better-sqlite3 package, which NanoClaw setup installs. The host runs as a Node.js process, and the per-session agent containers need Docker or a compatible container runtime.
You also need access to NanoClaw's logs and data directories, because the agent reads files such as logs/nanoclaw.error.log and data/v2-sessions/. Without those, the skill has nothing to inspect.
- NanoClaw checkout with pnpm and tsx available
- Node.js host process
- better-sqlite3 dependency (installed by NanoClaw setup)
- Access to NanoClaw logs and data directories
- Docker or a compatible container runtime
Trigger the skill with natural requests
You do not need to name the skill. Describe the symptom in plain language, and mention NanoClaw so the agent works in the right checkout. The description is matched against requests about broken behaviour, container failures, authentication problems and questions about how containers work.
Useful requests name the symptom and the channel or group involved, so the agent knows which session folder to check.
- "NanoClaw isn't replying to my Telegram messages. Help me find out why."
- "My NanoClaw container keeps failing to start. Check the logs."
- "Explain how NanoClaw passes messages between the host and the container."
- "Authentication is failing in a NanoClaw agent container. What should I check?"
Turn on debug logging for deeper detail
The guide tells the agent to set LOG_LEVEL=debug when more detail is needed. At debug level the log shows full mount configurations, the container spawn command and streamed container stderr lines. The source gives separate examples for a development run and for the macOS launchd service or the Linux systemd service.
LOG_LEVEL=debug pnpm run devExamples of diagnosis the skill supports
For a message that never got a reply, the guide describes a reading order. If messages_in has the message but messages_out has no matching reply, the container never produced one, so the agent checks processing_ack and the host log for spawn and exit lines. If messages_out has a reply but the user never got it, the agent looks at delivery. If messages_in is empty, routing never reached the session, and the agent checks the router log lines and the central wiring.
For the common issue where replies stop and the log shows 'No adapter for channel type' warnings, the guide explains the likely cause: a second NanoClaw service instance running a stale binary, whose delivery poll marks messages delivered without sending them. The agent is directed to check for duplicate processes and active services, then to stop and disable the stale one.
- Reply missing: compare inbound.db and outbound.db rows
- Reply produced but not received: investigate delivery
- No inbound rows: check routing and wiring
- Silent loss with 'No adapter for channel type': look for duplicate service instances
Safety notes: scripts and the credential gateway
The skill runs scripts, including scripts/q.ts through pnpm exec tsx, and reads and changes files in your NanoClaw checkout and data directories. It does not use the network. Review what the agent runs before approving commands, and prefer read-only SELECT queries when you are only investigating.
The gateway section is the riskiest part. It re-runs a setup step against the credential gateway. The guide itself tells the agent not to recreate gateway containers by hand with docker run or docker rm, and never to generate replacement keys for an existing database. Keep the gateway's database volumes and keys intact, and do not let an agent repair live credential services unless you are prepared to supervise it.
- Scripts run: yes, through pnpm and tsx
- Network use: none stated
- Gateway repair step touches database volumes and keys; supervise it closely
pnpm exec tsx setup/index.ts --step gatewayTips for getting useful results
Give the agent the symptom, the channel, and the group or session if you know it. Ask it to check the host error log first, since the guide names that file as the place to start. If the agent cannot find a container's output after it exits, that is expected: containers run with --rm, so the guide directs it to reconstruct the story from the session databases and the host log.
- Start with logs/nanoclaw.error.log
- Ask for the reading order of inbound.db and outbound.db
- Enable LOG_LEVEL=debug before reproducing the problem
- Remember that container filesystems are removed when containers exit
What people use it for
- Finding out why a Telegram or Signal bot stopped replying after a service change
- Checking whether an inbound message reached a session's container and whether a reply was written
- Diagnosing a container that fails to spawn by reading the host log for spawn and exit lines
- Explaining to a new maintainer how messages move between the host and per-session containers
Frequently asked questions
How do I install the NanoClaw debug skill?
Download the ZIP from this page and unzip it. Place the debug folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder, or upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
What do I need to use the debug skill?
You need a NanoClaw checkout with pnpm and tsx, the Node.js host process, the better-sqlite3 dependency that NanoClaw setup installs, access to the logs and data directories, and Docker or a compatible container runtime for the per-session containers.
Is the NanoClaw debug skill free?
The skill is published under the MIT licence. This page does not state any price, so check the item page for licence details before you use or redistribute it.
Why isn't my NanoClaw bot replying?
Check whether the message reached inbound.db and whether a reply appeared in outbound.db. A reply in outbound.db that never arrives points to delivery. Repeated 'No adapter for channel type' warnings can mean a second service instance with a stale binary is marking messages delivered without sending them.
Does the debug skill need internet access?
The source states that this skill does not use the network. It does run scripts, so you should review commands before approving them.
Can the debug skill fix a broken credential gateway?
It can re-run the gateway setup step with pnpm exec tsx setup/index.ts --step gateway. The guide warns against recreating gateway containers by hand and against generating new keys for an existing database, so supervise any repair closely.
Is this skill useful for things other than NanoClaw?
No. The paths, commands and architecture are specific to NanoClaw, so it is not suited to unrelated projects.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you run a NanoClaw installation and want an agent to read its logs, inspect session databases and explain how host and containers exchange messages. Pick something else if you are not running NanoClaw, do not have terminal access to its checkout, or do not want an agent anywhere near live credential gateway services.
Download the skill