atlas
/atlas
Tworzy dokumentację architektury, mapę zależności, diagramy i stronę MkDocs dla aplikacji, które mają zostać aktualne i wiarygodne, oraz wskazuje, co się zepsuje przy zmianie pliku.
- Autor
- lucianoadonis ↗
- Repozytorium
- neorgon-forge ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 9
- Skrypty
- 6
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.09.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 6 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/ask.py, scripts/atlas_model.py, scripts/build.py, scripts/diagram.py, scripts/render.sh, scripts/scan.py
Co robi i kiedy
Tworzy dokumentację architektury, mapę zależności, diagramy i stronę MkDocs dla aplikacji, które mają zostać aktualne i wiarygodne, oraz wskazuje, co się zepsuje przy zmianie pliku.
Wyzwalacze z opisu
Argumenty
/atlas [scan|build|ask|render] [target]
Oryginalny opis (EN)
Use when an app needs documentation that stays true, architecture docs, a dependency map, diagrams of how the pieces fit, or an MkDocs site. Triggers on: 'document this app', 'diagram the architecture', 'map the dependencies', 'map the inner workings', 'set up mkdocs', 'mermaid diagrams in mkdocs', 'what depends on this file', 'what breaks if I change this', 'where is change expensive', 'is this doc still accurate', 'what loads this stylesheet'. Extracts a dependency model from JS, Python, HTML and CSS, so a static site's real entry point is its index.html rather than a guessed module, generat
Jak działa
- Step 1: build the model
- Step 2: look at the model before publishing anything
- Step 3: generate the corpus
- Step 4: answer questions from the model
- Step 5: diagrams, and which target they need
- Step 6: keep it honest over time
- Step 7: check the model against the language, where there is one
- Where this sits
- Invariants
Podgląd SKILL.md
--- name: atlas description: "Use when an app needs documentation that stays true, architecture docs, a dependency map, diagrams of how the pieces fit, or an MkDocs site. Triggers on: 'document this app', 'diagram the architecture', 'map the dependencies', 'map the inner workings', 'set up mkdocs', 'mermaid diagrams in mkdocs', 'what depends on this file', 'what breaks if I change this', 'where is change expensive', 'is this doc still accurate', 'what loads this stylesheet'. Extracts a dependency model from JS, Python, HTML and CSS, so a static site's real entry point is its index.html rather than a guessed module, generates the Mermaid diagrams and MkDocs pages from that model rather than beside it, then answers questions against it with file:line citations that can be disproved, so the docs go stale loudly instead of silently. Not for Mermaid syntax questions (use mermaid-diagrams), not for choosing a C4 level (use c4-architecture), not for finding where a ticket's change goes (use wayfind)." argument-hint: "[scan|build|ask|render] [target]" user-invocable: true license: MIT --- # atlas: an app's dependencies as a model, a doc site, and a thing you can ask Extracts a dependency model from the source, then generates every diagram and doc page *from that model* rather than beside it. The failure mode it exists to prevent: architecture docs that were true once. A hand-drawn diagram goes stale silently: it keeps looking authoritative, and the first reader who trusts it after a refactor is misled with no warning. A generated one goes stale loudly, because the model records the commit it was built from and `ask stale` compares that against the tree. Everything here reads one file. Diagrams, pages, and answers all derive from `docs/atlas/model.json`, so they cannot disagree with each other, only, together and visibly, with the code. Everything it *writes* goes under one directory, `docs/atlas/`. That is a deliberate constraint rather than a filing preference: the boundary between generated and hand-owned pages is only useful if a person can hold it in their head, and a boundary spread over three directories is one somebody eventually edits across without noticing they have. ## Step 1: build the model ```bash FORGE=~/.claude # the directory containing skills/, every forge skill uses this shape cd <the project> python3 "$FORGE/skills/atlas/scripts/scan.py" ``` Scans `.js/.mjs/.jsx/.ts/.tsx/.py/.html/.css` and writes `docs/atlas/model.json`: modules with a role and an area, internal import edges each carrying the `file:line` the import was found on, and external packages with their importers. **A static site's entry point is its HTML.** `index.html` is what loads the scripts and stylesheets, so scanning JS alone leaves the real root of the graph out of the model and measures "distance from an entry point" from whatever module happened to import nothing. `<script src>`, `<link rel=stylesheet>` and CSS `@import` are read as edges; `rel="canonical"`, `preconnect` and `url()` font references are not, because they name a URL the page talks *about* rather than one it loads. Remote stylesheets come back as a host rather than a package, so a CDN does not appear beside npm dependencies. Read the summary it prints before going on. Three lines there change what you do next: | It says | It means | Do | |---|---|---| | `areas from wayfind` | `.forge/map-areas.tsv` exists | Nothing: areas are already in the user's words | | `areas from directory tree` | Areas were derived from containing directories | Consider running `wayfind` first, or accept directory names | | `working tree is dirty` | Provenance will name a commit the pages don't match | Fine while iterating; commit before publishing | | `no git commit` | Staleness cannot be measured at all | Say so: the corpus has no way to warn a future reader | **If the areas are directory names, the area diagram is a picture of the folder layout.** That is worth something but it is not architecture. `wayfind` names areas the way the people working there name them, and `scan.py` picks those up automatically; the two skills are designed to compose in that order. ## Step 2: look at the model before publishing anything ```bash python3 "$FORGE/skills/atlas/scripts/ask.py" risk ``` Read this yourself first. It reports hubs, import cycles, and modules nothing imports, and those are findings, not decoration. A cycle you did not know about changes the architecture description you were about to write. An orphan list with six entries means either dead code or a scan that missed an entry point, and publishing before deciding which bakes the wrong answer into a doc. **Do not describe the app to the user from the model alone.** The model knows imports; it does not know what the app is *for*. `docs/index.md` is left hand-written for exactly that reason. ## Step 3: generate the corpus ```bash python3 "$FORGE/skills/atlas/scripts/build.py" --scaffold ``` Writes into `docs/atlas/reference/`: `architecture.md`, `dependencies.md`, `modules.md`, and one `area-*.md` per area. With `--scaffold` it also writes `mkdocs.yml` and a `docs/index.md` stub, and it never overwrites either if they exist. The `docs/atlas/` boundary is the whole discipline: | Location | Owner | Rule | |---|---|---| | `docs/atlas/` | `atlas` | Everything under here is generated. Never edit: rerun `scan.py` then `build.py` | | `docs/atlas/model.json` | `scan.py` | The single source every page, diagram and answer derives from | | `docs/atlas/reference/*` | `build.py` | The MkDocs pages. Every one says it is generated in an admonition | | `docs/atlas/diagrams/*` | `diagram.py` | Export-target `.mmd` and whatever `render.sh` produced beside it | | `docs/index.md`, everything else in `docs/` | You | `atlas` never touches it | One root, not three. The line a reader has to keep straight is "inside `docs/atlas/` is generated, outside it is yours". A line that simple gets respected, where "generated pages live in one place, the model in a second, the diagrams in a third" is a rule someone edits across while believing they are inside it. Without the split the corpus becomes a place where some pages are current and some are stale with nothing to tell them apart, which is worse than having no corpus: a reader trusts it either way. **`model.json` is not hidden, so MkDocs copies it into the built site.** That is intended. The whole claim this skill makes is that its assertions can be checked, and a reader who wants to check one should be able to fetch the model the page was generated from rather than be told it exists somewhere in the repo. Verify it builds, if MkDocs is available: ```bash mkdocs build --strict # or: python3 -m mkdocs build --strict ``` **MkDocs may not be installed, and that is not a failure.** The Markdown is valid either way. Say plainly that the corpus was generated but not built, and offer `pip install mkdocs-material`: do not report a working docs site you never rendered. ## Step 4: answer questions from the model ```bash python3 "$FORGE/skills/atlas/scripts/ask.py" impact schema # what breaks if I change this python3 "$FORGE/skills/atlas/scripts/ask.py" needs render # what I must understand first python3 "$FORGE/skills/atlas/scripts/ask.py" where card # which modules match a term python3 "$FORGE/skills/atlas/scripts/ask.py" layers # distance from an entry point python3 "$FORGE/skills/atlas/scripts/ask.py" areas # sizes and coupling python3 "$FORGE/skills/atlas/scripts/ask.py" stale # does the model still hold ``` Query the model, not the generated pages. The pages are prose *about* the model and prose loses the structure: "what depends on `schema.js` transitively" is one lookup here and a reading-comprehension exercise there. `impact` and `needs` print the `file:line` of each direct import, so any claim in the answer can be checked in seconds. Quote those locations when you answer, an unlocated dependency claim is indistinguishable from a guess. **Run `stale` before answering anything consequential**, and lead with what it says. An answer from a stale model reads exactly like an answer from a current one, which is the specific way this kind of tool does damage. ## Step 5: diagrams, and which target they need This is the one thing about Mermaid-in-MkDocs that is easy to get wrong, and it is not a syntax question: it is a theming one. | Target | Where it goes | Theme | Why | |---|---|---|---| | `page` | A fence inside a Markdown page | **None emitted** | Material injects theme variables from the active palette. A baked theme wins and the diagram then stays dark on the light scheme | | `export` | A standalone `.mmd` rendered to SVG/PNG | Baked in | Nothing else supplies one | ```bash D="$FORGE/skills/atlas/scripts/diagram.py" python3 "$D" areas --target page # fences: build.py embeds these python3 "$D" flow --target export --out docs/atlas/diagrams/flow.mmd python3 "$D" focus --focus state --target export --out docs/atlas/diagrams/state.mmd bash "$FORGE/skills/atlas/scripts/render.sh" docs/atlas/diagrams --png ``` `build.py` already embeds the page-target fences, so generate `export` diagrams only for things that leave the site: a slide, a README, a post. Kinds: `areas` (coupling between areas, arrows labelled with the import count), `flow` (the dependency spine), `area-detail --area NAME`, `focus --focus PATH` (one module's importers above and dependencies below), `externals`. Two rules that bite immediately, so they stay here: **`<br/>` for line breaks, never `\n`.** Mermaid 11 renders labels through an HTML `foreignObject`, where a literal backslash-n is two characters of text. `render.sh` refuses a file containing one rather than emitting a diagram that looks subtly broken. This is a live regression, not a hypothetical. **Shape carries role; colour only emphasises.** A shape survives a palette switch, greyscale printing, and a colourblind reader; a legend mapping hex values to roles survives none of them. The rest of the visual reasoning: why `flow` draws a spine instead of every edge, why fan-out goes left-to-right, why every reduction is counted in a `%%` comment, the full shape vocabulary, the verified Material contract, and what breaks with each extension missing: is in **`reference/mkdocs.md`**. Read it when scaffolding `mkdocs.yml` by hand, when a fence renders as a code block, or before changing how a diagram is drawn. For Mermaid *syntax*: sequence diagrams, class diagrams, participant declarations: use the `mermaid-diagrams` skill. For choosing a C4 level, use `c4-architecture`. Note that Material auto-themes only flowchart, sequence, class, state and ER; **C4 diagrams are not auto-themed**, so a C4 diagram in a page fence needs its own styling or belongs in `export`. ## Step 6: keep it honest over time ```bash python3 "$FORGE/skills/atlas/scripts/ask.py" stale python3 "$FORGE/skills/atlas/scripts/scan.py" && python3 "$FORGE/skills/atlas/scripts/build.py" ``` `stale` asks git, not the filesystem: a file touched but not changed has a new mtime and identical content, and an mtime check that reports drift which does not exist gets ignored within a week. It also ignores changes under `docs/` and `site/`, since those are this skill's own output and counting them would make the check fire on every single run. ## Step 7: check the model against the language, where there is one A dependency model knows what the code calls things. It does not know what the *project* calls them, and the gap between the two is where a reader gets lost: the glossary says **decision ticket** and the module is `items.js`. When `.forge/context.md` exists (written by `grill`), read it and report the drift, both directions: - **A glossary term with no home in the model.** Either the concept lives somewhere the extractor cannot see, or it is vocabulary the code never adopted. Both are worth a line in the docs. - **A model node whose name contradicts the glossary's `_Avoid_` list.** The code is using a word the project decided against. That is a rename someone owes, and naming it is cheaper than rediscovering it. **On saying which one is older.** A term carries `· agreed <date>`, and that date against the file's git history is what lets the report say which side moved. Where the term has no date, which is every hand-written glossary today, report the disagreement **without** the ordering and say the date is missing. Never guess which side moved: `.forge/` is ephemeral and gitignored by the worked repo, so there is no history to fall back on. **Report it, never rewrite it.** Renaming a module to match a glossary is a change to the code, which is `task`'s job and needs the user's agreement. Atlas's job ends at saying the two disagree, and at which one is older. Where no `context.md` exists, skip this step in silence rather than inventing a glossary. A generated glossary is a second set of names with nothing behind it. ## Where this sits | Situation | Skill | |---|---| | You do not know where a change goes | `wayfind` | | You need areas named the way the team names them | `wayfind`, then `atlas` | | The app needs documentation that can be checked | `atlas` | | You need to know what a change will break | `atlas ask impact` | | How do I write this particular Mermaid diagram | `mermaid-diagrams` | | Which C4 level fits this audience | `c4-architecture` | | Explaining work you just did, to people | `debrief` / `writeup` | `atlas` documents the app as it *is*. `writeup` explains a change that was made. Pointing `atlas` at a diff, or `writeup` at an architecture, produces something that is neither. ## Invariants - **Never hand-edit anything under `docs/atlas/`.** It is overwritten on the next build, and an edit there is a fact that exists only until someone reruns. Nothing outside that root is ever written by this skill. - **Never point mermaid-cli at a Markdown page.** It rewrites the file in place, replacing every fence with an image link. Only ever `.mmd`. - **No theme frontmatter in a page fence, always one in an export.** Getting this backwards is invisible until someone switches palette. - **Quote the `file:line` for any dependency claim.** The model records it precisely so the answer can be disproved. - **Report `stale` before answering from the model**, and never present a corpus as built unless `mkdocs build` actually ran.
Pliki w paczce (9)
- SKILL.md 14 KB
- agents/openai.yaml 1 KB
- reference/mkdocs.md 9 KB
- scripts/ask.py 10 KB
- scripts/atlas_model.py 6 KB
- scripts/build.py 12 KB
- scripts/diagram.py 15 KB
- scripts/render.sh 4 KB
- scripts/scan.py 13 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · lucianoadonis/neorgon-forge | 100 | MIT |
| ariga/atlas | 100 | Apache-2.0 |
| jscraik/Agent-Skills | 100 | Apache-2.0 |
| sergio-sisternes-epam/atlas | 100 | Apache-2.0 |
| vvdsbhffgh-sudo/live-browser-skill | 95 | MIT |
| jjibrah/atlas-plugin | 90 | MIT |
| harmix/open-stanley | 90 | MIT |
| tonone-ai/tonone | 85 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 004f32c94585 (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
- 100mkdocs
Buduje strony dokumentacji projektu generatorem statycznym MkDocs: instalacja, konfiguracja, motywy, wtyczki i wdrożenie z plików Markdown. - 95docs-manager
Zarządza dokumentacją w MkDocs i Markdown: tworzy lub aktualizuje README, CONTRIBUTING i witrynę docs oraz przygotowuje podsumowania zmian. - 100docs-manager
Zarządza dokumentacją stron MkDocs i samodzielnych plików markdown: inicjuje, generuje i aktualizuje dokumenty oraz tworzy podsumowania zmian. - 100mkdocs
Prowadzi pracę z MkDocs i motywem Material for MkDocs: konfiguracja mkdocs.yml, wyszukiwanie, nawigacja, rozszerzenia Markdown, wdrożenie na GitHub Pages i wersjonowanie przez mike. - 100mkdocs-config-generator
Prawdopodobnie generuje konfigurację MkDocs w ramach dokumentacji technicznej. - 100atlas-map
Mapuje architekturę systemu: czyta kod, identyfikuje usługi i połączenia i tworzy mapę na poziomie C4 jako diagramy Mermaid z opisami komponentów.