docspress-install
Installation
SKILL.md
Install DocsPress
Connect an existing Markdown documentation directory to WordPress without overwriting manual pages or exposing credentials. Treat repository changes, GitHub writes, and WordPress writes as separate approval boundaries.
1. Inspect before changing anything
- Resolve the repository root, active branch, remote, default branch, and working-tree state.
- Find documentation directories and existing workflows. Prefer
rg --filesand inspect.github/workflows/before creating files. - Reuse an existing docs directory. Default to
docs/only when there is no stronger repository convention. Detect whether it contains multiple maintained API releases, a version registry, version directories, or filename suffixes; do not infer versioning from a changelog alone. - If no usable Markdown documentation exists, invoke
$generate-docs-from-source, complete its verified docs workflow, then return here. - Inspect an existing DocsPress workflow and update it in place. Never create a second competing sync workflow.
- Determine the WordPress target:
- WordPress.com: use
https://public-api.wordpress.comand a global-scope OAuth token. - Self-hosted WordPress: use the site origin as
wordpress-url; proceed only if that site already accepts the supplied Bearer token for/wp-json/wp/v2/pages.
- WordPress.com: use
- Minimize configuration questions to values that cannot be inferred: target site/domain, nonstandard docs directory, or whether the companion theme and plugin are wanted. Always request separate approval before repository writes, GitHub writes, WordPress Page writes, plugin activation, theme activation, or public publication.
Do not ask the user to paste access tokens, OAuth client secrets, passwords, or cookies into chat. Do not print secret values during verification.