skills/docs-init/SKILL.md
Initialize comprehensive documentation structure for a project based on detected technologies and configuration. This skill should be used when users want to set up project documentation from scratch, bootstrap docs for a new project, or create initial documentation structure.
npx skillsauth add mgiovani/cc-arsenal docs-initInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Cross-Platform AI Agent Skill This skill works with any AI agent platform that supports the skills.sh standard.
Generate comprehensive documentation structure for a project based on detected technologies and configuration.
CRITICAL: Before documenting ANY feature, component, or capability:
ls or find to get exact counts, do not estimateUse the available exploration and search capabilities to thoroughly analyze the codebase before generating any documentation.
After exploration, verify each finding by reading the actual files:
Core Documentation (always generate):
docs/architecture.md - System architecture overviewdocs/onboarding.md - Developer onboarding guidedocs/adr/0001-record-architecture-decisions.md - First ADR (meta-ADR)Data Documentation (if database detected):
docs/data-model.md - Database schema and ER diagramsInfrastructure Documentation (if deployment configs found):
docs/deployment.md - CI/CD and deployment proceduresdocs/security.md - Security architectureDevelopment Documentation (if collaborative project):
docs/contributing.md - Contribution guidelinesdocs/rfc/ - RFC directory for proposalsdocs/ directoryTemplates are in assets/templates/. Replace placeholders:
{{PROJECT_NAME}} - From git repo name or directory name{{DATE}} - Current date (YYYY-MM-DD format){{TECH_STACK}} - Detected technologies{{DESCRIPTION}} - Brief project description from README or git{{CONTEXT}} - Gathered context from codebase analysisBefore writing each document, verify claims:
docs/ directory if it does not existdocs/adr/, docs/rfc/ (if needed)# Check for language/framework
!`find . -name "package.json" -o -name "pyproject.toml" -o -name "go.mod" -o -name "Cargo.toml" | head -5`
# Check for database
!`find . -name "*models.py" -o -name "*schema.prisma" -o -name "*entity.ts" | head -5`
# Check for infrastructure
!`find . -name "Dockerfile" -o -name "docker-compose.yml" -o -name "*.k8s.yaml" | head -5`
# Get project name
!`basename $(git rev-parse --show-toplevel 2>/dev/null || pwd)`
# Get project description
!`head -20 README.md 2>/dev/null || echo ""`
## Template Locations
Templates are loaded from `assets/templates/`:
| Document Type | Template File |
|--------------|---------------|
| Architecture | `architecture.md` |
| Onboarding | `onboarding.md` |
| ADR (first) | `adr/nygard.md` |
| Data Model | `data-model.md` |
| Deployment | `deployment.md` |
| Security | `security.md` |
| Contributing | `contributing.md` |
## Usage Examples
Basic initialization (auto-detect everything):
docs-init With additional context:
docs-init for Python FastAPI microservice
docs-init for Next.js SaaS application
docs-init for React component library
## Important Notes
- **Zero-config**: Works without any configuration file
- **Smart detection**: Only generates relevant documentation
- **Safe**: Always asks before overwriting existing files
- **Customizable**: User context in command is used to enhance generation
- **Git-aware**: Uses git information when available
- **Incremental**: Can be run multiple times safely
## Example Output
Documentation Initialization Complete
Created: docs/architecture.md - System architecture overview docs/onboarding.md - Developer onboarding guide docs/adr/0001-record-architecture-decisions.md - Meta-ADR docs/data-model.md - Database schema (SQLAlchemy detected) docs/deployment.md - Deployment guide (Docker detected)
Skipped (already exists): docs/contributing.md
Next Steps:
Note: This skill can be run multiple times. It will only create missing files and ask before overwriting existing ones.
This skill includes the following Claude Code-specific enhancements:
Use the Task tool with subagent_type: "Explore" to thoroughly analyze the codebase before generating any documentation.
Use Task tool with Explore agent:
- prompt: "Analyze this codebase structure. Find: 1) All source directories with actual code files, 2) Package manager files (package.json, pyproject.toml, etc.), 3) Database/ORM files, 4) Infrastructure configs (Docker, K8s), 5) Existing documentation. Return ONLY verified findings with file paths."
- subagent_type: "Explore"
After exploration, verify each finding by reading the actual files:
Core Documentation (always generate):
docs/architecture.md - System architecture overviewdocs/onboarding.md - Developer onboarding guidedocs/adr/0001-record-architecture-decisions.md - First ADR (meta-ADR)Data Documentation (if database detected):
docs/data-model.md - Database schema and ER diagramsInfrastructure Documentation (if deployment configs found):
docs/deployment.md - CI/CD and deployment proceduresdocs/security.md - Security architectureDevelopment Documentation (if collaborative project):
docs/contributing.md - Contribution guidelinesdocs/rfc/ - RFC directory for proposalsdocs/ directoryTemplates are in assets/templates/. Replace placeholders:
{{PROJECT_NAME}} - From git repo name or directory name{{DATE}} - Current date (YYYY-MM-DD format){{TECH_STACK}} - Detected technologies{{DESCRIPTION}} - Brief project description from README or git{{CONTEXT}} - Gathered context from codebase analysisBefore writing each document, verify claims:
docs/ directory if it does not existdocs/adr/, docs/rfc/ (if needed)development
Generate comprehensive test suites with coverage analysis and parallel test writing. Automatically activates when users want to write tests, add test coverage, generate test cases, improve testing, or analyze coverage gaps. Supports pytest, vitest, jest, and all major test frameworks.
development
Multi-agent PR review team orchestration with 7 specialized reviewers for security-sensitive or architectural PRs. Spawns architecture, security, performance, testing, style, docs/UX, and adversary reviewers as a coordinated team. Premium review for critical code changes.
development
Spec-driven team orchestration: adaptive development team scaling from 3 to 11 agents based on complexity.
development
Perform comprehensive security review targeting OWASP Top 10 2025 vulnerabilities for PRs, commits, or entire codebases. This skill should be used when a user wants to audit code security, scan for vulnerabilities, review security posture, or check for OWASP compliance. Analysis only - identifies vulnerabilities without modifying code.