skills/chattool-gh/SKILL.md
Use ChatTool GitHub CLI helpers (chattool gh) to create, update, inspect, and maintain PRs, including CI status checks. Use when tasks require opening PRs, updating PR metadata, checking workflow status, or interacting with GitHub via ChatTool CLI.
npx skillsauth add cubenlp/chattool chattool-ghInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use chattool gh for GitHub pull request workflows, CI inspection, and correct PR body formatting.
Initialize GitHub credentials so chattool gh can read them:
chatenv init -t gh
chatenv cat -t gh
Recommended config keys:
GITHUB_ACCESS_TOKENUse a body file to avoid newline escaping:
cat > /tmp/pr_body.md <<'EOF'
## Summary
- point 1
- point 2
## Testing
- command 1
- command 2
EOF
chattool gh pr create \
--repo owner/repo \
--base master \
--head your-branch \
--title "feat: add xyz" \
--body-file /tmp/pr_body.md
Update the PR body whenever the scope changes:
chattool gh pr edit \
--repo owner/repo \
--number 123 \
--body-file /tmp/pr_body.md
You can also update title, state, or base branch:
chattool gh pr edit \
--repo owner/repo \
--number 123 \
--title "feat: refine xyz" \
--state open
chattool gh pr list --repo owner/repo
chattool gh pr view --repo owner/repo --number 123
chattool gh pr checks --repo owner/repo --number 123
chattool gh pr checks --repo owner/repo --number 123 --wait
chattool gh pr checks --repo owner/repo --number 123 --wait --interval 10 --timeout 600
chattool gh run view --repo owner/repo --run-id 23494900414
chattool gh run logs --repo owner/repo --job-id 68373094563
Use pr checks after pushing or when CI looks wrong. It summarizes:
If you pass --wait, it will keep polling until checks and workflow runs finish:
--interval <seconds>: control polling interval--timeout <seconds>: fail only when you explicitly want a timeoutRecommended default for active PR work:
chattool gh pr checks --repo owner/repo --number 123 --wait
Use plain pr checks only when you explicitly want a one-shot snapshot.
For machine-readable output:
chattool gh pr checks --repo owner/repo --number 123 --json-output
chattool gh pr comment --repo owner/repo --number 123 --body "Looks good"
chattool gh pr merge --repo owner/repo --number 123 --method squash
chattool gh pr merge --repo owner/repo --number 123 --method squash --check
--body-file to ensure Markdown renders correctly.Summary, Testing).pr checks over manually browsing GitHub Actions when the task is to inspect PR CI state.pr checks --wait instead of manually re-running status commands.pr checks first, then run view / run logs to drill down instead of guessing from the web UI.chattool gh, check the official GitHub REST docs and PyGithub references in docs/client.md.tools
Create staged previews of Zulip topics using read-only CLI queries, including full-thread originals, a small zh-en translation slice, and a Chinese overview in an external work directory such as ~/tmp/chattool-zulip/<channel>/<topic>. Use when asked to preview, summarize, or translate Zulip thread content.
tools
Aggregate and summarize Zulip community updates via ChatTool CLI. Use when user asks to fetch latest Zulip news, list streams/messages, or generate periodic summaries from configured streams/topics.
tools
Use `chattool pypi init` to scaffold a minimal Python package, then validate it with doctor/build/check. Example package name `mychat`.
tools
Post-task normalization workflow for ChatTool development. Use after implementation to review the completed work, extract reusable pieces into the repo, check existing CLI surfaces before adding scripts, run $chattool-dev-review, and then drive docs/tests/changelog/PR updates through the project standards. If the task also includes merged-mainline release work, hand off to $chattool-release after PR/MR stage.