doc-architect

Generate Triple-Layer AGENTS.md documentation by scanning a project for its tech stack, data directory, and planning directory. Use when the user asks to standardize project documentation, generate agent files, or create AGENTS.md guides.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "doc-architect" with this command: npx skills add peterbamuhigire/skills-web-dev/peterbamuhigire-skills-web-dev-doc-architect

Required Plugins

Superpowers plugin: MUST be active for all work using this skill. Use throughout the entire build pipeline — design decisions, code generation, debugging, quality checks, and any task where it offers enhanced capabilities. If superpowers provides a better way to accomplish something, prefer it over the default approach.

Doc Architect

Design and generate a portable Triple-Layer AGENTS.md documentation set that reflects the project’s real structure and constraints.

Modularize Instructions (Token Economy): Avoid consolidating all AI/dev guidance into a single CLAUDE.md. Prefer smaller, focused docs (e.g., docs/setup.md, docs/api.md, docs/workflows.md) and reference them only when needed.

Documentation Standards (MANDATORY): ALL generated markdown files must follow strict formatting rules:

  • 500-line hard limit - no exceptions for any .md file
  • Two-tier structure: High-level TOC (Tier 1) + Deep dive docs (Tier 2)
  • Smart subdirectory grouping for related documentation
  • See skills/doc-standards.md for complete requirements

Core Outcome

Produce three aligned AGENTS.md files:

  • Root AGENTS.md: Project identity, tech stack, global standards
  • Data AGENTS.md: Data integrity rules and schema governance
  • Planning AGENTS.md: Spec-driven development workflow

Trigger Phrases

The skill should activate when the user asks to:

  • Standardize project documentation
  • Generate agent files

Standard Operating Procedure (SOP)

  1. Scan the workspace

    • Inspect the root for identifiers (README, PROJECT_BRIEF, TECH_STACK, ARCHITECTURE, CLAUDE, package.json, composer.json, *.sln, pyproject.toml).
    • Locate likely data directories (database/, schema/, migrations/, sql/, db/).
    • Locate planning/documentation directories (docs/, docs/plans/, planning/, specs/).
    • Identify module/area entry points (menus, docs, feature folders) to group specs.
    • Note template conventions (public/ as web root, per-panel includes, API outside public).
  2. Identify the environment

    • Determine primary language (PHP/C#/Python or other).
    • Determine DB type (MySQL/PostgreSQL/SQLite/SQL Server/other).
    • Determine deployment environment (Docker/Kubernetes/shared hosting/cloud).
  3. Set up plan grouping (first-time)

    • Create docs/plans/<module>/ subdirectories for each discovered module/area.
    • Update docs/plans/AGENTS.md with the current module list.
    • Create or update docs/plans/INDEX.md as the master plan status index.
    • Ensure the index includes status, urgency, last implementation date, and last modification date.
    • Keep docs/plans/AGENTS.md updated whenever plans are added or their status changes.
    • Maintain a folder map at the top of docs/plans/AGENTS.md and update it when requested.
    • Note that developers can add new folders and update the list manually.
  4. Generate Triple-Layer docs

Bundled Resources

Common Pitfalls

  • Do not invent tech stacks. Only infer from files found in the workspace.
  • Do not place AGENTS.md in arbitrary locations; follow the best-fit paths above.
  • Do not include contradictory rules across the three layers.

Quick Example

If a project uses Laravel + MySQL with docs/plans and database/schema:

  • Root: AGENTS.md → PHP/Laravel, MySQL, deployment standards
  • Data: database/schema/AGENTS.md → referential integrity, no-delete rules
  • Plans: docs/plans/AGENTS.md → spec.md format and workflow steps

Cross-References to SDLC Skills

When generating AGENTS.md files, be aware of the complete SDLC documentation ecosystem:

SDLC Documentation Skills

SkillPhaseDocuments GeneratedWhen to Reference
sdlc-planningPlanningVision, SDP, SRS, SCMP, QA Plan, Risk Plan, FeasibilityWhen plans directory contains SDLC planning docs
sdlc-designDesignSDD, Tech Spec, ICD, Database Design, API Docs, Code StandardsWhen referencing architecture and design decisions
sdlc-testingTestingTest Plan, Test Cases, V&V Plan, Test Report, Peer ReviewsWhen referencing testing and quality standards
sdlc-user-deployDeliveryUser Manual, Ops Guide, Training, Release Notes, Maintenance, READMEWhen referencing deployment and user documentation

Related Documentation Skills

SkillPurposeRelationship
project-requirementsRaw requirements interviewInput source for SDLC planning docs
feature-planningFeature-level specs + implementation plansStored in docs/plans/ (planning directory)
manual-guideEnd-user manuals and guidesStored in /manuals/ (separate from AGENTS.md)
update-claude-documentationKeep project docs (README, CLAUDE.md) updatedMaintains project-level docs after changes

SDLC Output Directory Structure

When scanning for documentation, expect this structure in projects using SDLC skills:

docs/
├── planning/        # sdlc-planning output (7 docs)
├── design/          # sdlc-design output (6 docs)
├── testing/         # sdlc-testing output (5 docs)
├── user-deploy/     # sdlc-user-deploy output (6 docs)
├── plans/           # feature-planning output
│   ├── AGENTS.md    # Plans directory index (doc-architect manages this)
│   ├── INDEX.md     # Plan status tracker
│   └── specs/       # Feature specifications
└── project-requirements/  # project-requirements output

Integration Rule: When generating the Planning AGENTS.md (docs/plans/AGENTS.md), include references to any SDLC documentation directories that exist alongside the plans directory.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

google-play-store-review

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

jetpack-compose-ui

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

api-error-handling

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

android-development

No summary provided by upstream source.

Repository SourceNeeds Review