here-be-git by intellectronica/agent-skills
npx skills add https://github.com/intellectronica/agent-skills --skill here-be-git初始化一个 Git 仓库,可选择为智能体工作流进行配置。
在当前工作目录中运行 git init。向用户确认仓库已初始化。
询问用户:
您希望我添加指令,让智能体在完成任务后始终进行提交吗?
如果用户确认:
AGENTS.md要添加的提交指令:
## Git 工作流程 — 至关重要、强制要求、绝无例外
> **这不是可选的。** 在此仓库中操作的每个智能体在每次更改后都必须遵循此工作流程,无论更改多么微小。此规则**绝无例外**。跳过提交是绝不允许的。如果您对任何文件进行了任何更改,您**必须**在继续之前进行提交。
### 规则
1. **在完成任务或达到任何逻辑停止点后,立即提交您的更改。** 不要拖延。不要批量处理。不要跳过。
2. **在结束会话之前,始终进行提交。** 当您完成时,工作目录**必须**是干净的(所有更改都已提交)。留下未提交的更改是一种失败状态。
3. **使用清晰、描述性的提交信息**,解释做了什么以及为什么。
4. **如果有疑问,就提交。** 提交过多总比提交过少要好。
### 为了绝对明确
- "我稍后再提交" — **不行。现在就提交。**
- "这只是一个小改动" — **提交它。**
- "我马上要再做另一个改动" — **先提交当前的改动。**
- "用户没有要求我提交" — **无关紧要。无论如何都要提交。**
在创建或更新 后,使用适当的提交信息提交它。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
AGENTS.md询问用户:
您希望我创建一个 .gitignore 文件吗?如果是,我应该包含哪种类型或哪些模式?(例如,Node.js、Python、macOS、IDE 文件,或特定的文件/模式)
如果用户提供了类型或模式:
.gitignorenode_modules/, dist/, .env, *.log 等。__pycache__/, *.pyc, .venv/, venv/, .env, *.egg-info/ 等。.DS_Store, .AppleDouble, .LSOverride, ._*.idea/, .vscode/, *.swp, *.swo, *.sublime-*.gitignore 文件如果用户拒绝,则跳过此步骤。
每周安装量
162
仓库
GitHub 星标数
228
首次出现
2026年1月20日
安全审计
安装于
claude-code139
opencode131
codex126
gemini-cli124
cursor117
antigravity107
Initialise a git repository with optional configuration for agent workflows.
Run git init in the current working directory. Confirm to the user that the repository has been initialised.
Ask the user:
Would you like me to add instructions for the agent to always commit when it's done with a task?
If the user confirms:
AGENTS.md exists in the current directoryThe commit instructions to add:
## Git Workflow — CRITICAL, MANDATORY, NO EXCEPTIONS
> **THIS IS NOT OPTIONAL.** Every agent operating in this repository MUST follow this workflow after every change, no matter how small. There are ZERO exceptions to this rule. Skipping a commit is never acceptable. If you have made any change to any file, you MUST commit before moving on.
### Rules
1. **ALWAYS commit your changes immediately after completing a task or reaching any logical stopping point.** Do not defer. Do not batch. Do not skip.
2. **ALWAYS commit before ending your session.** The working directory MUST be clean (all changes committed) when you finish. Leaving uncommitted changes is a failure state.
3. **Use clear, descriptive commit messages** that explain what was done and why.
4. **If in doubt, commit.** It is always better to have one commit too many than one too few.
### To be absolutely clear
- "I'll commit later" — **No. Commit now.**
- "It's just a small change" — **Commit it.**
- "I'm about to make another change" — **Commit the current one first.**
- "The user didn't ask me to commit" — **Irrelevant. Commit anyway.**
After creating or updating AGENTS.md, commit it with an appropriate message.
Ask the user:
Would you like me to create a .gitignore? If so, what flavour or patterns should I include? (e.g., Node.js, Python, macOS, IDE files, or specific files/patterns)
If the user provides a flavour or patterns:
.gitignore based on their inputnode_modules/, dist/, .env, *.log, etc.__pycache__/, *.pyc, .venv/, venv/, .env, , etc.If the user declines, skip this step.
Weekly Installs
162
Repository
GitHub Stars
228
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code139
opencode131
codex126
gemini-cli124
cursor117
antigravity107
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
152,900 周安装
*.egg-info/.DS_Store, .AppleDouble, .LSOverride, ._*.idea/, .vscode/, *.swp, *.swo, *.sublime-*.gitignore with an appropriate message