Interacts with GitHub resources via the gh CLI: repos, issues, PRs, comments, releases, workflows. Enforces a structured workflow for issue creation with template validation and dry-run.
Ships in dcjanus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
一句话说明:当任务核心是“和 GitHub 打交道”时,优先使用 gh,而不是把范围局限在 Issue/PR。
本 skill 只负责 GitHub 资源读取与平台操作,不定义标题、正文或 inline review reply 的文案。
rm -- <明确路径> 用 && 串行执行。写操作失败时保留文件,
不要使用 ; 无条件删除,也不要用变量、通配符或目录作为清理目标。gh <group> --help 确认是否有现成子命令,再执行。--json,必要时再配合 jq 整理字段。gh api;先完整读取 actions-wait.md,再使用统一脚本。人工临时查看仍可直接使用 gh run watch。git fetch,确保分支是最新远端状态。gh repo view [owner/repo]gh issue view <id|url>gh pr view <id|url>gh release listgh workflow list在创建 Issue 或 PR 前,先检查对应的 GitHub 模板、表单和当前资源状态。
./scripts/github_preflight.py --mode issue --repo <目标仓库绝对路径>./scripts/github_preflight.py --mode pr --repo <目标仓库绝对路径>labels:、必填字段和 checkbox;再用 ./scripts/github_issue.py inspect 读取远端默认分支上的实际模板,避免本地 checkout 过期。以下规范建立在“创建前检查”已完成的前提上。
./scripts/github_issue.py create。 默认不要直接调用 gh issue create、gh api、REST/GraphQL 请求或网页表单。/tmp/*.md。./scripts/github_issue.py inspect \
--repo owner/repo \
--template bug.yml
--dry-run:./scripts/github_issue.py create \
--repo owner/repo \
--template bug.yml \
--title "..." \
--body-file /tmp/issue-body.md \
--dry-run
--dry-run 正式执行。需要机器可读输出时加 --json。--template;此时可用可重复的 --label / --assignee。脚本会在权限不足时提前失败,避免 GitHub REST 静默丢弃元数据。--template <文件名> 指定。模板场景不要再传 --label / --assignee;脚本会让 GitHub 服务端应用模板预设元数据,并在创建后回读验证。GH_TOKEN / GITHUB_TOKEN(GitHub Enterprise 对应变量),仅在环境变量不可用时调用 gh auth token。除鉴权兜底外,脚本直接调用 GitHub REST/GraphQL API。正式创建并清理单次临时正文的示例:
./scripts/github_issue.py create \
--repo owner/repo \
--template bug.yml \
--title "..." \
--body-file /tmp/issue-body.md \
&& rm -- /tmp/issue-body.md
以下规范建立在“创建前检查”已完成的前提上。
git status 必须干净,且当前分支已推送到远端。/tmp/*.md,不要在 shell 里拼多行字符串,也不要依赖交互式编辑。标题通常较短,可直接用 --title 传入。./scripts/github_pr.py create,先通过 --help 查看参数;脚本按提供的正文创建,允许维护者修改,并回读核验正文和适用的权限。./scripts/github_pr.py update <number|url> --repo owner/repo --body-file <path>。两入口都支持 --dry-run 预览;其它参数从 --help 探索。核验失败时按返回的 URL 处理,不重复创建。在更新 Issue 或 PR 的标题/描述之前,必须先读取当前标题/正文(即将被修改的内容),再进行修改。
gh --helpgh <group> --helpgh <group> <subcommand> --helpreferences/actions-wait.md (opens in a new tab)scripts/github_actions_wait.py (opens in a new tab)scripts/github_issue.py (opens in a new tab)scripts/github_pr.py (opens in a new tab)scripts/github_preflight.py (opens in a new tab)scripts/tests/test_github_actions_wait.py (opens in a new tab)scripts/tests/test_github_issue.py (opens in a new tab)scripts/tests/test_github_pr.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/dcjanus-dcjanus-plugins-dcjanus:github-clifrom dcjanus
Generated from the plugin's indexed repository (dcjanus/prompts) — no native marketplace selected
npx claudepluginhub p/dcjanus-dcjanus-plugins-dcjanus27 skills in this plugin
/codex-thread-close-check检查当前 Codex thread(会话)是否还有遗留事项,适用于用户准备关闭、归档当前对话,或询问当前 thread 是否可以收尾时。/codex-thread-namer为当前 Codex thread 设置名称;仅当用户手动调用或明确要求命名、重命名、整理当前 Codex 会话标题时使用,永远不要自动调用。/confluence-cli查询、检索与阅读 Confluence 文档/页面。/dcjanus-merge-policy将 GitHub 或 GitLab 仓库配置为 DCjanus 偏好的合并策略,包括 squash、组织仓库的 merge queue、提交消息模板和源分支删除设置。适用于明确要求采用 DCjanus 个人合并策略的场景,不用于一般 PR/MR 合并操作。/dcjanus-preferences适用于创建、修改或评审 Skill,配置或复刻 GitHub 个人仓库与长期自用 fork 的维护、CI、发布、合并策略和 Dependabot 更新,设计或评审 CLI 的命名、输入手感、输出与补全,设计或评审前端界面的布局、信息层级和文案,或在前端技术栈与无障碍组件、Connect/Protobuf API、well-known types、FieldMask/PATCH、AIP-127 HTTP 映射与 Protovalidate 校验、项目开发工具(含 mbx/Cargo)及版本管理、用户级程序的 XDG 数据目录、跨语言的数据存储、分析、压缩、归档、哈希、Telegram Bot 消息呈现及 Python/Rust/Go 第三方库之间做技术选择的场景。/dcjanus-tasklog查询或管理 DCjanus 的 Linear 事项、提醒、长期文档、模板(含周期事项)、视图或团队配置,以及按个人任务模型整理目标、进展和关联时使用。Other plugins' skills for the same job