redai-studio/relax/doc-writer

Claude Code and agent skill by redai-studio/relax

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Write and maintain bilingual (English + Chinese) documentation for

Install

npx vskill@latest install redai-studio/relax/doc-writer

SKILL.md

The same SKILL.md was published earlier as redai-studio/relax/doc-writer.

Documentation Writer

Write bilingual VitePress documentation for the Relax project, ensuring both format correctness and content correctness.

Inviolable Rules

  1. Bilingual requirement — create or update both English (docs/en/guide/) and Chinese (docs/zh/guide/) pages together. Keep technical coverage, commands, defaults, and limitations aligned; write natural prose in each language rather than mirroring sentences mechanically.
  2. Format correctness — use the actual docs/en/ and docs/zh/ layout, register published pages in docs/.vitepress/config.mts, and follow the established Markdown conventions.
  3. Content correctness — verify every API, config option, CLI flag, default, and limitation against current source code. Never invent features, describe removed APIs, or turn a successful test or training experiment into a feature guarantee.
  4. User-facing purpose — help users understand, configure, and operate the feature. Never publish test or training acceptance reports as user documentation. Keep test counts, acceptance checklists, execution logs, machine traces, and verification history in internal notes or the PR's validation evidence, not in guide content or navigation.

Clear, natural writing

Aim for “80% of the way to ASD-STE100” as a comprehension goal, not strict compliance, certification, or a fixed sentence pattern. Apply these principles to both languages:

  • Read two or three relevant repository guides before drafting. Follow their established terminology, level of detail, and way of introducing examples, without copying inaccuracies or report content.
  • Explain what the feature is for and what its differences mean to a user. Introduce configuration examples with context, and explain the important choices after the code.
  • Prefer concise, connected prose. Make actors and actions explicit when they would otherwise be unclear. Do not split every idea into a separate sentence or instruction; retain the context and transitions that make a paragraph readable.
  • Purpose, setup, configuration, limitations, and troubleshooting are content needs, not mandatory headings or a required sequence. Use numbered steps only when order matters, tables for settings that benefit from comparison, and prose for explanations.
  • Use consistent terms and familiar language. Avoid internal labels, abstract slogans, repetitive “verified” wording, and unnecessary definitions of terms the target reader already knows.
  • Separate recipe defaults from parser defaults and identify user-supplied paths. Verify commands against their consumers, but keep the verification process out of the guide.
  • Put constraints next to the affected configuration. Reserve warning containers for consequential risks, especially destructive commands; ordinary limitations usually need only a sentence. Explain causes and remedies without historical logs or generic disclaimers about every possible outcome.
  • Read each version as a standalone guide. Natural Chinese and natural English may use different phrasing; they must give the same operating instructions and must not turn test results into quality, performance, or reliability guarantees.

For a cleanup task, read the actual affected pages (including live pages when supplied), source, navigation, and related code before editing. Preserve useful operating instructions in the guide. Remove report pages, their navigation, dangling links, and assets used only by those reports. Keep both languages synchronized and avoid unrelated site-wide changes.


Workflow

Step 0: Check if this is a draft document

IMPORTANT: If the user is working on a document in docs/draft/, this skill should NOT be invoked unless the user explicitly says they want to "publish" or "release" the draft.

  • Documents in docs/draft/ are temporary/work-in-progress documents
  • Users can freely create, edit, and iterate on drafts without triggering this skill's strict bilingual and verification requirements
  • Only when the user explicitly requests to publish/release a draft (e.g., "publish this draft", "move this to the official docs", "release the draft documentation") should you proceed with the full workflow below

If the current task involves a draft document and the user has NOT requested publication, politely decline and suggest they can continue working on the draft freely, or ask if they want to publish it.

Step 1: Determine scope

Ask (or infer from user request):

  • Topic: which module or feature to document (e.g., "checkpoint engine", "notification system")
  • Category: where it belongs in the sidebar (Getting Started, Core Concepts, Advanced, Development, or Examples)
  • Filename: kebab-case, e.g., checkpoint-engine.md
Step 2: Verify content against source code

Before writing a single line of documentation, read the actual source code for the feature being documented. Required steps:

  1. Identify relevant source files — search relax/, transfer_queue/, examples/ for the module.
  2. Read public APIs — list all classes, functions, and their actual signatures (parameter names, types, defaults).
  3. Read config/arguments — check relax/utils/arguments.py or the relevant argument parser for CLI flags.
  4. Check imports — verify that import paths shown in code examples are correct (e.g., from relax.metrics import MetricsClient).
  5. Check existing docs — read relevant guides for both factual consistency and writing conventions. Choose examples close to the current task; do not treat any one page as a mandatory template.

Critical: If the source code differs from what the user describes, trust the source code and note the discrepancy.

Step 3: Write BOTH English and Chinese docs

