Project Analyzer
PURPOSE
Bootstraps Context-First Architecture for any project by analyzing structure and generating AI-optimized documentation.
WHEN_TO_USE
- Onboarding a new project
- Initializing
docs/AI_CONTEXT/structure - Project structure changes significantly
INSTRUCTIONS
Step 1: Run Analysis
python3 skills/context-project-analyzer/scripts/analyze.py
Step 2: Review & Refine
- OUTPUT_FILES:
docs/AI_CONTEXT/ARCHITECTURE.md→ Project structure and tech stackdocs/AI_CONTEXT/CONSTITUTION.md→ Coding rules and constraints
- MUST: Replace all
(placeholder)markers with actual project details - MUST: Verify generated content matches current codebase state
Step 3: Integrate
- Other skills (e.g.,
context-aware-coding) auto-read these files as source of truth
OUTPUT_FORMAT_RULES
Generated docs follow AI-optimized format specification:
- MUST: Use
MUST/NEVER/PREFERsemantic keywords for rules - MUST: Use
PATH → PURPOSEmapping for directory structures - MUST: Use numbered steps for flows, not ASCII diagrams
- NEVER: Use ASCII art, tree diagrams, or visual decorations
- REFER:
assets/AI_DOCUMENT_SPECIFICATION.mdfor complete format guide
Scan to join WeChat group