/agentic-docs:generate-docsfrom agentic-docs
Generates and iteratively verifies OpenShift component documentation using isolated reviewers, with options for review-only mode and configurable iteration limits.
Ships in agentic-docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the complete component-documentation workflow in the current task. The workflow must not depend on lifecycle hooks, transcript inspection, completion promises, or host-specific environment variables. Use whichever native fresh-session delegation capability the host exposes for independent verification.
Before starting, read both sibling skills completely, resolving these paths
relative to this SKILL.md:
Do not invoke them through host-specific slash-command syntax. Apply their instructions directly within this task.
PATH: positional skill argument for the component repository; default to
the current working directory at invocation time. This is not the shell
PATH environment variable; never assign to or export the shell PATH
variable.--max-iterations N: maximum review/fix passes; default 5. Require a
positive integer.--review or --skip-generate: review and fix existing documentation
without running component-document generation.--cache-dir DIR: shared review cache; default to a new run directory under
REPO_PATH/.work/agentic-docs/.--keep-cache: keep the cache after a successful run instead of deleting it.-h or --help: report usage and options without changing files.Reject unexpected arguments before changing files. Resolve the PATH argument
exactly once to an absolute, canonical directory, store it in REPO_PATH, and
confirm it exists and is a directory.
Use REPO_PATH as the target for the entire workflow: either set every
repository operation's working directory to REPO_PATH or use absolute paths
rooted at REPO_PATH. Do not use relative repository paths after this point.
Each verification pass must use a fresh, general-purpose isolated reviewer that has not participated in generating or fixing the documentation. Never resume or reuse a reviewer from an earlier pass.
Use the isolated-review capability actually exposed by the host. Common examples are:
spawn_agent;Agent or Task invocation;Do not invoke a local agent executable merely to simulate delegation. If none of these capabilities is exposed, treat independent verification as unavailable.
The workflow agent must not substitute its own review for the independent reviewer. If the host cannot start a fresh isolated reviewer, generation, fixing, and deterministic validation may still run, but the final result must be incomplete — independent verification unavailable. Never report the documentation as verified clean in that case.
The first reviewer checks the full scope. Later reviewers check affected claims against the last independent snapshot and reuse valid unchanged evidence.
Share immutable snapshots, source excerpts, verification records, and the diff. Exclude the fixer's conversation and reasoning history. Cached fixer verdicts are inputs, not independent verification: reviewers must assess the evidence. Read Claim cache before the first handoff.
The latest independent report determines completion. Stop when only the same unresolved claims remain with no new evidence or actionable fix; report them.
Preflight resources
PATH to REPO_PATH before inspecting repository contents. Root
every repository read, write, command, generation, validation, backup,
cleanup, and review at REPO_PATH.REPO_PATH.~/.claude, a plugin cache, or the current repository for a
similarly named bundled resource.Generate only when needed
"$REPO_PATH/ai-docs" does not exist, follow
component-docs against REPO_PATH through generation and its
deterministic validation phase. If "$REPO_PATH/ai-docs" already exists,
skip generation and proceed directly to review."$REPO_PATH/ai-docs/_sources" exists, run the component
validator. If validation passes, run the component cleanup helper and
verify that _sources no longer exists. If validation fails, retain the
backups for recovery and stop.review-docs; this workflow performs that
review automatically.Prepare the independent baseline
REPO_PATH using review-docs.
Keep the cache outside that scope and out of published docs.review-docs' path and ownership rules. This workflow
handles cleanup; reviewers leave the shared cache intact between passes.
Before creating .work, ensure /.work/ is listed in the target
repository's local .git/info/exclude, then verify with git check-ignore
that Git ignores the directory.Verify independently
REPO_PATH. Include any resulting edits in the snapshot and diff.REPO_PATH, the resolved review-docs skill path,
cache directory, prompt version, scoped document paths, and snapshot/evidence
IDs. After the first pass, also give the last independent baseline ID and diff.review-docs Phases 1–5 and report findings. The main
agent applies fixes in step 5, then starts a fresh reviewer to check them.CACHE_DIR/reports/pass-NNN.md, using
the next unused pass number (starting at 001). The reviewer saves findings
and inventory/evidence references there, then returns the path and a summary.
Never overwrite a report. Each report counts as one iteration and supplies
the next baseline; a fixer snapshot cannot.compact
command for that snapshot. Remove detailed verified observations, retain
failed and unresolved observations, and return the compaction counts.Fix and reassess
Finalize
"$REPO_PATH/ai-docs/_sources", run the component cleanup helper
even when the completion gate does not pass."$REPO_PATH/ai-docs/_sources" no longer exists.review-docs'
cleanup rules: delete an owned cache when the gate passes unless --keep-cache.
Retain failed, incomplete, or interrupted runs. Report cleanup status and any
retained path and reason.The VERIFIED CLEAN verdict in the current fresh reviewer's returned report is
the completion signal. Do not search prior output or accept a verdict from an
earlier reviewer.
Report verified clean only when all of the following are true in the latest pass:
If independent review succeeds but cross-repository verification is unavailable, report locally verified; cross-repository claims unverified, not an unqualified verified-clean result.
At the pass limit or when no progress is possible, report remaining findings and unresolved claim IDs. Report missing independent verification as incomplete. Never invent a completion marker or discard failures.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/component-docsCreate lean component documentation for OpenShift repositories/review-docsReview agentic documentation by verifying local claims against source code and cross-repository claims against available authoritative resources. Use when checking generated or existing agent docs for factual accuracy, stale claims, broken references, or pre-PR readiness./update-platform-docsUpdate existing platform documentation with automatic gap detection in openshift/enhancementsnpx claudepluginhub openshift-eng/ai-helpers --plugin agentic-docsOther plugins' skills for the same job