Agent skill

Refine Docs

by RLinf in RLinf/RLinf

Refine, rewrite, or write an RLinf documentation page or section so it follows the natural EN/ZH voice, explanation flow, information architecture, templates, and parity rules in docs/STYLEGUIDE.md.

Apache-2.0Auto-check passedWriting & Content

Install Refine Docs

skills CLI
$ npx skills add RLinf/RLinf --skill refine-docs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install RLinf/RLinf refine-docs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/RLinf/RLinf.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/refine-docs .claude/skills/refine-docs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
refine-docs
GitHub stars
5.5k
Token cost
~2.6k tokens
SKILL.md length
1,388 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
Apache-2.0

At a glance

Refine, rewrite, or write an RLinf documentation page or section so it follows the natural EN/ZH voice, explanation flow, information architecture, templates, and parity rules in docs/STYLEGUIDE.md.

  • Works in 11 steps: Read docs/STYLE_GUIDE.md. It is… → Find both language files. Every page… → Classify the page, then apply the… → …
  • Improving an existing page
  • SKILL.md covers When to use, Workflow, Natural-language gate and Quick checklists by page type, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Refine Docs is an agent skill from RLinf/RLinf. Refine, rewrite, or write an RLinf documentation page or section so it follows the natural EN/ZH voice, explanation flow, information architecture, templates, and parity rules in docs/STYLEGUIDE.md. Use when improving an existing page, drafting a new one, or doing a style/structure pass. For doc-to-code correctness checks, use docs-check as well.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Writing & Content, covering UX design. The repository describes itself as: RLinf: Reinforcement Learning Infrastructure for Embodied and Agentic AI. The licence is Apache-2.0.

When your agent uses it

  • Improving an existing page
  • Drafting a new one
  • Doing a style/structure pass

Example prompts

  • “/refine-docs”

Workflow steps

11 steps, taken from the first numbered list in SKILL.md.

  1. Read docs/STYLE_GUIDE.md. It is authoritative.
  2. Find both language files. Every page exists at docs/source-en/... and
  3. Classify the page, then apply the matching part of the guide
  4. Inspect the implementation behind the page. Verify public signatures,
  5. Plan the page as one continuous article. This is a basic requirement for
  6. Apply the voice rules to every paragraph: second person, imperative,
  7. Make examples demonstrate use, not only syntax. Introduce the outcome of
  8. Fix structure and labels: Title Case headings + standard names, one H1 per
  9. De-duplicate: link to the canonical Reference / Evaluation page instead of
  10. Keep EN ↔ ZH parity: same structure and (translated) headings; identical,
  11. Verify (the gate) — see below.

What it can do on your machine

Read from SKILL.md and the folder at commit e27e631. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Refine Docs loads about 2.6k tokens when it runs. Until then it costs about 90 tokens; SKILL.md has 1,388 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~90
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from RLinf/RLinf at commit e27e631, republished under its Apache-2.0 licence (© RLinf). 1,388 words, ~2,603 tokens.

