Agent skill
document-project
Use to analyze and document any project codebase. Creates comprehensive reference documentation for AI-assisted development including architecture and patterns.
Install this agent skill to your Project
npx add-skill https://github.com/resolve-io/.prism/tree/main/plugins/prism-devtools/skills/document-project
SKILL.md
Document Project Task
When to Use
- Project Documentation: Document any codebase for AI understanding
- Architecture Assessment: Analyze current system architecture
- Knowledge Transfer: Create comprehensive project documentation
- PRD Preparation: Generate context needed for PRD creation
- Onboarding: Build complete project reference for new team members
What This Skill Does
Guides you through building comprehensive project documentation:
- Configuration: Load project settings from
.prism/core-config.yaml - Classification: Detect project type, structure, and technology stack
- Scanning: Analyze codebase (quick, deep, or exhaustive)
- Documentation: Generate architecture, API, and development guides
- Indexing: Create master index for AI retrieval
Quick Start
- Run the skill and specify project root directory
- Choose scan depth (quick/deep/exhaustive)
- Confirm project classification
- Wait for documentation generation
- Review generated files at
{{output_folder}}/index.md
Output Location: docs/project/ (or as configured)
Workflow Overview
The workflow follows 10 sequential steps. For detailed instructions, see Workflow Steps Reference.
| Step | Name | Purpose |
|---|---|---|
| 0 | Load Configuration | Read .prism/core-config.yaml |
| 1 | Check Existing | Detect existing docs, choose mode |
| 2 | Select Scan Level | Quick/Deep/Exhaustive |
| 3 | Initialize State | Create tracking file |
| 4 | Detect Structure | Classify project type |
| 5 | Scan Project | Execute selected scan depth |
| 6 | Deep-Dive Mode | (If selected) Detailed area analysis |
| 6.5 | Check Existing Docs | Avoid duplicates via Smart Connections |
| 7 | Generate Index | Create master entry point |
| 8-10 | Validate & Complete | Verify, fill gaps, finalize |
Scan Levels
| Level | Time | What It Does |
|---|---|---|
| Quick | 2-5 min | Pattern-based analysis, configs only |
| Deep | 10-30 min | Critical directories, selective file reading |
| Exhaustive | 30-120 min | ALL source files (excludes node_modules) |
Project Types Detected
- claude-code-plugin: PRISM-style plugins with skills/commands/tasks
- web: React, Vue, Angular applications
- backend: Express, FastAPI, Rails servers
- mobile: React Native, Flutter apps
- cli/library/desktop: Various other project types
Generated Documentation
Core files generated (as applicable):
index.md- Master entry pointproject-overview.md- Executive summaryarchitecture.md- Technical architecturetechnology-stack.md- Complete tech stackdevelopment-guide.md- Setup and workflowapi-contracts.md- API endpointsdata-models.md- Database schemasource-tree-analysis.md- Directory structure
Key Principles
- Write-as-you-go: Write files immediately, don't accumulate
- Resumability: State file tracks progress for resume
- Batching: Process subfolders one at a time for token management
- No duplicates: Check existing docs before creating
Reference Documentation
- Workflow Steps - Detailed step-by-step instructions
Guardrails
- Always load config first (Step 0)
- Update state file after EVERY step completion
- Write documents immediately after generating content
- Purge detailed data from context after writing
- First-time startup may require explicit scan level selection
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
review-story
Use to perform comprehensive test architecture review with quality gate decision. Creates both story updates and detailed gate files.
create-dev-task
Use to generate development task documents for the Dev agent. Creates specifications describing WHAT needs fixing based on validated issues and investigations.
test-design
Use to design test strategies and create test specifications. Documents testing approaches for stories.
sdlc-handoff
Use for SDLC phase transitions. Ensures proper handoff between development phases with documentation.
qa-gate
Use to create or update quality gate decision files for stories. Provides clear pass/fail decisions with actionable feedback.
initialize-architecture
Use to create complete architecture documentation structure. Creates all required architecture documents from templates.
Didn't find tool you were looking for?