Przejdź do treści
Biblioteka skilli
Programowanie · Nauka i wyjaśnianie

pragma-walkthrough

/pragma-walkthrough

Wyjaśnia zmiany w kodzie jako krok po kroku przewodnik w zakładce Walkthrough w Pragma ADE, z publikacją przez CLI.

Repozytorium
pragma-ade ↗
Licencja
MIT
Ostatnia zmiana repozytorium
07.11.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format20 / 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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 07.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

Wyjaśnia zmiany w kodzie jako krok po kroku przewodnik w zakładce Walkthrough w Pragma ADE, z publikacją przez CLI.

Wyzwalacze z opisu

explain what you changedwalk me throughwalk me through the codewhat did commit X doexplain commit Xbana yazdığın kodu anlatdeğiştirdiğin yerleri anlatşu commit
Oryginalny opis (EN)

Explain code you wrote or changed, or what a commit did, as an interactive step-by-step walkthrough in Pragma ADE's Walkthrough tab, published with `pragma walkthrough publish`. Use when working inside Pragma ADE and the user asks to understand or review code, e.g. "explain what you changed", "walk me through", "walk me through the code", "what did commit X do", "explain commit X", "bana yazdığın kodu anlat", "değiştirdiğin yerleri anlat", "şu commit'te ne yapılmış anlat", "kodu adım adım anlat". For the other pragma commands see pragma-cli.

Jak działa

  1. Steps
  2. Limits
  3. When it fails
Sekcje z nagłówków SKILL.md, w oryginale · 80 linii, 748 słów
Podgląd SKILL.md
---
name: pragma-walkthrough
description: >-
  Explain code you wrote or changed, or what a commit did, as an interactive step-by-step walkthrough in Pragma ADE's
  Walkthrough tab, published with `pragma walkthrough publish`. Use when working inside Pragma ADE and the user asks
  to understand or review code, e.g. "explain what you changed", "walk me through", "walk me through the code", "what
  did commit X do", "explain commit X", "bana yazdığın kodu anlat", "değiştirdiğin yerleri anlat", "şu commit'te ne
  yapılmış anlat", "kodu adım adım anlat". For the other pragma commands see pragma-cli.
---

# Walk the user through code in Pragma

Instead of a long chat message, publish a structured walkthrough: ordered steps, each with a
short markdown explanation (what and why) and the exact code or diff it is about. Pragma shows
it in the Walkthrough tab with a table of contents, syntax-highlighted code, diffs, and buttons
that open each block in the editor or in Git Changes.

`pragma` is on `PATH` for agents started by Pragma (else use `"$PRAGMA_CLI"`).

## Steps

1. **Ask exactly one question**: how deep the walkthrough should be, for example "a short
   high-level tour, or detailed, close to line by line?". The answer is free text. Skip the
   question when the user already said. Ask nothing else; decide the structure yourself.
2. **Pick the target.**
   - Your own work, or "what you changed": `{"kind":"worktree"}`. It uses the files as they
     are now, uncommitted or already committed.
   - A specific commit: `{"kind":"commit","rev":"<sha|HEAD~1|tag>"}`.
3. **Gather what changed**: `git status`, `git diff`, `git diff --cached`, `git log --oneline`,
   `git diff <base>...HEAD` for task work you already committed, or `git show <rev>` for a
   commit.
4. Run `pragma walkthrough schema` once to see the format, the rules, the limits and an
   example.
