Purpose
Provide one project-specific governance source for commit quality, branch strategy, and required agent co-author metadata.
Superpowers Boundary
- Use superpowers for generic implementation and verification workflows.
- This skill only defines MailBot-specific git governance rules.
When to Use
- Before creating any commit for code, docs, config, or automation output.
- Before creating branches for feature, release, or hotfix work.
- During pre-merge validation to confirm branch and commit history compliance.
Scope
- Applies to all commits (human and agent-generated).
- Applies to branch activities involving
main,develop,feature/*,release/*, andhotfix/*.
Rules
1) Commit Message (Angular / Conventional Commits)
- Header format:
type(scope): subject. - Allowed
type:feat|fix|docs|style|refactor|test|chore|build|ci|perf|revert. subjectstarts with lowercase, uses imperative mood, avoids trailing period, and should stay concise (recommended <= 72 chars).- Breaking changes must include
BREAKING CHANGE: ...in body or footer.
Examples:
- Valid:
feat(mail): add retry policy for smtp timeout - Invalid:
Update code - Invalid:
fix: bug.
2) Branching (Git Flow)
- Long-lived branches:
main,develop. - Feature branch naming:
feature/<name>. - Release branch naming:
release/<version>. - Hotfix branch naming:
hotfix/<name-or-version>. - Do not do regular development directly on
main; createfeature/*fromdevelop.
Examples:
- Valid:
feature/email-parser-refactor,release/1.4.0,hotfix/smtp-crash - Invalid:
bugfix/x,dev2, direct feature development onmain
3) Agent Auto-commit Co-Author (Mandatory)
Agent-generated commits must include a matching footer from the fixed mapping below:
codex->Co-authored-by: Codex <codex@openai.com>copilot->Co-authored-by: GitHub Copilot <copilot@github.com>opencode->Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Extension rule:
- Before allowing a new agent to auto-commit, add its fixed
agent -> Co-authored-bymapping in this skill.
4) Pre-commit Checklist
- Branch name compliant with Git Flow naming.
- Commit message matches Angular format and rules.
- Agent auto-commit contains required
Co-authored-byfooter.
Deliverables
- Compliance decision for current commit request (
passorfail). - If failed: concrete non-compliance list and a fix template for message/branch/footer.
Fix template:
- Message:
type(scope): subject - Branch:
feature/<name>orrelease/<version>orhotfix/<name-or-version> - Footer (agent only):
Co-authored-by: <Agent Name> <agent@email>
Source: LanternCX/MailBot — distributed by TomeVault.