Download SKILL.mdSave it as .claude/skills/refine-docs/SKILL.md (or your agent's skills folder).
name
refine-docs
description
Refine, rewrite, or write an RLinf documentation page or section so it follows the natural EN/ZH voice, explanation flow, information architecture, templates, and parity rules in docs/STYLE_GUIDE.md. Use when improving an existing page, drafting a new one, or doing a style/structure pass. For doc-to-code correctness checks, use docs-check as well.

Refine RLinf Docs

Bring a documentation page (or a whole section) up to the RLinf documentation style guide. Use this when writing a new page, rewriting an existing one, or doing a style/structure pass.

The single source of truth is docs/STYLE_GUIDE.md — read it first and apply it. This skill is the operating procedure; the style guide holds the exact rules. When the two disagree, the style guide wins.

When to use

  • Editing/improving an existing page, or drafting a new one.
  • A "make this page match our docs style" / "clean up these docs" request.
  • Pair with the docs-check skill: refine-docs covers voice, structure, and style; docs-check covers facts, code references, and EN/ZH parity.

Workflow

  1. Read docs/STYLE_GUIDE.md. It is authoritative.
  2. Find both language files. Every page exists at docs/source-en/... and docs/source-zh/.... Refine both in the same pass and keep them in parity.
  3. Classify the page, then apply the matching part of the guide:
    • Landing / section / sub-section index → cards or tables + a :hidden: toctree; one-line outcome; routed list. Never body bullet lists.
    • Recipe / example page (env, model, algorithm, SFT, robot) → the page anatomy: figure + intro → Overview (4 aligned cards) → Tasks + Observation and Action tables → Installation → Download the Model → Run It → Visualization and Results. Use the standard section names and the aligned card schema for that gallery subsection.
    • Concept / guide / reference / extending prose page → outcome-first intro, short sections, link out instead of inlining reference material.
  4. Inspect the implementation behind the page. Verify public signatures, accepted input types, concrete return types, lifecycle behavior, config names, and representative call sites. When two related types are accepted by one API, explain what each represents and why both forms are valid. Pair this pass with docs-check for broader doc-to-code validation.
  5. Plan the page as one continuous article. This is a basic requirement for every page type, not only Concepts, Guides, or code documentation. Write down the reader's starting state, the result promised by the page, and one sentence explaining why each section follows the previous one. Lead with the normal local workflow, then the common extension, composition with existing components, remote or distributed use, and finally ownership or scheduler internals. Use only the stages that fit the topic, but do not use the internal class hierarchy as the teaching outline.
    • Start the first prose sentence by stating directly what the page explains, enables, routes, or lets the reader look up. A leading figure may come first, but background prose may not postpone the page's purpose.
    • Give the rest of the page introduction a result, scope, and roadmap.
    • Give each section an opening paragraph that connects it to the established state and identifies the question it resolves; do not merely restate the heading.
    • Within a section, order paragraphs as distinction → API → example → interpretation → consequence or transition.
    • For an interface workflow, list every public call used by the primary example and explain it in caller order, including important inputs, return values, lifecycle effects, and how one result feeds the next call.
  6. Apply the voice rules to every paragraph: second person, imperative, outcome first, no throat-clearing, short sentences, annotate non-trivial commands ("What this does: 1… 2…").
    • Explain before naming: concrete situation → ordinary-language distinction → exact API term → example → edge cases.
    • A heading must be understandable before its section is read. Do not put an unexplained implementation term in a heading and define it below.
  7. Make examples demonstrate use, not only syntax. Introduce the outcome of each non-trivial code block before it and interpret the relevant result or lifecycle effect afterwards. For an extensible abstraction, show how the new component composes with an existing one, how a caller reads or controls it, and how it participates in the relevant task or environment.
  8. Fix structure and labels: Title Case headings + standard names, one H1 per page, bare nav captions, cards/tables instead of bullet walls, footguns in a warning, correct axis ownership/placement.
  9. De-duplicate: link to the canonical Reference / Evaluation page instead of re-explaining; if identical prose/commands repeat across 3+ pages, extract an underscore include partial (_name.rst).
  10. Keep EN ↔ ZH parity: same structure and (translated) headings; identical, untranslated code identifiers (config keys, CLI flags, env/model names); stable :doc: / :ref: links (no hardcoded ReadTheDocs URLs); never glue **bold** directly between CJK characters. Write each language natively: preserve meaning and structure, not English clause order. Keep familiar developer terms in English when a Chinese translation would sound unusual or make the code harder to search. Keep each Chinese prose paragraph or prose list item on one source line. reStructuredText renders a hard wrap inside prose as a visible space, which leaves an unnatural gap between Chinese characters. Keep structural line breaks in headings, directives, tables, and code blocks.
  11. Verify (the gate) — see below.
Show full SKILL.md (602 more words)Show less

Natural-language gate

  • English: write like one engineer explaining the system to another. Use concrete nouns and verbs, vary paragraph shape, and remove canned transitions, promotional summaries, and sentences that merely announce the next section.
  • Chinese: reorganize the explanation around natural Chinese logic instead of translating sentence by sentence. Keep common terms such as policy, key, value, mapping, endpoint, worker, binding, wrapper, mock SDK, contract, shape, schema, and API in English when that is how developers use them. In RL prose, write policy, not the literal translation “策略”; “策略” may still describe a generic strategy such as a placement strategy. Use restrained written technical language. Natural Chinese should not sound like casual developer chat (看看长什么样, 等需要时再看, 不用跟着改), but it should also avoid bureaucratic phrasing such as 本文旨在 and 进行相关操作.
  • Both: introduce a concept before using its code name as shorthand. API and reference pages may use an identifier as a heading when readers are looking up that identifier; concept, guide, and extending pages must establish it first.

Quick checklists by page type

Any page

  • The first prose sentence states directly what the page does; it does not make the reader infer the purpose from background.
  • Opens with the outcome, second person, no throat-clearing.
  • The introduction establishes the reader's situation, scope, result, and the order in which the page reaches it.
  • Reading only the introduction and each section's opening paragraph yields a coherent outline; every section states why it belongs at that point.
  • Paragraphs within a section form a dependency chain rather than a reorderable list of facts.
  • Every public operation used by the primary example is explained in caller order, with relevant inputs, return values, and lifecycle effects.
  • Every non-trivial code block is framed by its purpose and interpretation.
  • New terms are explained before they appear in headings, cards, or tables.
  • Public types, return values, lifecycle statements, and config names match the implementation and representative call sites.
  • The normal workflow precedes composition, remote operation, and internals.
  • Extension examples compose with existing components and reach a real caller, task, or environment.
  • One H1; Title Case headings; standard section names where applicable.
  • EN and ZH updated together; code tokens identical; no CJK-glued **bold**.
  • ZH preserves meaning without mirroring EN sentence by sentence.
  • ZH prose is not hard-wrapped inside a paragraph or list item.
  • Reference material linked, not inlined; repeated blocks factored into partials.

Index / landing page

  • Body uses a card grid or list-table, not bullets or bare :doc: lists.
  • .. toctree:: is :hidden: and drives nav/order.
  • One-line purpose ("Pick this when…") before the cards/tables.

Recipe / example page

  • Credited figure + one-paragraph intro.
  • Overview card grid (.. grid:: 2 4 4 4) with the gallery's aligned schema.
  • Tasks and Observation and Action are list-tables.
  • No "Env type" card, no generic "Algorithm" section, no boilerplate VLA intro.
  • Metrics/eval linked out; only "watch env/success_once" + a results table stay.
  • Shared install / model-path tails come from _setup_common.rst / _model_path.rst.

Gate

  • Build both trees with zero new warnings: /opt/venv/docs/bin/sphinx-build -b html docs/source-en /tmp/build-en and the same for docs/source-zh.
  • Run the docs-check skill (doc-to-code correctness + EN/ZH parity).
  • Confirm: no new bullet-list index pages, no throat-clearing intros, and no literal ** leaking into built ZH pages from CJK-glued bold.
  • For every article, read the introduction followed only by section leads, then read the complete page. Reject the page if the short pass does not form a logical outline. Apply the same rule compactly to indexes and references: the lead must establish what the page routes or lets readers look up, and the cards, tables, or entries must follow a deliberate order. When a page teaches an interface, reject it if the full pass leaves primary-example API calls unexplained.

© RLinf, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/refine-docs of RLinf/RLinf.

Open the folder on GitHubat commit e27e631

Compare with similar skills

Refine Docs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Refine Docs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Refine Docs this skillRLinf/RLinf5.5k—~2.6kAutomated safety check: PassApache-2.0
UX Writingcontent-designer/ux-writing-skill223—~3.8kAutomated safety check: PassMIT
Reading Levelthedaviddias/Front-End-Checklist74k—~613Automated safety check: PassMIT
Content StrategyOwl-Listener/designer-skills2.9k1 repos~852Automated safety check: PassMIT
Documentation Expertcin12211/orca-q224—~3.6kAutomated safety check: PassMIT
AI Product Canvasmohitagw15856/pm-claude-skills1.4k—~1.8kAutomated safety check: PassMIT

Similar skills

  • UX Writing

    content-designer/ux-writing-skill

    Applies UX writing practice to interface copy such as buttons, errors, forms and onboarding, using four quality standards and accessibility guidance.

    223 GitHub stars~3.8k tokensUpdated 4 mo ago
    Writing & ContentAuto-check passed
  • Reading Level

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing content pages for user experience and SEO.

    74k GitHub stars~613 tokensUpdated 2 days ago
    Writing & ContentAuto-check passed
  • Content Strategy

    Owl-Listener/designer-skills

    Define what content a product needs, how it is structured, and who owns it.

    2.9k GitHub starsUsed in 1 repo~852 tokens
    Writing & ContentAuto-check passed
  • Documentation Expert

    cin12211/orca-q

    Expert in documentation structure, cohesion, flow, audience targeting, and information architecture.

    224 GitHub stars~3.6k tokensUpdated 17 days ago
    Frontend & DesignAuto-check passed
  • AI Product Canvas

    mohitagw15856/pm-claude-skills

    Structure AI and ML product decisions with the rigour of any product decision.

    1.4k GitHub stars~1.8k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 27 repos~2.6k tokens
    Frontend & DesignAuto-check passed

More from RLinf/RLinf

All 9 skills in this repo
  • Adds example documentation for a new model or environment in RLinf (RST pages in the docs gallery for both English and Chinese).

    5.5k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Adds a new publication page to the RLinf Sphinx docs (EN + ZH) and wires it into the Publications index/toctree.

    5.5k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Create PR

    RLinf/RLinf

    Open a GitHub pull request for RLinf, or fix an existing one — checks the PR title against Conventional Commits, writes a precise description that follows .github/PULLREQUESTTEMPLATE.md, and lints…

    5.5k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Docs Check

    RLinf/RLinf

    Cross-check RLinf documentation against code, natural explanation flow, and other docs, including English-Chinese parity.

    5.5k GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Install Check

    RLinf/RLinf

    Check, fix, or extend requirements/install.sh and its docker/Dockerfile coverage when adding a new embodied model or environment in RLinf, so the install logic reuses common utilities, keeps system…

    5.5k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Test Install

    RLinf/RLinf

    Test that requirements/install.sh works for an embodied model/env by building its venv and running the matching CI e2e test.

    5.5k GitHub stars~2.3k tokensUpdated today
    Auto-check passed

Questions about Refine Docs

What does Refine Docs do?

Refine, rewrite, or write an RLinf documentation page or section so it follows the natural EN/ZH voice, explanation flow, information architecture, templates, and parity rules in docs/STYLEGUIDE.md. Refine Docs is an agent skill from RLinf/RLinf.md.

When should I use Refine Docs?

Refine Docs fits situations like: improving an existing page; drafting a new one; doing a style/structure pass.

How do I install Refine Docs in Claude Code?

Run `npx skills add RLinf/RLinf --skill refine-docs -a claude-code`. Or copy the skill folder (.agents/skills/refine-docs in RLinf/RLinf) into .claude/skills/refine-docs in your project. Claude Code loads it when a task matches its description.

How do I install Refine Docs in Codex?

Run `npx skills add RLinf/RLinf --skill refine-docs -a codex`. Or copy the skill folder (.agents/skills/refine-docs in RLinf/RLinf) into .agents/skills/refine-docs in your project. Codex loads it when a task matches its description.

Can I use Refine Docs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add RLinf/RLinf --skill refine-docs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/refine-docs, .gemini/skills/refine-docs, .github/skills/refine-docs and .opencode/skills/refine-docs in your project.

What does Refine Docs need to run?

SKILL.md names no scripts, command-line tools or credentials: Refine Docs is instructions for the agent only.

Does Refine Docs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Refine Docs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Refine Docs use?

Refine Docs is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Refine Docs use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Refine Docs?

Skills that share tags, products or a category with Refine Docs: UX Writing (content-designer/ux-writing-skill, 223 stars), Reading Level (thedaviddias/Front-End-Checklist, 74k stars), Content Strategy (Owl-Listener/designer-skills, 2.9k stars) and Documentation Expert (cin12211/orca-q, 224 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Refine Docs?

RLinf (a GitHub organization) maintains it in RLinf/RLinf, which has 5,457 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 2026.

Source: RLinf/RLinf on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.