Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

fix-bug

/fix-bug

Znajduje i naprawia jeden błąd w grze, na przykład awarię lub zły wynik punktów, nie psując reszty.

Licencja
MIT
Ostatnia zmiana repozytorium
05.11.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 05.11.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

Znajduje i naprawia jeden błąd w grze, na przykład awarię lub zły wynik punktów, nie psując reszty.

Wyzwalacze z opisu

not workings wrong, or
Oryginalny opis (EN)

Find and fix one problem in the game without breaking anything else. Use when something is broken, weird, or "not working": a crash, a blank screen, the player falling through the floor, a button that does nothing, a score that's wrong, or "it worked yesterday".

Jak działa

  1. 1. Get the story
  2. 2. See it yourself
  3. 3. Find the cause
  4. 4. Fix it, smallest change first
  5. 5. Prove it
Sekcje z nagłówków SKILL.md, w oryginale · 54 linii, 631 słów
Podgląd SKILL.md
---
name: fix-bug
description: Find and fix one problem in the game without breaking anything else. Use when something is broken, weird, or "not working": a crash, a blank screen, the player falling through the floor, a button that does nothing, a score that's wrong, or "it worked yesterday".
---

# Fix a Bug

Understand it, see it happen, find the real cause, make the smallest fix, prove it's fixed. Don't rewrite systems or switch tools to get away from a bug.

## 1. Get the story

If it isn't already clear, ask for three things in one message:

- **What you did**: the steps ("start the game, jump onto the second platform").
- **What you expected.**
- **What happened instead**: plus any red error text, or a screenshot.

Beginners often can't find errors. Tell them where to look: in a browser, right-click → Inspect → **Console** tab; in Godot, the **Output** and **Debugger** panels at the bottom.

## 2. See it yourself

Reproduce it before changing code: run the game (`playtest`) and follow their steps, or read the error and find the line. If you can't reproduce it, say so, try a variation or two (other screen size, other browser, after restarting), and ask one focused question. Don't guess-fix something you've never seen fail.

**"It worked before"**: use git. `git log --oneline` shows the checkpoints, and `git diff <checkpoint>` shows what changed since. The cause is almost always in that change. Explain this to them once; it's the most useful habit they can learn.

## 3. Find the cause

Look for why it happens, not just where. Common causes in first games:

| Symptom | Usual cause |
|---|---|
| Blank or black screen | A JavaScript error on load (read the console), a wrong asset path, the camera pointing at nothing, or the canvas size being 0. |
| Something moves faster on some computers | Movement not multiplied by frame time (`delta`). |
| Falls through floors, sticks to walls | Collision shapes the wrong size or offset, moving too far in one frame, or moving the object directly instead of through physics. See `game-physics-regression`. |
| Keys stop working | Focus lost to a menu or text field, a listener added twice, or a held key never released on window blur. |
| Things happen twice after restarting | Old listeners, timers, or loops not cleaned up when the scene restarts. |
| Works locally, broken online | Asset paths that start with `/` or have the wrong letter case. See `ship-it`. |
| Blank page when opening `index.html` directly | Browsers block loading files from `file://`. Run the dev server (`npm run dev`) instead. |
| Pixel art looks blurry | Image smoothing is on. See `add-art` [import-gotchas.md](../add-art/references/import-gotchas.md). |
| 3D model is huge, tiny, lying down, or floating | Wrong export scale, Z-up vs Y-up, or the pivot in the wrong place. See [import-gotchas.md](../add-art/references/import-gotchas.md). |
| No sound | Browsers block audio until the first click or key press. |
| Save data gone | `localStorage` lives in one browser on one device; clearing site data, private windows, or a different URL (localhost vs the published site) all start fresh. |

If you add temporary logs or debug drawing to find it, remove them afterwards.

## 4. Fix it, smallest change first

Change only what causes the bug. If the right fix is bigger (the code's structure is the real problem), explain the choice in two lines and let them pick: quick patch now, or proper fix as its own step.

## 5. Prove it

- Follow their original steps again and confirm it no longer happens.
- Check that the nearby things still work (`playtest`).
- If the bug was in logic that's easy to break again (score, collisions, timers), add one small test or a debug check that would catch it.
- Commit ("Fix: player fell through moving platforms") and update **Known problems** in `PROGRESS.md`.

Explain the cause in one or two plain sentences. That's how they learn to spot it next time.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · downbelowdotxyz/downbelow-skills100MIT
mthines/agent-skills100MIT
mgiovani/cc-arsenal100MIT
tddworks/claudebar100Apache-2.0
bytebase/dbhub100MIT
remix-run/react-router100MIT
Cynnamoroll/factory-stack100MIT
nowsprinting/unity-coding-skills100Unlicense
Slama-Consulting/proofbench100MIT

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

  • 100diagnosing-bugs
    Diagnozuje i naprawia błąd, np. zły wynik, nieprzechodzący test, awarię lub spowolnienie, najpierw pokazując polecenie odtwarzające problem.
  • 86debug
    Diagnozuje błąd, awarię, zawieszenie lub zły wynik: odtwarza problem, izoluje przyczynę, naprawia go i weryfikuje.
  • 86bug-hunt
    Diagnozuje i naprawia błąd systematycznie: najpierw odtwarza problem, potem sprawdza jedną hipotezę naraz i dodaje test regresji.
  • 100fix
    Naprawia zgłoszony błąd, awarię, regresję lub niezaliczony test, często wskazany przez numer issue, i sprawdza wynik.
  • 95fix
    Naprawia jeden błąd z tablicy bez iteracji: najpierw test, który nie przechodzi, potem najmniejsza poprawka i jeden pull request.
  • 90systematic-debugging
    Szuka przyczyny źródłowej i naprawia błąd, gdy użytkownik zgłasza awarię, błąd, nieoczekiwane zachowanie lub niezaliczony test.

Uwagi i zgłoszenia

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