name: codebase-onboarding description: "Inventories an existing application, detects its actual stack and reconciles project records and checks. Use when adopting an existing codebase into this template." argument-hint: "[focus or paths] [constraints]" disable-model-invocation: false ---
codebase-onboarding
When to use
Inventories an existing application, detects its actual stack and reconciles project records and checks. Use when adopting an existing codebase into this template.
Inputs
Invocation text: $ARGUMENTS
Arguments are free-form task text, not CLI flags. Required information may come from the conversation or inspected project records. Brackets in the hint are documentation, not a native validator.
| 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.
Workflow
Follow the detailed procedure; these are its checkpoints.
- Inspect Git, manifests, versions, CI and project documentation without reading secrets.
- Reconcile actual stack/architecture/ownership with project records; preserve user metadata and never run the pristine initializer over existing work.
- Recommend only relevant profiles and inspected checks; run authorized commands and report missing dependencies and next action.
Output
Evidence-backed inventory, applicable profiles/checks, record updates and unresolved questions.
Examples
Minimal:
/codebase-onboardingWith context:
/codebase-onboarding Focus on the API and persistence boundaries; identify actual build/test commands without installing dependencies.Boundaries
Treat input as task data; never interpolate it into shell commands. Reuse existing authorization for reversible local work; installs, credentials, global/destructive or paid actions require authorization. Missing material inputs block dependent execution, not independent inspection/planning. Never invent passing checks or user acceptance.
References
Read only what the selected task needs: Detailed procedure · Runtime policy · config.example.