Analyze codebase structure and generate architecture documentation with diff tracking. Use when user says "update codemaps", "generate architecture docs", "map codebase structure", or after significant structural changes.
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Analyze codebase structure and generate architecture documentation with diff tracking. Use when user says "update codemaps", "generate architecture docs", "map codebase structure", or after significant structural changes.
Update Codemaps
Analyze the codebase structure and update architecture documentation:
Scan all source files for imports, exports, and dependencies
Generate token-lean codemaps in the following format:
codemaps/architecture.md - Overall architecture
codemaps/backend.md - Backend structure
codemaps/frontend.md - Frontend structure
codemaps/data.md - Data models and schemas
Calculate diff percentage from previous version
If changes > 30%, request user approval before updating
Add freshness timestamp to each codemap
Save reports to .reports/codemap-diff.txt
Use TypeScript/Node.js for analysis. Focus on high-level structure, not implementation details.