Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

git-review

/git-review

Prowadzi przez skuteczne przeglądy kodu: recenzowanie PR, udzielanie informacji zwrotnej i ustalanie standardów przeglądu.

Licencja
GPL-3.0
Ostatnia zmiana repozytorium
07.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 07.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

GPL-3.0, otwarta.

Co robi i kiedy

Prowadzi przez skuteczne przeglądy kodu: recenzowanie PR, udzielanie informacji zwrotnej i ustalanie standardów przeglądu.

Oryginalny opis (EN)

Guide for conducting effective code reviews. Use when reviewing PRs, giving feedback, or establishing review standards.

Jak działa

  1. When to Use This Skill
  2. Review Mindset
  3. Review Checklist
  4. Comment Types
  5. Giving Feedback
  6. Review Response Times
  7. Approval Criteria
  8. Decision Tree
  9. Review Best Practices
  10. GitHub Review Commands
Sekcje z nagłówków SKILL.md, w oryginale · 215 linii, 922 słów
Podgląd SKILL.md
---
name: git-review
description: Guide for conducting effective code reviews. Use when reviewing PRs, giving feedback, or establishing review standards.
---

# Git Code Review

This skill provides guidance for conducting thorough, constructive code reviews that improve code quality and team collaboration.

## When to Use This Skill

- Reviewing Pull Requests
- Giving constructive feedback
- Setting up review processes
- Training new reviewers

## Review Mindset

> [!IMPORTANT]
> **Review the code, not the person.** Focus on improving the codebase, not criticizing the author.

**Approach reviews with:**
- Curiosity, not judgment
- Suggestions, not demands
- Collaboration, not gatekeeping

## Review Checklist

### Functionality
- [ ] Code does what PR description says
- [ ] Edge cases handled
- [ ] Error handling appropriate
- [ ] No obvious bugs

### Code Quality
- [ ] Code is readable and clear
- [ ] Functions/methods have single responsibility
- [ ] No code duplication (DRY)
- [ ] Variable/function names are descriptive
- [ ] Complex logic has comments

### Testing
- [ ] Tests cover new functionality
- [ ] Tests cover edge cases
- [ ] Existing tests still pass
- [ ] Test names are descriptive

### Security
- [ ] No hardcoded secrets/credentials
- [ ] Input validation present
- [ ] No SQL injection vulnerabilities
- [ ] Authentication/authorization correct

### Performance
- [ ] No N+1 queries
- [ ] Appropriate data structures used
- [ ] No unnecessary loops/iterations
- [ ] Resources properly released

### Documentation
- [ ] Public APIs documented
- [ ] Complex logic explained
- [ ] README updated if needed
- [ ] CHANGELOG updated if needed

## Comment Types

Use prefixes to clarify intent:

| Prefix | Meaning | Blocking? |
|--------|---------|-----------|
| `nit:` | Minor nitpick, optional | ❌ No |
| `suggestion:` | Improvement idea | ❌ No |
| `question:` | Need clarification | ❌ No |
| `issue:` | Problem that needs fixing | ✅ Yes |
| `blocker:` | Must fix before merge | ✅ Yes |

**Examples:**
```
nit: Consider renaming this to `userCount` for clarity.

suggestion: This could be simplified using Array.filter().

question: Why do we need this null check here?

issue: This will throw an error if `data` is undefined.

blocker: This exposes user passwords in the response.
```

## Giving Feedback

### Do ✅

```diff
+ "Consider using a Map here for O(1) lookup instead of array.find()"
+ "This could potentially throw if user is null - maybe add a null check?"
+ "Nice solution! One thing to consider: what happens if the list is empty?"
```

### Don't ❌

```diff
- "This is wrong"
- "Why would you do it this way?"
- "This is bad code"
```

### Feedback Formula

```
[Observation] + [Impact/Reason] + [Suggestion]
```

**Example:**
> "This function is 80 lines long (observation), which makes it harder to test and maintain (impact). Consider extracting the validation logic into a separate function (suggestion)."

## Review Response Times

