pr-review-discipline
Skill6 starsChanged 4 months agoMITView on GitHub
Ревью PR/MR: чек-лист (хирургичность, тесты, async, безопасность, доки), исходы approve/reject, запрет апрува при красном CI.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- decode2/pr-review-disciplinetheir own version, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- decode2/pr-review-discipline★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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
- pull-request-disciplineSkill
- skill-authoringSkill
- testing-disciplineSkill
The file
Files
Skill: pr-review-discipline
Правила ревью pull request / merge request. Дополняет промпт .agents/prompts/code-review.prompt.md (чек-лист проверок) и добавляет процедуру исхода ревью.
Когда использовать
- Ревьюишь PR/MR (свой или чужой).
- Пользователь попросил проверить ветку перед merge.
- Проводишь само-ревью перед открытием PR.
Алгоритм
- Проверить CI зелёный. Если хоть один гейт красный (набор —
_board/process.md§7.10) — reject без детального ревью. Сначала чиним CI. - Пройти чек-лист из
.agents/prompts/code-review.prompt.md:- Хирургичность — каждая изменённая строка соответствует задаче (
AGENTS.md§3). - Минимализм — нет лишних абстракций/фич (
AGENTS.md§2). - Тесты на новое поведение — изменения в
app/сопровождаются тестом; моки внешних систем, без сети (_docs/instructions.md§8.1). - Покрытие — порог
--cov-fail-under=80не нарушен. - Async-дисциплина — I/O через
await, синхронные либы черезasyncio.to_thread(_docs/instructions.md§4). - Обработка ошибок — ожидаемые исключения ловятся, пользователю — человеческое сообщение, stacktrace — в
logger.exception(_docs/instructions.md§5). - Безопасность — нет хардкоженных секретов; конфиг через
Settings; sanitize на входе / bastion на выходе; per-user скоупread_file(_docs/security.md). - Документация — изменение поведения отражено в
_docs/; ссылки относительные (_docs/instructions.md§9). - Язык — комментарии/докстринги/логи/сообщения — на русском; идентификаторы — латиницей (
_docs/instructions.md§1).
- Хирургичность — каждая изменённая строка соответствует задаче (
- Замечания — сгруппировать по серьёзности:
blocker→major→minor→nit. Для каждого: файл, строка, проблема, конкретное предложение. - Исход ревью:
- Approve — нет
blocker/major,nitможно не блокировать. - Approve with comments — есть
minor, не блокирующие merge, но желательно поправить. - Request changes — есть
blockerилиmajor.
- Approve — нет
- Не апрувить если:
- CI красный.
- Нет тестов на новое поведение в
app/. - Документация не обновлена при изменении поведения.
- Найден хардкоженный секрет/токен.
Чего избегать
- Апрува при красном CI — сначала зелёный, потом ревью.
- Апрува без проверки тестов — «работает» ≠ «проверено».
- Попутных замечаний на код вне diff'а (см.
AGENTS.md§3 — хирургичность работает в обе стороны). - Несуществующих функций/параметров в замечаниях — проверяй по коду, не додумывай.
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.

