一键导入
atlas-setup
Use when a repository needs Atlas setup, repair/update, AGENTS.md refresh, AI memory refresh, vocabulary cleanup, or review after major codebase changes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a repository needs Atlas setup, repair/update, AGENTS.md refresh, AI memory refresh, vocabulary cleanup, or review after major codebase changes
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the repository has Atlas graph support enabled and needs a repo knowledge graph generated, refreshed, verified, or reviewed
Fixture skill with bounded read-only tool access
Malicious fixture skill
Use at session end to capture durable lessons, vocabulary, decisions, and memory promotion proposals in an Atlas workspace
Use when AI context needs cleanup — atlas doctor context-size advisories, an oversized AGENTS.md or CLAUDE.md, bloated memory or vocabulary files, or durable docs that need compaction, relocation, or dedup
Use when an AI tool idea, plan, implementation, release, or incident needs an Atlas review — deciding whether to build, planning, challenging a plan or implementation, gating a release or promotion, or running a postmortem
| name | atlas-setup |
| description | Use when a repository needs Atlas setup, repair/update, AGENTS.md refresh, AI memory refresh, vocabulary cleanup, or review after major codebase changes |
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.
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:
npx --yes @blazity-atlas/core@latest init.doctor reports only fixable drift, run npx --yes @blazity-atlas/core@latest doctor --fix.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.doctor reports manual conflicts, summarize those conflicts and stop before semantic setup.npx --yes @blazity-atlas/core@latest doctor after any init or fix command.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.
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.
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 -50gh is availableKeep 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.
Do not ask the user to pick a template name from a list. Detect the fit, show the moves, and confirm:
docs/* folders actually exist in the repository.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.docs/adrs/* → <root>/decisions/adrs/ — and name the template label those moves correspond to.template field and merging that template's pathAliases. Do not invent new artifact roots.npx --yes @blazity-atlas/core@latest doctor afterward and continue only when no fixable or manual findings remain.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:
Prioritize these missing-context topics:
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.
Resolve every path through the config from Phase 2 — never hardcode .ai/.
AGENTS.md concise and high-signal. Preserve human content and the Atlas managed block.LANGUAGE.md (the configured language path) with canonical terms and avoided synonyms.memory/product.md, memory/architecture.md, and memory/stack.md with stable facts only.memory/lessons.md only for proven non-obvious pitfalls.paths.memory/product.md;AGENTS.md and/or memory/stack.md;memory/architecture.md;memory/lessons.md, only when proven and non-obvious;AGENTS.md and/or memory/stack.md;memory/architecture.md when they affect architecture, or memory/product.md when they are product-facing;decisions/adrs.npx --yes @blazity-atlas/core@latest doctor again — actually run it, never assume the result.setupState in <root>/config.json from "scaffolded" to "configured". No other write may follow this flip.After setup completes, reviews of AI tools and AI-assisted changes run through the sibling atlas-review skill.
At the end of the flow, offer: want to tune layout, agent surfaces, or local skills?
customization.md from this skill's directory and follow that workflow.customization.md.Use when the harness is new or mostly empty. Build the first useful AI context for the repository.
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.
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.