rsdoctor: Skill for Claude Code

.agents/skills/rstack-docs-writer/SKILL.md

rstack-docs-writer is a skill for Claude Code, Codex from web-infra-dev/rsdoctor. It costs 30 tokens per session (414 once invoked), scanned A, original, MIT.

A documentation-writing guide for Markdown and MDX files, including READMEs, user guides, and Rspress sites. It covers headings, links, examples, and keeping translated pages aligned.

In plain words
What is it for?
Use it to write or revise project documentation and update related links or heading identifiers across locales.
Why use it?
It helps prevent inconsistent wording, broken heading links, and mismatched anchors between language versions. It also gives the agent the project's existing documentation rules to follow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is web-infra-dev/rsdoctor's own configuration. It tells Claude Code and Codex how to work on rsdoctor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rsdoctor configures →

About the project

Rsdoctor is a build analyzer for Rspack projects that shows how compilation works, what it produces, and where build problems occur. Development teams use it to inspect build artifacts and timing, check build rules, and add custom scans. The catalogue add-ons provide ways to work with Rsdoctor.

web-infra-dev/rsdoctor · 1,151 stars · on GitHub · rsdoctor.rs

Reuse

Borrowing it

Nothing to install: this file belongs to web-infra-dev/rsdoctor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/web-infra-dev/rsdoctor/main/.agents/skills/rstack-docs-writer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/web-infra-dev/rsdoctor

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rstack-docs-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/web-infra-dev/rsdoctor/rstack-docs-writer/github.svg)](https://agentmods.dev/skills/web-infra-dev/rsdoctor/rstack-docs-writer)
Your own site
<a href="https://agentmods.dev/skills/web-infra-dev/rsdoctor/rstack-docs-writer"><img src="https://agentmods.dev/badge/skills/web-infra-dev/rsdoctor/rstack-docs-writer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rstack-docs-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/web-infra-dev/rsdoctor/rstack-docs-writer"><img src="https://agentmods.dev/badge/skills/web-infra-dev/rsdoctor/rstack-docs-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00414
Opus 5.5 $0.00012 $0.00166
Sonnet 5.5 $0.00006 $0.00083
Haiku 4.5 $0.00003 $0.00041

Measured 14d ago against content hash 024c12e62d87, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rstack-docs-writer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/rstack-docs-writer/SKILL.md · 37 lines

What it actually says

Rstack docs writer

Follow the project's existing documentation conventions.

Writing

  • Explain user-facing behavior concisely, adding details and examples only when they help users configure or use the feature.
  • Keep common abbreviations such as dev server.
  • Keep documentation in sync across locales when changing content. Use English as the default language unless the project specifies another.
  • Use sentence-case headings.

Page descriptions

Page frontmatter description is reused in search metadata and llms.txt.

  • Summarize the page's actual scope using concrete APIs, tasks, and distinguishing topics, rather than one paragraph or example.
  • State the overall purpose first. When using examples to clarify scope, make clear that they are representative, not exhaustive.
  • Distinguish related configuration and API pages. Include version, stability, or environment constraints when they affect applicability.
  • Use one complete plain-text sentence. Avoid generic templates, unsupported claims, truncation, and padding to meet a character count.
  • Match the page's language and keep descriptions equivalent across locales.

Heading anchors

  • Prefer Rspress's default anchors for headings in the default locale; preserve intentional existing custom IDs.
  • Determine generated anchors from heading id attributes: run the project's docs dev command and inspect the rendered browser DOM, or run its docs build command and inspect the generated HTML.
  • Match headings in other locales to the default locale's anchors, using the project's locale mapping to pair pages. Add custom IDs where defaults differ; remove redundant IDs only if anchors stay unchanged.
  • Escape custom IDs in MDX: ## Localized heading \{#default-locale-anchor}.
  • When anchors change, update corresponding IDs across locales and affected Markdown links and JSX href attributes. Check target pages before replacing hashes.
  • Check changed links against their target headings.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +10 lines 024c12e62d87
  2. 1mo ago First seen · 27 lines · 30 tokens per session scan A 2247307723f8

Subscribe to this mod's changes

rstack-docs-writer is a skill published in the GitHub repository web-infra-dev/rsdoctor (1,151 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 414 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.

Related

Other skills, from other repositories

oh-my-posh

Install, configure, or troubleshoot Oh My Posh/ohmyposh: shell init, themes, segments, Nerd Font icons, and prompt setup on PowerShell, zsh, bash, or fish.

JanDeDobbeleer/oh-my-posh · 47 tokens

date-formatter

Converts dates between formats and handles timezone differences.

Azure/azure-sdk-for-net · 13 tokens

research

Run deep research on any topic using the Deep Research MCP server. Use this skill whenever the user wants to research a topic, gather information, find sources, or create a research document. Triggers on: 'research this', 'find out about', 'gather information on', 'I need to understand', 'deep dive into', or any…

Arindam200/awesome-ai-apps · 78 tokens

weapp-tailwindcss-custom-build

A programming integration for adding Tailwind CSS support to a custom build tool or advanced build pipeline for WeChat Mini Programs. It connects CSS conversion with tools such as Vite, Webpack, Rspack, Rollup, Rolldown, and Gulp, including file watching and hot updates.

sonofmagic/weapp-tailwindcss · 123 tokens

redux-to-swr

Migrate React components from Redux + Saga to SWR hooks. Use when converting data fetching from Redux store (reducers, sagas, selectors, connect HOC) to SWR-based hooks in CockroachDB DB Console or cluster-ui.

cockroachdb/cockroach · 53 tokens

explore-ui

Standalone Phase 2 of SAP UI testing. Opens the target transaction in a real browser (SAP WebGUI) and explores it live to produce tests/ /test-cases/screens.md — the authoritative map of every on-screen control, its accessible name/label as Playwright will see it, and its initial state. This is about how the UI…

marcellourbani/vscode_abap_remote_fs · 112 tokens