| PR Size | Target Response |
|---------|-----------------|
| XS (< 50 lines) | Same day |
| S (50-200) | Within 24 hours |
| M (200-400) | Within 48 hours |
| L (> 400) | Schedule review session |

> [!TIP]
> Quick reviews (even partial) are better than delayed perfect reviews.

## Approval Criteria

**Approve when:**
- All blocking issues resolved
- Code works as intended
- Tests pass and cover changes
- No security concerns

**Request changes when:**
- Blocking bugs or issues
- Security vulnerabilities
- Missing required tests
- Breaking changes unaddressed

**Comment (no approval) when:**
- Have questions but no blockers
- Need more context
- Partial review completed

## Decision Tree

```
Reviewing a PR
├── Read PR description first
│   └── Understand the "what" and "why"
├── Check diff size
│   ├── > 400 lines → Ask to split or schedule session
│   └── Manageable → Continue review
├── Review code
│   ├── Start with tests (understand intent)
│   ├── Review main implementation
│   └── Check edge cases
├── Leave comments
│   ├── Blocking issues → Use "issue:" or "blocker:"
│   ├── Suggestions → Use "suggestion:" or "nit:"
│   └── Questions → Use "question:"
└── Submit review
    ├── All good → Approve
    ├── Has blocking issues → Request changes
    └── Need more info → Comment only
```

## Review Best Practices

| Practice | Description |
|----------|-------------|
| **Be timely** | Review within 24 hours |
| **Be thorough** | Don't just skim |
| **Be specific** | Point to exact lines |
| **Be constructive** | Offer solutions |
| **Be humble** | You might be wrong |
| **Be kind** | Remember the human |

## GitHub Review Commands

```bash
# View PR diff
gh pr diff <number>

# Checkout PR locally
gh pr checkout <number>

# Add review
gh pr review <number> --approve
gh pr review <number> --request-changes --body "Please fix X"
gh pr review <number> --comment --body "Looks good overall"

# View PR checks
gh pr checks <number>
```

## Common Review Oversights

| Often Missed | How to Catch |
|--------------|--------------|
| Error handling | Search for `try`, `catch`, `throw` |
| Null checks | Look for `?.`, `??`, null guards |
| Resource cleanup | Check for open connections, streams |
| Logging | Ensure no sensitive data logged |
| Edge cases | Test with empty, null, max values |

## Resources

- [Review Checklist](./resources/review-checklist.md) - Quick reference checklist for code reviews

## Related Skills

- [Git Commit](../git-commit/SKILL.md) - Writing commit messages
- [Git PR](../git-pr/SKILL.md) - Creating Pull Requests
Pliki w paczce (2)
  • SKILL.md 6 KB
  • resources/review-checklist.md 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · Funnyhust/POC_Kaenx_Creator100GPL-3.0
nrdxp/predicate100MIT

Migawka bazy z 28.10.2026 · wersja paczki 4086ed4836a2 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100code-review
    Przewodnik po prowadzeniu przeglądów kodu: pull requesty, audyt jakości, wykrywanie problemów bezpieczeństwa i udzielanie informacji zwrotnej.
  • 100code-reviewer
    Wspiera przeglądy pull requestów wspomagane AI oraz ustalanie standardów code review w zespole.
  • 100code-review
    Dostarcza listę kontrolną i wytyczne przeglądu kodu dla udzielania i przyjmowania konstruktywnych uwag do pull requestów oraz ustalania standardów przeglądu.
  • 100code-review-practices
    Daje praktyczne wskazówki prowadzenia przeglądów kodu, które wcześnie wychwytują problemy, wspierają dzielenie się wiedzą i pozwalają udzielać konstruktywnej informacji zwrotnej.
  • 100code-review
    Prowadzi uporządkowane przeglądy kodu pod kątem poprawności, czytelności, bezpieczeństwa i łatwości utrzymania, także przy ustalaniu standardów review w zespole.
  • 100code-review-excellence
    Uczy skutecznych praktyk przeglądu kodu: konstruktywnej informacji zwrotnej, wczesnego wychwytywania błędów i dzielenia się wiedzą, z dbałością o morale zespołu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.