Skip to content
Back to skills

Atlas

ASecurity

Build or refresh the Atlas — inventory, dependency index and architecture diagrams — into .cosmos/ledger/atlas

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 3, 2026
ai-agentsgonodefastapidockerterraformapi

Works with

  • api

Security analysis

A100/100

Scanned October 3, 2026

npx -y skills add BiswajitBiswa/cosmos --skill atlas --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Atlas?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Atlas
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biswajitbiswa-atlas/badge)](https://www.skillsdirectory.com/skills/biswajitbiswa-atlas)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: atlas
description: "Build or refresh the Atlas — inventory, dependency index and architecture diagrams — into .cosmos/ledger/atlas"
---
<!-- written by cosmos (`cosmos connect` rewrites it; delete this line to keep your own version) -->
You are building the **Atlas** for this repository: a living architecture record that cosmos keeps in sync with the code. `cosmos atlas` has already produced a deterministic inventory (`.cosmos/ledger/atlas/inventory.md`, `containers.md`, `deployment.md`, `api.md`) — read those first, then deepen them in three passes and WRITE files; do not just answer in chat.

## Pass 1 — Inventory (no diagrams yet)
Read, in this order, whatever exists: repository root listing · monorepo workspaces · `package.json` / `pom.xml` / `build.gradle*` / `pyproject.toml` / `requirements*.txt` / `go.mod` · `docker-compose*.yml` · `k8s/**`, `helm/**` · `terraform/**` · `README*` · `.env.example` · OpenAPI / Swagger specs · CI workflows.
Update `inventory.md`: services and apps (name, language, entry point, port), data stores, queues/topics, external APIs, environments, and every config key from `.env.example` with which service reads it. Cite the file for each row. Never read `.env`, secrets or credentials.

## Pass 2 — Dependency index
Write `.cosmos/ledger/atlas/dependencies.md`: service → service calls, service → store, service → queue, and the public API surface (method, path, handler file, auth). Prefer facts found in code and specs over README claims; where they disagree record both and mark `DRIFT`.

## Pass 3 — Diagrams (Mermaid, one per file, each ending with a `## Sources` list and the HEAD commit)
1. `system-context.md` — actors, apps, external systems
2. `containers.md` — refine the generated one: protocols on edges, missing services
3. `data-flow.md` — the 2–3 flows that matter most to this product, end to end
4. `deployment.md` — from compose / k8s / Terraform: what runs where
5. `lanes.md` — group modules into feature lanes; propose a `lanes` mapping (lane → path globs) for `.cosmos/config.json`

Rules: every node must exist in the inventory; every edge must have a source file; use the team's own names; keep each diagram under 40 nodes (split if bigger).
Mermaid that renders (the console uses mermaid 10): `flowchart LR` or `TB`, never `graph`; node ids are plain words (`api_prod`, never `end`, `class`, `style`); every label in double quotes — `api["reten-api · FastAPI"]`, `db[("Postgres")]`, edge labels `-->|"POST /api/cron/{job}"|` — because ( ) { } [ ] | : ; # inside an unquoted label break the parse; no HTML except `<br/>`; one diagram per fenced block. Make it read at a glance: one `subgraph` per runtime or boundary (browser, API, workers, data, third parties), short labels (name · tech), details in the text below the diagram, and the same four classes in every diagram:
`classDef svc fill:#15151b,stroke:#E8CFA0,color:#ECEAE4` · `classDef store fill:#101820,stroke:#9FB8D0,color:#ECEAE4` · `classDef ext fill:#1b1414,stroke:#D89A9A,color:#ECEAE4,stroke-dasharray:4 3` · `classDef job fill:#141a16,stroke:#9CC9B0,color:#ECEAE4` — then `class a,b svc` etc.
`system-context.md` is the overall picture: at most 15 nodes, people and outside systems around the product, the one diagram someone new should look at first. Finish with `cosmos atlas --check` and print a 5-line summary of what changed since the previous Atlas.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.