Skip to content

docs: replace OpenClaw docs skill and add plugin permissions guide - #85180

Merged
kevinslin merged 3 commits into
mainfrom
codex/replace-openclaw-docs-skill
May 25, 2026
Merged

kevinslin merged 3 commits into
mainfrom
codex/replace-openclaw-docs-skill

Conversation

@kevinslin

Copy link
Copy Markdown
Contributor

Summary

  • Problem: OpenClaw still carried a repo-local openclaw-docs skill instead of the shared technical documentation skill pattern, and plugin permission requests lacked a task-oriented docs page.
  • Solution: Replace openclaw-docs with technical-documentation, keep the OpenClaw-specific overlay as a compact reference, and route existing skill references to the new name.
  • What changed: Added the technical-documentation skill, updated repo guidance/ignores, added docs/plugins/plugin-permission-requests.md, and linked it from related plugin and approval docs.
  • What did NOT change (scope boundary): Runtime plugin approval behavior, Gateway approval APIs, and Codex permission handling are unchanged.

Motivation

  • Keep OpenClaw docs authoring aligned with the shared technical documentation skill while preserving OpenClaw-specific page-type, navigation, preservation, and validation rules.
  • Give plugin authors and operators one page that explains when to use plugin permission requests, how decisions behave, and where approval prompts are routed.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

  • Closes #
  • Related #
  • This PR fixes a bug or regression

Real behavior proof (required for external PRs)

  • Behavior addressed: Repo-local docs skill replacement and plugin permission request documentation.
  • Real environment tested: Local OpenClaw source worktree on macOS, branch codex/replace-openclaw-docs-skill.
  • Exact steps or command run after this patch: python3 skills/skill-creator/scripts/quick_validate.py .agents/skills/technical-documentation; pnpm docs:list; pnpm docs:check-mdx; pnpm docs:check-links; pnpm format:docs:check; git diff --cached --check.
  • Evidence after fix: Commands completed successfully locally. docs:list includes plugins/plugin-permission-requests.md; docs:check-mdx passed 649 files; docs:check-links reported checked_internal_links=4414 and broken_links=0; format:docs:check reported docs formatting clean for 634 files.
  • Observed result after fix: The new skill validates, the new docs page is listed in the docs index, internal links resolve, MDX parses, and docs formatting is clean.
  • What was not tested: No live Gateway/plugin approval flow was run because this PR changes docs and repo-local skill instructions only.
  • Before evidence (optional but encouraged): openclaw-docs was the existing repo-local skill; there was no task-oriented docs/plugins/plugin-permission-requests.md page.

Root Cause (if applicable)

  • Root cause: N/A.
  • Missing detection / guardrail: N/A.
  • Contributing context (if known): The shared docs-writing skill had been prepared outside the OpenClaw repo and needed to replace the old repo-local skill while retaining OpenClaw-specific guidance.

Regression Test Plan (if applicable)

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file: skills/skill-creator/scripts/quick_validate.py, scripts/check-docs-mdx.mjs, scripts/docs-link-audit.mjs, scripts/format-docs.mjs.
  • Scenario the test should lock in: Skill metadata/resources remain valid, docs page frontmatter is indexed, MDX renders, internal docs links resolve, and docs formatting stays canonical.
  • Why this is the smallest reliable guardrail: The change is docs and repo-local skill content, so docs and skill validators directly cover the touched surfaces.
  • Existing test that already covers this (if any): Existing docs and skill validation scripts.
  • If no new test is added, why not: No runtime behavior changed.

User-visible / Behavior Changes

  • OpenClaw repo-local docs work now uses technical-documentation instead of openclaw-docs.
  • Plugin authors get a new plugin permission request topic page in the plugin-building docs navigation.

Diagram (if applicable)

N/A

Security Impact (required)

  • New permissions/capabilities? No
  • Secrets/tokens handling changed? No
  • New/changed network calls? No
  • Command/tool execution surface changed? No
  • Data access scope changed? No
  • If any Yes, explain risk + mitigation: N/A

Repro + Verification

Environment

  • OS: macOS
  • Runtime/container: Local source worktree
  • Model/provider: N/A
  • Integration/channel (if any): N/A
  • Relevant config (redacted): N/A

Steps

  1. Validate the new repo-local skill.
  2. Generate/list docs metadata.
  3. Run MDX, link, formatting, and diff whitespace checks.

Expected

  • Skill validation passes.
  • The new docs page appears in docs:list.
  • MDX, link, formatting, and whitespace checks pass.

Actual

  • Skill validation passed.
  • docs:list includes plugins/plugin-permission-requests.md.
  • docs:check-mdx, docs:check-links, format:docs:check, and git diff --cached --check passed.

Evidence

  • Failing test/log before + passing after
  • Trace/log snippets
  • Screenshot/recording
  • Perf numbers (if relevant)

Human Verification (required)

