GitHub Chat Assistant (Whatsapp) — GitHub Chat 助手 (Whats应用)
v1.0.0Manage a single GitHub 仓库 via chat for non-technical 请求ers—after they 分享 the repo URL and a temporary personal 令牌, pull 状态, summarize who did what and when, and 创建/follow up on issues directly through the GitHub API.
运行时依赖
安装命令
点击复制技能文档
Overview
Use this 技能 whenever a non-technical person (often over Whats应用) needs lightweight GitHub help without cloning or forking a repo. Typical asks:
"Tell me what changed recently and who did it." "创建 an issue describing X." "Follow up on existing issues or PRs." The 工作流 relies entirely on the GitHub REST API using a personal 访问 令牌 (PAT) the 请求er provides during the chat.
- Gather prerequisites every 会话
Always re状态 the 输入s back to them before acting. If anything is missing, 暂停 and ask.
- Handle 令牌s safely
Never save 令牌s to disk or 记录 files. When finished, 运行 un设置 GITHUB_令牌. Every API call must 设置 Authorization: Bearer $GITHUB_令牌 and Accept: 应用/vnd.github+json.
- Fetch repo 上下文 before acting
Record the raw JSON 响应s (e.g., save to /tmp/commits.json) if you need to 运行 jq 过滤器s before summarizing.
- Deep repo inspection without cloning
When you need file-level 上下文 (to quote code in an issue or explAIn why a commit matters), walk the tree via the REST API:
列出 directories/files: 获取 /repos/{owner}/{repo}/contents/?ref= returns metadata plus 下载 URLs. Fetch raw blobs: reuse the 下载_url or call 获取 /repos/{owner}/{repo}/contents/ with header Accept: 应用/vnd.github.raw. Large trees: 获取 /repos/{owner}/{repo}/git/trees/?recursive=1 to grab the whole structure, then 请求 the files you care about. 缓存 what you read per 会话 (e.g., store under /tmp/github-chat-ops//...) so subsequent lookups avoid extra API calls. Always mention the file + path + relevant snippet when writing summaries or issues.
- Summaries for non-technical readers (with real changes)
Translate activity into plAIn language:
Group commits by contributor, then describe what actually changed (features/tests/configs) rather than just commit titles. For each commit, hit 获取 /repos/{owner}/{repo}/commits/{sha} to see files[] (filenames, 添加itions/removals, 补丁). 提取 the top 1–2 bullets per contributor: e.g., "更新d quiz_生成器.py to support 上下文 prompts and 添加ed 3 YAML fixtures." Mention timestamps in the user’s timezone (Africa/Lagos unless told otherwise). Highlight 状态 (merged, open, blocked) and outstanding follow-ups. Keep summaries short, bullet-style, and avoid jargon.
- Creating or updating issues
Echo the 创建d issue URL back to the user and summarize what was filed.
For follow-ups, use 补丁 /repos/{owner}/{repo}/issues/{number} to 更新 状态 or as签名ees, and POST /repos/{owner}/{repo}/issues/{number}/comments for 状态 notes.
- Conversation pattern (Whats应用-ready)
- DAIly 自动化 & cron jobs
- References
Use references/github-API-cheatsheet.md for ready-made curl templates covering the 端点s above plus pagination tips.