CRITICAL: You MUST create BOTH language versions in the same session. Never create only one version. CRITICAL: ASCII art diagrams (box-drawing characters ┌┐└┘ forming rectangular boxes) must ALWAYS use English text, even in Chinese docs. Never translate text inside box-drawing diagrams to Chinese.

Step 3a: Write English doc

Create docs/en/guide/<filename>.md (or docs/en/examples/<filename>.md, docs/en/api/<filename>.md depending on category).

Use the English and Chinese templates in references/doc-template.md as reusable starting points. Keep useful sections, remove unused ones, and adapt the order to the user task rather than filling every heading. Keep verification evidence separate from the page.

Key rules:

  • Title is an H1 (#) matching the feature name
  • Choose headings and length to suit the user task and neighboring guides, not a fixed Purpose / Prerequisites / Steps / Configuration sequence
  • Cover necessary setup, settings, and constraints where they fit naturally; explain why the main configuration choices matter
  • Add architecture or API detail only when users need it. Omit generic feature lists and redundant explanations.
  • Code examples must use real import paths and real function signatures from Step 2
  • Architecture diagrams use ASCII art (box drawing characters: ┌ ─ ┐ │ └ ┘ ▼ ▲ ► ◄)
  • Use VitePress containers: ::: tip, ::: warning, ::: danger
  • Cross-reference other docs with relative links: [Architecture](./architecture.md)
  • Add a few related links when they help users continue; a "Next Steps" section is optional
Step 3b: Write Chinese doc (MANDATORY)

Immediately after creating the English doc, create the Chinese counterpart at docs/zh/guide/<filename>.md (or corresponding zh/ path).

Translation rules:

  • Write all explanations in natural Chinese; preserve meaning rather than English sentence patterns
  • Keep code blocks, CLI commands, variable names, class names unchanged
  • Translate code comments inside code blocks to Chinese
  • Keep technical terms that are widely used in English as-is (e.g., "Ray Serve", "TensorBoard", "checkpoint") — no forced translation
  • Section headers must be natural Chinese (e.g., "Overview" → "概述", "Quick Start" → "快速开始", "Configuration" → "配置", "Best Practices" → "最佳实践", "Troubleshooting" → "故障排除", "Next Steps" → "下一步")
  • Both versions must cover the same user tasks, configuration, defaults, and limitations; wording and paragraph structure need not be literal translations

Verification: Before proceeding to Step 4, confirm that BOTH docs/en/guide/<filename>.md AND docs/zh/guide/<filename>.md have been created.

Step 4: Register in VitePress config

Edit docs/.vitepress/config.mts:

  1. Add to the English sidebar under the correct group
  2. Add to the Chinese sidebar under the corresponding Chinese group
  3. Both entries must use correct link paths (/en/guide/<filename> and /zh/guide/<filename>)

English sidebar group mapping:

CategorySidebar group text
Getting StartedGetting Started
Core ConceptsCore Concepts
AdvancedAdvanced
DevelopmentDevelopment
Examples(separate /en/examples/ sidebar)
API(separate /en/api/ sidebar)

Chinese sidebar group mapping:

CategorySidebar group text
Getting Started快速开始
Core Concepts核心概念
Advanced进阶指南
Development开发指南
Examples(separate /zh/examples/ sidebar)
API(separate /zh/api/ sidebar)
Step 5: Verify

After creating both docs and updating config:

  1. Verify both language versions exist — confirm BOTH docs/en/guide/<filename>.md AND docs/zh/guide/<filename>.md have been created. If only one exists, immediately create the missing version.
  2. Cross-check code examples — re-read the source files and confirm every import path, class name, and function signature in the doc matches the code.
  3. Check bilingual parity — confirm matching technical coverage and commands, and read both versions independently for natural flow. Do not enforce word-for-word prose or sentence structure.
  4. Check sidebar config — confirm both English and Chinese entries are added to config.mts.
  5. Check internal links — any [text](./other-doc.md) references must point to docs that actually exist.
  6. Check repository paths — scan the doc for every file/directory path that references the repo (e.g., relax/utils/health_system.py, scripts/models/qwen3-4B.sh). For each path, verify the file or directory actually exists. Remove or correct any stale/wrong paths.
  7. Check user-facing content — remove reports, acceptance evidence, unsupported guarantees, mechanical lists, and repetitive warnings. Check that examples have context and that important constraints and remedies remain easy to find.
  8. Build and inspect — run the docs build, check emitted links and rendered pages, and run applicable project checks. A passing build alone does not prove links are valid. Report results and unavailable hardware checks in the PR, not in the guide.

Content Verification Checklist

When writing docs, verify each of these against the source code:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/redai-studio/relax/doc-writer/badge)](https://verified-skill.com/skills/redai-studio/relax/doc-writer)

Something wrong with this skill or its page? Tell us.