Agent skill
git-standards
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.
Install this agent skill to your Project
npx add-skill https://github.com/joncrangle/.dotfiles/tree/main/dot_config/opencode/skills/git-standards
SKILL.md
<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 providerfix(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>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
lang-javascript
This skill should be used when the user asks to "write JavaScript", "debug a Node.js/Bun app", "create a Hono server", "configure Biome", "run tests with bun test", or mentions .js/.mjs files. Covers ES2024+, Bun, and Hono patterns.
opentui
Comprehensive OpenTUI skill for building terminal user interfaces. Covers the core imperative API, React reconciler, and Solid reconciler. Use for any TUI development task including components, layout, keyboard handling, animations, and testing.
vitest
Specialist in Vitest, a blazing fast unit test framework powered by Vite. Focuses on Jest compatibility, in-source testing, and native ESM support.
PreventionPatterns
Known bug patterns and their fixes to prevent regression.
lang-typescript
This skill should be used when the user asks to "write TypeScript", "debug TypeScript", "create a SolidJS component", "configure TanStack Start", "validate data with Valibot", or mentions .ts/.tsx files. Covers TypeScript 5.9+, SolidJS, and TanStack patterns.
just-cli
This skill should be used when the user asks to "create a justfile", "write just recipes", "configure just settings", "add just modules", "use just attributes", "set up task automation", mentions justfile, just command runner, or task automation with just.
Didn't find tool you were looking for?