add-github

Integrates GitHub PR and issue comment threads as agent conversations via Chat SDK.

2|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/RADHA0-max/selfhealbackend --skill add-github-radha0-max
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-github
Source: https://github.com/RADHA0-max/selfhealbackend/tree/main/nanoclaw/.claude/skills/add-github
Command: npx skills add https://github.com/RADHA0-max/selfhealbackend --skill add-github-radha0-max

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @chat-adapter/github.

What problem does it solve? NanoClaw does not ship channel adapters in trunk, so connecting an agent to GitHub requires manually copying the adapter, registering it, configuring credentials, and wiring messaging groups. This Skill walks through that entire setup so the agent can participate in PR and issue comment threads. ## Core Features & Use Cases - Adapter Installation: Copies the GitHub adapter and its registration test from the channels branch, appends the self-registration import, and pins the @chat-adapter/github package. - Credential & Webhook Setup: Guides creation of a bot account PAT, per-repo webhooks, and environment variables (GITHUB_TOKEN, GITHUB_WEBHOOK_SECRET, GITHUB_BOT_USERNAME). - Channel Wiring: Creates messaging groups and wirings with per-thread session mode, with public or strict unknown-sender policies based on repo visibility. - Use Case: A team wants their agent to respond when someone @-mentions the bot in a pull request comment, with each PR getting its own isolated agent session. ## Quick Start Ask the agent to add the GitHub channel to NanoClaw and follow the prompts to install the adapter, configure the bot token and webhook, and wire the repo to an agent group.

Frequently Asked Questions about add-github

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a GitHub channel to NanoClaw?

Fetch the channels branch, copy src/channels/github.ts and its registration test, add the self-registration import to the channel barrel, install @chat-adapter/github, then build and run the registration test before configuring credentials.

How do I set up a GitHub bot account for PR comment automation?

Create a dedicated GitHub account, invite it as a collaborator with write access, and generate a fine-grained personal access token with Pull requests and Issues read/write permissions. Set GITHUB_BOT_USERNAME to the bot's exact username for @-mention detection.

What webhook events does the GitHub channel need?

Configure a webhook on each repo pointing to https://your-domain/webhook/github with a secret, selecting Issue comments and Pull request review comments events. The agent responds when the bot is @-mentioned, then subscribes to the thread.

Should I use public or strict unknown sender policy for GitHub repos?

Use public for private repos since only collaborators can comment anyway. Use strict for public repos so only registered members can trigger the agent, preventing strangers from consuming agent resources.

Why does the GitHub registration test fail after installation?

The test fails if the import './github.js' line is missing from the channel barrel, if the barrel fails to evaluate, or if @chat-adapter/github is not installed. Re-run the install steps and pnpm run build to resolve it.