Repository navigation
docs(cli): split the plugins command reference by reader job - #142980
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 5:16 AM ET / 09:16 UTC (Revision 3). ClawSweeper reviewWhat this changesSplits the plugins CLI reference into six task-focused pages, adds navigation and translated titles, and preserves existing section links. Merge readiness✅ Ready for maintainer review The previous conflict blocker is resolved, and no actionable patch defects remain. The documentation split remains useful because current main still contains the original combined reference. Priority: P3 Review scores
Verification
How this fits togetherThe plugins CLI documentation guides operators through installation, maintenance, and diagnostics, and developers through authoring. Navigation and existing CLI-generated documentation links lead readers to the command reference. flowchart TD
A[CLI help and existing links] --> B[Plugins reference index]
C[Documentation navigation] --> B
B --> D[Choose a reader task]
D --> E[Authoring and installation]
D --> F[Inventory and maintenance]
D --> G[Diagnostics and marketplace feeds]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs +150. Total +150 across 9 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the task-focused reference pages with the original parent route and section anchors as stable entry points. Do we have a high-confidence way to reproduce the issue? Not applicable: this is documentation restructuring; source comparison directly verifies preservation of the original content. Is this the best way to solve the issue? Yes. The split follows the merged Doctor-reference precedent while retaining existing routes, anchors, examples, and policy explanations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 174ca9eadb82. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
63c4a67 to
c1af93f
Compare
docs/cli/plugins.md was 55,872 characters and 11 H2 sections mixing a CLI
synopsis, an authoring how-to, install-policy explanation, lifecycle
reference, diagnostics, and marketplace feed trust. It is now a short index
over six children, one per reader job:
- cli/plugins/authoring Author, Feature scaffold, Provider scaffold
- cli/plugins/install Install, Marketplace shorthand
- cli/plugins/list List, Plugin index
- cli/plugins/uninstall-and-update Uninstall, Update
- cli/plugins/inspect-and-diagnose Inspect, Doctor, Registry
- cli/plugins/marketplace Marketplace
The index keeps the intro, the CardGroup, the full `## Commands` synopsis with
its trace/Nix/bundled notes, and `## Related`.
Anchor strategy: per-anchor redirects are impossible, because redirectSource()
in scripts/lib/docs-redirects.mjs throws on any source containing [?#]. Every
original anchor therefore stays alive on the parent index as an authored
<a id="..." /> stub pointing at its new home. Ids were computed with
parseDocsDocument, not a slug approximation, so the nine Accordion titles, the
two Tab titles, and the three ParamField ids are covered alongside the
headings. 34 pre-split ids: 32 stubbed, 2 (commands, related) still published
by the index itself, so no duplicate authored/canonical ID is raised. All 34
verified to resolve on /cli/plugins, and all 32 stub targets verified to
resolve on their child page. Collisions are empty on the index and on each of
the six children.
Losslessness, asserted mechanically against the pre-split file:
- index prefix + the six children (frontmatter and lede removed) + index
suffix reassemble byte-identically, sha256
c462b672a341344fca6dc46d623f6136f337844080b97bd469faffacb12265f8
- fences 17 -> 17, every one identical on info string and body sha256
- table rows 6 -> 14 (+8 = the new index page table)
- links: 27/27 original targets retained
- words 7,266 -> 8,023 (+757 = index page table, anchor map, child ledes)
- index 55,872 -> 8,662 chars; children 3,935-22,363 chars
No prose was rewritten and no prose exception was needed. The page had zero
intra-page anchor links and zero self-route links, and the one directional
reference the orphan check finds ("the trusted plugin id replacement above")
keeps its target on the same child page.
Closes audit findings: r3-0126, r3-1163 (partially: the accordions keep their
authored anchors and are no longer buried under a 2,065-word H2)
c1af93f to
4869397
Compare
|
Both "before merge" items addressed. The review recorded no patch findings and no security findings; the only blockers were the merge conflict and its resolution. P1 / P2 — merge conflict resolved. Rebased onto Both sets of glossary additions retained, verified set-wise rather than by reading the resolver's ours/theirs labels (which are inverted during a rebase). Comparing git stages 2 and 3 against the resolved file:
Nothing from either side was dropped, and no source appears twice. Focused documentation checks rerun on the final head
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…w#142980) docs/cli/plugins.md was 55,872 characters and 11 H2 sections mixing a CLI synopsis, an authoring how-to, install-policy explanation, lifecycle reference, diagnostics, and marketplace feed trust. It is now a short index over six children, one per reader job: - cli/plugins/authoring Author, Feature scaffold, Provider scaffold - cli/plugins/install Install, Marketplace shorthand - cli/plugins/list List, Plugin index - cli/plugins/uninstall-and-update Uninstall, Update - cli/plugins/inspect-and-diagnose Inspect, Doctor, Registry - cli/plugins/marketplace Marketplace The index keeps the intro, the CardGroup, the full `## Commands` synopsis with its trace/Nix/bundled notes, and `## Related`. Anchor strategy: per-anchor redirects are impossible, because redirectSource() in scripts/lib/docs-redirects.mjs throws on any source containing [?#]. Every original anchor therefore stays alive on the parent index as an authored <a id="..." /> stub pointing at its new home. Ids were computed with parseDocsDocument, not a slug approximation, so the nine Accordion titles, the two Tab titles, and the three ParamField ids are covered alongside the headings. 34 pre-split ids: 32 stubbed, 2 (commands, related) still published by the index itself, so no duplicate authored/canonical ID is raised. All 34 verified to resolve on /cli/plugins, and all 32 stub targets verified to resolve on their child page. Collisions are empty on the index and on each of the six children. Losslessness, asserted mechanically against the pre-split file: - index prefix + the six children (frontmatter and lede removed) + index suffix reassemble byte-identically, sha256 c462b672a341344fca6dc46d623f6136f337844080b97bd469faffacb12265f8 - fences 17 -> 17, every one identical on info string and body sha256 - table rows 6 -> 14 (+8 = the new index page table) - links: 27/27 original targets retained - words 7,266 -> 8,023 (+757 = index page table, anchor map, child ledes) - index 55,872 -> 8,662 chars; children 3,935-22,363 chars No prose was rewritten and no prose exception was needed. The page had zero intra-page anchor links and zero self-route links, and the one directional reference the orphan check finds ("the trusted plugin id replacement above") keeps its target on the same child page. Closes audit findings: r3-0126, r3-1163 (partially: the accordions keep their authored anchors and are no longer buried under a 2,065-word H2)
docs/cli/plugins.mdwas 55,872 characters across 11 H2 sections, mixing a CLI synopsis, an authoring how-to, 2,065 words of install-policy explanation buried in nine accordions, lifecycle reference, diagnostics, and marketplace feed-trust text on one page (audit findingr3-0126, blocking). It is now a short index over six children, one per reader job.Children
cli/plugins/authoringcli/plugins/installcli/plugins/listcli/plugins/uninstall-and-updatecli/plugins/inspect-and-diagnosecli/plugins/marketplaceThe index keeps the intro, the
CardGroup, the full## Commandssynopsis with its lifecycle-trace, Nix-mode, and bundled-plugin notes, and## Related.Naming and index shape follow the landed
docs/cli/doctor/split (verified withtest -d, not cited from an open PR);docs/cli/update/is the second on-mainprecedent for this directory. Each child is a contiguous range of the original, so the reassembly proof below is exact rather than order-sensitive.Anchor preservation
Per-anchor redirects are not possible here: a path is not a fragment, and
redirectSource()inscripts/lib/docs-redirects.mjsthrows on any source containing[?#]. Every original anchor therefore stays alive on the parent index as an authored<a id="..." />stub pointing at its new home, the same mechanismdocs/cli/doctor.mduses.Ids were computed with
parseDocsDocument, not a slug approximation. That matters here because only 14 of the 34 pre-split ids come from headings: the other 20 are minted by nineAccordiontitles in Install, six in Update, twoTabtitles, and threeParamFieldpaths. A slug approximation would have silently dropped#pin-scope,#git-repositories,#param-json, and 17 others.commands,related) still published by the index itself and therefore deliberately not stubbed, which would otherwise raiseduplicate authored/canonical ID./cli/pluginsby parsing the new index withparseDocsDocumentand callingresolveDocsFragment, rather than relying on a passing link audit.parseDocsDocumentreports 0 collisions on the index and on each of the six children (3 + 12 + 5 + 8 + 3 + 1 = 32 child ids, matching the stubs exactly).macOS: \launchctl` env overrides` in the doctor split).Inbound anchor links that keep working:
#inspect(docs/plugins/architecture.md:90,docs/tools/plugin.md:235),#update(docs/plugins/manage-plugins.md:311,docs/releases/2026.9.2.md:3046),#install(docs/tools/plugin.md:139),#list(docs/tools/plugin.md:234), and — the one non-docs consumer —#registry, emitted at runtime three times as adocsPathfromsrc/commands/doctor/shared/deprecation-compat.ts:503,518,530.Losslessness
Asserted mechanically against the pre-split file, not by eye:
c462b672a341344fca6dc46d623f6136f337844080b97bd469faffacb12265f8.Prose was not rewritten, and unusually for this program no prose exception was needed: the page had zero intra-page
](#...)links and zero self-route links.check-orphan-refs.pyfinds exactly one directional reference on the pre-split page ("the trusted plugin id replacement above", L522); its target is four lines earlier in the same Update accordion group, so both land inuninstall-and-update.mdand it stays correct. The post-split run reports 0 directional references on the index and on the other five children. The prose diff is empty.Pin classification
docs-test-pins.pyreports 14 pins; an independent unfilteredgit grep -n "/cli/plugins","docs/cli/plugins", and"cli/plugins\.md"overorigin/mainreturns 152 lines. Every hit classified:src/cli/plugins-*.tssource paths that share thecli/pluginsprefix — CodeQL config, knip, max-lines and assertion-safety baselines, CI test timings, vitest shard metadata, and ordinary imports. The pin script's "test(s)" label is loose in exactly this way.scripts/e2e/qa-plugin-install-sources.mjslistdocs/cli/plugins.mdindocsRefs. That field isz.array(z.string())inextensions/qa-lab/src/scenario-catalog.ts:321and is only rendered into agent bootstrap prompts and coverage reports (qa-agent-bootstrap.ts:29,coverage-report.ts:485); nothing asserts the path exists or reads its contents. The parent file survives, so these are unaffected. Deliberately not rewritten to point at children — that is QA evidence curation, not a docs split.taxonomy.yamlcarries 7 references todocs/cli/plugins.md, all anchor-free, all still resolving to the survivingcli/pluginsroute.docs/maturity/taxonomy.mdlinks/cli/pluginssix times, also anchor-free.docs/AGENTS.md:9names the file as the owner of plugin guidance; still true of the index and its children.src/cli/plugins-cli.ts:94printsformatDocsLink("/cli/plugins", ...)— the parent route, which survives.docs/.i18n/zh-Hans-navigation.json:448listszh-CN/cli/plugins; the translated tree is generated separately and the parent route is unchanged.No contract test reads this single file and asserts literal strings, so the
sdk-subpaths.mdrefusal precedent does not apply.src/docs/clawhub-plugin-docs.test.tsreads an explicit list of eightdocs/plugins/*files that does not include this page, andsrc/docs/plugin-doc-examples.test.tswalksdocs/plugins/only.Validation
check-docs-mdxpassed on 1,039 files.docs-link-auditreportsbroken_links=0over 10,500 internal links.format-docs --checkclean on 1,027 files;markdownlint-cli2 --config config/markdownlint-cli2.jsonc(the configlint:docsuses) reports 0 issues in 1,026 files; the i18n glossary check passes with 6 new zh-CN entries and 0 duplicate sources.docs-link-audit --anchorsexits 1 withbroken_links=42, all of them pre-existing: reproduced identically at the base sha008cf5d9b0ain a detached worktree, and the two output sets are equal once thecli/plugins*file:lineprefixes are normalised (the same four broken/clawhub*targets simply moved fromcli/plugins.mdtocli/plugins.md/cli/plugins/install.md).checked_internal_linksgrows 10,793 -> 10,837, which is the new stub and page-table links.plugins:inventory:check(scripts/generate-plugin-inventory-doc.mts --check) exits 0.Test lanes:
render-maturity-docs,docs-source-anchors, anddocs-sync-publishpass 20/20.src/docs/passes 16/16 across 8 files undervitest.unit.config.ts.src/scripts/docs-link-audit.test.tshas one failing case ("preserves Mint component targets", on an inlineass-guidefixture). It is pre-existing and unrelated to this change: it fails identically at the base sha with no docs modified.Notes for review
.github/CODEOWNERSwith working positive controls (/docs/cli/security.md->@openclaw/openclaw-secops,/docs/security/foo.md->@openclaw/openclaw-secops,/docs/reference/RELEASING.md->@openclaw/openclaw-release-managers). Both/docs/cli/plugins.mdand/docs/cli/plugins/install.mdresolve to no owner, as does the landed sibling/docs/cli/doctor/running.md. There is no global*rule in the file..github/labeler.ymlneeds nothing here. It carries file-exactdocs/cli/*.mdglobs formigrate.md,fleet.md,sandbox.md,security.md, andpolicy.md, but not forplugins.md— so this split opens no labeler gap. (Where a docs page does have a labeler entry and gains a directory, the established shape is adocs/<x>.md+docs/<x>/**pair, as indocs/plugins/sdk-runtime.md.)r3-0126(blocking).r3-1163is closed in part — the nine Install accordions are no longer buried under a single 2,065-word H2 and every one now has a linkable anchor from the index — but its literal ask (promote each accordion title to an H3, add a body H1) is a content rewrite and stays open.r3-0127(paragraphs over six sentences),r3-0130(strict-STE hard violations),r3-0131(launch-window and roadmap wording with no version scope),r3-0132andr3-0135(--force/--pin/beta-channel policy documented in three places, and duplicated againstdocs/cli/update.md),r3-1164(accordions to H3). Splitting the page first makes each of these a small, reviewable follow-up on one child instead of a rewrite of a 56 KB page.