pull-request-discipline
Skill6 starsChanged 4 months agoMITView on GitHub
Подготовка pull request (GitHub) / merge request (GitLab): ветка, атомарные коммиты, тело PR, зелёные проверки, merge только пользователем.
- Commits and pushes
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/agents.mdcCursor rule
- architecture-disciplineSkill
- async-disciplineSkill
- automation-disciplineSkill
- debugging-disciplineSkill
- documentation-disciplineSkill
- error-handling-disciplineSkill
- git-disciplineSkill
- prompt-injection-defenseSkill
- pr-review-disciplineSkill
- skill-authoringSkill
- testing-disciplineSkill
The file
Files
Skill: pull-request-discipline
Правила подготовки PR/MR. Источник истины — _board/process.md §7, §9 и _docs/instructions.md §2.
Когда использовать
- Готовишь pull request (GitHub) или merge request (GitLab).
- Пользователь попросил создать PR/MR.
- Проверяешь готовность ветки к merge.
Алгоритм
- Ветка. Одна
feature/<NN>-<short-name>на спринт, отmain. Не смешивать задачи разных спринтов в одной ветке. - Коммиты — атомарные, по Conventional Commits на русском (см.
git-discipline). Ритуал задачи:python3 -m scripts.task start <NN>.<stage>.<task>→ код/доки →python3 -m scripts.task done <NN>.<stage>.<task> --note "...". - Перед открытием PR — зелёный
bash .agents/skills/git-discipline/scripts/preflight.sh(весь набор гейтов —_board/process.md§7.10; тот же набор прогоняет CI). - Тело PR/MR:
- Summary — что сделано и зачем, 2–5 строк. Ссылка на спринт (
_board/sprints/<NN>-*.md). - Test plan — как проверялось:
pytest -q, smoke-test, конкретные тесты на новое поведение. - DoD — отметить выполненные пункты из файла спринта.
- Summary — что сделано и зачем, 2–5 строк. Ссылка на спринт (
- Скоуп PR — один спринт. Не добавлять задачи следующих спринтов (см.
process.md§9 п.6). - Merge / push в
main— только пользователь по явному запросу (см.process.md§2 п.8 и §9). Агент никогда не делает merge/push самостоятельно. - GitHub vs GitLab:
- GitHub:
gh pr create --base main --head feature/<NN>-.... - GitLab:
glab mr create --target-branch main --source-branch feature/<NN>-.... - Если CLI нет — дать готовый заголовок и тело для веб-интерфейса.
- GitHub:
Чего избегать
- Открытия PR при красных
pytest/flake8/покрытии. - Смешивания задач разных спринтов в одном PR.
- Самостоятельного merge/push в
main— это делает только пользователь. - PR без Test plan — reviewer не знает, как проверять.
- Больших PR (>300 строк diff) без разбиения на ревьюемые части.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

