08. Entering an existing Repo for the first time
Use this when you first enter an unfamiliar repository that already has code and need to understand "what this codebase looks like." Conversely, if you are designing a new project from a blank slate, go to 07.
08. Entering an existing Repo for the first time
When to use this flow
Use this when you first enter an unfamiliar repository that already has code and need to understand "what this codebase looks like." Conversely, if you are designing a new project from a blank slate, go to 07. Starting a new Project. These two flows move in opposite directions and should not be used together in the same session.
What it does
ywc-onboard-repo uses Glob/Grep reconnaissance to extract tech stack / architecture / conventions and produce two things.
- Onboarding Guide - A document printed directly in the conversation (Tech Stack, Architecture, Key Entry Points, Directory Map, Request Lifecycle, Conventions, and more)
- Starter CLAUDE.md - A file written to the repo root. If
CLAUDE.mdalready exists, it is not overwritten; it is augmented with a## Detected Conventionssection.
Example run
Default run - inspect the whole repo and generate both Onboarding Guide and Starter CLAUDE.md
ywc-onboard-repoywc-onboard-repoInspect only a specific workspace in a monorepo
ywc-onboard-repo --scope apps/web/ywc-onboard-repo --scope apps/web/When you need only the explanatory document, not Starter CLAUDE.md
ywc-onboard-repo --guide-onlyywc-onboard-repo --guide-onlyWhen you need only CLAUDE.md, not the Onboarding Guide
ywc-onboard-repo --claude-md-onlyywc-onboard-repo --claude-md-onlyWhat to do next
- If reconnaissance finds accumulated dead code, the result report includes guidance. Split follow-up cleanup into a separate PR with
ywc-refactor-clean; do not mix it into the onboarding PR. - Once you have read the Onboarding Guide, move on to the normal development flow for changing existing code. Start with 02. Core concepts to confirm the Small/Medium/Large scale criteria.
Previous: 07. Starting a new Project - Next: 09. Writing and running Tests