opencode-config/.opencode/skills/commit/SKILL.md
Sergey a8f9aa0bc6
feat: migrate .opencode/ config from opencode (#23)
* feat: migrate .opencode/ config from opencode

* refactor: rename repo refs and sanitize for public

* docs(handoff): add pr-7 handoff + ADR-002

* docs(handoff): fix PR number

* docs: update project map with .opencode/ structure

---------

Co-authored-by: opencode-agent <agent@slaid098.dev>
2026-07-23 22:57:39 +03:00

1.6 KiB
Raw Blame History

name description
commit Analyse git history of any project and suggest commit messages that match existing conventions.

Процесс

  1. Запустить git log --oneline -30
  2. Если коммиты есть:
    • Извлечь все уникальные type(scope): паттерны
    • Составить список реальных scopes проекта
    • Следовать найденному стилю
  3. Если коммитов нет (новый проект):
    • Базовый формат: type(scope): description
    • Типы: feat | fix | chore | docs | refactor | test | style | perf
    • Scope по умолчанию: спросить пользователя
    • Description отвечает на why (не what)
    • Без точки в конце
    • Max ~72 символа

Type

Type When
feat New feature
fix Bug fix
chore Maintenance, cleanup, dependencies, config
refactor Code restructuring, no behavior change
docs AGENTS.md, SKILL.md, README only
test Adding or fixing tests
style Formatting, linting, whitespace only
perf Performance improvements

Branch naming

type/scope/description — kebab-case, из тех же scopes.

Пример вывода для агента

Если git log показывает:

chore(config): add docker proxy
fix(docker): resolve no-sandbox
feat(agents.md): add guidelines

То scopes: config, docker, agents.md. Новый коммит пишется в том же стиле.