5. **Author the JSON.**
   - Order the steps the way a reader should learn them: the entry point, then the core
     logic, then edge cases, then tests. Use sub-steps (`steps` inside a step, one level only)
     for detail.
   - Each `body` explains WHAT the code does and WHY, in markdown. Put the user's depth answer
     in `depth`, and match the amount of detail to it.
   - **Code blocks: copy the exact lines with their exact line numbers.** Read them with
     `sed -n '<start>,<end>p' <file>` (worktree target) or
     `git show <rev>:<path> | sed -n '<start>,<end>p'` (commit target). Never retype,
     abbreviate or guess code or line numbers; `code` must have exactly `endLine - startLine + 1`
     lines.
   - Diff blocks: paste a hunk from `git diff` / `git show` as `patch` (with its `@@` header),
     or give `before` and `after` (not both empty). With `patch`, `startLine..endLine` must be
     exactly the new-side lines the hunks cover: for `@@ -a,b +c,d @@` that is `c` to
     `c + d - 1` (first hunk's start to last hunk's end).
   - Paths are relative to the repository root and use `/`.
6. **Publish.** Write the JSON to a temp file outside the repository, or pass it on stdin:

   ```sh
   pragma walkthrough publish --file - <<'EOF'
   { "version": 1, "title": "…", "summary": "…", "depth": "…", "target": {"kind":"worktree"}, "steps": [ … ] }
   EOF
   ```

7. **On exit code 1 (`invalid_argument`)**: the message lists every problem with its JSON path
   (and the file's real line when code does not match). Fix all of them and publish again;
   repeat until it succeeds. Do not drop content to dodge errors, except to respect the limits.
8. **Then tell the user in one or two sentences** that the walkthrough is in the Walkthrough
   tab, optionally with a one-line takeaway. Do not repeat the walkthrough in the chat.

To read walkthroughs back (yours or another session's): `pragma walkthrough list` lists this
worktree's walkthroughs, `pragma walkthrough show <id>` prints one's outline and
`pragma walkthrough show <id> --step <number>` one step with its code. Read the current one
before regenerating it. Questions about a walkthrough step: see pragma-walkthrough-ask.

Publishing again for the same target replaces the earlier walkthrough (for example when the
user presses Regenerate or asks for another depth). Walkthroughs for different targets (the
current changes and each commit) stay side by side as tabs.

## Limits

At most 40 steps, 15 sub-steps per step, 150 entries in all, 8 blocks per step, 400 lines and
20 000 characters per block, 120 000 characters of text in all, and a JSON file (or stdin) of
at most 262 144 bytes. `pragma walkthrough schema` prints every limit. Split a long change into
steps rather than one big block.

## When it fails

- `invalid_argument`: the JSON, the format or the code does not match; read every listed
  problem, fix them all, publish again. An unknown commit is reported at `target.rev`.
- Exit code `2` with "is larger than 262144 bytes": the JSON is over the file limit; shorten
  the text or explain less per step, and publish again.
- `not_found`: the worktree does not exist; drop `--worktree` or check its id.
- `module_unavailable` (the walkthrough module is disabled) or exit code `3` (Pragma not
  running): explain briefly in the chat instead.

Wersje

W bazie nie ma innych skilli o nazwie pragma-walkthrough.

Migawka bazy z 13.11.2026 · wersja paczki 70bc5da8d78e (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 2 · ranking

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

Podobne skille

  • 95pragma-walkthrough-ask
    Odpowiada na pytania o przewodnik Walkthrough w Pragma ADE, po wcześniejszym odczytaniu jego kroku w CLI.
  • 85pragma-show
    Pokazuje kod użytkownikowi w edytorze Pragma ADE: otwiera pliki na wskazanych liniach albo pokazuje zmiany i commity zamiast wklejania w czacie.
  • 100v1-pr-walkthrough
    Tłumaczy pull request lub gałąź w formie wizualnego przeglądu, krok po kroku, dla innych osób w zespole.
  • 90explain-code
    Tłumaczy początkującemu kod: przechodzi po modułach albo wyjaśnia ostatni commit, czyli co się zmieniło i co by pękło.
  • 90walkthrough
    Prowadzi użytkownika krok po kroku przez testowanie lub weryfikację: wykonuje, co może, i sprawdza każdy wynik.
  • 90what-i-did
    Zapisuje w katalogu projektu plik WHAT-I-DID.md, który wyjaśnia zakończony projekt.

Uwagi i zgłoszenia

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