From 0898a705c53eb6686491c6fb447d3061d52d1da9 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Tue, 20 Jan 2026 00:11:05 -0600 Subject: [PATCH] docs(03-03): add analyze-codebase command to help.md - Add /gsd:analyze-codebase command reference - Add intel/ directory to Files & Structure section - Document PostToolUse hook incremental learning Co-Authored-By: Claude Opus 4.5 --- commands/gsd/help.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/commands/gsd/help.md b/commands/gsd/help.md index c941290b3..b6a1ed09b 100644 --- a/commands/gsd/help.md +++ b/commands/gsd/help.md @@ -76,6 +76,17 @@ Map an existing codebase for brownfield projects. Usage: `/gsd:map-codebase` +**`/gsd:analyze-codebase`** +Bootstrap codebase intelligence for existing projects. + +- Scans all JS/TS files and extracts exports/imports +- Detects naming conventions, directory patterns, file suffixes +- Creates `.planning/intel/` with index, conventions, and summary +- Works standalone (no `/gsd:new-project` required) +- After initial scan, PostToolUse hook continues incremental learning + +Usage: `/gsd:analyze-codebase` + ### Phase Planning **`/gsd:discuss-phase `** @@ -302,6 +313,10 @@ Usage: `/gsd:whats-new` │ └── done/ # Completed todos ├── debug/ # Active debug sessions │ └── resolved/ # Archived resolved issues +├── intel/ # Codebase intelligence (auto-populated) +│ ├── index.json # File exports and imports +│ ├── conventions.json # Detected patterns +│ └── summary.md # Context for session injection ├── codebase/ # Codebase map (brownfield projects) │ ├── STACK.md # Languages, frameworks, dependencies │ ├── ARCHITECTURE.md # Patterns, layers, data flow