
Oma Scm
- 17 installs
- 41 repo stars
- Updated August 4, 2026
- gracefullight/stock-checker
Runs safe Git and configuration-management operations: commits, branches, merges, conflict resolution, worktrees, releases, and Conventional Commits.
About
A Git/SCM agent covering commits, branching models, merges, rebases, worktrees, and audit posture with explicit-path staging and secret awareness. A developer uses it to commit safely, resolve conflicts, or manage repository governance and releases.
- Stages only explicit paths; never git add -A without approval
- Enforces Conventional Commit types, scopes, and message rules
Oma Scm by the numbers
- 17 all-time installs (skills.sh)
- Ranked #394 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/gracefullight/stock-checker --skill oma-scmAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 17 |
|---|---|
| repo stars | ★ 41 |
| Last updated | August 4, 2026 |
| Repository | gracefullight/stock-checker ↗ |
What it does
Runs safe Git and configuration-management operations: commits, branches, merges, conflict resolution, worktrees, releases, and Conventional Commits.
Files
Software configuration management: SCM (oma-scm)
Scheduling
Goal
Manage Git and software configuration management safely: commits, branches, merges, worktrees, releases, baselines, audit posture, CODEOWNERS, and Conventional Commits.
Intent signature
- User asks to commit, stage, branch, merge, rebase, cherry-pick, tag, release, resolve conflicts, manage worktrees, inspect SCM posture, or apply Conventional Commits.
- User needs safe Git operations with explicit file staging, secret awareness, and CM governance.
This skill is the single place for configuration management (CM) on a software repo and for Conventional Commits / safe staging.
When to use
- Commits: “commit this”,
/scm, message type/scope, splitting staged changes into multiple commits. - CM / Git: branching (gitflow, GitHub Flow, GitLab Flow, trunk-based), protected branches, merge queue, merge conflicts, rebase, cherry-pick, worktrees, submodules/subtrees, tags and releases.
- Governance: issue/ADR links, breaking-change footers, changelog or release-tool alignment.
- Audit posture: signed commits, CI before merge, secret-sensitive paths.
When NOT to use
- Implementing product or application code -> use the relevant domain skill
- Debugging runtime failures without a Git or CM operation -> use
oma-debug - Security, performance, or accessibility review -> use
oma-qa - Planning feature requirements or decomposing work -> use
oma-pm
Expected inputs
- Git task, desired branch/commit/release operation, and affected files
- Current worktree status, staged diff, branch tracking, config files, and governance constraints
- Optional issue/ADR/PR/release context
Expected outputs
- Safe commit, branch, merge/rebase guidance, conflict plan, status accounting, or CM audit findings
- Conventional Commit message and explicit staged paths when committing
- Risk notes for shared history, secrets, CODEOWNERS, CI, and release evidence
Dependencies
- Git CLI and repository metadata
config/commit-config.yaml,config/cm-config.yaml, Conventional Commit references, onboarding-risk and CODEOWNERS playbooks
Control-flow features
- Branches by quick commit path versus full CM/governance path
- Reads Git state and diffs; may write commits, branches, tags, or conflict resolutions
- Requires explicit approval for broad staging, shared-history rewrite, production-destructive operations, or secret-risk paths
Structural Flow
Entry
1. Inspect Git status, branch, staged/unstaged changes, and user intent. 2. Choose Quick Path for ordinary commits or Full CM Path for governance/risky history work. 3. Read commit and CM config before enforcing project-specific rules.
Scenes
1. PREPARE: Determine operation type, risk, and affected files. 2. ACQUIRE: Read status, diff, logs, config, ownership, and release context. 3. REASON: Split changes, choose message/scope, identify CM controls and risks. 4. ACT: Stage explicit paths, commit, branch, resolve, or provide CM action plan. 5. VERIFY: Check status, staged diff, CI expectations, signatures, secrets, and audit evidence. 6. FINALIZE: Report operation result and remaining SCM tasks.
Transitions
- If user intent is commit-only, follow Quick Path and stop after safe commit.
- If branching/history/release/governance is involved, run Full CM Path.
- If shared history rewrite is requested, require maintainer approval.
- If changes span independent features, split commits unless user requests one commit.
Failure and recovery
- If worktree is dirty in unrelated files, avoid touching unrelated changes.
- If conflicts exist, resolve markers, test, and preserve target-branch context.
- If secrets are detected or suspected, stop before staging/committing.
Exit
- Success: requested SCM operation is complete or a safe, auditable plan is delivered.
- Partial success: blockers such as conflicts, missing approval, CI, or secret risk are explicit.
Logical Operations
Actions
| Action | SSL primitive | Evidence |
|---|---|---|
| Read Git state | READ | git status, diff, log, config |
| Select SCM path | SELECT | Quick Path vs Full CM Path |
| Compare change scopes | COMPARE | Split by type/scope/feature |
| Validate commit/governance rules | VALIDATE | Config and CM controls |
| Stage explicit files | CALL_TOOL | git add <specific-files> |
| Commit or manage refs | CALL_TOOL | Git commit/branch/merge/rebase/tag |
| Write audit notes | WRITE | Commit message or CM report |
| Report result | NOTIFY | Final SCM summary |
Tools and instruments
- Git CLI and repository metadata
- Commit/CM config, Conventional Commit guide, CODEOWNERS playbook, onboarding-risk signals
Canonical command path
git status -sb
git diff --staged
git log --oneline -5Stage and commit only explicit paths:
git add <specific-files>
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>
[optional body]
EOF
)"Resource scope
| Scope | Resource target |
|---|---|
CODEBASE | Tracked files, diffs, conflicts, CODEOWNERS |
LOCAL_FS | Git metadata, config files, commit message temp files |
PROCESS | Git commands and verification commands |
CREDENTIALS | Secret-sensitive files must not be staged or committed |
Preconditions
- Repository and Git intent are identifiable.
- User has authorized the requested SCM operation.
Effects and side effects
- May stage files, create commits, branches, tags, worktrees, or history operations.
- Can affect shared repository history if unsafe commands are used, so approvals matter.
Guardrails
1. Choose Quick Path for ordinary commits and Full CM Path for branching, history, release, or governance work. 2. Read config/commit-config.yaml and config/cm-config.yaml before applying project-specific commit or CM rules. 3. Stage only explicit files; never use broad staging unless the user explicitly approves it. 4. Do not rewrite shared history without maintainer approval. 5. Never stage or commit likely-secret material.
Configuration
| File | Role |
|---|---|
config/commit-config.yaml | Conventional Commit types, branch prefixes, message rules |
config/cm-config.yaml | CM pointers (documented process, branching model, baselines, changelog) |
Operating mode (choose first)
Quick Path (commit-focused, default)
Use this when the user intent is mainly "commit this safely."
1. Follow Conventional Commits section only 2. Stage explicit files only 3. Validate message type/scope/length from commit-config.yaml 4. Stop after safe commit unless user asks CM/governance operations
Full CM Path (repo governance / risky history operations)
Use this when the user asks about branching strategy, merges, rebase/cherry-pick, worktrees, release refs, CODEOWNERS, or audit posture.
1. Run CM workflows in order (Planning -> Identification -> Control -> Status accounting -> Verification) 2. Add onboarding risk scan when inheriting or auditing a repository 3. Include commit governance from Conventional Commits when creating commits 4. For large-scope merge operations, use risk scoring and Ask Gate criteria from ../../workflows/scm.md
CM process map (software)
| CM function | Intent | Typical artefacts / actions |
|---|---|---|
| Management & planning | Agreed rules | CONTRIBUTING.md, SECURITY.md, cm-config.yaml |
| Configuration identification | What is managed, naming | Branch/tag rules, version files, .gitattributes, LFS |
| Configuration control | Reviewed change | PRs, checks, issue links, BREAKING CHANGE footers |
| Status accounting | As-built truth | main / release refs, CHANGELOG, tags, CI status |
| Verification & audit | Evidence | CI logs, signed commits, lockfiles / SBOM policy |
CM workflows (use before risky history operations)
1) Planning
1. Read cm-config.yaml and files listed under documented_process. 2. If missing, infer from CONTRIBUTING.md / README; state assumptions. 3. Confirm branching model and whether force-push on shared branches is allowed (default: not without explicit approval).
2) Identification
1. Canonical refs: default branch, release branches/tags, version sources (package.json, etc.). 2. .gitattributes / LFS for binaries and generated assets. 3. Branch names vs commit-config.yaml branch_prefixes when the project uses them.
3) Control
1. Small, reviewable units; align commits with PR / issue intent. 2. Conflicts: merge-base, git status, resolve markers, tests; suggest rerere when conflicts repeat. 3. Worktrees: git worktree add; merge/rebase from the target branch’s checkout; all worktrees share one object database. 4. Do not rewrite shared history without maintainer approval; prefer --force-with-lease if force-push is unavoidable.
4) Status accounting
1. git status -sb: branch, remote tracking, ahead/behind, merge state. 2. Relate last tag / release branch to CHANGELOG or tooling (semantic-release, release-please, changesets) if present.
5) Verification & audit
1. Required CI and merge_group when merge queue applies. 2. Never stage/commit secrets (.env, keys, raw tokens). 3. Call out signed-commit expectations when the org cares about verification badges.
CODEOWNERS maintenance checklist
1. Validate CODEOWNERS file exists (prefer .github/CODEOWNERS). 2. Ensure critical paths are explicitly owned (not only fallback *). 3. Ensure owners are active and mapped to current teams. 4. Confirm branch protection requires CODEOWNERS review where needed. 5. Flag overlapping/ambiguous rules that can hide intended owners.
Read change_governance.require_codeowners and ownership.* in cm-config.yaml when present.
6) Onboarding risk scan (optional, recommended)
Use this quick scan when joining or inheriting a repository to identify risky areas before major changes.
1. High churn files in lookback window. 2. Ownership concentration / bus-factor signals. 3. Bug hotspot files from fix-related history. 4. Velocity trend by month. 5. Revert/hotfix/emergency frequency.
Read thresholds from cm-config.yaml onboarding_metrics when present and cite caveats:
- squash merge teams can distort ownership metrics,
- weak commit labeling reduces hotspot accuracy,
- monorepo commit counts can bias subsystem interpretation.
---
Conventional Commits
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>Commit workflow
Step 1: Analyze changes
git status
git diff --staged
git log --oneline -5Step 1.5: Split by feature (if needed)
If changes span multiple features/domains, split commits by feature.
Split when: different scopes, different types, logically independent work.
Do not split when: one feature, few files (≤5), or user asked for a single commit.
Step 2: Determine type
- New capability →
feat· Bug fix →fix· Structure-only →refactor· Docs only →docs· Tests →test· Build/config →chore
Step 3: Scope
Use module/component: feat(auth):, fix(api):, or omit: chore: update dependencies
Step 4: Description
≤72 chars (per commit-config.yaml), imperative mood, lowercase start, no trailing period.
Step 5: Execute commit
Show the message, then commit with explicit paths:
git add <specific-files>
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>
[optional body]
EOF
)"If HEREDOC is unstable in your shell (or body is long), use file-based commit input:
git add <specific-files>
cat > /tmp/oma-commit-msg.txt <<'EOF'
<type>(<scope>): <description>
[optional body]
EOF
git commit -F /tmp/oma-commit-msg.txtUse HEREDOC by default, and switch to -F for long or flaky terminal sessions.
References
config/commit-config.yamlconfig/cm-config.yamlresources/conventional-commits.mdresources/onboarding-risk-signals.mdresources/codeowners-playbook.md- Observability handoff:
../oma-observability/SKILL.md§Integrations — release markers (service.version), revert baseline diff
Important notes
- NEVER
git add -Aorgit add .without explicit user permission. - NEVER commit likely-secret material.
- ALWAYS stage by explicit paths; tie non-trivial CM work to the five CM rows above, even briefly.
# Configuration management: project pointers (read with commit-config.yaml)
documented_process:
contributing: CONTRIBUTING.md
security: SECURITY.md
# adr_glob: "docs/adr/*.md"
# github-flow | gitlab-flow | git-flow | trunk-based | custom
branching_strategy: github-flow
baselines:
default_branch: main
# release_branch: "release/"
# version_files: ["package.json", "cli/package.json"]
change_governance:
require_issue_link: false
require_pr_for_default_branch: true
require_codeowners: true
ownership:
codeowners_file: ".github/CODEOWNERS"
critical_paths:
- ".agents/hooks/**"
- ".agents/workflows/**"
status_accounting:
changelog: CHANGELOG.md
audit:
mention_signed_commits: false
mention_merge_queue: false
onboarding_metrics:
lookback: "1 year ago"
ownership:
bus_factor_warning_percent: 60
inactive_months_warning: 6
velocity:
drop_warning_percent: 50
stagnation_window_months: 12
firefighting:
keywords: ["revert", "hotfix", "emergency", "rollback"]
large_merge_thresholds:
changed_files: 150
changed_lines: 3000
hotspot_paths: 3
high_risk_score: 60
# Commit Configuration
# Enable Conventional Commits
conventional_commits: true
# Allowed commit types
types:
- feat
- fix
- refactor
- docs
- test
- chore
- style
- perf
# Branch prefix rules
branch_prefixes:
feat: "feature/"
fix: "fix/"
refactor: "refactor/"
docs: "docs/"
test: "test/"
chore: "chore/"
hotfix: "hotfix/"
style: "style/"
perf: "perf/"
# Commit message rules
message:
max_subject_length: 72
require_body: false
body_wrap_length: 100
# Scope rules
scope:
required: false
# Allowed scopes list (empty means all allowed)
allowed: []
# Co-Author settings
co_author:
enabled: true
name: "First Fluke"
email: "our.first.fluke@gmail.com"
# Forbidden file patterns (commit warnings)
forbidden_patterns:
- "*.env"
- "*.env.*"
- "credentials.json"
- "secrets.yaml"
- "*.pem"
- "*.key"
- ".env.local"
CODEOWNERS Playbook (SCM)
Use this checklist to keep ownership and approval paths healthy.
What to check
1. CODEOWNERS exists in one supported location:
.github/CODEOWNERSCODEOWNERS(repo root)docs/CODEOWNERS
2. Critical paths are explicitly owned (avoid relying only on * wildcard). 3. Owners in rules are active maintainers (not departed/inactive accounts). 4. Branch protection requires CODEOWNERS review for protected branches. 5. Rules are minimally overlapping and ordered intentionally.
Baseline template
# Global fallback
* @org/maintainers
# CI and release control
.github/workflows/* @org/devops
cli/commands/migrations/* @org/release-engineering
# Agent system and governance
.agents/hooks/** @org/agent-platform
.agents/workflows/** @org/agent-platform
# Product docs/content
web/content/** @org/docs
docs/** @org/docsCommon anti-patterns
- Only global
*rule with no critical-path overrides. - Owners set to individuals only (no team alias).
- Stale owners after team changes.
- Critical infra/security paths missing explicit owners.
Review cadence
- Re-check CODEOWNERS at least once per quarter.
- Re-check immediately after org/team restructure.
Conventional Commits Guide
Overview
Conventional Commits applies consistent rules to commit messages to enable:
- Automated CHANGELOG generation
- Semantic Versioning automation
- Improved commit history readability across teams
Commit Message Structure
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]Types
Primary Types
| Type | Description | SemVer | Example |
|---|---|---|---|
feat | Add new feature | MINOR | feat: add user authentication |
fix | Bug fix | PATCH | fix: resolve login timeout issue |
Secondary Types
| Type | Description | SemVer | Example |
|---|---|---|---|
docs | Documentation changes | - | docs: update API documentation |
style | Code style changes (formatting, semicolons, etc.) | - | style: fix indentation |
refactor | Code improvement without behavior change | - | refactor: extract helper function |
perf | Performance improvements | PATCH | perf: optimize database queries |
test | Add/modify tests | - | test: add unit tests for auth |
chore | Build, config, packages | - | chore: update dependencies |
Scope
Scope indicates the area of changed code:
feat(auth): add OAuth2 support
fix(api): handle null response
refactor(ui): simplify button componentCommon Scopes
auth- Authentication/authorizationapi- API endpointsui- User interfacedb- Databaseconfig- Configurationdeps- Dependencies
Description
- Imperative mood: "add", "fix", "update" (NOT "added", "fixed", "updates")
- Lowercase first letter
- No trailing period
- 72 characters or less
Good Examples
feat(auth): add JWT token refresh mechanism
fix(api): handle empty response from payment gateway
refactor(ui): extract common button stylesBad Examples
feat(auth): Added JWT token refresh mechanism. # past tense, period
fix: fix bug # insufficient description
Update the authentication system to support OAuth2 tokens and refresh mechanism # too longBody
Body is optional but useful for complex changes:
feat(auth): add multi-factor authentication
Implement TOTP-based two-factor authentication:
- Add QR code generation for authenticator apps
- Store encrypted TOTP secrets in database
- Add backup codes for account recovery
Closes #123Breaking Changes
Breaking changes marked with ! or in footer:
feat(api)!: change response format for user endpoint
BREAKING CHANGE: The user endpoint now returns a nested object
instead of a flat structure. Update client code accordingly.Footer
Issue References
feat(auth): add password reset flow
Closes #456
Refs #123, #789Co-Authors
feat(ui): redesign dashboard
Co-Authored-By: Jane Doe <jane@example.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>Branch Naming Convention
| Type | Branch Prefix | Example |
|---|---|---|
| feat | feature/ | feature/user-auth |
| fix | fix/ | fix/login-timeout |
| refactor | refactor/ | refactor/api-cleanup |
| docs | docs/ | docs/api-guide |
| hotfix | hotfix/ | hotfix/security-patch |
Commit Workflow
1. Stage specific files (NOT git add .):
git add src/auth/login.ts
git add tests/auth/login.test.ts2. Write commit message:
git commit -m "$(cat <<'EOF'
feat(auth): add login rate limiting
- Limit failed attempts to 5 per minute
- Add exponential backoff for repeated failures
- Log suspicious activity
Closes #234
Co-Authored-By: First Fluke <our.first.fluke@gmail.com>
EOF
)"3. Verify:
git log -1 --format=fullResources
Onboarding Risk Signals (SCM)
Use these lightweight SCM metrics to quickly estimate maintenance risk in an unfamiliar repository.
1) High-Churn Files
Frequent edits often indicate maintenance hotspots or unstable boundaries.
git log --format=format: --name-only --since="1 year ago" | sort | uniq -c | sort -nr | head -202) Ownership / Bus Factor
Detect concentration risk and potential knowledge silos.
git shortlog -sn --no-mergesHeuristic:
- One author > 60% of commits can indicate bus-factor risk.
- If top contributors are inactive for 6+ months, flag continuity risk.
- With squash-merge-heavy teams, treat commit-count ownership as approximate.
3) Bug Hotspots
Approximate bug-prone files from bug-fix commit history.
git log -i -E --grep="fix|bug|broken" --name-only --format='' | sort | uniq -c | sort -nr | head -20Cross-reference with high-churn list to identify high-risk files.
4) Development Velocity Trend
Inspect monthly activity and momentum shifts.
git log --format='%ad' --date=format:'%Y-%m' | sort | uniq -cHeuristic:
- Stable/increasing trend suggests healthy delivery cadence.
- 50%+ sudden drop can indicate staffing or ownership disruption.
- 6-12 month steady decline can indicate project stagnation.
5) Revert / Hotfix / Firefighting Signal
Estimate operational reliability from emergency recovery patterns.
git log --oneline --since="1 year ago" | rg -i "revert|hotfix|emergency|rollback"Heuristic:
- A few incidents per year can be normal.
- Incidents every ~2 weeks suggest unstable release/testing process.
- Zero incidents may mean stable delivery or poor commit labeling.
Practical Output Template
Report these sections:
- Top churn files (top 10-20)
- Ownership concentration and inactive key contributors
- Bug hotspot overlaps with churn files
- Velocity trend summary (recent 6-12 months)
- Firefighting frequency and confidence level
Always include caveats: squash merges, inconsistent commit labels, and monorepo skew.