repo-visualizer
/repo-visualizer
Wyjaśnia, jak działa repozytorium lub funkcja, jako graf komponentów z interaktywnym HTML i opcjonalnym GIF lub wideo.
- Autor
- HonzaCuhel ↗
- Repozytorium
- repo-visualizer ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 09.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 36
- Skrypty
- 12
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 09.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 12 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: assets/appearance.js, assets/diagram-layout.js, assets/interaction.js, assets/player.js, assets/vendor/elk.bundled.js, assets/vendor/gifenc.js, scripts/builder.py, scripts/export.py, scripts/hyperframes_export.py, scripts/inventory.py, scripts/repo_story.py, scripts/story_model.py
Co robi i kiedy
Wyjaśnia, jak działa repozytorium lub funkcja, jako graf komponentów z interaktywnym HTML i opcjonalnym GIF lub wideo.
Wyzwalacze z opisu
Oryginalny opis (EN)
Explain how a repository or feature works as a source-grounded component graph, with an interactive HTML explorer and optional animated GIF or video exports. Use for architecture maps, code walkthroughs, onboarding, dependency explanations, and visual answers to questions like “how does why-moving work?”.
Jak działa
- Workflow
- Model quality
- Presentation
- Tools and paths
Podgląd SKILL.md
---
name: repo-visualizer
description: Explain how a repository or feature works as a source-grounded component graph, with an interactive HTML explorer and optional animated GIF or video exports. Use for architecture maps, code walkthroughs, onboarding, dependency explanations, and visual answers to questions like “how does why-moving work?”.
---
# Repo Visualizer
Turn code into a graph someone can understand. The graph is the artifact; a narrated path is optional. Preserve branches, parallel relationships, cycles, disconnected components, and subsystem boundaries. Never force a repository into a sequence of boxes.
## Workflow
1. **Choose the question, scope and initial language.** Read the repository guide and entry points. If the user names a feature, trace that feature. Otherwise identify the major responsibilities and produce an overview. Ask at most one useful clarification while continuing independent inspection. Use the output language explicitly requested by the user; otherwise use the user's language. This is independent of whether the agent is Codex, Claude Code or another compatible agent. Set the graph's BCP-47 `language` tag for the initial view. Every new explanation must also include complete English, Czech, German, French and Spanish content; the initial language does not limit available translations. Keep source code, symbols and paths unchanged.
2. **Inventory without running the target.** `python3 <skill>/scripts/repo_story.py scan --repo <repo> --output <artifacts>/inventory.json`. Use repeated `--path` to narrow large repositories. Python AST imports and call candidates are hints; other languages require your own source inspection. This is not a complete behavioral analysis.
3. **Read and model the mechanism.** Follow definitions, callers, configuration, state stores, queues, retries and failure exits. Organize by responsibility rather than directory alone. Prefer 8–20 meaningful components for a first overview; offer deeper graphs when useful. A component can represent a module, service, function, store, queue or external actor. Keep distinct components and parallel edges when they mean different things.
4. **Write the canonical graph.** Follow [references/graph-format.md](references/graph-format.md). Every factual node and relationship needs exact source references. Author `presentation.levels` from the real mechanism: inputs in the first phase at the top, terminal outputs in the last at the bottom, and parallel or alternative peers in the same phase. This direction stays top-to-bottom at every width. The same phases order the component navigator and the default component tour. Preserve return/retry arrows; never use a topological sort or import order to invent a causal sequence. Scope an ungrouped mechanism view, representing subsystem responsibilities as components; a grouped overview can remain a separate legacy/detail artifact. Read those ranges; do not invent line numbers. Record uncertain relationships as `evidence: inferred` with a concrete reason, and list important unknowns. Static code is evidence of implementation, not an observed runtime trace. Optional steps highlight paths through the existing graph. A component tour must be labeled as a tour, never as execution order. Before building, author complete display-only translations for all five bundled languages using [references/localization.md](references/localization.md), including captions, relationship text, walkthroughs and limitations. Reuse the same graph IDs and source evidence.
5. **Prepare and build.** `python3 <skill>/scripts/repo_story.py prepare graph.json --repo <repo> --all-languages --ordered -o prepared.json`, then `python3 <skill>/scripts/repo_story.py build prepared.json --all-languages --ordered -o explorer.html`. The `--all-languages` check rejects missing explanation fields and `--ordered` requires explicit phases; fill them before delivery. Preparation also checks local paths, ranges, fingerprints and Git revision. Inspect the resulting graph and source pane; structural validation cannot prove your explanation is correct.
6. **Export when requested.** The HTML is portable and interactive. Use `python3 <skill>/scripts/export.py explorer.html -o output.gif` (or `.mp4`, `.webm`, `.png`, `.svg`). The exporter drives the same deterministic scene. See [references/exports.md](references/exports.md) for dependencies and the optional HyperFrames adapter. Never describe an animation as exported until the actual output has been inspected.
7. **Deliver.** Link the HTML and requested exports, summarize what the graph explains, disclose unresolved relationships and static-analysis limits. Preserve source attribution and include the repository’s exact license notice as `source_license` when available. Keep private repository content local unless the user explicitly authorizes publication. An HTML file contains its embedded source excerpts.
## Model quality
- Put responsibilities and meaningful verbs on nodes and edges. Avoid file-count hairballs and generic “connects to” labels.
- Keep the introduction concise: one or two short sentences, with detailed context in uncertainties. Do not put a full commit hash, component counts or duration into prose; the explorer formats those separately. Optional `overview.lead` is a short visible introduction and `overview.path` contains `{node_id, label}` entries referencing real components. It is orientation, not a replacement graph or a claimed execution trace.
- Preserve topology. A retry loop stays a loop; two independent consumers stay branches. Do not turn import ordering into execution ordering.
- Include important gates, empty results, errors and retries. Separate “accepted”, “attempted”, “sent” and “completed” when the code does.
- Link evidence to the selected component or relationship, pinned to the analyzed revision when possible. Dirty files use embedded local evidence rather than a false remote permalink.
- Keep public examples grounded in public source. Do not upload target code, run migrations, call production services, invoke agents with paid APIs, or execute target scripts as part of extraction.
- Maintain one graph model for every view and output. Layout coordinates and animation state are presentation, never another hand-maintained graph.
## Presentation
Use the shipped professional explorer: compact component navigation, a dominant graph, and a readable source inspector. White/cool neutral background, charcoal text, restrained blue selection, thin rules, no decorative 3D or glowing effects. The overview is immediately visible; animation is optional and respects reduced motion. Make sources and controls work by keyboard. For large graphs, scope before shrinking text into illegibility.
Give components a short responsibility `caption` when it makes the map easier to scan. Always put the mechanism top-to-bottom: inputs above, outputs below, parallel components level with one another. Shared bands are optional and must fit those boundary phases. Keep complex branches and feedback intact; never switch to a horizontal pipeline on a wide screen. See the presentation fields in [graph-format.md](references/graph-format.md). The explorer expands the complete workspace, including component navigation, the graph and the source inspector; selection and code remain available while expanded.
## Tools and paths
The explorer has user-controlled light/dark/system appearance and interface language. English, Czech, German, French and Spanish controls are bundled. For another requested language, translate every value from `assets/locales/en.json` into the graph's `ui_strings` object; preserve keys and `{placeholders}`. For every new explanation, `translations` must provide all five bundled languages except the primary language already in the canonical graph; if the primary language is outside those five, provide all five translations as well. Translate the explanation itself, not just interface controls. Preserve ids, topology, source evidence, code, symbols and license notices. See [references/localization.md](references/localization.md). Do not claim automatic translation of existing graph content or source code.
Resolve `<skill>` to this skill's directory. Core scan/prepare/build use Python 3.9+ standard library. Rendering exports has optional dependencies; do not install them silently into the target repository. Store generated artifacts outside source paths, preferably a user-selected output directory. Output creation must not overwrite source files. The skill works in Codex and Claude Code without a repository-specific runtime or server.
Pliki w paczce (36)
- LICENSE 1 KB
- NOTICE.md 2 KB
- SKILL.md 8 KB
- agents/openai.yaml 1 KB
- assets/appearance.js 9 KB
- assets/brand-mark.svg 1 KB
- assets/brand.css 3 KB
- assets/diagram-layout.js 17 KB
- assets/interaction.js 1 KB
- assets/player.css 37 KB
- assets/player.html 14 KB
- assets/player.js 48 KB
- assets/fonts/AtkinsonHyperlegibleNext.ttf 112 KB
- assets/fonts/AtkinsonHyperlegibleNext.ttf.provenance.json 1 KB
- assets/fonts/OFL-AtkinsonHyperlegibleNext.txt 4 KB
- assets/fonts/OFL-AtkinsonHyperlegibleNext.txt.provenance.json 1 KB
- assets/locales/cs.json 5 KB
- assets/locales/de.json 5 KB
- assets/locales/en.json 4 KB
- assets/locales/es.json 5 KB
- assets/locales/fr.json 5 KB
- assets/vendor/ELK-LICENSE.md 14 KB
- assets/vendor/GIFENC-LICENSE.txt 1 KB
- assets/vendor/elk-provenance.json 1 KB
- assets/vendor/elk.bundled.js 1 608 KB
- assets/vendor/gifenc-provenance.json 1 KB
- assets/vendor/gifenc.js 22 KB
- references/exports.md 4 KB
- references/graph-format.md 8 KB
- references/localization.md 5 KB
- scripts/builder.py 5 KB
- scripts/export.py 7 KB
- scripts/hyperframes_export.py 6 KB
- scripts/inventory.py 9 KB
- scripts/repo_story.py 5 KB
- scripts/story_model.py 23 KB
Wersje
W bazie nie ma innych skilli o nazwie repo-visualizer.
Migawka bazy z 13.11.2026 · wersja paczki c939f8228553 (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
- 100database-schema-visualizer
Prawdopodobnie wizualizuje schematy baz danych jako treści wizualne. - 100interactive-map-repo
Wyjaśnia, jak działa repozytorium kodu, jako interaktywną mapę C4 z kontekstem, kontenerami i przepływami żądań, dla nowych osób w zespole. - 90explain-code
Wyjaśnia, jak działa funkcja, plik lub przepływ w kodzie, z odniesieniami do plików i linii. - 100wiki-qa
Odpowiada na pytania o repozytorium wyłącznie na podstawie dowodów z kodu źródłowego, na przykład jak działa funkcja lub gdzie zdefiniowano komponent. - 100rs-deps-visualizer
Wizualizuje w Rust zależności projektu jako rysunek ASCII, pokazując graf zależności na żądanie. - 100repo-tutor
Tworzy wizualny, wielostronicowy przewodnik HTML po lokalnym lub zdalnym repozytorium, tłumacząc prosto, jak działa system i jak go używać.