agentleFS
BlazityBlazity/atlas/skills/atlas-setup/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Distinctive:

    Use this skill for first setup and later refreshes.

    line 10
  2. Distinctive:

    Run the phases below in order.

    line 14
  3. Distinctive:

    Before inspecting repository meaning, announce the deterministic setup steps you are about to run.

    line 18
  4. Distinctive:

    If a fix run rewrites files under the workspace skills directory (a newer published version landed), re-read this skill file before …

    line 32
  5. Very specific:

    If Atlas is missing or mostly uninitialized, run npx --yes @blazity-atlas/core@latest init.

    line 36
  6. Very specific:

    If doctor reports only fixable drift, run npx --yes @blazity-atlas/core@latest doctor --fix.

    line 37
  7. Very specific:

    If doctor --fix refuses because of a dirty worktree, stop and ask the user whether to commit, stash, or explicitly rerun with --force.

    line 38
  8. Very specific:

    If doctor reports manual conflicts, summarize those conflicts and stop before semantic setup.

    line 39
  9. Distinctive:

    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.

    line 43
  10. Distinctive:

    Keep the backfill bounded: do not read the whole history or every document, and note explicitly what was skipped.

    line 54
  11. Distinctive:

    Do not ask the user to pick a template name from a list.

    line 60
  12. Distinctive:

    Ask one focused question at a time, always with a recommended default.

    line 76
  13. Distinctive:

    Do not ask questions that repository inspection or the backfill already answered.

    line 78
  14. Distinctive:

    Keep questions focused on facts that affect future agent behavior.

    line 80
  15. Distinctive:

    Do not ask for nice-to-have background.

    line 95
  16. Very specific:

    Keep AGENTS.md concise and high-signal.

    line 101
  17. Very specific:

    Do not create new artifact roots.

    line 105
  18. Distinctive:

    Do not persist personal names, private schedules, internal-only references, absolute local paths, secrets, PII, task-only assumptions, or …

    line 115
  19. Very specific:

    Run npx --yes @blazity-atlas/core@latest doctor again — actually run it, never assume the result.

    line 120
  20. Very specific:

    After setup completes, reviews of AI tools and AI-assisted changes run through the sibling atlas-review skill.

    line 126
  21. Very specific:

    If the user accepts, or their prompt already explicitly asked to customize Atlas, read customization.md from this skill's directory and …

    line 132
  22. Distinctive:

    Use when the harness is new or mostly empty.

    line 139
  23. Distinctive:

    Use after major codebase, architecture, dependency, command, or product changes.

    line 143

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 doctor

Fall 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 doctor

If 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 doctor reports only fixable drift, run npx --yes @blazity-atlas/core@latest doctor --fix.
  • If doctor --fix refuses because of a dirty worktree, stop and ask the user whether to commit, stash, or explicitly rerun with --force. Do not use --force automatically.
  • If doctor reports manual conflicts, summarize those conflicts and stop before semantic setup.
  • Rerun npx --yes @blazity-atlas/core@latest doctor after any init or fix command.
  • Continue only when doctor exits clean. Advisory findings (doctor exits 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

  1. Locate the workspace config: read .ai/config.json, or when absent, follow the .atlas repo-root pointer to <root>/config.json. Resolve every artifact location through that config — the workspace root may not be .ai.
  2. Inspect the repository before asking questions: README, package metadata, lockfiles, framework configs, existing docs, tests, and agent instructions.
  3. 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 gh is 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.

  4. Infer only obvious facts from code. Route missing product, domain, ownership, and workflow details into the Context Gap Interview instead of guessing.
  5. 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:

  1. Inspect which conventional docs/* folders actually exist in the repository.
  2. Map them to template pathAliases. The templates are standard, app, library, monorepo, agency (the CLI's getTemplateNames()); they differ only in which conventional docs/* folders map into the workspace tree, so the labels stay but the moves are the interface.
  3. 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.
  4. Confirm with the user before applying. Apply by setting the config's template field and merging that template's pathAliases. Do not invent new artifact roots.
  5. Re-run npx --yes @blazity-atlas/core@latest doctor afterward 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.md concise and high-signal. Preserve human content and the Atlas managed block.
  • Fill LANGUAGE.md (the configured language path) with canonical terms and avoided synonyms.
  • Fill memory/product.md, memory/architecture.md, and memory/stack.md with stable facts only.
  • Append memory/lessons.md only 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.md and/or memory/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.md and/or memory/stack.md;
    • external systems -> memory/architecture.md when they affect architecture, or memory/product.md when they are product-facing;
    • durable tradeoffs or accepted decisions -> decisions/adrs.
  • 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

  1. Run npx --yes @blazity-atlas/core@latest doctor again — actually run it, never assume the result.
  2. As the final act of setup, flip setupState in <root>/config.json from "scaffolded" to "configured". No other write may follow this flip.
  3. Show a concise summary: files written and unknowns left.
  4. Suggest a commit of the setup result.
  5. 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.md from 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.