Configures GitHub or GitLab repos with DCjanus's personal merge strategy: squash-only, merge queue for org repos, commit message templates, and source branch deletion. Not for general PR/MR merging.
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.
这是 DCjanus 的个人偏好,不是通用最佳实践。修改 repository/project 级合并设置;GitHub 组织仓库同时启用默认分支的 merge queue。除队列专用规则集外,不调整其它 branch protection 或 ruleset,也不执行 PR/MR 合并。
--help;只有执行失败需要排障,或任务明确要求审计、修改脚本时,才阅读实现。<skill-dir> 替换为本 SKILL.md 所在目录的绝对路径,不从目标仓库目录推断脚本位置。uv,以及已登录目标平台且有修改仓库设置权限的 gh(GitHub)或 glab(GitLab)。GitHub:
uv run --script <skill-dir>/scripts/configure_github.py --repo <owner/repo>
GitLab:
uv run --script <skill-dir>/scripts/configure_gitlab.py --project <group/project-or-id> --hostname <gitlab-host>
两个脚本均支持 --cwd <目标仓库目录>、--hostname <host> 和 --json。GitLab host 能从执行目录正确确定时可省略 --hostname;GitHub 自建实例也应显式指定 host。
脚本会直接写入配置,然后回读校验并输出结果;回读不匹配时列出字段并非零退出。失败不代表没有写入,应根据错误核对实际设置,不盲目重试。
Co-authored-by trailer。owner.type 区分组织和个人仓库。组织仓库默认分支使用 squash merge queue;个人仓库不创建队列规则集。对应字段:allow_squash_merge=true、allow_merge_commit=false、allow_rebase_merge=false、allow_auto_merge=true、squash_merge_commit_title=PR_TITLE、squash_merge_commit_message=PR_BODY、delete_branch_on_merge=true。
merge_group,job 的条件也要允许队列运行;发布任务仅在真正更新默认分支后执行。脚本不自动修改项目 workflow。DCjanus merge queue 的独立规则集,只作用于默认分支;保留其中已有的其它规则、检查与 bypass actors,不改其它规则集。重复执行不重复创建。SQUASH、ALLGREEN,一次构建、合并一个 PR;等待 CI 默认 90 分钟。通过 --help 查看队列超时和可重复的 --required-check 参数;必需检查名称须来自项目实际 CI,不从历史运行自动推断。--required-check 时保留已有检查,不会自动把队列变成 CI 门禁。首次配置时按项目实际需要指定检查;已有其它规则集提供队列时保留它,存在合并方法冲突或要求追加检查时明确报错,交由调用方定位原规则处理。功能及 CI 约束见 GitHub merge queue 文档。
merge_method=rebase_merge)并强制 squash(squash_option=always)。目标分支的 first-parent 历史保持线性,每次 MR 合并保留 squash commit 和记录合并边界的 merge commit。%{title}\n\n%{description}\n\n%{co_authored_by},采用 MR 标题、正文及 GitLab 可生成的协作者 trailer,不重复记录 MR reference。merge_commit_template 为空,但不会覆盖已有自定义模板;存在自定义模板时会在写入其他设置后校验失败,需要单独处理。remove_source_branch_after_merge=true);通过 API 创建 MR 时仍显式传 remove_source_branch。What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/dcjanus-dcjanus-plugins-dcjanus:dcjanus-merge-policyfrom 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-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 事项、提醒、长期文档、模板(含周期事项)、视图或团队配置,以及按个人任务模型整理目标、进展和关联时使用。/dependency-management新增、移除或升级项目及长期维护脚本的依赖,以及修改项目版本时使用。一次性 Python 脚本使用 python-execution;库的选型比较使用 dcjanus-preferences。Other plugins' skills for the same job