Full-Coverage Generation Plan
Goal
Build a full-coverage WordPress documentation system that starts as an internal Automattic docs site and can later generate high-quality documentation for WordPress Core, canonical plugins, and other products.
The goal is not a one-off generated page. The goal is a repeatable system that can inventory source material, plan documentation coverage, generate source-backed pages, track review state, and publish a modern docs experience comparable to leading documentation products.
Quality Bar
WP Docs should be judged against strong docs products such as Next.js, shadcn/ui, Astro, and Laravel.
Common traits to match:
- Organize by reader intent, not source-file layout.
- Separate getting-started paths, guides, recipes, concepts, and reference.
- Make navigation, search, and page hierarchy feel intentionally designed.
- Keep API/reference coverage exhaustive and source-backed.
- Include examples that solve real developer and site-builder tasks.
- Show provenance, freshness, and review status clearly enough to build trust.
Product Shape
WP Docs
├── Start
│ ├── Local development
│ ├── Project structure
│ ├── Hooks and lifecycle
│ └── First plugin/theme/block paths
├── Build Sites
│ ├── Site Editor
│ ├── Themes
│ ├── Patterns
│ ├── Navigation
│ ├── Media
│ └── Performance basics
├── Extend WordPress
│ ├── Plugins
│ ├── Hooks
│ ├── Blocks
│ ├── REST API
│ ├── Script Modules
│ ├── Interactivity API
│ ├── Data stores
│ └── Admin screens
├── APIs
│ ├── Functions
│ ├── Classes
│ ├── Hooks
│ ├── REST endpoints
│ ├── Blocks
│ ├── CLI commands
│ └── Configuration constants
├── Core Internals
│ ├── Bootstrap
│ ├── Query system
│ ├── Rewrite and routing
│ ├── Roles and capabilities
│ ├── Options and metadata
│ ├── Cron
│ ├── Filesystem
│ └── Install, upgrade, and updates
├── Recipes
│ ├── Add an admin page
│ ├── Register a block
│ ├── Add a REST endpoint
│ ├── Enqueue assets
│ ├── Build a settings screen
│ └── Debug common failures
└── Upgrade and Compatibility
├── Version changes
├── Deprecations
├── Migration guides
└── Compatibility tablesCoverage Model
Full coverage means every important source surface is accounted for, even before every page is reviewed.
Initial WordPress Core coverage dimensions:
- Public PHP functions, classes, interfaces, traits, methods, and constants.
- Hooks, including actions, filters, dynamic hook families, parameters, and call sites.
- Blocks, block supports, block metadata, and editor behavior.
- REST API routes, controllers, schemas, permissions, and examples.
- Script Modules and classic asset APIs.
- Interactivity API and related packages.
- Options, constants, configuration files, and filesystem conventions.
- WP-CLI commands where the source product includes them.
- Core subsystems: bootstrap, query, rewrite, users, roles/caps, cron, updates, media, editor, themes, plugins, HTTP, filesystem, database, and multisite.
- Tests and fixtures as behavioral evidence.
- Dev notes, make/core posts, handbooks, and existing docs as explanatory context.
- Deprecations, version history, and migration notes.
Coverage state should be explicit:
discovered -> classified -> page spec drafted -> generated -> source verified -> reviewed -> publish candidate -> acceptedGeneration Pipeline
Source repos
├── wordpress-develop
├── gutenberg
├── wp-cli
├── canonical plugins
└── existing public docs/dev notes
|
v
Source inventory extractor
├── symbols
├── hooks
├── blocks
├── REST routes
├── CLI commands
├── tests/examples
└── docs references
|
v
Coverage map
├── source entity IDs
├── owning docs area
├── audience lane
├── review state
└── freshness metadata
|
v
Page specs
├── page intent
├── required source evidence
├── required examples
├── output path
├── page template
└── acceptance criteria
|
v
docs-agent generation
├── concepts
├── guides
├── recipes
├── reference pages
└── metadata/source maps
|
v
Review and publish
├── internal WordPress runtime preview
├── GitSync commit/PR to wp-docs
├── review status updates
└── future WordPress.org publishing pathRuntime Architecture
The internal generation runtime is the kitchen. The wp-docs repository is the durable corpus and review surface.
WP Cloud runtime
├── Data Machine
│ ├── ingestion jobs
│ ├── coverage extraction pipelines
│ ├── page-spec generation pipelines
│ ├── docs-agent generation flows
│ └── review/status workflows
├── Data Machine Code
│ ├── source checkouts
│ ├── wp-docs GitSync checkout
│ └── PR submission
├── docs-agent
│ ├── technical-docs-agent
│ └── user-docs-agent
└── wp-docs theme
├── navigation
├── search
├── provenance display
└── review status displayResponsibilities
wp-docs owns:
- Source manifests and coverage targets.
- Information architecture and content lanes.
- Page specs, schemas, and source maps.
- Generated and reviewed docs content.
- Theme and internal publishing experience.
- Project-specific recipes and review policy.
Automattic/docs-agent owns:
- Reusable technical/user docs agent behavior.
- Agent prompts and audience-specific writing standards.
- Portable agent bundles, flows, and pipelines.
Data Machine and Data Machine Code own:
- Runtime jobs, queues, flows, and pipeline execution.
- Source and output workspaces.
- GitHub/GitSync operations.
- Provenance-producing automation.
Page Specs
Generated pages must start from page specs. The system should avoid direct source file -> prompt -> page generation except for disposable experiments.
Page specs should define:
- Stable page ID and output path.
- Audience and lane.
- Reader intent.
- Required source files and source entities.
- Required examples.
- Required related pages.
- Page template.
- Acceptance criteria.
- Review state.
Example:
{
"id": "developer/script-modules/overview",
"title": "Script Modules",
"lane": "developer",
"audience": "plugin, theme, and block developers",
"intent": "Decide when and how to use Script Modules",
"sources": [
"wordpress-develop:src/wp-includes/script-modules.php",
"wordpress-develop:src/wp-includes/class-wp-script-modules.php"
],
"page_type": "guide",
"output_path": "content/developer/script-modules/README.md",
"must_include": [
"when to use Script Modules",
"register vs enqueue",
"imports and dependencies",
"comparison with classic scripts",
"working examples",
"common mistakes"
]
}Initial Milestones
- Create the canonical planning issue and this plan document.
- Define the first page-spec schema and information architecture file.
- Build a WordPress Core coverage inventory from
wordpress-develop. - Generate page specs for the Script Modules vertical slice.
- Run docs-agent through the WP Docs runtime to generate Script Modules pages and provenance metadata.
- Submit generated output through GitSync as a reviewable PR.
- Expand from Script Modules to one complete subsystem at a time.
- Add coverage dashboard/reporting so gaps are visible.
- Add Gutenberg and canonical plugin source inventories.
- Generalize the same bundle model for any product documentation set.
Success Criteria
- Every source entity is either documented, intentionally excluded, or mapped to a future page spec.
- Generated pages include source-backed claims and usable examples.
- Review status is visible at page and coverage-map levels.
- The internal WordPress site provides useful navigation and search before public publishing.
- The process can regenerate docs after upstream source changes without losing reviewed status.
- The same architecture can be reused for WooCommerce, Jetpack, Studio, Playground, WP-CLI, Data Machine, and other products.