xiaozhi-client: Skill for Claude Code

.agents/skills/docs-updater/SKILL.md

docs-updater is a skill for Claude Code, Codex from shenjingnan/xiaozhi-client. It costs 21 tokens per session (1,209 once invoked), scanned A, original, MIT.

A documentation maintenance workflow for updating Markdown and MDX files, a Markdown variant that supports embedded components. It can fix import paths, improve code examples, repair formatting, and update links.

In plain words
What is it for?
Use it on all documentation, a selected file, or a directory. Supported jobs include fixing path aliases, updating TypeScript, JavaScript, or Bash examples, repairing MDX and Markdown formatting, and checking internal, external, or image links.
Why use it?
It removes repetitive cleanup across documentation. It helps keep examples, links, and project-specific path aliases consistent with the codebase.

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 shenjingnan/xiaozhi-client's own configuration. It tells Claude Code and Codex how to work on xiaozhi-client 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 xiaozhi-client configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { Service } from "../services/file";.

Reuse

Borrowing it

Nothing to install: this file belongs to shenjingnan/xiaozhi-client. 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/shenjingnan/xiaozhi-client/main/.agents/skills/docs-updater/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shenjingnan/xiaozhi-client

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 docs-updater

README.md
[![agentmods](https://agentmods.dev/badge/skills/shenjingnan/xiaozhi-client/docs-updater/github.svg)](https://agentmods.dev/skills/shenjingnan/xiaozhi-client/docs-updater)
Your own site
<a href="https://agentmods.dev/skills/shenjingnan/xiaozhi-client/docs-updater"><img src="https://agentmods.dev/badge/skills/shenjingnan/xiaozhi-client/docs-updater/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 docs-updater

Your own site · 80×15
<a href="https://agentmods.dev/skills/shenjingnan/xiaozhi-client/docs-updater"><img src="https://agentmods.dev/badge/skills/shenjingnan/xiaozhi-client/docs-updater.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00021 $0.01209
Opus 5 $0.00010 $0.00605
Sonnet 5 $0.00004 $0.00242
Haiku 4.5 $0.00002 $0.00121

Measured 11d ago against content hash a82e3e500881, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

docs-updater scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -o /dev/null -w "%{http_code}" http://localhost:3000
.agents/skills/docs-updater/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

文档更新技能

我是一个文档更新专家,专门批量更新现有文档内容并修复路径别名问题。

我的能力

当你需要更新现有文档时,我会:

  1. 确定更新范围 - 根据参数确定要处理的文件范围
  2. 扫描并分析 - 识别需要修复的问题
  3. 执行修复 - 应用修复和更新
  4. 验证结果 - 确保修复后文档正常工作

使用方式

使用格式:/docs-update [更新类型] [目标]

示例

  • /docs-update path-aliases - 批量修复所有文档的路径别名
  • /docs-update path-aliases development/docker-build.mdx - 修复特定文件
  • /docs-update path-aliases usage/ - 修复整个目录
  • /docs-update code-examples typescript - 优化 TypeScript 代码示例
  • /docs-update format-fix getting-started/quickstart.mdx - 修复格式问题
  • /docs-update links-update internal - 更新内部链接

支持的更新类型

path-aliases - 路径别名修复

  • 作用范围

    • 不指定参数:扫描所有 docs/ 下的 .mdx.md 文件
    • 指定文件:更新特定文件
    • 指定目录:更新整个目录
  • 修复内容

    • 将相对路径 .././ 替换为 @/xxx 格式
    • 识别代码块中的 import 语句
    • 确保路径别名符合 xiaozhi-client 项目规范

code-examples - 代码示例优化

  • 支持类型typescriptjavascriptbash
  • 优化内容
    • 统一代码风格
    • 添加类型注解
    • 更新为最佳实践

format-fix - 格式修复

  • 修复内容
    • MDX 语法错误
    • Markdown 格式问题
    • 代码块语法高亮
    • 表格格式修正

links-update - 链接更新

  • 更新类型internalexternalimages
  • 检查内容
    • 链接有效性
    • 链接文本准确性
    • 锚点正确性

路径别名映射规则

基于 xiaozhi-client 项目的路径别名系统:

// xiaozhi-client 项目别名映射(单体架构,统一 @/ 路径别名体系)
{
  "@/types":    ["./src/types"],      // 共享类型定义
  "@/config":   ["./src/config"],     // 配置管理
  "@/mcp-core": ["./src/mcp-core"],   // MCP 协议核心
  "@/endpoint": ["./src/endpoint"],   // 端点处理
  "@/esp32":    ["./src/esp32"],      // ESP32 硬件相关
  "@/cli":      ["./src/cli"],        // CLI 命令行工具
  "@/utils":    ["./src/utils"],      // 通用工具
  "@/server":   ["./src/server"]      // 后端服务(含 handlers、services、routes 等)
}

常见修复模式

// ❌ 需要修复的相对路径
import { Service } from "../services/file";
import { Command } from "./commands/help";
import { Type } from "../../types/interface";
import { util } from "./utils/helper";

// ✅ 修复后的别名路径(xiaozhi-client @/ 路径别名体系)
import { Service } from "@/server/services/file";
import { Command } from "@/cli/commands/start";
import { Type } from "@/types/interface";
import { util } from "@/utils/helper";

Read the full file on GitHub · 147 lines

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. 11d ago First seen · 147 lines · 21 tokens per session scan A a82e3e500881

Subscribe to this mod's changes

docs-updater is a skill published in the GitHub repository shenjingnan/xiaozhi-client (338 stars, last pushed 7d ago), licensed MIT. It adds 21 tokens to every session and 1,209 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens