logic-explain
/logic-explain
Wyjaśnia, co konkretny fragment kodu robi dla danego wejścia, krok po kroku, z przejściem przez wywołania i typy.
- Autor
- hyhmrright ↗
- Repozytorium
- logic-lens ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 30.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 2
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 30.09.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wyjaśnia, co konkretny fragment kodu robi dla danego wejścia, krok po kroku, z przejściem przez wywołania i typy.
Wyzwalacze z opisu
Oryginalny opis (EN)
Explain what a specific piece of code actually does for a given input by producing a step-by-step execution trace (interprocedural, with name resolution and type transitions). Trigger when the user is confused about behavior or asks why code produces X instead of Y — "walk me through this", "trace through X with input Y", "why does this return X", "what does yield-from do here", "explain the execution path". SCOPE HARD RULE: a specific function + a specific input scenario. If the user wants to find bugs without a scenario in mind, use logic-review; two-version comparison uses logic-diff; concr
Jak działa
- Setup
- Process
Podgląd SKILL.md
--- name: logic-explain description: > Explain what a specific piece of code actually does for a given input by producing a step-by-step execution trace (interprocedural, with name resolution and type transitions). Trigger when the user is confused about behavior or asks why code produces X instead of Y — "walk me through this", "trace through X with input Y", "why does this return X", "what does yield-from do here", "explain the execution path". SCOPE HARD RULE: a specific function + a specific input scenario. If the user wants to find bugs without a scenario in mind, use logic-review; two-version comparison uses logic-diff; concrete failures use logic-locate; codebase-wide audit uses logic-health. Do NOT trigger for: finding bugs without a behavioral question, style or design discussion, or concept explanations not tied to specific code. --- # Logic-Lens — Execution Explain ## Setup Use lazy loading per `../_shared/common.md` §13: 1. Read `../_shared/common.md` only for language, report header variants, scope routing, and loading budget. 2. Read only the relevant step in `logic-explain-guide.md` as you reach it. 3. Load `../_shared/semiformal-guide.md`, `../_shared/semiformal-checklist.md`, and `../_shared/report-template.md` on demand when the current step needs them. Note: `logic-risks.md` is intentionally skipped — logic-explain does not produce L-code findings, and Remedy is intentionally out of scope for this mode. If the trace reveals a bug, stop and recommend logic-review or logic-locate. When handing off, do not discard work already done — present the premises established and trace steps completed under a **"Partial trace context (carry into next skill):"** heading so the user can pass them directly to the follow-on skill. ## Process **Step 0. Language + scope routing.** Detect language per `common.md` §1. Confirm a single function + a single input scenario. If the user wants bug-finding without a scenario, hand off to logic-review. **Step 1. Entry point and scenario** (guide Step 1) — name the function, the input scenario, and what the user is trying to understand. **Step 2. Build premises** (guide Step 2) — resolve every non-obvious name, state the types of key variables at entry, note global/module state accessed. **Step 3. Produce step-by-step trace** (guide Step 3) — numbered, interprocedural, active voice; cross function boundaries whenever relevant to the user's scenario. Keep the trace scenario-bound; do not branch into alternative paths unless they explain the user's confusion. **Step 4. Highlight non-obvious behavior** (guide Step 4) — name resolutions, implicit coercions, hidden side effects; the "gotchas" the casual reader would miss. **Step 5. Summarize actual vs. assumed** (guide Step 5) — one sentence each; this is the core value for the user. **Mode line in report:** `Execution Explain` (Chinese: `执行解释`). **Note:** Execution Explain is descriptive, not evaluative. Omit the Logic Score / Fault Confidence / Verdict line from the report header.
Pliki w paczce (2)
- SKILL.md 3 KB
- logic-explain-guide.md 4 KB
Wersje
W bazie nie ma innych skilli o nazwie logic-explain.
Migawka bazy z 13.11.2026 · wersja paczki 232364b455c2 (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
- 100explain
Wyjaśnia plik, katalog, funkcję, klasę lub pojęcie w warstwowy sposób: co kod robi, jak się łączy z resztą i od czego zacząć przy zmianie. - 100logic-review
Szuka błędów logicznych w jednym pliku lub jednej funkcji przez częściowo formalne śledzenie wykonania (przesłanki, ślad, rozbieżność, wyzwalacz, naprawa), gdy testy przechodzą, a produkcja zawodzi. - 90explain-code
Wyjaśnia, jak działa funkcja, plik lub przepływ w kodzie, z odniesieniami do plików i linii. - 100explain-code-slice
Wyjaśnia krok po kroku ścieżkę kodu, przepływ lub cykl życia żądania: skąd biorą się dane, co wywołuje co, gdzie są rozgałęzienia i co wychodzi na końcu. - 100explain-flow
Opisuje przepływ działania kodu jak opowieść, a każdy krok sprawdza w kodzie. - 100code-explainer
Wyjaśnia prostym językiem fragmenty kodu, funkcje i algorytmy, rozkłada logikę krok po kroku i opisuje, co dzieje się w danym miejscu.