code-boss-review
Skill0 starsChanged 5 months agoMITView on GitHub
Performs strict boss-style code review following code-review-boss-profile.mdc. Reviews current branch changes from merge-base. Direct, no-fluff feedback focused on logic correctness. Use when: boss review requested, strict validation needed.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- autodoc-analystSkill
- autodoc-architectSkill
- autodoc-assemblerSkill
- autodoc-orchestratorSkill
- autodoc-scannerSkill
- autodoc-writerSkill
- brainstormSkill
- brd-creatorSkill
- caveman-modeSkill
- changelogSkill
- claude-md-managementSkill
- code-ai-reviewSkill
- code-mobx-store-reviewSkill
- code-reviewSkill
- code-style-reviewSkill
- code-verifierSkill
- commitSkill
- constraint-driven-developmentSkill
- context-collectorSkill
- db-migrateSkill
- dependency-updateSkill
- deploySkill
- doubt-driven-developmentSkill
- feature-analyzerSkill
- feature-devSkill
- fsd-creatorSkill
- gproject-consistency-checkerSkill
- gproject-discoverySkill
- gproject-orchestratorSkill
- gproject-patterns-researcherSkill
- gproject-plannerSkill
- gproject-problem-definerSkill
- gproject-spec-writerSkill
- gproject-stack-advisorSkill
- hookifySkill
- iagoSkill
- interviewerSkill
- interviewSkill
- issue-analyzerSkill
- job-documenterSkill
- job-orchestratorSkill
- perf-checkSkill
- plan-gatekeeperSkill
- prd-creatorSkill
- pr-issue-documenterSkill
- pr-review-commentsSkill
- prSkill
- pushSkill
- review-architectureSkill
- review-backendSkill
- review-clean-codeSkill
- review-core-boundariesSkill
- review-flow-graphSkill
- review-frontend-conventionsSkill
- review-frontendSkill
- review-greptileSkill
- review-highloadSkill
- review-logicSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 46
Run the script from that file to determine MERGE_BASE and SCOPE before proceeding with the review.
- Very specific: line 195
When dispatched by job-orchestrator as part of a job pipeline, the prompt MAY include:
- Distinctive: line 202
If provided and the file exists, read the context document before starting the review.
- Distinctive: line 205
Avoid flagging correct library usage as issues
- Distinctive: line 208
If the file does not exist or is not provided, proceed normally — context is optional and non-blocking.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Review as boss (только текущая ветка)
Workflow
Copy this checklist and track progress:
boss Review Progress:
- [ ] Step 1: Determine parent branch and calculate merge-base
- [ ] Step 2: Collect git diff (committed + local changes)
- [ ] Step 3: Apply boss principles (logic in correct layer, no ducttape)
- [ ] Step 4: Check types (no any, typed mocks)
- [ ] Step 5: Verify conventions (currentState, I prefix, etc.)
- [ ] Step 6: Challenge all assumptions
- [ ] Step 7: Generate direct report with patchesОбязательные правила
- Скоуп по умолчанию (без commit hash/range в запросе): ревью включает все изменения в текущей ветке от точки ответвления (merge-base) от родительской ветки:
- закоммиченные (
BASE_SHA..HEAD) - локальные незакоммиченные (staged/unstaged/untracked)
- закоммиченные (
- Скоуп при явном commit hash/range: если пользователь явно передал hash или диапазон, ревьюй только запрошенный диапазон; локальные незакоммиченные изменения не добавляй, если это отдельно не попросили.
- Стиль/принципы boss: ревью строго по
~/goodai-base/rules/core/code-review-boss-profile.mdc(разделы правил и промпт). - Результат: подробный отчёт по проблемам с объяснением и предложением исправлений (минимальные патчи там, где это просто).
Scope Detection
See shared script: skills/shared/git-merge-base.md
Run the script from that file to determine MERGE_BASE and SCOPE before proceeding with the review.
Команды, чтобы собрать “срез” для ревью
A) Режим по умолчанию (пользователь НЕ дал hash/range)
git status
# Закоммиченная часть ветки
git log --oneline "${BASE_SHA}..HEAD"
git diff --stat "${BASE_SHA}..HEAD"
git diff --name-status "${BASE_SHA}..HEAD"
git diff "${BASE_SHA}..HEAD"
# Полный текущий срез от merge-base до рабочего дерева:
# включает commit'ы + staged + unstaged
# (untracked смотри через git status / git ls-files)
git diff --stat "${BASE_SHA}"
git diff --name-status "${BASE_SHA}"
git diff "${BASE_SHA}"
git ls-files --others --exclude-standardB) Режим с явным hash/range
Если пользователь дал конкретный hash/range, используй его буквально:
# Примеры:
git show --stat --name-status --patch <COMMIT_SHA>
git log --oneline <FROM_SHA>..<TO_SHA>
git diff --stat <FROM_SHA>..<TO_SHA>
git diff --name-status <FROM_SHA>..<TO_SHA>
git diff <FROM_SHA>..<TO_SHA>Как ревьюить (по boss)
Применяй чек-лист и промпт из ~/goodai-base/rules/core/code-review-boss-profile.mdc. Ключевые акценты boss:
- Логика должна жить в правильном слое (часто — в store), чтобы её можно было нормально тестировать. Никогда не мешать Domain Store и UI Component Store (это жёстко карается как нарушение SOLID/Layering).
- Против “patch/glue/ducttape”: требуй чинить причину, а не маскировать симптомы.
- Строго против раздутых, "водянистых" AI-сгенерированных описаний PR. Только суть и польза.
- Не допускай регрессий и возвращения старых архитектурных ошибок (например, добавления UI-моделей в core DTO).
- В новом коде никаких
any,as any, небезопасных кастов; моки — типизированные и не наследуются от реальных реализаций. - Не плодить дублирование правил/проверок: один источник правды, переиспользовать сеттеры/методы.
- Конвенции проекта обязательны (например,
currentState,Iдля интерфейсов, консистентные типы). - Магические числа /
setTimeout(0)/ "страшные" хаки — только с чётким "почему", либо перепроектировать. - Accessibility модификаторы в сторах: inter-store callbacks (
onChangeX,onFireX,handleX,syncX) обязаны бытьprivate. Публичный метод допустим только если он вызывается из React-компонента. Спросить: "Вызывается ли этот метод из JSX?" Если нет —private. - С MobX по умолчанию не добавлять
useCallback/useMemoбез явной необходимости. - Предложения должны проходить линт; не нитпикать автоформатирование.
- Не раздувать scope: большие рефакторы “not today”, если вне задачи.
Формат вывода (подробный отчёт + тон boss)
Пиши по-русски, но допускай короткие boss-маркеры (например, not today ;P, “ducttape”, “broken thinking”) только по делу и без перехода на личности.
Используй структуру:
## Вердикт (boss)
<OK / needs work / fundamentally wrong> + 1–3 самых важных тезиса.
## Скоуп ревью (только текущая ветка)
- Ветка: `<BRANCH>`
- Parent ref: `<PARENT>`
- Merge-base: `<BASE_SHA>`
- Режим скоупа: `<default-with-uncommitted | explicit-hash-range>`
- Коммиты (merge-base..HEAD): <N>
- Изменённые файлы: <список или количество>
## Находки (подробно)
### Архитектура и место логики
<находки>
### Типы, касты, моки
<находки>
### Корректность и семантика состояний
<находки>
### Конвенции и консистентность
<находки>
### Линт/формат/шум
<находки>
### UX/edge cases
<находки>
### Тестируемость
<находки>
## Предложенные исправления (patches)
<минимальные unified diff-патчи для очевидных правок>Формат каждой находки (обязательно)
Для каждой находки укажи:
- Severity:
blocker/major/minor - Location: путь файла + релевантный hunk/фрагмент из diff
- Problem: что не так
- Why it matters: почему это важно (корректность/тестируемость/конвенции/поддерживаемость)
- Suggested fix: что конкретно сделать (точечно, без раздувания scope)
- Optional patch: если фикс простой — unified diff
Пример блока патча:
diff --git a/path/file.ts b/path/file.ts
index 0000000..1111111 100644
--- a/path/file.ts
+++ b/path/file.ts
@@ -1,3 +1,3 @@
-const x = 1;
+const x = 2;Scope Boundaries
This skill covers boss-style code review — direct, logic-first, no-fluff feedback following code-review-boss-profile.mdc.
| Concern | This skill | Use instead |
| Logic correctness, layer violations, type safety, conventions | ✅ YES | — |
| General AI review (broader quality, performance, UX) | ❌ NO | code-ai-review |
| MobX store internals (actions, computed, reactions) | ❌ NO | code-mobx-store-review |
| Pure style/naming/architecture pattern audit | ❌ NO | code-style-review |
Job Context Awareness
When dispatched by job-orchestrator as part of a job pipeline, the prompt MAY include:
JOB_NAME: <job-name>
CONTEXT_PATH: <JOBS_ROOT>/<job-name>/ai/context.mdIf provided and the file exists, read the context document before starting the review. Use it to:
- Understand which libraries and patterns were intentionally chosen for the implementation
- Avoid flagging correct library usage as issues
- Provide more accurate findings by understanding the project's architectural decisions
If the file does not exist or is not provided, proceed normally — context is optional and non-blocking.
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.

