원클릭으로
codebase-onboarding
Explore and document an unfamiliar codebase. Use when joining a new project or generating project documentation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Explore and document an unfamiliar codebase. Use when joining a new project or generating project documentation.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | codebase-onboarding |
| description | Explore and document an unfamiliar codebase. Use when joining a new project or generating project documentation. |
| origin | FlowDeck |
Systematically maps an unfamiliar codebase into structured documentation. Factual only — no speculation.
Activate when:
UNKNOWN — needs verification# 1. Top-level structure
ls -la
# 2. Package manifest
cat package.json # Node.js
cat go.mod # Go
cat Cargo.toml # Rust
cat requirements.txt # Python
# 3. Entry points
find . -name "index.*" -o -name "main.*" | grep -v node_modules | grep -v dist | grep -v .git
# 4. Directory structure
find . -maxdepth 2 -type d | grep -v node_modules | grep -v .git | grep -v dist
# 5. Test structure
find . -name "*.test.*" -o -name "*.spec.*" | grep -v node_modules | head -20
Findings:
Read the most important files:
Produce a component diagram:
Client
→ HTTP (port 3000)
→ Express Router (src/routes/)
→ Services (src/services/)
→ Repository (src/db/)
→ PostgreSQL
Read 5-10 source files and note patterns:
# Naming conventions
grep -n "export function\|export const\|export class" src/ -r | head -20
# Error handling
grep -n "catch\|throw\|Error(" src/ -r | head -20
# Async patterns
grep -n "async\|await\|Promise" src/ -r | head -20
Conventions to identify:
# Codebase Onboarding: [Project Name]
## Phase 1: Reconnaissance
**Runtime**: Node.js v20 / Python 3.11 / Go 1.21
**Framework**: Express 4.18 / FastAPI / Echo
**Package manager**: npm / pip / cargo
**Entry point**: `src/index.ts:1`
**Test framework**: vitest / pytest / go test
## Phase 2: Architecture
**Pattern**: Layered (Routes → Services → Repository → Database)
**Database**: PostgreSQL via Prisma ORM
**Auth**: JWT via `src/middleware/auth.ts`
**Component Diagram**:
[diagram]
**Key Files**:
| File | Purpose |
|------|---------|
| `src/index.ts` | HTTP server startup |
| `src/routes/` | Route definitions |
| `src/services/` | Business logic |
## Phase 3: Conventions
**Naming**: camelCase for variables, PascalCase for types
**Imports**: relative paths within module, `@/` alias for cross-module
**Error handling**: throws `AppError` with code, caught by middleware
**Async**: async/await throughout
## Unknown / Needs Investigation
- [Things you could not determine from reading the code]
Optimize token usage and context window discipline. Reduce costs and improve response quality through smart context management.
Unified context lifecycle for FlowDeck sessions — ingest, filter, prune, protect, summarize, and persist with telemetry.
Predict affected files, modules, APIs, tests, and DB paths before changes. Returns an impact map for human review.
Map architecture, conventions, and file structure into `.codebase/`. Use when onboarding or before deep feature work.
Plan differently when the agent has low certainty — ask for clarification or narrow scope instead of pretending full understanding.
Protect critical context from pruning during compaction. Preserve active plans, safety files, pending operations, and user intent anchors.