Skip to content
cccskills
FreePublished on GitHubEnglish overview

openclaw-refactor-docs

Reorganize existing OpenClaw documentation while checking behavior against source code, schemas, and tests. Preserve accurate details, move reference material to suitable pages, and verify formatting and links so readers can follow the main workflow.

OriginalShow the original description

Refactor an existing OpenClaw docs page with source-audited preservation, restructuring, and verification.

AI rating90/ 100See how to install

Good for

  • Shorten a documentation page while preserving behavior details
  • Move detailed specifications to reference pages
  • Update instructions to match current CLI behavior
  • Organize troubleshooting around observable symptoms

Overview

What it does

Rewrite, reorganize, and split existing OpenClaw documentation while preserving accurate specifications. Before editing, the skill inventories settings, commands, defaults, permissions, and limits, then checks them against source code, schemas, and tests. It keeps the main procedure in the page, moves detailed specifications and troubleshooting to suitable pages, and adds links to their destinations.

When it helps

Use it when a long page mixes setup instructions with detailed specifications. It also helps align explanations with current command behavior or organize troubleshooting so readers can find a solution from the symptoms they see. Comparing the old and new versions helps identify explanations that have been lost.

Example requests

  • “Shorten this page and move detailed settings specifications to a reference page.”
  • “Check this guide against current CLI behavior and reorganize it.”
  • “Restructure the troubleshooting section around symptoms readers encounter.”

Notes

Provide the target page path. The skill also follows technical-documentation, and behavior-related statements need supporting evidence. Substantially rewritten pages receive the required metadata. Checks using pnpm cover formatting, MDX, links, and related requirements. Existing explanations are removed only after checking evidence that they are obsolete or outside the page’s scope.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Objective evaluation

AI rated this skill on four points using only the contents of its SKILL.md. Stars and popularity are not taken into account.

Clear instructionsIs it clear when to use it and what it does?
AGoodThe instructions define rewriting, splitting, and shortening a target page while preserving behavior facts.
Concrete stepsAre steps, inputs, outputs, and examples spelled out?
AGoodAn eight-stage workflow covers fact inventories, version comparisons, and validation commands using pnpm.
SafetyAre sending data, deleting files, and running commands disclosed?
AGoodEdits are scoped to the target and related documents; deletions require source evidence and comparison of old and new versions.
Easy setupDoes it need few tools or API keys, and are they documented?
BPartly lackingThe instructions require technical-documentation and pnpm but do not provide installation steps.

The total counts each point as A = 25, B = 15, C = 5. Rated by AI (OpenAI Codex) as of Oct 19, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (1)

  • SKILL.md7.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

OpenClaw Refactor Docs

Overview

Use this skill when the user gives a target OpenClaw docs page and asks to rewrite, refactor, reorganize, split, shorten, or improve it.

This skill builds on technical-documentation: use that skill for style, page types, structure, examples, discoverability, and verification. This skill adds the rewrite workflow needed to avoid losing accurate behavior during a major docs refactor.

Inputs

Required:

  • A target docs page path, such as docs/plugins/codex-harness.md.

Optional:

  • Desired page type, such as topic page, guide, reference, or troubleshooting.
  • Specific goals, such as shorter main page, move details to reference pages, or align with current CLI behavior.
  • Related source files, schemas, commands, tests, specs, or PRs.

If the target page is missing or ambiguous, ask one concise question before editing. Otherwise, proceed.

Working Contract

Refactor the target page to be more useful, concise, and comprehensive within its stated scope.

Do not treat a rewrite as permission to discard behavior facts. Preserve, verify, move, or explicitly retire existing material. Incorrect docs are worse than verbose docs.

Prefer this split:

  • Topic or guide pages cover the 80/20 path, decisions readers must make, safe setup, smallest reliable verification, common failures, and links onward.
  • Reference pages cover exhaustive fields, defaults, enums, limits, precedence rules, API contracts, narrow internals, and rare debugging details.
  • Troubleshooting pages start from observable symptoms and map to checks, causes, and fixes.

