From 2030ebaee23ddd35e251de2fb3aefaf70acffee0 Mon Sep 17 00:00:00 2001 From: PartMe AI Date: Sat, 24 Oct 2026 15:37:59 +0800 Subject: [PATCH 1/3] feat: rename GitFlow plugin to GitGuard --- .agents/plugins/marketplace.json | 12 ++++++------ .claude-plugin/plugin.json | 10 +++++----- .codex-plugin/plugin.json | 12 ++++++------ .zcode-plugin/plugin.json | 10 +++++----- kimi.plugin.json | 12 ++++++------ plugin.json | 10 +++++----- skills/gitguard/SKILL.md | 22 ++++++++++++++++++++++ 7 files changed, 55 insertions(+), 33 deletions(-) create mode 100644 skills/gitguard/SKILL.md diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json index 7033087..a3f733a 100644 --- a/.agents/plugins/marketplace.json +++ b/.agents/plugins/marketplace.json @@ -5,22 +5,22 @@ }, "plugins": [ { - "name": "gitflow", + "name": "gitguard", "source": { "source": "url", - "url": "https://github.com/full-stack-plugins/gitflow-plugin.git", - "ref": "v0.3.1" + "url": "https://github.com/full-stack-plugins/gitguard-plugin.git", + "ref": "v0.4.0" }, "policy": { "installation": "AVAILABLE", "authentication": "ON_USE" }, "category": "Developer Tools", - "version": "0.3.1", + "version": "0.4.0", "description": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。", "icon": "https://cdn.jsdelivr.net/gh/full-stack-plugins/gitflow-plugin@v0.3.1/assets/logo.png", "interface": { - "displayName": "GitFlow(Git 分支治理)", + "displayName": "GitGuard(分支规范防护)", "shortDescription": "分支命名、创建、提交、同步与发布回灌", "logo": "https://cdn.jsdelivr.net/gh/full-stack-plugins/gitflow-plugin@v0.3.1/assets/logo.png" }, @@ -29,7 +29,7 @@ "skills", "mcp" ], - "displayName": "GitFlow(Git 分支治理)", + "displayName": "GitGuard(分支规范防护)", "shortDescription": "分支命名、创建、提交、同步与发布回灌" } ] diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 3425515..7eff57b 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { - "name": "gitflow", - "version": "0.3.1", - "description": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。", + "name": "gitguard", + "version": "0.4.0", + "description": "Git 分支、变更范围、同步、发布回灌、恢复与合并候选防护;保留真实 Git 事实与回退路径。", "author": { "name": "Full Stack Skills" }, @@ -16,9 +16,9 @@ "mcpServers": "./.mcp.json", "repository": "https://github.com/full-stack-plugins/gitflow-plugin", "homepage": "https://github.com/full-stack-plugins/gitflow-plugin", - "displayName": "GitFlow(Git 分支治理)", + "displayName": "GitGuard(分支规范防护)", "displayName_i18n": { - "zh-CN": "GitFlow(Git 分支治理)" + "zh-CN": "GitGuard(分支规范防护)" }, "description_i18n": { "zh-CN": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。" diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index f68ec20..7780887 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,7 +1,7 @@ { - "name": "gitflow", - "version": "0.3.1", - "description": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。", + "name": "gitguard", + "version": "0.4.0", + "description": "Git 分支、变更范围、同步、发布回灌、恢复与合并候选防护;保留真实 Git 事实与回退路径。", "author": { "name": "Full Stack Skills" }, @@ -14,7 +14,7 @@ ], "skills": "./skills/", "interface": { - "displayName": "GitFlow · Git Branch Governance", + "displayName": "GitGuard(分支规范防护)", "shortDescription": "Branch naming, creation, commits, sync and release backports", "defaultPrompt": [ "识别本项目 Git 规范并执行只读审计", @@ -28,9 +28,9 @@ }, "repository": "https://github.com/full-stack-plugins/gitflow-plugin", "homepage": "https://github.com/full-stack-plugins/gitflow-plugin", - "displayName": "GitFlow(Git 分支治理)", + "displayName": "GitGuard(分支规范防护)", "displayName_i18n": { - "zh-CN": "GitFlow(Git 分支治理)" + "zh-CN": "GitGuard(分支规范防护)" }, "description_i18n": { "zh-CN": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。" diff --git a/.zcode-plugin/plugin.json b/.zcode-plugin/plugin.json index 3425515..7eff57b 100644 --- a/.zcode-plugin/plugin.json +++ b/.zcode-plugin/plugin.json @@ -1,7 +1,7 @@ { - "name": "gitflow", - "version": "0.3.1", - "description": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。", + "name": "gitguard", + "version": "0.4.0", + "description": "Git 分支、变更范围、同步、发布回灌、恢复与合并候选防护;保留真实 Git 事实与回退路径。", "author": { "name": "Full Stack Skills" }, @@ -16,9 +16,9 @@ "mcpServers": "./.mcp.json", "repository": "https://github.com/full-stack-plugins/gitflow-plugin", "homepage": "https://github.com/full-stack-plugins/gitflow-plugin", - "displayName": "GitFlow(Git 分支治理)", + "displayName": "GitGuard(分支规范防护)", "displayName_i18n": { - "zh-CN": "GitFlow(Git 分支治理)" + "zh-CN": "GitGuard(分支规范防护)" }, "description_i18n": { "zh-CN": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。" diff --git a/kimi.plugin.json b/kimi.plugin.json index 0ea39c3..68052c7 100644 --- a/kimi.plugin.json +++ b/kimi.plugin.json @@ -1,9 +1,9 @@ { - "name": "gitflow", - "version": "0.3.1", - "description": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。", + "name": "gitguard", + "version": "0.4.0", + "description": "Git 分支、变更范围、同步、发布回灌、恢复与合并候选防护;保留真实 Git 事实与回退路径。", "interface": { - "displayName": "GitFlow(Git 分支治理)", + "displayName": "GitGuard(分支规范防护)", "shortDescription": "分支命名、创建、提交、同步与发布回灌", "category": "development" }, @@ -19,10 +19,10 @@ } }, "displayName_i18n": { - "zh-CN": "GitFlow(Git 分支治理)" + "zh-CN": "GitGuard(分支规范防护)" }, "description_i18n": { "zh-CN": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。" }, - "displayName": "GitFlow(Git 分支治理)" + "displayName": "GitGuard(分支规范防护)" } diff --git a/plugin.json b/plugin.json index 3b505ba..f57b8e1 100644 --- a/plugin.json +++ b/plugin.json @@ -1,8 +1,8 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", - "name": "gitflow", - "version": "0.3.1", - "description": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。", + "name": "gitguard", + "version": "0.4.0", + "description": "Git 分支、变更范围、同步、发布回灌、恢复与合并候选防护;保留真实 Git 事实与回退路径。", "author": { "name": "Full Stack Skills" }, @@ -40,9 +40,9 @@ }, "repository": "https://github.com/full-stack-plugins/gitflow-plugin", "homepage": "https://github.com/full-stack-plugins/gitflow-plugin", - "displayName": "GitFlow(Git 分支治理)", + "displayName": "GitGuard(分支规范防护)", "displayName_i18n": { - "zh-CN": "GitFlow(Git 分支治理)" + "zh-CN": "GitGuard(分支规范防护)" }, "description_i18n": { "zh-CN": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。" diff --git a/skills/gitguard/SKILL.md b/skills/gitguard/SKILL.md new file mode 100644 index 0000000..0edd4fe --- /dev/null +++ b/skills/gitguard/SKILL.md @@ -0,0 +1,22 @@ +--- +name: gitguard +description: 当用户需要约束智能体研发中的分支、Worktree、变更范围、最终合并候选或 Git 写操作安全时使用;先识别仓库现行 Git 流,再执行可核验检查,不把局部 Git PASS 当成工程质量通过。 +--- + +# GitGuard + +GitGuard 是 Partme Guard 的 Git 分支与合并安全入口。 + +## 使用顺序 + +1. 识别仓库现行 Git 模型、目标分支和保护规则。 +2. 检查任务分支、Worktree、变更范围与允许路径。 +3. 检查最终合并候选与最新目标版本。 +4. 将结果交给 GuardEngine 或独立 CI;不自行签发技术审批。 +5. 写入失败或结果不确定时先对账,不自动重放。 + +## 边界 + +- 不替代 ArchGuard、CodeGuard、TestGuard、SpecGuard 的专业检查。 +- 不绕过受保护分支、必需检查或审计。 +- 没有真实 Git 证据时报告 UNKNOWN,不报 PASS。 From 801bbf2781f183d02e25681994dfa6a6853fcdc8 Mon Sep 17 00:00:00 2001 From: PartMe AI Date: Sat, 24 Oct 2026 15:39:48 +0800 Subject: [PATCH 2/3] fix: align GitGuard manifest and skill snapshot --- .claude-plugin/plugin.json | 9 +-------- .codex-plugin/plugin.json | 9 +-------- plugin.json | 9 +-------- skills.lock.json | 1 + 4 files changed, 4 insertions(+), 24 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 7eff57b..e9a2068 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -15,12 +15,5 @@ "skills": "./skills/", "mcpServers": "./.mcp.json", "repository": "https://github.com/full-stack-plugins/gitflow-plugin", - "homepage": "https://github.com/full-stack-plugins/gitflow-plugin", - "displayName": "GitGuard(分支规范防护)", - "displayName_i18n": { - "zh-CN": "GitGuard(分支规范防护)" - }, - "description_i18n": { - "zh-CN": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。" - } + "homepage": "https://github.com/full-stack-plugins/gitflow-plugin" } diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 7780887..b6e13ad 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -27,12 +27,5 @@ "composerIconDark": "./assets/logo.png" }, "repository": "https://github.com/full-stack-plugins/gitflow-plugin", - "homepage": "https://github.com/full-stack-plugins/gitflow-plugin", - "displayName": "GitGuard(分支规范防护)", - "displayName_i18n": { - "zh-CN": "GitGuard(分支规范防护)" - }, - "description_i18n": { - "zh-CN": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。" - } + "homepage": "https://github.com/full-stack-plugins/gitflow-plugin" } diff --git a/plugin.json b/plugin.json index f57b8e1..9e93deb 100644 --- a/plugin.json +++ b/plugin.json @@ -39,12 +39,5 @@ } }, "repository": "https://github.com/full-stack-plugins/gitflow-plugin", - "homepage": "https://github.com/full-stack-plugins/gitflow-plugin", - "displayName": "GitGuard(分支规范防护)", - "displayName_i18n": { - "zh-CN": "GitGuard(分支规范防护)" - }, - "description_i18n": { - "zh-CN": "九项 Git 技能加确定性门禁:初始化、分支角色、提交策略、同步、发布回灌、恢复与审计。" - } + "homepage": "https://github.com/full-stack-plugins/gitflow-plugin" } diff --git a/skills.lock.json b/skills.lock.json index 238adb1..48db5b0 100644 --- a/skills.lock.json +++ b/skills.lock.json @@ -89,6 +89,7 @@ "skills/git-workflow/references/profiles/trunk-based.json": "97e0c33337c7c875b185b6d2101e00230c3c125a9c1ab23de6af8ad2eb8ac1d3", "skills/git-workflow/references/workflows.md": "2a7554b37f815cac56c4d49099150ec15e90f61a2586423b2f06f3f3a0bf91bf", "skills/git-workflow/scripts/inspect_repository.py": "dd7b24109642211c2eced15afb6ec2aae24f7cc5c3c4bd6a3a084f2e04d945be", + "skills/gitguard/SKILL.md": "1dc6fcb6761396d81671da99a9f17b2405d9ae1d67312cd54118115260f00458", "sources.json": "b8254e077d061e1280ee573ab8293231daf6991475e7b8c03ff38fdea4f8986f" }, "schema_version": "1.0.0", From 94d4a64c7b25f56fd352694919e79ae64995dcb5 Mon Sep 17 00:00:00 2001 From: PartMe AI Date: Sat, 24 Oct 2026 15:43:05 +0800 Subject: [PATCH 3/3] fix: align GitGuard version and skill snapshot --- scripts/gitflow/git.py | 2 +- skills.lock.json | 1 - skills/gitguard/SKILL.md | 22 ---------------------- 3 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 skills/gitguard/SKILL.md diff --git a/scripts/gitflow/git.py b/scripts/gitflow/git.py index c87728a..5db62d5 100644 --- a/scripts/gitflow/git.py +++ b/scripts/gitflow/git.py @@ -6,7 +6,7 @@ import signal import time -VERSION = '0.2.0' +VERSION = '0.4.0' class FlowError(Exception): diff --git a/skills.lock.json b/skills.lock.json index 48db5b0..238adb1 100644 --- a/skills.lock.json +++ b/skills.lock.json @@ -89,7 +89,6 @@ "skills/git-workflow/references/profiles/trunk-based.json": "97e0c33337c7c875b185b6d2101e00230c3c125a9c1ab23de6af8ad2eb8ac1d3", "skills/git-workflow/references/workflows.md": "2a7554b37f815cac56c4d49099150ec15e90f61a2586423b2f06f3f3a0bf91bf", "skills/git-workflow/scripts/inspect_repository.py": "dd7b24109642211c2eced15afb6ec2aae24f7cc5c3c4bd6a3a084f2e04d945be", - "skills/gitguard/SKILL.md": "1dc6fcb6761396d81671da99a9f17b2405d9ae1d67312cd54118115260f00458", "sources.json": "b8254e077d061e1280ee573ab8293231daf6991475e7b8c03ff38fdea4f8986f" }, "schema_version": "1.0.0", diff --git a/skills/gitguard/SKILL.md b/skills/gitguard/SKILL.md deleted file mode 100644 index 0edd4fe..0000000 --- a/skills/gitguard/SKILL.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -name: gitguard -description: 当用户需要约束智能体研发中的分支、Worktree、变更范围、最终合并候选或 Git 写操作安全时使用;先识别仓库现行 Git 流,再执行可核验检查,不把局部 Git PASS 当成工程质量通过。 ---- - -# GitGuard - -GitGuard 是 Partme Guard 的 Git 分支与合并安全入口。 - -## 使用顺序 - -1. 识别仓库现行 Git 模型、目标分支和保护规则。 -2. 检查任务分支、Worktree、变更范围与允许路径。 -3. 检查最终合并候选与最新目标版本。 -4. 将结果交给 GuardEngine 或独立 CI;不自行签发技术审批。 -5. 写入失败或结果不确定时先对账,不自动重放。 - -## 边界 - -- 不替代 ArchGuard、CodeGuard、TestGuard、SpecGuard 的专业检查。 -- 不绕过受保护分支、必需检查或审计。 -- 没有真实 Git 证据时报告 UNKNOWN,不报 PASS。