К основному содержанию
скилл CX Codex

oma-scm · first-fluke — скилл для Claude Code и Codex: управление Git-историей

Скилл oma-scm для Claude Code выполняет Git-операции: коммиты, ветки, слияния и разрешение конфликтов. Он задаёт явную область действий и предусматривает возможность отката.

MIT ★ 1 472 обновлён 2026-10-29

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add first-fluke/oh-my-agent
/plugin install oma@oh-my-agent
Открыть на GitHub

Что делает oma-scm

Скилл oma-scm из репозитория oh-my-agent учит агента выполнять Git-операции с явной областью действия, отслеживаемыми коммитами и возможностью отката. Он покрывает коммиты, staging, push, ветки, merge, rebase, разрешение конфликтов, worktrees и проверку SCM-политик.

Внутри скилла — пошаговый процесс: сначала осмотр рабочего дерева через git status -sb, git diff, git log --oneline -5, затем выбор логических групп изменений, коммит с подготовленным сообщением и проверка результата. Для сложных случаев есть отдельные ресурсы: resources/merge-risk.md для крупных слияний, resources/cm-operations.md для governance и релизов, resources/conventional-commits.md для синтаксиса сообщений.

Есть жёсткие ограничения: без явного разрешения агент не делает git add -A, не переписывает общую историю и не пушит в default-ветку напрямую, если в конфиге включён scm.require_pr_for_default_branch. Для force-push используется только --force-with-lease. Если хук отклоняет сообщение — скилл чинит проблему, а не обходит её. Нужен Git CLI и проектная конфигурация с хуками. Скилл не пишет фичи и не исправляет код — для этого есть другие специалисты в экосистеме.

Какие задачи решает

  • разбить изменения на логические коммиты по фичам
  • подготовить Conventional Commit сообщение и назвать ветку
  • разрешить конфликт слияния, сохранив оба намерения
  • проверить staged-дифф перед amend и не зацепить чужое
  • провести крупный merge без потери истории и с планом отката

Примеры запросов агенту

  • Закоммить изменения в src/api.ts и tests/api.test.ts одним коммитом по Conventional Commits
  • Создай ветку fix/login-timeout и открой PR вместо прямого пуша в main
  • Разреши конфликт в package-lock.json, сохрани обе версии зависимостей

Как установить oma-scm

1Через маркетплейс плагинов

/plugin marketplace add first-fluke/oh-my-agent
/plugin install oma@oh-my-agent

Команда ставит плагин oma целиком, со всеми его скиллами

2Через Skills CLI (Vercel)

npx skills add first-fluke/oh-my-agent --skill oma-scm -a claude-code

3Вручную: положить файлы

~/.claude/skills/oma-scm/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/oma-scm/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы об oma-scm

Как установить oma-scm в Claude Code?

Через маркетплейс: сначала /plugin marketplace add first-fluke/oh-my-agent, затем /plugin install oma@oh-my-agent. Либо через npx skills add first-fluke/oh-my-agent --skill oma-scm -a claude-code.

Что делает oma-scm?

Управляет Git-историей: коммиты, ветки, merge, rebase, разрешение конфликтов, worktrees и release-базлайны. Агент получает процесс с явной областью действия и проверками перед каждым шагом.

Почему скилл не пушит напрямую в default-ветку?

Если в проектной конфигурации scm.require_pr_for_default_branch включён, скилл использует topic-ветку и PR. Прямой push возможен только по явной инструкции пользователя.

Исходный текст

SKILL.md · MIT
---
name: oma-scm
description: "Manage Git branches, merges, conflicts, commits, and release baselines. Use for repository history and change-management operations."
---

# Software Configuration Management

## Scheduling

### Goal
Perform Git operations with explicit scope, traceable commits, and recoverable history.

### Intent signature
- Commit, stage, push, branch, merge, rebase, resolve conflicts, manage worktrees, or inspect SCM governance.

### When to use
- Commit and push requests, including Conventional Commit messages and logical splitting.
- Branch/history operations, releases, baselines, CODEOWNERS, and configuration-management reviews.

### When NOT to use
- Implementing a feature or fixing application code -> use the owning specialist.
- General requirements planning -> use `oma-pm`; security/testing review -> use `oma-qa`.

