Handles the full workflow from local Git changes to collaborative publishing on GitHub/GitLab, including branch management, semantic commit messages, commits, pushes, Issue/PR/MR drafting, inline review replies, and breaking change scope checks. Not for read-only queries.
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/GitLab 的资源读取与平台写入仍交给 SKILL.md / SKILL.md。
git status -sb,确认当前分支、上游关系和 dirty worktree。paths 精确限定提交范围,不要提前修改 index;每一项按仓库相对的 Git pathspec 解释,支持字面路径、目录、通配符和 :(glob) magic。脚本会自动处理匹配到的未跟踪文件。subject 和 paths;仅当标题与 diff 无法充分解释必要的动机、约束或影响时才添加 body,不要机械生成提交正文。需要正文时也不要在 shell 参数中拼接多行文本。YAML 格式与正文判断标准见 commit-messages.md。&& rm -- <明确路径> 清理;提交失败时保留文件,
不要使用 ; 无条件删除,也不要用变量、通配符或目录作为清理目标:./scripts/commit_from_yaml.py /tmp/commit.yaml --repo /path/to/repository \
&& rm -- /tmp/commit.yaml
脚本默认根据宿主注入的会话变量识别当前 Agent,并从其会话记录解析模型,生成 Assisted-by: <agent>:<model>:Codex(CODEX_THREAD_ID)为 codex:<model>,Claude Code(CLAUDE_CODE_SESSION_ID)为 claude-code:<model>。需要覆盖默认行为时,把 assisted_by 写进提交 YAML,而不是改用命令行参数,便于审查:
# 在 opencode 等无法自动探测的 Agent 下显式指定 Agent 与模型
assisted_by:
agent: opencode
model: deepseek-v4.1-flash
assisted_by.agent 覆盖 Agent 前缀(默认取探测到的 Agent,无法探测时为 codex;不能为空)。assisted_by.model 指定模型并跳过模型探测;缺省时从当前 Codex thread 或 Claude Code 会话记录读取,不得猜测。assisted_by.model。assisted_by: false 跳过探测且不添加 Assisted-by trailer,只用于确实无法获得模型信息的场景。paths 非空时,脚本会把每一项原样作为 Git pathspec 传给 Git,自动让匹配到的未跟踪文件进入 intent-to-add 状态,再使用 git commit --only 限定提交范围;调用方无需预先 stage。通配符由 Git 而不是 shell 展开,YAML 中应使用引号;需要让 * 不跨越目录分隔符时,使用 :(glob) 与 ** 明确表达层级。若提交失败,脚本会清理自己创建的 intent-to-add 条目。paths 为空时提交当前 index,也可用于已经解决冲突的 merge commit。\\n 都会失败。提交后仍需回读范围与工作区:git show --name-status --oneline --no-renames HEAD
git show -s --format=%B HEAD | git interpret-trailers --parse
git status -sb
提交脚本失败时停止后续操作;默认不得自行 amend,按“分支、推送与历史”的授权规则处理。
git switch,恢复工作区或暂存区使用 git restore。.git/index.lock 时先检查活跃 Git 进程。github-cli 或 gitlab-cli 完成模板检查、资源读取和实际写入。Validation。它不是测试清单:只有 reviewer 无法从最终 diff 和平台 CI/checks 直接获得、且会实质影响风险判断的最终行为证据才能保留。普通检查命令、测试数量和 CI 状态只在任务交付回复中汇报。具体筛选规则和正反例见 change-requests.md。Validation 没有合格证据,删除整个章节。PR/MR 正文中的所有 Markdown 章节标题须为英文,保留正文内容原有语言。当用户要求“确保 PR/MR 可以合并”“准备好合入”或同等结果时,目标不是仅消除代码冲突或等待 CI,而是满足目标仓库当前的全部合入策略。
git fetch 后检查 base/target 与 head/source 的提交关系。无冲突、CI 成功或平台返回笼统的 can_be_merged,都不能替代“目标分支同步要求已满足”的检查。What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
git-workflow, commit-message, pull-request, code-review, github, gitlab
/dcjanus-dcjanus-plugins-dcjanus:repository-workflowfrom 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