atlas-setup
Skill26 starsChanged 5 months agoMITView on GitHub
Use when a repository needs Atlas setup, repair/update, AGENTS.md refresh, AI memory refresh, vocabulary cleanup, or review after major codebase changes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- curv-institute/atlastheir own version, first seen Jul 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- curv-institute/atlas★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- atlas-compactSkill
- atlas-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 14 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill for first setup and later refreshes.
- Distinctive: line 14
Run the phases below in order.
- Distinctive: line 18
Before inspecting repository meaning, announce the deterministic setup steps you are about to run.
- Distinctive: line 32
If a fix run rewrites files under the workspace skills directory (a newer published version landed), re-read this skill file before …
- Very specific: line 36
If Atlas is missing or mostly uninitialized, run npx --yes @blazity-atlas/core@latest init.
- Very specific: line 37
If doctor reports only fixable drift, run npx --yes @blazity-atlas/core@latest doctor --fix.
- Very specific: line 38
If doctor --fix refuses because of a dirty worktree, stop and ask the user whether to commit, stash, or explicitly rerun with --force.
- Very specific: line 39
If doctor reports manual conflicts, summarize those conflicts and stop before semantic setup.
- Distinctive: line 43
If the current directory is not a git repository, stop and ask the user to run the skill from the repository root or initialize git first.
- Distinctive: line 54
Keep the backfill bounded: do not read the whole history or every document, and note explicitly what was skipped.
- Distinctive: line 60
Do not ask the user to pick a template name from a list.
- Distinctive: line 76
Ask one focused question at a time, always with a recommended default.
- Distinctive: line 78
Do not ask questions that repository inspection or the backfill already answered.
- Distinctive: line 80
Keep questions focused on facts that affect future agent behavior.
- Distinctive: line 95
Do not ask for nice-to-have background.
- Very specific: line 101
Keep AGENTS.md concise and high-signal.
- Very specific: line 105
Do not create new artifact roots.
- Distinctive: line 115
Do not persist personal names, private schedules, internal-only references, absolute local paths, secrets, PII, task-only assumptions, or …
- Very specific: line 120
Run npx --yes @blazity-atlas/core@latest doctor again — actually run it, never assume the result.
- Very specific: line 126
After setup completes, reviews of AI tools and AI-assisted changes run through the sibling atlas-review skill.
- Very specific: line 132
If the user accepts, or their prompt already explicitly asked to customize Atlas, read customization.md from this skill's directory and …
- Distinctive: line 139
Use when the harness is new or mostly empty.
- Distinctive: line 143
Use after major codebase, architecture, dependency, command, or product changes.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Set Up Atlas
Overview
Use this skill for first setup and later refreshes. The published CLI owns deterministic structure; this skill owns semantic repository understanding.
Humans and agents use the same deterministic entrypoint. Do not reimplement init, doctor, path repair, symlink repair, or managed file repair inside this skill. Call the CLI through npx, preferring a locally installed @blazity-atlas/core (npx --no-install @blazity-atlas/core …) and falling back to the published package only when none is installed. Every npx --yes @blazity-atlas/core@latest … command in this skill is the fallback spelling of that rule, not an instruction to skip the local copy.
Run the phases below in order.
Phase 1 — Deterministic Bootstrap
Before inspecting repository meaning, announce the deterministic setup steps you are about to run.
From the repository root, run the Atlas CLI. Prefer a locally installed copy so the run works offline and matches the version that shipped this skill:
npx --no-install @blazity-atlas/core doctorFall back to the published package only when that fails because the package is not installed locally (npx cannot find it — not when doctor itself reports findings):
npx --yes @blazity-atlas/core@latest doctorIf a fix run rewrites files under the workspace skills directory (a newer published version landed), re-read this skill file before continuing.
Then follow the CLI result:
- If Atlas is missing or mostly uninitialized, run
npx --yes @blazity-atlas/core@latest init. - If
doctorreports only fixable drift, runnpx --yes @blazity-atlas/core@latest doctor --fix. - If
doctor --fixrefuses because of a dirty worktree, stop and ask the user whether to commit, stash, or explicitly rerun with--force. Do not use--forceautomatically. - If
doctorreports manual conflicts, summarize those conflicts and stop before semantic setup. - Rerun
npx --yes @blazity-atlas/core@latest doctorafter any init or fix command. - Continue only when
doctorexits clean. Advisory findings (doctorexits 0) do not count as unclean — they are signals this skill resolves in later phases. Only fixable or manual findings block this phase.
If the current directory is not a git repository, stop and ask the user to run the skill from the repository root or initialize git first.
Phase 2 — Grounding Scan
- Locate the workspace config: read
.ai/config.json, or when absent, follow the.atlasrepo-root pointer to<root>/config.json. Resolve every artifact location through that config — the workspace root may not be.ai. - Inspect the repository before asking questions: README, package metadata, lockfiles, framework configs, existing docs, tests, and agent instructions.
Brownfield backfill — mine recent history for candidate decisions, pitfalls, and vocabulary to seed memory and lessons:
git log --oneline -50- recent PR titles, when a forge CLI such as
ghis available - existing legacy docs already in the repo (ADRs, changelogs, design notes, wikis)
Keep the backfill bounded: do not read the whole history or every document, and note explicitly what was skipped. Treat mined facts as candidates to confirm, not established truths.
- Infer only obvious facts from code. Route missing product, domain, ownership, and workflow details into the Context Gap Interview instead of guessing.
- Mark unknowns explicitly instead of inventing facts.
Phase 3 — Template Detect-and-Confirm
Do not ask the user to pick a template name from a list. Detect the fit, show the moves, and confirm:
- Inspect which conventional
docs/*folders actually exist in the repository. - Map them to template
pathAliases. The templates arestandard, app, library, monorepo, agency(the CLI'sgetTemplateNames()); they differ only in which conventionaldocs/*folders map into the workspace tree, so the labels stay but the moves are the interface. - Propose the merge as the concrete file moves that would happen — for example
docs/adrs/* → <root>/decisions/adrs/— and name the template label those moves correspond to. - Confirm with the user before applying. Apply by setting the config's
templatefield and merging that template'spathAliases. Do not invent new artifact roots. - Re-run
npx --yes @blazity-atlas/core@latest doctorafterward and continue only when no fixable or manual findings remain.
Phase 4 — Context Gap Interview
Build a missing-context list before asking anything. Use only what you inspected in code, README, package metadata, existing docs, AGENTS.md, memory, vocabulary, decisions, and bounded history. Ask only when the answer affects future agent behavior, setup quality, or safety.
Open with the fast path: ask whether the user wants to accept all recommended defaults from grounding. If yes, skip the interview and proceed with those recommendations.
Otherwise:
- Ask one focused question at a time, always with a recommended default.
- Hard budget: about 6 questions total. Spend it on the highest-leverage unknowns; record lower-priority unknowns instead of asking more.
- Do not ask questions that repository inspection or the backfill already answered.
- Explain the evidence gap briefly before the question.
- Keep questions focused on facts that affect future agent behavior.
Prioritize these missing-context topics:
- Product purpose.
- Target users.
- Current direction.
- Deploy/runtime expectations.
- Architectural invariants.
- Recurring pitfalls.
- Safe commands.
- Branch/release workflow.
- Domain vocabulary.
- External systems.
Do not ask for nice-to-have background. If a lower-priority fact is useful but not blocking, record it as an explicit unknown in the setup summary or relevant artifact instead of extending the interview.
Phase 5 — Artifact Generation
Resolve every path through the config from Phase 2 — never hardcode .ai/.
- Keep
AGENTS.mdconcise and high-signal. Preserve human content and the Atlas managed block. - Fill
LANGUAGE.md(the configuredlanguagepath) with canonical terms and avoided synonyms. - Fill
memory/product.md,memory/architecture.md, andmemory/stack.mdwith stable facts only. - Append
memory/lessons.mdonly for proven non-obvious pitfalls. - Do not create new artifact roots. Use the config's
paths. - Persist answers only after deciding they are stable repository context. Resolve every destination through the config:
- product purpose, target users, current direction ->
memory/product.md; - deploy/runtime expectations, safe commands ->
AGENTS.mdand/ormemory/stack.md; - architectural invariants ->
memory/architecture.md; - domain vocabulary -> the configured language path;
- recurring pitfalls ->
memory/lessons.md, only when proven and non-obvious; - branch/release workflow ->
AGENTS.mdand/ormemory/stack.md; - external systems ->
memory/architecture.mdwhen they affect architecture, ormemory/product.mdwhen they are product-facing; - durable tradeoffs or accepted decisions ->
decisions/adrs.
- product purpose, target users, current direction ->
- Do not persist personal names, private schedules, internal-only references, absolute local paths, secrets, PII, task-only assumptions, or transient status in durable artifacts.
- Depersonalize everything durable: record needs, decisions, and reasons — never individuals or internal process. Write "memory was needed to persist context across runs", not "
<name>wanted memory". Keep personal names, private schedules, internal-only references, and absolute local paths out of workspace artifacts.
Phase 6 — Verify and Handover
- Run
npx --yes @blazity-atlas/core@latest doctoragain — actually run it, never assume the result. - As the final act of setup, flip
setupStatein<root>/config.jsonfrom"scaffolded"to"configured". No other write may follow this flip. - Show a concise summary: files written and unknowns left.
- Suggest a commit of the setup result.
- Offer one first-value proof: answer one nontrivial question about the repository using only workspace content — in a fresh agent context (spawn a subagent restricted to AGENTS.md and the workspace when available; otherwise quote the exact workspace passages used). Cite the files the answer came from. The same context window that just wrote the files does not count as proof.
After setup completes, reviews of AI tools and AI-assisted changes run through the sibling atlas-review skill.
Phase 7 — Customization Offer
At the end of the flow, offer: want to tune layout, agent surfaces, or local skills?
- If the user accepts, or their prompt already explicitly asked to customize Atlas, read
customization.mdfrom this skill's directory and follow that workflow. - Otherwise, do not read
customization.md.
Modes
Initial Setup
Use when the harness is new or mostly empty. Build the first useful AI context for the repository.
Refresh
Use after major codebase, architecture, dependency, command, or product changes. Compare existing AI context with the current repository and update only stale or missing facts.
Quality Bar
AGENTS.md should help an agent work safely within the first minute: what this repo is, how it is structured, what commands are safe, what rules matter, and what not to touch. Prefer short factual sections over long prose.
atlas doctor reports context-size advisories with heuristic character budgets. Treat them as prompts to compact or relocate context, not as model limits. Use the atlas-compact skill (or atlas doctor --handoff context-size) when oversized files need a focused cleanup plan.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