### Expected inputs
Requested Git operation, repository state, and effective `scm` settings from project configuration.

### Expected outputs
Requested Git changes or an advisory plan, commit/branch identifiers, checks performed, and unresolved work.

### Dependencies
Git CLI; project configuration and hooks. Read the references below only for the selected operation.

## Structural Flow

### Entry
Inspect branch, upstream, staged/unstaged changes, and existing authorization. Select the commit path below or the configuration-management resource for broader operations.

### Transitions
- Commit-only request: finish after committing. Push or create a PR only when requested or required by the applicable workflow.
- Independent changes: split by feature. One logical change remains one commit even across code, tests, and docs; an explicit grouping instruction wins. File count is only a tiebreaker (at most five files lean single).
- Governance, worktrees, releases, or history operations: load `resources/cm-operations.md`.
- Large merges: load `resources/merge-risk.md` before selecting merge order or recovery steps.
- Default-branch push: apply the Push and PR safety section below.

### Failure and recovery
| Failure | Recovery |
|---|---|
| Unrelated dirty or staged files | Keep them outside the requested commit; never silently absorb them into an amend |
| Commit hook rejects a message | Fix the message or actual defect according to the hook; do not bypass it |
| Push is non-fast-forward | Fetch, inspect divergence, and integrate locally; do not retry with force |
| Conflicting changes | Preserve both intents, resolve, and run affected checks before completion |
| Likely secrets in the proposed diff | Stop before staging and identify the affected path without exposing the value |

### Exit
Report created commits/refs and verification. A failed commit, rejected push, or unresolved conflict is not completion.

## Logical Operations

### Canonical command path
1. Inspect the worktree and recent conventions:
   ```bash
   git status -sb
   git diff --staged
   git diff
   git log --oneline -5
   ```
2. Select logical commit groups under Transitions. Read `resources/conventional-commits.md` for message syntax, type, footer, and branch naming; apply repository hook/config limits.
3. Show the selected message. Stage explicit paths, inspect the staged diff, and commit using the prepared message file:
   ```bash
   git add -- <specific-files>
   git diff --cached --check
   git diff --cached
   git commit -F <message-file>
   ```
4. Inspect the resulting commit and remaining worktree. If push was requested, follow Push and PR safety, then report the remote result.

### Guardrails
1. Explicit, unambiguous user instructions take precedence over SCM defaults, including commit grouping and direct default-branch pushes. Existing authorization persists; do not ask for it again. Likely-secret material still requires stopping before staging.
2. Stage explicit paths. Do not use `git add -A` or `git add .` without explicit authorization, and never include credentials or secret files.
3. Do not rewrite shared history without explicit authorization. For an authorized rewrite, use `--force-with-lease`, never plain `--force`.
4. Read the staged diff before an amend. Unpushed commits may be amended or reorganized within the requested scope; pushed commits are shared history.
5. User-facing responses follow the configured language; commit messages, branch names, and PR titles/bodies stay in English.

### Push and PR safety (only when requested)
- Confirm the branch, upstream, and ahead/behind state before pushing.
- If `scm.require_pr_for_default_branch` is true, use a topic branch and PR for default-branch changes, unless the user explicitly requested a direct push.
- Keep the repository's required hooks/checks. A failure requires repair or an accurate partial result, not an assertion of success.
- Verify that the requested commits reached the intended remote branch.

### Amend, fixup, autosquash
Determine whether the target commit is shared using `git log --oneline @{u}..HEAD` when an upstream exists. If there is no upstream, inspect remote refs before assuming a commit is unshared. Keep unrelated staged changes out of the operation.

### Resource scope and effects
Git operations change the index, local commits/refs, worktrees, and possibly remote refs. Read only relevant project configuration; never copy credential values into messages or reports. Apply `.agents/skills/_shared/core/execution-policy.md` to authorization and verification.

## References
- Commit syntax, types, co-author policy, and branch naming: `resources/conventional-commits.md` (commit requests)
- Configuration-management operations: `resources/cm-operations.md` (governance/history/worktree tasks)
- Merge risk and rollback: `resources/merge-risk.md` (large merges)
- Ownership detail: `resources/codeowners-playbook.md` (CODEOWNERS work)
- Onboarding indicators: `resources/onboarding-risk-signals.md` (repository-risk assessment)
- Release observability: `../oma-observability/SKILL.md` §Integrations (release markers and baseline comparisons)

