← Back to Skills Marketplace
113
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install git-discipline
Description
Enforce safe Git workflows by inspecting repo state, managing branches, staging, commits, and history without risking unrelated or shared work.
README (SKILL.md)
Git 规范
让 Git 操作保持收敛、可回退、不误伤共享历史。
工作流
- 动手前先看当前仓库状态。
- 每个分支和提交只承载一件清晰的事情。
- 分支名使用小写短横线风格。
- 提交信息简洁,准确描述真实改动。
- 不重写已发布历史,不对共享分支 force-push。
- 提交中不得包含密钥、token、证书等敏感内容。
- 不丢弃、不覆盖无关的工作区改动。
- 优先使用非交互式 Git 命令,并明确说明即将执行的动作。
输出
- 当前 Git 状态
- 下一步安全操作建议
- 如有需要,给出分支名或提交信息建议
- 如果请求会改写或丢弃历史,明确风险
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install git-discipline - After installation, invoke the skill by name or use
/git-discipline - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
initial release
Metadata
Frequently Asked Questions
What is Git Discipline?
Enforce safe Git workflows by inspecting repo state, managing branches, staging, commits, and history without risking unrelated or shared work. It is an AI Agent Skill for Claude Code / OpenClaw, with 113 downloads so far.
How do I install Git Discipline?
Run "/install git-discipline" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Git Discipline free?
Yes, Git Discipline is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Git Discipline support?
Git Discipline is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Git Discipline?
It is built and maintained by sf0799 (@sf0799); the current version is v0.1.0.
More Skills