What you personally verified (not just CI), and how:

  • Verified scenarios: New skill validates; docs index includes the new page; MDX parses; internal links resolve; docs formatting is clean; staged diff has no whitespace errors.
  • Edge cases checked: Cross-links from hooks, building plugins, Codex harness runtime, and advanced approval docs resolve through the docs link auditor.
  • What you did not verify: Live plugin approval prompts in a running Gateway.

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

Compatibility / Migration

  • Backward compatible? Yes
  • Config/env changes? No
  • Migration needed? No
  • If yes, exact upgrade steps: N/A

Risks and Mitigations

None.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL maintainer Maintainer-authored PR labels May 22, 2026
@clawsweeper

clawsweeper Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

Workflow note: Future ClawSweeper reviews update this same comment in place.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Summary
The PR replaces the repo-local openclaw-docs skill with technical-documentation, updates docs-skill references, and adds a plugin permission requests docs page linked from plugin approval docs.

Reproducibility: not applicable. this is a docs and repo-local skill migration PR, not a runtime bug. The relevant check is source/docs contract inspection plus the PR body's terminal validation proof.

PR rating
Overall: 🦐 gold shrimp
Proof: 🦞 diamond lobster
Patch quality: 🦐 gold shrimp
Summary: The proof is strong for the touched docs/skill surfaces, but the unresolved skill-name compatibility decision keeps overall readiness limited.

Rank-up moves:

  • Have maintainers choose hard rename versus temporary openclaw-docs alias before merge.
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Real behavior proof
Sufficient (terminal): The PR body includes after-fix terminal proof for skill validation, docs list/index, MDX, links, formatting, and diff whitespace, which is adequate for docs and repo-local skill changes.

Risk before merge

  • Removing the $openclaw-docs entrypoint can break existing prompts, maintainer runbooks, or queued automation that still invoke the old skill name unless maintainers accept the hard rename or keep a compatibility alias.
  • The PR changes repo-local skill instructions and helper agent prompts, so the automation surface should be reviewed even though runtime OpenClaw code is unchanged.

Maintainer options:

  1. Keep a temporary skill alias
    Add a small deprecated openclaw-docs wrapper that points to technical-documentation so old prompts and runbooks keep working during migration.
  2. Accept the hard rename
    Maintainers can explicitly decide that $openclaw-docs callers must migrate immediately and land the PR without an alias.
  3. Split docs from skill migration
    If the shared skill direction needs more review, land the plugin permission page separately and move the skill replacement to a maintainer-owned follow-up.

Next step before merge
This maintainer-labeled PR needs a compatibility/automation decision on the skill rename rather than an automated repair lane.

Security
Cleared: No concrete security or supply-chain issue was found; the diff adds docs, skill instruction files, ignore metadata, and a JPG asset without scripts, dependencies, workflow permissions, secrets, or runtime code.

Review details

Best possible solution:

Land the plugin permission docs and the shared documentation skill only after maintainers choose the skill-entrypoint migration plan; keep a deprecated openclaw-docs wrapper if compatibility matters.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is a docs and repo-local skill migration PR, not a runtime bug. The relevant check is source/docs contract inspection plus the PR body's terminal validation proof.

Is this the best way to solve the issue?

Unclear: the plugin permission docs fit current approval contracts, but the hard openclaw-docs rename is only the best migration if maintainers accept the compatibility cost or add an alias.

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body includes after-fix terminal proof for skill validation, docs list/index, MDX, links, formatting, and diff whitespace, which is adequate for docs and repo-local skill changes.
  • remove status: 🔁 re-review loop: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a docs and repo-local skill improvement with limited runtime blast radius but a real compatibility decision before merge.
  • merge-risk: 🚨 compatibility: Deleting the old openclaw-docs skill name can break existing docs-work prompts or runbooks that still invoke it.
  • merge-risk: 🚨 automation: The PR changes repo-local skill entrypoints and helper agent prompts, which can affect automation behavior outside normal runtime tests.
  • rating: 🦐 gold shrimp: Current PR rating is 🦐 gold shrimp because proof is 🦞 diamond lobster, patch quality is 🦐 gold shrimp, and The proof is strong for the touched docs/skill surfaces, but the unresolved skill-name compatibility decision keeps overall readiness limited.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body includes after-fix terminal proof for skill validation, docs list/index, MDX, links, formatting, and diff whitespace, which is adequate for docs and repo-local skill changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes after-fix terminal proof for skill validation, docs list/index, MDX, links, formatting, and diff whitespace, which is adequate for docs and repo-local skill changes.