© First Fluke · MIT · first-fluke/oh-my-agent

Похожие скиллы

Все скиллы по теме «Git и GitHub» →

Сначала — oma-scm от других авторов.

oma-scm First Fluke Скилл oma-scm для Claude Code помогает безопасно выполнять операции с Git: коммитить, создавать ветки и разбирать конфликты. Включается по запросам о коммитах, релизах, worktree и управлении историей. CX Codex +1 ★ 1 472звёзд репо merge-open-prs jssblck Скилл merge-open-prs для Claude Code собирает список открытых PR, выбирает порядок и сливает их через GitHub. Последовательно обрабатывает несколько PR. CX Codex +1 1 700установок merge Alireza Rezvani Скилл merge для Claude Code вливает ветку лучшего агента в базовую, архивирует проигравших тегами и очищает worktrees. Фиксирует результат завершённой сессии AgentHub. CX Codex +1 1 409установок git-workflows miles990 Скилл git-workflows с готовыми рецептами git: модели ветвления, команды на каждый день, откаты и хуки в одном файле, который агент читает сам. CX Codex +1 114установок standup thedotmack Скилл standup для Claude Code собирает состояние рабочих деревьев, веток и выбранных PR в общий чат агентов. Он помогает сравнить изменения и составить план объединения. CX Codex +1 3 800установок pull-changes-resolve-conflicts cognitedata Скилл pull-changes-resolve-conflicts в Claude Code ведёт агента через слияние веток: показывает конфликты, спрашивает, потом правит. Разбирает каждую область, задаёт вопросы по спорным местам и не трогает файлы без согласия пользователя. CX Codex +1 1 900установок swarm-ci-monitor ZaxbyHub Скилл swarm-ci-monitor для Claude Code, Codex и OpenCode, который берёт одобренный PR, исследует все ошибки CI, чинит их итеративно (до 5 циклов) и мержит в main, когда все проверки зелёные. CX Codex +1 ★ 539звёзд репо

Из того же набора69

Весь набор →
docs-curator Субагент docs-curator, который следит за дрейфом документации и обновляет MD-файлы, когда код меняется. Ловит неработающие ссылки, предлагает патчи и держит docs/**/*.md в актуальном состоянии. CX Codex ★ 1 472звёзд репо i18n-guide Правило i18n-guide задаёт язык ответов агента и определяет, какие строки переводить, а какие оставлять на английском. Пригодится в проектах с несколькими локалями и агентскими workflow. CX Codex +1 ★ 1 472звёзд репо frontend Правило frontend для React и Next.js проектов: shadcn/ui, Tailwind CSS v4, FSD-lite архитектура, Server Components по умолчанию. CX Codex +1 ★ 1 472звёзд репо oma-docs Сверяет ссылки в документации, обновляет тексты под изменения в коде и находит рассинхрон в переводах. Работает через CLI oma docs или ручной парсинг ссылок. CX Codex +1 ★ 1 472звёзд репо oma-skill-creation Скилл oma-skill-creation создаёт и редактирует скиллы OMA в формате SSL-lite для Claude Code и Codex. Включается при проектировании структуры .agents/skills/{name}/SKILL.md, настройке роутинга и проверке линтером. CX Codex +1 ★ 1 472звёзд репо oma-mobile Скилл oma-mobile для мобильной разработки: помогает собрать экран или виджет на Flutter или React Native, подключить камеру, GPS, пуши и офлайн-режим. CX Codex +1 ★ 1 472звёзд репо oma-debug Скилл oma-debug для Claude Code и Codex воспроизводит ошибки в кодовой базе, находит первопричину сбоя и готовит точечный патч. Запускается при падении тестов, сбоях в рантайме или плавающих регрессиях. CX Codex +1 ★ 1 472звёзд репо oma-qa Скилл oma-qa для Claude Code и Codex проверяет изменения по безопасности, производительности, доступности и корректности. Анализирует diff, запускает подходящие проверки и выдаёт воспроизводимые замечания с исправлениями. CX Codex +1 ★ 1 472звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой