xiaozhi-client: Skill for Claude Code

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

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

A Chinese-language document-creation guide for the xiaozhi-client project, covering standard document types, locations, navigation updates, and checks.

In plain words
What is it for?
Use it to create MCP tool guides, development guides, API references, user manuals, or architecture documents with the project's required content and navigation settings.
Why use it?
It helps keep new project documentation in the expected format and location instead of leaving structure and verification to guesswork.

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 { UnifiedMCPServer } from "../../core/unified-server";.

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-creator/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-creator

README.md
[![agentmods](https://agentmods.dev/badge/skills/shenjingnan/xiaozhi-client/docs-creator.svg)](https://agentmods.dev/skills/shenjingnan/xiaozhi-client/docs-creator)
Your own site
<a href="https://agentmods.dev/skills/shenjingnan/xiaozhi-client/docs-creator"><img src="https://agentmods.dev/badge/skills/shenjingnan/xiaozhi-client/docs-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,216 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.00017 $0.01216
Opus 5 $0.00009 $0.00608
Sonnet 5 $0.00003 $0.00243
Haiku 4.5 $0.00002 $0.00122

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

Security

Grade A, and why

docs-creator 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 8d 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-creator/SKILL.md · 156 lines

How it starts

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

文档创建技能

我是一个文档创建专家,专门为 xiaozhi-client 项目创建符合标准的高质量文档。

我的能力

当你需要创建新文档时,我会:

  1. 确定文档参数 - 根据类型确定正确的文件路径和命名
  2. 生成文档内容 - 创建符合项目标准的文档
  3. 更新导航配置 - 自动更新文档导航
  4. 执行质量检查 - 验证文档语法、链接和路径别名

使用方式

使用格式:/docs-create [文档类型] [文档标题]

示例

  • /docs-create mcp-tool "Docker容器部署指南"
  • /docs-create dev-guide "MCP Server开发详解"
  • /docs-create api-doc "CLI命令完整参考"
  • /docs-create user-manual "多端点配置入门"
  • /docs-create arch-doc "独立多接入点架构设计"

支持的文档类型

mcp-tool - MCP 工具文档

  • 路径docs/content/guides/mcp-tools/{filename}.mdx
  • 用途:为特定 MCP 工具或功能创建使用文档
  • 模板内容
    • 功能介绍和适用场景
    • 配置方法和参数说明
    • 使用示例(基础和高级)
    • 常见问题和故障排除

dev-guide - 开发指南

  • 路径docs/content/development/{filename}.mdx
  • 用途:开发相关的指南文档
  • 模板内容
    • 开发背景和目标
    • 技术架构说明
    • 实施步骤和代码示例
    • 测试方法和验证流程

api-doc - API 参考文档

  • 路径docs/content/api/reference/{filename}.mdx
  • 用途:API 接口或命令参考文档
  • 模板内容
    • 接口或命令概述
    • 参数详解和格式说明
    • 返回值和错误码
    • 完整示例代码

user-manual - 用户手册

  • 路径docs/content/getting-started/{filename}.mdx
  • 用途:用户入门和操作指南
  • 模板内容
    • 使用场景和目标用户
    • 操作步骤和界面说明
    • 配置选项和自定义设置
    • 常见问题解答

arch-doc - 架构文档

  • 路径docs/content/architecture/{filename}.mdx
  • 用途:系统架构和设计文档
  • 模板内容
    • 架构概述和设计原理
    • 组件关系和数据流
    • 技术选型和权衡考虑
    • 扩展性和性能考虑

文档风格要求

  • 简洁直白:围绕 MCP 客户端功能,避免冗余表述
  • 减少 emoji 使用:保持技术文档专业性
  • 结构清晰:使用合适的标题层级和表格
  • 代码示例:提供完整、可运行的命令和代码示例
  • 中文优先:使用中文编写说明性内容,变量名保持英文

质量检查与验证

基础质量检查

# 拼写检查
pnpm spellcheck

# 代码格式检查
pnpm lint

路径别名验证(重要!)

确保文档中的代码示例遵循 xiaozhi-client 项目规范:

  1. 检查代码示例中的 import 语句
  2. 检查相对路径使用情况
  3. 检查 MCP 相关的导入路径(@core/, @transports/, @cli/* 等)

本地验证(重要!)

为了避免部署报错,必须在本地验证文档:

# 启动文档服务
pnpm dev:docs

# 等待服务启动后检查状态
curl -s -o /dev/null -w "%{http_code}" http://localhost:3000

验证成功标准:

  • 文档服务启动无报错
  • 首页返回 200 状态码
  • 新创建的文档页面可以正常访问
  • 无拼写和语法错误
  • 代码示例格式正确
  • 代码示例使用正确的 xiaozhi-client 路径别名
  • 导航菜单正确显示新文档

代码示例规范

// ✅ 推荐的导入示例
import { UnifiedMCPServer } from "@core/unified-server";
import { IndependentXiaozhiConnectionManager } from "@managers";
import { XiaozhiConfig } from "@/types";

// ❌ 避免相对路径
import { UnifiedMCPServer } from "../../core/unified-server";

Read the full file on GitHub · 156 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. 8d ago First seen · 156 lines · 17 tokens per session scan A f87aa74d9a28

Subscribe to this mod's changes

docs-creator is a skill published in the GitHub repository shenjingnan/xiaozhi-client (337 stars, last pushed 5d ago), licensed MIT. It adds 17 tokens to every session and 1,216 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

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

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens