Code review
Overview
Provide a senior-level review of all changes in an application project by comparing the current branch against a target branch diff and producing a structured Markdown report.
Answer in Czech per the communication-standard skill. Keep the report template headings in English, but write the concrete findings in Czech.
Quick start
- Ask for the target branch if it is not provided.
- Ask for context: goal of the change, intended behavior, constraints, and testing notes.
- Compare the diff between the current branch and the target branch and identify meaningful changes across the entire change set.
- Review for correctness, efficiency, conventions, and code similarity to existing project style.
- If uncertain about behavior, pause and ask for clarification before continuing.
- Write a Markdown report into the
code-review folder.
Procedure
- Gather required inputs:
- Ask for the target branch name if missing.
- Ask for context (Jira issue text or a short description of intended outcome).
- Ask for constraints (deadlines, backward compatibility, performance budgets).
- Compute the change set:
- Compare the diff between the current branch and the target branch to see all changes (e.g.,
git diff <target>...HEAD).
- Review the full diff (entire change set), not the whole repository.
- Review the changes across all modified files (code, configs, docs, data files):
- Identify the primary language(s) and any framework(s) used by the change (e.g., React, Vue, Angular, Next.js).
- If the project uses Vue, load and follow the
vue-best-practices skill.
- If the project uses React 19, load and follow the
react-best-practices skill.
- Check functional correctness and edge cases.
- Check the surrounding context of the diff hunk for regressions (e.g., changed assumptions, broken flows, unintended side effects).
- Scan nearby files/modules that interact with the change (imports, shared utilities, type defs, config/CI pipelines) for compatibility.
- Check efficiency and alternative implementations. Consider whether the diff can be solved more simply or with lower cost.
- Check project conventions and consistency with existing code.
- Check maintainability, readability, and API design.
- Check static types or contracts when applicable (correctness, unsafe casts, any usage).
- Check linting and formatting inconsistencies.
- Search for similar solutions already present in the project and note opportunities to reuse, merge, or replace the new code.
- If any behavior is unclear:
- Stop and ask the user for clarification.
- Resume only after receiving the missing context.
- Write the review report:
- Save a Markdown file in
code-review/.
- Use clear sections for categories.
- Keep bullets short so they can be pasted into GitLab MR threads.
- It is acceptable to report no issues when nothing is found.
Review output template
# Code Review - <short title>
## Context
- Target branch: `<branch>`
- Goal: <summary>
## Functional
- <nález nebo "Nenalezeny žádné problémy.">
## Nice-to-have
- <nález nebo "Nenalezeny žádné problémy.">
## Lint/Format
- <nález nebo "Nenalezeny žádné problémy.">
## Types/Static analysis
- <nález nebo "Nenalezeny žádné problémy.">
## Maintainability
- <nález nebo "Nenalezeny žádné problémy.">
## Performance
- <nález nebo "Nenalezeny žádné problémy.">
## Security
- <nález nebo "Nenalezeny žádné problémy.">
Language
- Respond in Czech per the
communication-standard skill.
- Keep the review template headings in English.
- Findings inside the review template must be in Czech.
Common mistakes
- Skipping the context request and reviewing without intended behavior.
- Mixing categories or leaving findings unclassified.
- Writing long paragraphs instead of short bullets.
- Failing to look for existing implementations that could be reused or merged.
Quality checks
- The target branch was confirmed or explicitly provided.
- Context was requested and recorded.
- Findings are categorized and concise.
- The report is saved under
code-review/ as Markdown.
1---2name: fcs-code-review3description: Use when the user requests a senior review of the full diff between the current branch and a target branch across all changed files (code, configs, docs), producing a Markdown report for GitLab MR threads.4---5# Code review67## Overview8Provide a senior-level review of all changes in an application project by comparing the current branch against a target branch diff and producing a structured Markdown report.9Answer in Czech per the communication-standard skill. Keep the report template headings in English, but write the concrete findings in Czech.1011## Quick start121. Ask for the target branch if it is not provided.132. Ask for context: goal of the change, intended behavior, constraints, and testing notes.143. Compare the diff between the current branch and the target branch and identify meaningful changes across the entire change set.154. Review for correctness, efficiency, conventions, and code similarity to existing project style.165. If uncertain about behavior, pause and ask for clarification before continuing.176. Write a Markdown report into the `code-review` folder.1819## Procedure201. Gather required inputs:21 - Ask for the target branch name if missing.22 - Ask for context (Jira issue text or a short description of intended outcome).23 - Ask for constraints (deadlines, backward compatibility, performance budgets).242. Compute the change set:25 - Compare the diff between the current branch and the target branch to see all changes (e.g., `git diff <target>...HEAD`).26 - Review the full diff (entire change set), not the whole repository.273. Review the changes across all modified files (code, configs, docs, data files):28 - Identify the primary language(s) and any framework(s) used by the change (e.g., React, Vue, Angular, Next.js).29 - If the project uses Vue, load and follow the `vue-best-practices` skill.30 - If the project uses React 19, load and follow the `react-best-practices` skill.31 - Check functional correctness and edge cases.32 - Check the surrounding context of the diff hunk for regressions (e.g., changed assumptions, broken flows, unintended side effects).33 - Scan nearby files/modules that interact with the change (imports, shared utilities, type defs, config/CI pipelines) for compatibility.34 - Check efficiency and alternative implementations. Consider whether the diff can be solved more simply or with lower cost.35 - Check project conventions and consistency with existing code.36 - Check maintainability, readability, and API design.37 - Check static types or contracts when applicable (correctness, unsafe casts, any usage).38 - Check linting and formatting inconsistencies.39 - Search for similar solutions already present in the project and note opportunities to reuse, merge, or replace the new code.404. If any behavior is unclear:41 - Stop and ask the user for clarification.42 - Resume only after receiving the missing context.435. Write the review report:44 - Save a Markdown file in `code-review/`.45 - Use clear sections for categories.46 - Keep bullets short so they can be pasted into GitLab MR threads.47 - It is acceptable to report no issues when nothing is found.4849## Review output template50```markdown51# Code Review - <short title>5253## Context54- Target branch: `<branch>`55- Goal: <summary>5657## Functional58- <nález nebo "Nenalezeny žádné problémy.">5960## Nice-to-have61- <nález nebo "Nenalezeny žádné problémy.">6263## Lint/Format64- <nález nebo "Nenalezeny žádné problémy.">6566## Types/Static analysis67- <nález nebo "Nenalezeny žádné problémy.">6869## Maintainability70- <nález nebo "Nenalezeny žádné problémy.">7172## Performance73- <nález nebo "Nenalezeny žádné problémy.">7475## Security76- <nález nebo "Nenalezeny žádné problémy.">77```7879## Language80- Respond in Czech per the `communication-standard` skill.81- Keep the review template headings in English.82- Findings inside the review template must be in Czech.8384## Common mistakes85- Skipping the context request and reviewing without intended behavior.86- Mixing categories or leaving findings unclassified.87- Writing long paragraphs instead of short bullets.88- Failing to look for existing implementations that could be reused or merged.8990## Quality checks91- The target branch was confirmed or explicitly provided.92- Context was requested and recorded.93- Findings are categorized and concise.94- The report is saved under `code-review/` as Markdown.