ワンクリックで
codebase-mapping
Map architecture, conventions, and file structure into `.codebase/`. Use when onboarding or before deep feature work.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Map architecture, conventions, and file structure into `.codebase/`. Use when onboarding or before deep feature work.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
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.
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.
Load full project context at session start. Read STATE.md, PLAN.md, PROJECT.md, CONVENTIONS.md, and ARCHITECTURE.md to brief any agent on where work stands.
| name | codebase-mapping |
| description | Map architecture, conventions, and file structure into `.codebase/`. Use when onboarding or before deep feature work. |
| origin | FlowDeck |
Produces structured documentation of a codebase that agents can read to answer "how does this project work?" without re-scanning every time.
/fd-task runs its init step for an unmapped project.codebase/ is missing or staleAll outputs go to .codebase/:
| File | Contents |
|---|---|
ARCHITECTURE.md | System design: layers, modules, data flow |
CONVENTIONS.md | Naming, style, patterns specific to this project |
DEPENDENCIES.md | Key external packages and what they do |
INDEX.md | File-by-file inventory |
ENTRY_POINTS.md | How the application starts and key entry files |
Read in this order:
package.json / pyproject.toml / Cargo.toml — dependencies, scripts, metadataREADME.md — stated purpose and architectureDocument each top-level directory's purpose:
src/
api/ — HTTP route handlers
services/ — Business logic
models/ — Database schemas and queries
utils/ — Shared helpers
tests/ — Test files (mirror of src/)
scripts/ — Build and deployment scripts
Do not guess. Read the files to confirm what each directory contains.
Find examples in the code:
UserService.ts? user-service.ts?)Write 1-2 examples for each pattern, not a generic description.
## Entry Points
- `src/index.ts` — Application bootstrap, registers routes and middleware
- `src/workers/queue.ts` — Background job processor, runs independently
- `scripts/migrate.ts` — Database migration runner
For each significant dependency, document:
Last updated: [date]