← 返回 Skills 市场
sf0799

Git Discipline

作者 sf0799 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
113
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install git-discipline
功能描述
Enforce safe Git workflows by inspecting repo state, managing branches, staging, commits, and history without risking unrelated or shared work.
使用说明 (SKILL.md)

Git 规范

让 Git 操作保持收敛、可回退、不误伤共享历史。

工作流

  1. 动手前先看当前仓库状态。
  2. 每个分支和提交只承载一件清晰的事情。
  3. 分支名使用小写短横线风格。
  4. 提交信息简洁,准确描述真实改动。
  5. 不重写已发布历史,不对共享分支 force-push。
  6. 提交中不得包含密钥、token、证书等敏感内容。
  7. 不丢弃、不覆盖无关的工作区改动。
  8. 优先使用非交互式 Git 命令,并明确说明即将执行的动作。

输出

  • 当前 Git 状态
  • 下一步安全操作建议
  • 如有需要,给出分支名或提交信息建议
  • 如果请求会改写或丢弃历史,明确风险
安全使用建议
This appears to be a straightforward, instruction-only Git helper that will inspect the local repository and suggest safe, non-destructive commands. Before running any suggested commands, review them (especially anything that rewrites or discards history). Because the skill can propose git commands, execute them only when you understand the effects or test them on a throwaway branch or clone. No credentials or network access are requested by the skill itself, and it cannot install code on your system.
功能分析
Type: OpenClaw Skill Name: git-discipline Version: 0.1.0 The git-discipline skill bundle provides safe workflow guidelines for Git operations, focusing on branch naming, commit standards, and preventing the accidental inclusion of secrets or rewriting of shared history. The instructions in SKILL.md are security-positive, explicitly advising against committing tokens or force-pushing to shared branches, and the bundle contains no executable code or suspicious network/file access.
能力评估
Purpose & Capability
Name and description match the SKILL.md: guidance for inspecting and safely operating on a local Git repository. The skill does not request unrelated binaries, environment variables, or external services.
Instruction Scope
SKILL.md is narrowly focused on inspecting repo state and proposing safe branch/commit operations. It explicitly forbids remote/PR/admin workflows and warns about sensitive content and history-rewriting risks. The instructions do not ask for unrelated system files, credentials, or external endpoints.
Install Mechanism
No install spec and no code files — instruction-only. Nothing will be written to disk or downloaded by the skill itself.
Credentials
The skill declares no required env vars, credentials, or config paths. There are no suspicious credential requests or access demands beyond local repo inspection, which is appropriate for its purpose.
Persistence & Privilege
Registry flags do not request always-on presence. The embedded agents/openai.yaml sets allow_implicit_invocation: false (no implicit invocation), and the skill remains user-invocable. It does not modify other skills or request system-wide configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install git-discipline
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /git-discipline 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
initial release
元数据
Slug git-discipline
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Git Discipline 是什么?

Enforce safe Git workflows by inspecting repo state, managing branches, staging, commits, and history without risking unrelated or shared work. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。

如何安装 Git Discipline?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install git-discipline」即可一键安装,无需额外配置。

Git Discipline 是免费的吗?

是的,Git Discipline 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Git Discipline 支持哪些平台?

Git Discipline 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Git Discipline?

由 sf0799(@sf0799)开发并维护,当前版本 v0.1.0。

💬 留言讨论