What I checked:

  • Protected live state: The provided live context shows this PR is open, has the protected maintainer label, and already carries proof: sufficient, P2, merge-risk: 🚨 compatibility, and merge-risk: 🚨 automation labels from the prior ClawSweeper pass. (2b8a68d30c34)
  • Current skill entrypoint: Current main still defines the openclaw-docs skill and routes docs work to $openclaw-docs, so deleting that entrypoint is a compatibility-sensitive rename rather than a pure docs addition. (AGENTS.md:141, c8a35c4645dc)
  • PR diff migration surface: The PR diff deletes .agents/skills/openclaw-docs/SKILL.md, adds .agents/skills/technical-documentation/**, and updates AGENTS.md plus openclaw-refactor-docs references to the new skill name. (AGENTS.md:141, 2b8a68d30c34)
  • Runtime contract check: Current main's hook type already exposes requireApproval.allowedDecisions, and plugin approval request resolution filters and rejects unavailable decisions, matching the new docs' central claims. (src/plugins/hook-types.ts:477, c8a35c4645dc)
  • Existing approval docs contract: Current main already documents /approve handling for exec and plugin approvals plus independent approvals.plugin forwarding, which the new page links and expands rather than contradicting. Public docs: docs/tools/exec-approvals-advanced.md. (docs/tools/exec-approvals-advanced.md:207, c8a35c4645dc)
  • PR proof: The PR body reports after-fix terminal validation for the new skill, docs list/index, MDX parsing, link checking, docs formatting, and diff whitespace, which is the right proof class for this docs and repo-local skill change. (2b8a68d30c34)

Likely related people:

  • kevinslin: Prior merged history for .agents/skills/openclaw-docs/SKILL.md and plugin docs shows recent OpenClaw docs consolidation and Codex/plugin docs work in the same surface this PR changes. (role: recent docs/skill contributor; confidence: high; commits: 6a23e26a2709, ce0584af89bb; files: .agents/skills/openclaw-docs/SKILL.md, docs/plugins/hooks.md, docs/plugins/codex-harness-runtime.md)
  • joshavant: Commit history for src/infra/plugin-approvals.ts shows the async before_tool_call.requireApproval and plugin.approval.* feature introduction that the new docs explain. (role: plugin approval feature introducer; confidence: high; commits: 6ade9c474cf1; files: src/infra/plugin-approvals.ts, src/plugins/hook-types.ts, docs/plugins/hooks.md)
  • shakkernerd: Recent approval history updated Codex native approval reuse and plugin approval protocol models, adjacent to the permission-request behavior documented here. (role: recent approval contributor; confidence: medium; commits: f011d6bc0a75; files: src/infra/plugin-approvals.ts, src/gateway/server-methods/plugin-approval.ts, docs/tools/exec-approvals-advanced.md)
  • steipete: Recent gateway approval helper and exec approval docs history touches the same approval-routing surface, making this a useful routing candidate for the compatibility decision. (role: recent approval/refactor contributor; confidence: medium; commits: 3174c6919de1, 548c280eff60; files: src/gateway/server-methods/plugin-approval.ts, docs/tools/exec-approvals-advanced.md)

Codex review notes: model gpt-5.5, reasoning high; reviewed against c8a35c4645dc.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels May 22, 2026
@clawsweeper

clawsweeper Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

✨ Hatched: 🥚 common Moonlit Merge Sprite

Hatch command

Comment @clawsweeper hatch when this PR is hatchable.

Hatchability rules:

  • Merged PRs are hatchable.
  • Open PRs are hatchable when they are status: 👀 ready for maintainer look, status: 🚀 automerge armed, or labeled clawsweeper:automerge.
  • Closed unmerged PRs are hatchable only when one of those hatchable labels is still present in the durable record.

Rarity: 🥚 common.
Trait: hums during re-review.
Image traits: location release reef; accessory review stamp; palette moonlit blue and soft silver; mood celebratory; pose nestled inside a glowing shell; shell translucent glimmer shell; lighting bright celebratory glints; background tiny shells and proof notes.
Share on X: post this hatch
Copy: My PR egg hatched a 🥚 common Moonlit Merge Sprite in ClawSweeper.

What is this egg doing here?
  • Eggs appear after the PR passes real-behavior proof. It is here for vibes, not verdicts: it does not change labels, ratings, merge decisions, or automation.
  • The shell reacts to review momentum: open follow-up work warms it up, re-review makes it wobble, and a clean final review lets it hatch.
  • Hatchability usually comes from sufficient real-behavior proof, no blocking P0/P1/P2 findings, no security attention needed, and clean correctness. A merged PR is already final, so merge makes the egg hatchable independently.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@kevinslin

Copy link
Copy Markdown
Contributor Author

Addressed the AGENTS-first policy conflict in 2b8a68d.

@clawsweeper re-review

@clawsweeper clawsweeper Bot added status: 🔁 re-review loop A fresh ClawSweeper review was explicitly requested after the latest review. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels May 22, 2026
@clawsweeper

clawsweeper Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 🔁 re-review loop A fresh ClawSweeper review was explicitly requested after the latest review. labels May 22, 2026
@kevinslin
kevinslin merged commit 0dabb70 into main May 25, 2026
76 checks passed
@kevinslin
kevinslin deleted the codex/replace-openclaw-docs-skill branch May 25, 2026 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant