Agent Skills: Git Standards & Protocols

This skill should be used when the user asks to "commit changes", "create a PR", "push code", "check git status", or "review git history". Enforces safety checks and conventional commits.

UncategorizedID: joncrangle/.dotfiles/git-standards

Install this agent skill to your local

pnpm dlx add-skill https://github.com/joncrangle/.dotfiles/tree/HEAD/dot_config/opencode/skills/git-standards

Skill Files

Browse the full folder contents for git-standards.

Download Skill

Loading file tree…

dot_config/opencode/skills/git-standards/SKILL.md

Skill Metadata

Name
git-standards
Description
This skill should be used when the user asks to "commit changes", "create a PR", "push code", "check git status", or "review git history". Enforces safety checks and conventional commits.

<skill_doc>

Git Standards & Protocols

πŸ›‘ SAFETY CHECKS (Critical)

Tool Enforcement: Use the git_safe tool for all git operations (status, diff, log, add, commit, push).

Manual Agent Checks: Before ANY commit, scan staged files using git_safe(action: "diff", target: "--cached") for:

  • Secrets: .env, *_KEY, *_SECRET, password, token.
  • Large Files: Anything >10MB or binary files.
  • Build Artifacts: dist/, node_modules/, .DS_Store. Action: If found, UNSTAGE immediately and warn user.

πŸ“ Commit Protocol (Conventional)

Format: <type>(<scope>): <description>

| Type | Meaning | | :--- | :--- | | feat | New feature | | fix | Bug fix | | docs | Documentation only | | refactor | Code change (no feature/fix) | | perf | Performance improvement | | test | Adding/fixing tests | | chore | Build/auxiliary tools |

Examples:

  • feat(auth): add google oauth provider
  • fix(login): handle null session token

πŸš€ PR Protocol

Title: Matches commit format. Body:

## Why
(Context/Problem)

## What
(Summary of changes)

## Verification
- [ ] Tests
- [ ] Manual Check

</skill_doc>