Agent skill
git-conventions
Apply when committing code, writing commit messages, or configuring .gitignore
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/git-conventions-karstenheld3-openai-backendtools
SKILL.md
Git Conventions
Verb Mapping
This skill implements:
- [COMMIT] - Create conventional commits
- [MERGE] - Merge branches following conventions
Phases: IMPLEMENT, DELIVER
MUST-NOT-FORGET
- Use Conventional Commits:
<type>(<scope>): <description> - Types: feat, fix, docs, refactor, test, chore, style, perf
- Imperative mood, <72 chars, no period
- NEVER commit secrets: .env, *.cer, *.pfx, *.pem, *.key
Commit Message Format
Use Conventional Commits: <type>(<scope>): <description>
Types
- feat: New feature
- fix: Bug fix
- docs: Documentation only
- refactor: Code change that neither fixes a bug nor adds a feature
- test: Adding or updating tests
- chore: Maintenance tasks, dependencies, build changes
- style: Formatting, whitespace (no code logic change)
- perf: Performance improvement
Guidelines
- Use imperative mood ("add" not "added" or "adds")
- Keep description under 72 characters
- No period at the end
- Scope should match module/folder name when applicable
Examples
feat(crawler): add incremental crawl mode
fix(auth): handle expired tokens
docs: update README installation steps
refactor(domains): simplify source validation logic
chore: update dependencies to latest versions
.gitignore Rules
- NEVER commit secrets:
.envfiles, certificates (*.cer, *.pfx, *.pem, *.key), API keys - Exclude large binaries: Reinstallable tools (poppler, node_modules, .venv/) - save repo size
- Exclude build artifacts: Generated files (dist/, pycache/, *.pyc)
- Track shared config:
.vscode/,Set-*-Env.bat(environment setup scripts) - Use negation pattern: Keep specific files with
!prefix when excluding folders - Add comments: Document non-obvious exclusions in .gitignore
Template
# Secrets (NEVER commit)
*.env
.env.*
*.cer
*.pfx
*.pem
*.key
# Python
.venv/
__pycache__/
*.pyc
.pytest_cache/
.mypy_cache/
# Node.js
node_modules/
dist/
lib/
*.log
# IDE (keep .vscode/)
.vs/
bin/
obj/
# OS
.DS_Store
# Tools (reinstallable)
.tools/poppler/
# Temporary
*.tmp
.tmp_*
*.bak
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?