oma-commit
Commit Skill - Conventional Commits
When to use
- When user requests "commit this", "commit", "save changes"
- When
/commitcommand is invoked
Configuration
Project-specific settings: .agents/skills/commit/config/commit-config.yaml
Commit Types
| Type | Description | Branch Prefix |
|---|---|---|
| feat | New feature | feature/ |
| fix | Bug fix | fix/ |
| refactor | Code improvement | refactor/ |
| docs | Documentation changes | docs/ |
| test | Test additions/modifications | test/ |
| chore | Build, configuration, etc. | chore/ |
| style | Code style changes | style/ |
| perf | Performance improvements | perf/ |
Commit Format
<type>(<scope>): <description>
[optional body]
Co-Authored-By: First Fluke <our.first.fluke@gmail.com>
Workflow
Step 1: Analyze Changes
git status
git diff --staged
git log --oneline -5
Step 1.5: Split by Feature (if needed)
If changed files span multiple features/domains, split commits by feature.
Split criteria:
- Different scopes (e.g., workflows vs skills vs docs)
- Different types (e.g., feat vs fix vs docs)
- Logically independent changes
Example:
# Changed files:
.agents/workflows/*.md (7 files) → fix(workflows): ...
.agents/skills/**/*.md (4 files) → fix(skills): ...
USAGE.md, USAGE-ko.md → docs: ...
# Split into 3 commits
Do NOT split when:
- All changes belong to a single feature
- Few files changed (5 or fewer)
- User requested a single commit
Step 2: Determine Commit Type
Analyze changes → Select appropriate type:
- New files added →
feat - Bug fixed →
fix - Refactoring →
refactor - Documentation only →
docs - Tests added →
test - Build/config changes →
chore
Step 3: Determine Scope
Use changed module/component as scope:
feat(auth): Authentication relatedfix(api): API relatedrefactor(ui): UI related- No scope is also valid:
chore: update dependencies
Step 4: Write Description
- Under 72 characters
- Use imperative mood (add, fix, update, remove...)
- Lowercase first letter
- No trailing period
Step 5: Execute Commit
Show the commit message and proceed immediately without asking for confirmation:
📝 Committing:
feat(orchestrator): add multi-CLI agent mapping support
- Add user-preferences.yaml for CLI configuration
- Update spawn-agent.sh to read agent-CLI mapping
- Update memory schema with CLI field
Co-Authored-By: First Fluke <our.first.fluke@gmail.com>
git add <specific-files>
git commit -m "<message>"
References
- Configuration:
config/commit-config.yaml - Guide:
resources/conventional-commits.md
Important Notes
- NEVER use
git add -Aorgit add .without explicit permission - NEVER commit files that may contain secrets (.env, credentials, etc.)
- ALWAYS use specific file names when staging
- ALWAYS use HEREDOC for multi-line commit messages
More from first-fluke/oh-my-agent
oma-qa
Quality assurance specialist for security, performance, accessibility, comprehensive testing, and quality standard alignment. Use for test, review, security audit, OWASP, coverage, lint work, and ISO/IEC 25010 or ISO/IEC 29119-aligned QA recommendations.
14oma-frontend
Frontend specialist for React, Next.js, TypeScript with FSD-lite architecture, shadcn/ui, and design system alignment. Use for UI, component, page, layout, CSS, Tailwind, and shadcn work.
12oma-pm
Product manager that decomposes requirements into actionable tasks with priorities and dependencies. Use for planning, requirements, specification, scope, prioritization, task breakdown, and ISO 21500, ISO 31000, or ISO 38500-aligned planning recommendations.
11oma-db
Database specialist for SQL, NoSQL, and vector database modeling, schema design, normalization, indexing, transactions, integrity, concurrency control, backup, capacity planning, data standards, anti-pattern review, and compliance-aware database design. Use for database, schema, ERD, table design, document model, vector index design, RAG retrieval architecture, migration, query tuning, glossary, capacity estimation, backup strategy, database anti-pattern remediation work, and ISO 27001, ISO 27002, or ISO 22301-aware database recommendations.
11oma-backend
Backend specialist for APIs, databases, authentication with clean architecture (Repository/Service/Router pattern). Use for API, endpoint, REST, database, server, migration, and auth work.
11oma-debug
Bug diagnosis and fixing specialist - analyzes errors, identifies root causes, provides fixes, and writes regression tests. Use for bug, debug, error, crash, traceback, exception, and regression work.
11