Add GitHub Channel (NanoClaw)
Installs and wires the NanoClaw GitHub channel adapter so your agent can talk inside PR and issue comment threads.
AutomationAdvanced★ 30,471⑂ 12,865AI score 7/10Last updated: Aug 9, 2026
What it does
This skill bolts a GitHub channel adapter onto a NanoClaw project so each PR or issue comment thread becomes its own agent conversation. It walks through:
- Copying
src/channels/github.tsand its registration test from thechannelsbranch - Appending a single self-registration import to
src/channels/index.ts - Installing
@chat-adapter/githubpinned to an exact version (ranges andlatestare rejected by policy) - Running
pnpm run buildplus a vitest that provesgithubis in the channel registry - Prompting for the bot PAT, webhook secret and bot username, then writing them to
.envonly if unset - Creating messaging groups and wirings with
ncl, choosingunknown_sender_policybased on private vs public repos
Every mechanical step lives inside an nc: directive fence, so a human or a parser can apply it identically, and the whole skill is idempotent.
Who it's for
- Developers self-hosting NanoClaw who want to summon the agent from GitHub
- Teams wanting a bot that lives in PR review threads
- Operators who need one document covering
.env, webhooks, wiring and service restart
Heads-up: it is meaningless outside a NanoClaw checkout and assumes the ncl CLI plus a running host service — not beginner territory.
Examples
- PR review helper: on a private repo with
unknown_sender_policy: 'public', a teammate writes@my-org-bot summarize this diffand the agent replies in the same thread. - Public repo triage: switch to
strictand register trusted maintainers withncl users create --id "github:12345" --kind githubso strangers can't burn agent resources. - Health check: when the channel goes silent,
pnpm exec vitest run src/channels/github-registration.test.tsinstantly tells you whether the barrel import or the adapter dependency drifted.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .claude/skills/add-github folder from the GitHub repo nanocoai/nanoclaw into my ~/.claude/skills/add-github/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/nanocoai/nanoclaw.git && mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-github ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Clone the repository:
git clone https://github.com/nanocoai/nanoclaw.git - Copy the skill into your personal skills folder:
mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-github ~/.claude/skills/(skip this if you're already working inside the NanoClaw project). - Create a dedicated GitHub bot account and invite it as a write-access collaborator on the repos you want monitored — do not use your personal account.
- Logged in as the bot, go to Settings → Developer Settings → Personal Access Tokens and mint a fine-grained token with Pull requests (Read & Write) and Issues (Read & Write) on those repos.
- On each repo, add a webhook: payload URL
https://your-domain/webhook/github, content typeapplication/json, a secret fromopenssl rand -hex 20, and subscribe to Issue comments and Pull request review comments. - Open Claude Code from the NanoClaw project root and ask it to "add the GitHub channel", or run it as part of
/setup. - Answer the three prompts (PAT, webhook secret, bot username); they are written to
.envwithout overwriting existing values. - Confirm the build and registration test pass, then create the messaging group and wiring via
ncl(the host service must be running). - Restart the service (macOS:
launchctl kickstart -k ...; Linux:systemctl --user restart ...) and @-mention the bot in a PR comment from a non-bot account to verify end to end.
View source on GitHub ↗License: MIT