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.
curl -O https://raw.githubusercontent.com/shenjingnan/xiaozhi-client/main/.agents/skills/docs-updater/SKILL.mdgit clone --depth 1 https://github.com/shenjingnan/xiaozhi-clientWrote 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.
[](https://agentmods.dev/skills/shenjingnan/xiaozhi-client/docs-updater)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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 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.
文档更新技能
我是一个文档更新专家,专门批量更新现有文档内容并修复路径别名问题。
我的能力
当你需要更新现有文档时,我会:
- 确定更新范围 - 根据参数确定要处理的文件范围
- 扫描并分析 - 识别需要修复的问题
- 执行修复 - 应用修复和更新
- 验证结果 - 确保修复后文档正常工作
使用方式
使用格式:/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 - 代码示例优化
- 支持类型:
typescript、javascript、bash - 优化内容:
- 统一代码风格
- 添加类型注解
- 更新为最佳实践
format-fix - 格式修复
- 修复内容:
- MDX 语法错误
- Markdown 格式问题
- 代码块语法高亮
- 表格格式修正
links-update - 链接更新
- 更新类型:
internal、external、images - 检查内容:
- 链接有效性
- 链接文本准确性
- 锚点正确性
路径别名映射规则
基于 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";
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.
- 11d ago First seen · 147 lines · 21 tokens per session scan A a82e3e500881
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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…
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…
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…