Workflow

1. Load the doc standard

Read ../technical-documentation/SKILL.md first. Apply its page-type, style, examples, navigation, and verification guidance throughout the refactor.

Run pnpm docs:list when available, then read only the target page and the likely entry points, references, or related pages needed for the refactor.

2. Classify the page

Before editing, decide the intended page type from technical-documentation.

If the current page mixes page types, choose the main page type and plan where the other material belongs:

  • Move exhaustive contracts to an existing or new reference page.
  • Move symptom-driven material to an existing or new troubleshooting page.
  • Move narrow setup workflows to a guide when they interrupt the main path.
  • Keep concise routing, decision, and safety details in the main page when readers need them to complete the workflow.

3. Preserve and audit existing facts

Create a working inventory from the old page before rewriting. Include:

  • Config fields, flags, commands, slash commands, env vars, defaults, enums, nullable values, and constraints.
  • Precedence rules, fallback behavior, caps, limits, rate limits, timeouts, lifecycle states, queueing behavior, and compatibility rules.
  • Auth, permission, approval, sandbox, safety, privacy, and destructive-action behavior.
  • Setup requirements, supported versions, dependencies, operating systems, credentials, and account requirements.
  • Error messages, troubleshooting symptoms, diagnostics, and recovery steps.
  • Examples, expected output, command routing tables, and cross-links.

For each fact, choose one outcome:

  • Keep it in the refactored target page.
  • Move it to a specific existing page.
  • Move it to a specific new page.
  • Delete it because current source proves it is obsolete or out of scope.

Do not infer defaults, permissions, policy, timeout behavior, or safety posture from names or intent. Verify them.

4. Find source of truth

Use the nearest authoritative source for each behavior-sensitive claim:

  • Public schema, plugin manifest, generated config docs, or exported types for config fields.
  • CLI implementation, slash-command handlers, help text, and command tests for commands and flags.
  • Runtime source and tests for lifecycle, queueing, permission, fallback, timeout, and provider behavior.
  • Protocol docs, SDK facades, and contract tests for APIs and plugin surfaces.
  • Existing docs only as secondary evidence unless the target is purely conceptual.

If a page promises a reference, compare its tables against the schema, manifest, CLI help, generated docs, or exported types. Missing public fields, defaults, precedence rules, caps, or side effects are correctness bugs.

5. Plan moved material

When moving detail out of the target page, record the destination before editing:

  • Existing page: name the page and section.
  • New page: choose the page type, slug, title, frontmatter summary, doc-schema-version: 1, and read_when hints.
  • Target page: keep a short summary and link from the point where readers need the deeper detail.

Avoid duplicate truth. If the same contract appears in multiple places, choose one canonical page and link to it.

6. Rewrite

Rewrite in this order:

  1. Make the first screen answer what the reader can do and why this page exists.
  2. Put the recommended path before alternatives.
  3. Keep only decision-making and common operational detail in the main flow.
  4. Move exhaustive tables and rare details to the planned reference pages.
  5. Preserve concise routing tables when they help readers choose commands, config paths, harnesses, plugins, providers, or references.
  6. Add troubleshooting from observable symptoms, not internal guesses.
  7. Link related concepts, guides, references, diagnostics, and adjacent tools.

Add doc-schema-version: 1 to the YAML frontmatter of every docs page that the refactor migrates, creates, or materially rewrites. Apply it only to docs page files, not docs.json, glossary JSON, or other non-page metadata. If a migrated page is generated, update the generator so regeneration preserves the marker instead of hand-editing generated output.

Do not leave placeholders such as "TODO", "TBD", or "see docs" unless the user explicitly asks for a draft.

7. Compare old and new

