Atlas Contributor
Use this skill for any non-trivial Atlas codebase change. Start from source truth, keep package boundaries intact, and validate the behavior at the narrowest useful layer before running repo-wide gates.
Workflow
Locate ownership.
- Apps own user-facing surfaces:
apps/clifor commands and terminal output,apps/serverfor HTTP/OpenAPI/MCP mounting. - Packages own domain behavior:
corecontracts,configloading,source-*acquisition,topologyclassification,compilerMarkdown artifacts,tokenizerchunks,storepersistence/search,retrievalranking/context,indexersync/build orchestration,mcpprotocol surfaces,testkitfixtures/eval. - Do not put package-layer logic into apps.
- Apps own user-facing surfaces:
Read the nearest docs and tests.
- Root architecture:
docs/architecture.md. - Package/app docs:
apps/*/docs/index.mdandpackages/*/docs/index.md. - Module docs:
*/src/<module>/docs/index.md. - Tests usually live at package/app roots or beside the relevant module.
- Root architecture:
Preserve contract direction.
@atlas/coreshould not depend on higher packages.- Source adapters implement
RepoSourceAdapter; they do not classify or persist docs. - Indexer coordinates source, topology, compiler, tokenizer, and store.
- Retrieval reads persisted local artifacts; it should not fetch remote source.
- MCP adapts store/retrieval behavior to protocol tools/resources/prompts.
Make scoped changes.
- Add shared types in
coreonly when more than one package needs the contract. - Add schemas at runtime boundaries: CLI args, HTTP requests, MCP tool inputs, config files.
- Keep errors structured and diagnostics sanitized; never leak tokens.
- Update docs when behavior, public surfaces, config, or workflow expectations change.
- Add shared types in
Validate.
- Run the narrow test first, such as
bun test packages/topologyorbun test apps/server. - Run repo gates before finalizing:
bun run typecheck,bun run lint,bun test. - For docs/skills changes, run
python skills/document-codebase/scripts/check_markdown_links.py ..
- Run the narrow test first, such as
Common Skill Handoffs
- CLI command work: use
$add-cli-command. - HTTP route work: use
$add-http-route. - MCP tool work: use
$add-mcp-tool. - Build pipeline work: use
$change-build-pipeline. - Document or skill classification work: use
$change-doc-classification.