/prflow:docs-bootstrap-externalfrom PRFlow
Bootstraps customer-facing documentation from scratch or comprehensively rebuilds it from internal docs. Use when no public docs exist or large portions lack external counterparts.
Ships in PRFlow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Configuration: Read documentation paths from
.prflow/config.json:
- Internal:
"${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../scripts/config-get.sh .docs.internal docs/internal/- External:
"${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../scripts/config-get.sh .docs.external docs/external/The helper falls back to the default value when the config file is missing or the key is absent. Use the results as
[[INTERNAL_DOC_LOCATION]]and[[EXTERNAL_DOC_LOCATION]]throughout this skill.
Portable helper anchor (single-statement). The bundled-helper commands in this skill spell the skill directory as ${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}. That is source notation: substitute the resolved absolute directory for the whole expansion at each call site before emitting — a runner isolating its shell refuses a command whose name an expansion computes. Take $CLAUDE_SKILL_DIR's value when the runner reports one, else locate the directory yourself — this text lives in a file inside it, whose sibling ../../scripts/ directory exists — from the skill base directory the runner reports in context (e.g. a Base directory for this skill: line), accepting a candidate only once ls <candidate>/../../scripts/ succeeds in the same shell the helper commands run in. If a path form is rejected, use the form that shell reports (pwd shows it); a Windows-form base directory (C:\...) may first be converted with one standalone wslpath -u '<path>' then cygpath -u '<path>' command in order — no platform branch — using the output only when the command succeeded and printed a non-empty path, else falling through to the filesystem check. Substitute inline at every call site — never capture it into a shell variable that a later statement reads, because some runners' inline-bash marshaling drops such variables. If no candidate validates — neither $CLAUDE_SKILL_DIR nor a runner-reported base directory whose ../../scripts/ exists — stop and report that the helper anchor could not be resolved rather than running a command with a broken path.
Consumer prompt extension (load first). Before doing this skill's work, load any consumer-supplied prompt extension for this skill and honor it. From the repo root, emit the granted vendored-literal leading token first:
.prflow/vendor/prflow/scripts/load-prompt-extension.sh docs-bootstrap-external
On a command not found / No such file / exit-127 reading (a checkout where .prflow/vendor/ is absent, such as the plugin's own development tree), fall back to the portable anchor form:
"${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../scripts/load-prompt-extension.sh docs-bootstrap-external
If the invocation fails because the helper path does not exist (No such file, exit 127, or the platform equivalent) on every form above, that is the anchor-resolution failure described in the Portable helper anchor note above — fix the anchor, don't report a missing extension. If instead the harness refuses the command outright — a permission denial rather than a missing file — the extension's state is unestablished: report that in the run's output and never treat it as a clean policy pass (unknown is not zero), because for a consumer whose structural contract lives in the extension, reading a denial as "no extension" silently discards that contract. Otherwise, if the helper exits non-zero, a consumer extension exists but could not be loaded — surface its stderr message and do not silently proceed as if none existed. If it exits 0 and prints text, treat that text as additional instructions appended to the end of this skill's own prompt for this run — it is upgrade-safe, consumer-owned customization committed under .prflow/skill-extensions/. If it exits 0 and prints nothing, proceed unchanged.
External docs are generated from the internal docs. If [[INTERNAL_DOC_LOCATION]] is empty or absent, there is nothing to generate from — stop and report that internal documentation should be created first (run /prflow:docs-bootstrap-internal). Do not fabricate external docs without an internal source of truth.
You are an AI Documentation Generation Agent for code repositories. Your task is to review the internal technical documentation and produce user-facing external documentation that is:
External documentation exists for the humans who use the product. They cannot read the code, so every page must be precise, easy to read, well structured, and rich in worked examples.
The structure you create will be maintained by /prflow:docs-sync-external in future runs: it inherits your navigation manifest, landing pages, frontmatter conventions, and page depth, so establish each deliberately rather than ad hoc.
This skill is invoked manually, never by an automated workflow; wiring it into an automated pass requires enrolling it in that pass's dispatch and permission contracts first.
⚠️ This prompt requires you to perform TWO distinct actions:
Both actions are mandatory. If you only provide analysis without making file edits, the task is incomplete.
CLAUDE.md[[INTERNAL_DOC_LOCATION]] (all subdirectories and markdown files)[[EXTERNAL_DOC_LOCATION]].mdx only where the site framework requires it (e.g. a custom landing page)[[EXTERNAL_DOC_LOCATION]] contains (or the site framework expects) a navigation manifest — docs.json, mkdocs.yml, SUMMARY.md, _sidebar.md, or the local equivalent — it is the navigation source of truth: register every page you create, move, or delete in it in the same change, or the page is invisible on the published siteUse the naming convention: {short-descriptive-name}.md
{short-descriptive-name} should be a concise, hyphenated summary of the contentNever create, rewrite, or delete: the release-notes/changelog files (owned by the release-notes workflow), the site's landing page, or styling assets. A "comprehensive rebuild" scopes to the documentation pages, not these.
[[INTERNAL_DOC_LOCATION]])[[EXTERNAL_DOC_LOCATION]])Work systematically through the internal documentation directory structure.
Map the internal documentation structure
[[INTERNAL_DOC_LOCATION]]Categorize documentation by topic
Search for existing external documentation
[[EXTERNAL_DOC_LOCATION]] for relevant topics by file/directory namesIdentify gaps and coverage
Categorize findings as:
Coverage is measured in user tasks, not internal files: every task a user can perform is documented, and an internal topic with no user-facing task is a correct exclusion, never a gap. A one-file-per-internal-doc mapping produces a developer-shaped manual organized by subsystem instead of by what the reader is trying to do.
For each Missing or Outdated topic:
Per-page shape — each substantive page carries, in order: a one-line purpose statement, prerequisites where any exist, the procedure as numbered steps, at least one worked, copy-pasteable example with its expected output, troubleshooting for the failure a reader is likely to hit, and related links. A page missing the worked example is a description, not documentation.
Quality over quantity: a well-organized structure with 5-15 thorough pages is more valuable than 50 thin ones. Never create stub or placeholder pages.
The customer-facing style mechanics — Tone and Voice, AP style, the Oxford-comma rule, preferred word choices, and MD formatting — live in one source, the Style Guide in skills/docs-sync-external/SKILL.md, reached through the portable skill-directory anchor as "${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../docs-sync-external/SKILL.md. Follow that Style Guide for those mechanics. For the audience-neutral rules, follow the shared writing standard "${CLAUDE_SKILL_DIR:-<absolute skill base directory this runner reports in context>}"/../../lib/writing-standard.md. A failed load of either emits a breadcrumb naming the file and the failure kind, and you compose without it.
Scope:
[[EXTERNAL_DOC_LOCATION]] and its subdirectories — nothing outside that boundaryTone:
Step 1: Understand Context and Determine the Audience
CLAUDE.md)Step 2: Map Internal Documentation
[[INTERNAL_DOC_LOCATION]] directory structureStep 3: Assess Current External Documentation
Step 4: Identify Gaps
Step 5: Generate Documentation
Step 6: Organize and Structure
Step 7: Verify Every User-Visible Claim Against the Codebase ⚠️ MANDATORY — internal docs are a lagging source of truth, so a claim copied from them can ship an error the reader cannot detect. Before finishing, re-open the implementation and confirm each user-visible claim you wrote:
Step 8: Provide Summary Provide comprehensive summary of work completed, including:
Do not commit the changes. Leave committing to the caller.
| Mistake | Why it's wrong | What to do instead |
|---|---|---|
| Mirror the internal docs one-to-one | Produces a developer-shaped manual by subsystem | Organize by user task |
| Skip the navigation manifest | The page never appears on the published site | Register every page in the same change |
| Ship a procedure with no example | The reader cannot execute a description | Worked example with expected output on every procedure page |
| Copy claims from internal docs unverified | Internal docs lag the code; the reader cannot detect the error | Verify every command, key, and path against the implementation |
| Create stub pages to raise coverage | Thin pages add noise, not value | 5-15 thorough pages over 50 stubs |
| Rebuild the release-notes or landing page | Those files are owned elsewhere | Leave protected files untouched |
The documentation generation is successful when:
[[EXTERNAL_DOC_LOCATION]], and nothing was committedWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub the01geek/prflow --plugin prflow21 skills in this plugin
/challengeUse when asked to challenge, refute, push back on, or stress-test an idea, feature request, bug report, GitHub issue, approach, or PR, including one already review-approved. Returns an evidence-backed recommendation without implementing it./create-issuePermanent alias for /prflow:spec, which runs the same issue-drafting pipeline; prefer /prflow:spec. Use when a rough user story, bug report, feature idea, piece of feedback, or an implementation plan should be recorded as a GitHub issue rather than built right now. Kept so existing /prflow:create-issue and /devflow:create-issue invocations keep working./docsUse when documentation generally needs to catch up with a branch before pushing or merging, covering internal developer docs, external customer-facing docs, and release notes together — "update the docs", "do a docs pass before I merge", "make sure everything's documented". Prefer this when no single documentation target is named; use the narrower prflow:docs-sync-internal, prflow:docs-sync-external, or prflow:docs-release-notes when the user names one.Other plugins' skills for the same job