After editing, compare the old and new page:

  • Confirm all behavior-sensitive facts were kept, moved, or intentionally deleted with source-backed reason.
  • Check that the main page still covers the 80/20 scenario end to end.
  • Check that reference pages remain exhaustive for the scope they claim.
  • Check that links from the target page reach moved details.
  • Check that headings are stable, searchable, and action-oriented.

If the refactor deliberately removes relevant material, say where it went or why it was removed in the final report.

8. Verify

Run the smallest reliable docs checks for the touched surface:

  • pnpm docs:list
  • git diff --check -- <touched-files>
  • Targeted pnpm exec oxfmt --check --threads=1 <touched-files>
  • pnpm docs:check-mdx
  • pnpm docs:check-links
  • pnpm docs:check-i18n-glossary when link text, navigation, labels, or glossary surfaces changed
  • Generated-doc checks when schemas, generated config docs, API docs, or generated baselines are touched

Run commands and examples from the page whenever feasible. If you cannot verify a behavior-sensitive claim, either remove the claim, mark the uncertainty in the work-in-progress report, or ask for the missing source.

Final Report

Report:

  • What changed in the target page.
  • What details moved and their destination pages.
  • What source-of-truth checks backed behavior-sensitive claims.
  • What validation ran and what failed for unrelated reasons.

Do not include a long rewrite diary. Lead with remaining risks only if there are any.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

1password

FreeSummaryAI rating 100

Set up and authenticate the 1Password CLI, then supply stored passwords and API keys to commands or configuration. The skill covers desktop integration, service accounts, and interactive sign-in while keeping secrets out of chat and logs.

  • Setting up the 1Password CLI
  • Supplying API keys to commands
  • Using service account authentication in CI
openclaw/openclaw392.4KUpdated Oct 18, 2026

acp-router

FreeSummaryAI rating 80

Route requests from OpenClaw to external coding agents such as Claude Code or Cursor. Start or continue sessions using ACP, a protocol for connecting agents, or relay prompts directly through acpx while preserving conversation context.

  • Starting a Claude Code session in a thread
  • Continuing work with an external coding agent
  • Relaying prompts directly through acpx
openclaw/openclaw392.4KUpdated Oct 18, 2026

add-model-provider

FreeSummaryAI rating 100

Add a model provider to OpenClaw and verify it with a real response. The skill validates configuration, keeps credentials in environment or file references, and reports test results and any default model changes.

  • Adding a model provider to OpenClaw
  • Configuring credentials through environment or file references
  • Checking whether a model returns a real response
openclaw/openclaw392.4KUpdated Oct 18, 2026

agent-transcript

FreeSummaryAI rating 90

Prepare an agent activity transcript for a GitHub pull request or issue. Extract relevant prompts, decisions, and results from local logs, remove sensitive material, and preview the edited record before separately authorized publication.

  • Preparing an agent activity record for a pull request
  • Extracting task-relevant prompts and results from local logs
  • Previewing a transcript with sensitive information removed
openclaw/openclaw392.4KUpdated Oct 18, 2026

apple-notes

FreeSummaryAI rating 100

Manage Apple Notes on macOS through memo, a command-line tool. Create, browse, search, edit, delete, and move notes between folders, or export selected notes to HTML or Markdown for use outside the app.

  • Creating notes with titles
  • Finding notes by folder or approximate search
  • Editing notes and organizing them into folders
openclaw/openclaw392.4KUpdated Oct 18, 2026

apple-reminders

FreeSummaryAI rating 70

Manage Apple Reminders from your Mac with remindctl, a terminal tool. View tasks by date, add or edit reminders, organize lists, and mark tasks complete or delete them, including personal to-dos that sync to iOS.

  • Review today’s tasks and overdue reminders
  • Add personal to-dos with due dates
  • Organize tasks visible on an iPhone or iPad
openclaw/openclaw392.4KUpdated Oct 18, 2026

See all skills by openclaw

Report a problem with this skill