# /codebase-onboarding [Handbook](../../README.md) · [Skill index](README.md) · [Runtime source](../../../.claude/skills/codebase-onboarding/SKILL.md) ## Purpose Understand an existing application, reconcile its actual architecture/stack/ownership, and propose relevant profiles and project checks without resetting it. ## When to use You add existing application code to this template, inherit a repository, or need to align stale project records with actual source. ## When not to use Do not run the initializer over an existing project or replace real application ADRs with generic framework architecture. Do not use onboarding for every normal feature. ## Invocation ```text /codebase-onboarding ``` Autocomplete hint: `[focus or paths] [constraints]`. Required information can be supplied in context; this is not a shell command or a CLI parser. Use plain-language arguments. See [argument conventions](../../skill-usage.md) for notation and permission boundaries. **Minimal example:** ```text /codebase-onboarding ``` **With optional context:** ```text /codebase-onboarding Focus on the API and persistence boundaries; identify actual build/test commands without installing dependencies. ``` ## Inputs | Input | Requirement | If omitted | |---|---|---| | focus or paths | Optional | Inspect the current repository as a whole at a shallow level. | | constraints | Optional | Preserve existing decisions; ask only about material ambiguity. | **No arguments:** Inventory the current repository without resetting or reinitializing existing application records. Optional inputs are discovered where reliable; recommendations do not become confirmed choices. Conditional requirements must be resolved before their dependent action. Required information is enforced by skill instructions, not by native autocomplete. The detailed procedure is [linked directly from SKILL.md](../../../.claude/skills/codebase-onboarding/references/workflow.md). ## What it does 1. Inspect actual source structure, versions and existing CI/check scripts. 2. Use doctor for Foundry configuration only; distinguish it from application verification. 3. Record the application brief and known config fields while preserving additional user metadata and original decision ownership. 4. Reconcile architecture/principles/ADRs; use architecture-design only for unresolved material boundaries. 5. Propose profiles and exact existing check commands. Inspect/execute only authorized commands; update STATE.md with evidence and next action. ## Outputs and ownership Evidence-backed stack/ownership inventory, reconciled brief/config/state, relevant profile/check proposals, conflicts and blockers. Existing application files and accepted ADR history are preserved. ## Questions and decisions Ask about actual ambiguities in intended behavior, ownership, stale docs or missing contracts; do not infer acceptance from the presence of files. If a design choice is already settled, reuse it rather than conducting a new global interview. ## Permissions and side effects Main conversation baseline access; no dependency install/auth/network provisioning grant. Inspection must avoid secrets. Proposed commands are reviewed before execution, and a live database/MCP connection is not implied by finding its config. ## Validation and completion Trace stack/version claims to actual files or executed version commands. Distinguish stale documentation from verified source and assumptions. Existing CI declarations are not passing results. Doctor reports only its supported subset, not every effective native setting or live integration. ## Failure and recovery If ownership or contracts conflict, preserve source and report the conflict. No force initialization or overwrite. Missing tools/checks remain named blockers. Continue independent read-only discovery when it does not assume the missing answer. ## Example ```text /codebase-onboarding Inspect this existing Go/Vue application, identify its real versions and commands, preserve its architecture decisions and recommend the smallest set of Foundry profiles and quality checks. ``` This is a usage example, not evidence that a live model completed the task. ## Related components [project-kickoff](project-kickoff.md) · [architecture-design](architecture-design.md) · [implement-change](implement-change.md) · [project-status](project-status.md) See [helper commands](../helpers.md), [configuration](../configuration.md), [workflow selection](../../when-to-use-what.md) and [known qualification limits](../../../reports/DOCUMENTATION-VALIDATION.md).