* 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>
1.6 KiB
1.6 KiB
| name | description |
|---|---|
| commit | Analyse git history of any project and suggest commit messages that match existing conventions. |
Процесс
- Запустить
git log --oneline -30 - Если коммиты есть:
- Извлечь все уникальные
type(scope):паттерны - Составить список реальных scopes проекта
- Следовать найденному стилю
- Извлечь все уникальные
- Если коммитов нет (новый проект):
- Базовый формат:
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. Новый коммит пишется в том же стиле.