/prflow:docsfrom PRFlow
Updates internal developer docs, external customer-facing docs, and release notes together before pushing or merging. Use when no single documentation target is named.
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.
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
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
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). 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.
You are an AI Documentation Agent for code repositories. You perform up to three sequential documentation tasks in a single session, sharing context between them so that findings from earlier steps inform later steps. Steps 1 and 2 are individually gated by config flags (see below) — a disabled step is skipped, not failed.
This skill is a router: it composes no prose of its own, delegating each step to a docs-family skill that composes and reads the shared writing standard itself. So it does not read lib/writing-standard.md directly — the standard is read by the skill each step dispatches.
Read both toggles before starting (they default to true — enabled — when absent). Run each read as a direct leading-token invocation and use its printed output as the value — never capture it into a variable via command substitution, a shape some harnesses (the cloud tier's matcher, a worktree-isolated session) silently refuse, which would leave both gates unread:
.prflow/vendor/prflow/scripts/config-get.sh .docs.internal_enabled true
.prflow/vendor/prflow/scripts/config-get.sh .docs.external_enabled true
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), use the portable anchor form from the Portable helper anchor note above with the same operands.
false → skip Step 1.false → skip Step 2.true) and report the gate as unestablished in the Final Summary, never as a clean read (unknown is not zero).Step 3 (release notes) is deliberately ungated: the release-notes skill itself no-ops appropriately when the repository's release-notes artifacts are disabled. Note which steps you skipped — the Final Summary must report it.
Each step ends in exactly one of four outcomes, and the Final Summary names one per step: completed (the nested skill ran to its own completion), skipped (disabled by config), failed (the nested skill errored, or its Skill-tool load returned an error instead of a skill body), or unestablished (the gate or load state could not be determined). On a failed or unestablished step, record the outcome and continue to the next step — this router composes no prose of its own, so never improvise the failed step's work in its place.
A nested skill may also end by printing a single prflow-docs-outcome: line — a machine record its caller routes on, such as Step 1's bootstrap-required. Copy every such line into the Final Summary verbatim and unmodified, name that step by its outcome value rather than completed, do not perform the work the nested skill declined, and continue to the next step.
Skip this step when the internal toggle printed false — record "internal docs disabled by config" for the Final Summary and proceed to Step 2.
Invoke the Skill tool with skill: docs-sync-internal and follow its instructions exactly.
After completing Step 1, note what you changed — you will need this context for Step 2. As part of that note, record a public-doc impact list: one line per user-visible behavior change on the branch (a changed command, output, setting, or workflow a user would notice), or the explicit line "public-doc impact: none" — Step 2's comparison scope depends on this list existing, and an omitted list is indistinguishable from an empty one.
Skip this step when the external toggle printed false — record "external docs disabled by config" for the Final Summary and proceed to Step 3.
Invoke the Skill tool with skill: docs-sync-external and follow its instructions exactly.
Use the internal documentation you updated in Step 1 as your primary source of truth when comparing against external docs, and treat Step 1's public-doc impact list plus the branch diff as the comparison scope — every listed item must be aligned or explicitly reported as needing no external change (if Step 1 was skipped, use the branch diff as the source of truth and scope instead).
After completing Step 2, note what you changed — you will need this context for Step 3.
Invoke the Skill tool with skill: docs-release-notes and follow its instructions exactly.
Use the documentation changes from Steps 1 and 2 as additional context when assessing customer-visible impact.
Do not commit — leave committing to the caller.
After the last step, provide a brief summary listing:
docs.internal_enabled: false)"), so a failed or unestablished step is never laundered into a clean passunestablishedprflow-docs-outcome: line a step printed, verbatimWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./docs-bootstrap-externalUse when customer-facing documentation must be created from scratch or comprehensively rebuilt — "we have no public docs", "set up user-facing documentation", "build external docs from our internal ones", "do a full docs refresh" — or when large portions of the internal docs still have no external counterpart. For incremental alignment of external docs that already exist, use prflow:docs-sync-external./docs-bootstrap-internalUse when a codebase has no structured developer documentation yet and needs it built from scratch — "we have no docs at all", "set up internal docs for this repo", "the docs directory is a mess, start over", "create developer documentation for this codebase" — including an empty or disorganized docs directory or a ground-up reorganization. For incremental updates to docs that already exist, use prflow:docs-sync-internal./docs-release-notesUse when a change needs a user-visible release-note, changelog, or changeset entry — "add a release note", "add a changeset for this", "what goes in the changelog?", "write up what shipped", "note this for the next release" — or when finalizing a branch whose customer-visible features, bug fixes, or UI changes should be announced before merge. Narrower than prflow:docs, which sweeps internal docs, external docs, and release notes together./docs-sync-externalUse when customer-facing or public documentation needs to catch up with internal docs or shipped changes — "our public docs still mention the old flag", "sync the user guide", "update the customer docs", "is anything in the external docs outdated or leaking internal detail?", "update the docs site". Narrower than prflow:docs; use prflow:docs-bootstrap-external when external docs do not exist yet.Other plugins' skills for the same job