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

forge-reflect

/forge-reflect

Robi przegląd własnych zmian, czyli pull requesta, różnicy gałęzi lub niezatwierdzonej pracy, przed commitem, pushem lub prośbą o przegląd kolegów.

Repozytorium
forge ↗
Licencja
MIT
Ostatnia zmiana repozytorium
25.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 25.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Robi przegląd własnych zmian, czyli pull requesta, różnicy gałęzi lub niezatwierdzonej pracy, przed commitem, pushem lub prośbą o przegląd kolegów.

Oryginalny opis (EN)

Self-review current changes — a PR, branch diff, or uncommitted work. Use when the user wants a code review of their changes, a self-review before committing or pushing, or a final check before requesting peer review.

Jak działa

  1. Input
  2. Process
  3. Output Format
  4. Guidelines
  5. Related Skills
  6. Example Usage
Sekcje z nagłówków SKILL.md, w oryginale · 119 linii, 574 słów
Podgląd SKILL.md
---
name: forge-reflect
description: Self-review current changes — a PR, branch diff, or uncommitted work. Use when the user wants a code review of their changes, a self-review before committing or pushing, or a final check before requesting peer review.
disable-model-invocation: true
---

# Reflect on Changes

Self-review current changes before committing, pushing, or requesting peer review.

## Input

No primary argument required — automatically detects what to review. Optional: `-- <additional context>` for review focus guidance.

## Process

### Step 1: Identify Changes

Detect the review scope by checking, in order:

**1. PR for current branch:**
```bash
gh pr view --json number,title,url 2>/dev/null
```
If a PR exists, note its number and URL for the report.

**2. Branch diff vs default branch:**
```bash
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
CURRENT_BRANCH=$(git branch --show-current)
```
If on a branch different from default with commits ahead, use `$DEFAULT_BRANCH...HEAD`.

**3. Uncommitted changes (staged + unstaged):**
```bash
git diff --name-only          # unstaged
git diff --name-only --cached # staged
```
If there are uncommitted changes, review those.

**Use the first scope that has changes.** If nothing to review, tell the user.

Collect the full diff and changed file list for the detected scope:

```bash
# PR or branch diff
git fetch origin
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
git diff origin/$DEFAULT_BRANCH...HEAD
git diff --name-only origin/$DEFAULT_BRANCH...HEAD

# Uncommitted changes (staged + unstaged combined)
git diff HEAD
git diff --name-only HEAD
```

### Step 2: Review Changes (delegate)

Follow the [review-delegation](_shared/review-delegation.md) process: collect materials, prefer one inline review pass for tiny low-risk diffs, otherwise run one fresh-context review pass by default, add a second pass only when risk justifies it, and aggregate findings.

**Expected output:** Deduplicated findings grouped by file with severity tags (P0/P1/P2).

### Step 3: Run Quality Gates

Run the project's lint, format, type check, and test commands (and coverage where configured). Fix issues and commit fixes.

### Step 4: Triage Findings

Present each Finding to the user via AskUserQuestion and ask whether to **fix now** or **defer**.

For each Finding, recommend one of (bias toward fix now):
- **Fix now** — default for in-scope findings and small follow-up work (e.g., missing tests, stale docs, duplicated lines, modest refactors that fit the current change)
- **Defer** — only when the Finding is truly out of scope, materially expands the PR, or needs separate design/review (e.g., a cross-cutting refactor, a new feature, a separate migration strategy)

State your recommendation and let the user decide. Then:
- **Fix now:** apply the fix and commit it
- **Deferred items:** create an Issue in the project's Issue tracker (see [issue-operations](_shared/issue-operations.md)) with context and proposed solution

### Step 5: Report

Aggregate findings from all review passes (Step 2), quality gate results (Step 3), and triage outcomes (Step 4) into the summary format below. Deduplicate any findings flagged by multiple passes — keep the highest severity.

## Output Format

```text
## Reflection Summary

**Scope:** <PR #N | branch <name> vs <default> | uncommitted changes>

### Findings
#### <file>
- [P0/P1/P2] <finding>

### Finding Triage
- Fixed: <what was addressed>
- Deferred #<num>: <title>
- (or: None identified)

### Quality Gates
- Lint: ✓/✗
- Format: ✓/✗
- Types: ✓/✗
- Tests: ✓/✗

(Use severity tags: P0, P1, P2. Omit P3 — see [review rubric](_shared/review-rubric.md).)
```

## Guidelines

- **Pattern consistency is the highest-value check**
- **Bias toward fixing in the same PR** — only create Issues for confirmed deferrals that are truly larger or out of scope

## Related Skills

**After review:** Use `forge-address-pr-feedback` to address reviewer feedback.
**Single invocation:** Use `forge-ship` to implement and review in one step.

## Example Usage

```
/forge-reflect
/forge-reflect -- pay extra attention to migration safety and missing regression tests
```
Pliki w paczce (2)
  • SKILL.md 4 KB
  • _shared 1 KB

Wersje

W bazie nie ma innych skilli o nazwie forge-reflect.

Migawka bazy z 13.11.2026 · wersja paczki 360f8b4eb572 (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

  • 90review-local-changes
    Przeprowadza wieloagentowy przegląd lokalnych, niezatwierdzonych zmian przed commitem lub pushem, bez potrzeby merge requesta w GitLab.
  • 100miro-code-review
    Tworzy wizualny przegląd kodu na tablicy Miro z pull requesta lub merge requesta, lokalnych zmian albo porównania gałęzi: tabela zmian, dokumenty podsumowania i diagramy architektury z linkami do PR.
  • 100code-review
    Wykonuje code review przez CLI codex dla niezatwierdzonych zmian albo zmian od gałęzi bazowej.
  • 100code-review
    Prowadzi przegląd zmiany, gałęzi lub pull requesta po zakończeniu implementacji, przed commitem, merge'em lub oddaniem pracy użytkownikowi.
  • 100codex-review-loop
    Uruchamia przegląd Codex lokalnie lub przez bota GitHub dla gałęzi po pozytywnym przeglądzie Claude, przed pushem, oznaczeniem PR jako gotowego lub prośbą o @codex review.
  • 100pr-architecture-review
    Przegląda zmiany przed commitem lub pushem: poprawność, granice architektury i złożoność, zwłaszcza gdy zmienia się wiele plików.

Uwagi i zgłoszenia

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