Code Review Checklist
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
“路径别名系统检查与修复”
$ npx skills add shenjingnan/xiaozhi-client --skill path-alias-validator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install shenjingnan/xiaozhi-client path-alias-validator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/shenjingnan/xiaozhi-client.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/path-alias-validator .claude/skills/path-alias-validator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "path-alias-validator" agent skill from https://github.com/shenjingnan/xiaozhi-client/tree/main/.agents/skills/path-alias-validator into .claude/skills/path-alias-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "path-alias-validator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/shenjingnan/xiaozhi-client/tree/main/.agents/skills/path-alias-validatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add shenjingnan/xiaozhi-client --skill path-alias-validator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install shenjingnan/xiaozhi-client path-alias-validator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shenjingnan/xiaozhi-client.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/path-alias-validator .agents/skills/path-alias-validator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "path-alias-validator" agent skill from https://github.com/shenjingnan/xiaozhi-client/tree/main/.agents/skills/path-alias-validator into .agents/skills/path-alias-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "path-alias-validator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add shenjingnan/xiaozhi-client --skill path-alias-validator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install shenjingnan/xiaozhi-client path-alias-validator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shenjingnan/xiaozhi-client.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/path-alias-validator .cursor/skills/path-alias-validator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "path-alias-validator" agent skill from https://github.com/shenjingnan/xiaozhi-client/tree/main/.agents/skills/path-alias-validator into .cursor/skills/path-alias-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "path-alias-validator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/shenjingnan/xiaozhi-client.git --path .agents/skills/path-alias-validator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add shenjingnan/xiaozhi-client --skill path-alias-validator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install shenjingnan/xiaozhi-client path-alias-validator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shenjingnan/xiaozhi-client.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/path-alias-validator .gemini/skills/path-alias-validator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "path-alias-validator" agent skill from https://github.com/shenjingnan/xiaozhi-client/tree/main/.agents/skills/path-alias-validator into .gemini/skills/path-alias-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "path-alias-validator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install shenjingnan/xiaozhi-client path-alias-validatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add shenjingnan/xiaozhi-client --skill path-alias-validator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/shenjingnan/xiaozhi-client.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/path-alias-validator .github/skills/path-alias-validator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "path-alias-validator" agent skill from https://github.com/shenjingnan/xiaozhi-client/tree/main/.agents/skills/path-alias-validator into .github/skills/path-alias-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "path-alias-validator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add shenjingnan/xiaozhi-client --skill path-alias-validator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install shenjingnan/xiaozhi-client path-alias-validator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shenjingnan/xiaozhi-client.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/path-alias-validator .opencode/skills/path-alias-validator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "path-alias-validator" agent skill from https://github.com/shenjingnan/xiaozhi-client/tree/main/.agents/skills/path-alias-validator into .opencode/skills/path-alias-validator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "path-alias-validator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
path-alias-validatorPath Alias Validator is a skill in shenjingnan/xiaozhi-client (341 stars). Its SKILL.md is about 1.5k tokens. Licence: MIT.
11 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit fe3c382. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and json).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Path Alias Validator loads about 1.5k tokens when it runs. Until then it costs about 8 tokens; SKILL.md has 186 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from shenjingnan/xiaozhi-client at commit fe3c382, republished under its MIT licence (© shenjingnan). 186 words, ~1,484 tokens.
.claude/skills/path-alias-validator/SKILL.md (or your agent's skills folder).我是路径别名系统检查与修复技能,专门针对 xiaozhi-client 项目的路径别名系统进行检查、验证和优化,同时遵循务实开发理念。
核心能力:检测项目中相对路径的使用情况,并提供别名替换建议。
../ 格式的导入语句./ 格式的导入语句// ✅ 推荐的别名使用(xiaozhi-client 项目 @/ 路径别名体系)
import { LightService } from "@/server/services";
import type { HassState } from "@/types";
import { formatDate } from "@/utils";
// ❌ 需要修复的相对路径
import { LightService } from "../services";
import type { HassState } from "../types";
import { formatDate } from "./utils";检查项目配置文件中的路径别名设置是否正确和一致。
// 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 { UserService } from "../services/user";
import type { APIResponse } from "../types/api";
import { formatDate } from "./utils/date";
import { Command } from "./commands/help";
// ✅ 修复后(xiaozhi-client @/ 路径别名体系)
import { UserService } from "@/server/services/user";
import type { APIResponse } from "@/types/api";
import { formatDate } from "@/utils/date";
import { Command } from "@/cli/commands/start";请检查当前项目的路径别名使用情况,识别所有需要修复的相对路径。请验证项目中所有配置文件的路径别名设置是否一致和正确。请帮我修复检测到的路径别名问题,自动替换相对路径为 @/xxx 格式的别名。请检查 src/server/services/ 目录下的所有文件,确保它们正确使用 @/ 路径别名体系。请检查 src/cli/ 目录下的所有文件,确保CLI命令正确使用 @/cli 路径别名。请检查 src/mcp-core/ 目录下的所有文件,确保核心MCP功能正确使用 @/mcp-core 路径别名。请检查 docs/ 目录下的所有 MDX 文件,确保文档中的代码示例使用正确的 xiaozhi-client 路径别名。请批量修复文档中的路径别名问题,重点关注代码示例中的 import 语句。请验证文档更新后的正确性,确保修复后的代码示例语法正确且符合项目规范。以下情况下相对路径是可以接受的:
// light.test.ts 可以使用相对路径导入 light.ts
import { LightService } from "./light";// 同一目录下的工具函数
import { helperFunction } from "./helpers";// 运行时动态导入
const module = await import(`../modules/${moduleName}`);文档中的代码示例有特殊的例外规则:
// 当文档需要解释相对路径概念时
import { utils } from "../shared/utils"; // 这是相对路径的示例// 对比展示:相对路径 vs 别名路径
// 相对路径写法:
import { Service } from "./service";
// 别名路径写法:
import { Service } from "@/services/service";// 展示其他项目或框架的代码示例
import { Component } from "../components/Button";{
"paths": {
"./*": ["./src/*"] // 配置文件中的相对路径
}
}可以作为 CI 流程的一部分,自动检查新代码是否遵循路径别名规范。
// 1. Node.js 内置模块
import { fs } from "node:fs";
import { path } from "node:path";
// 2. 外部依赖
import express from "express";
import { Command } from "commander";
// 3. xiaozhi-client @/ 路径别名导入(按分组排序)
// 核心类型和配置
import type { AppConfig, XiaozhiConfig } from "@/types";
import { getConfig } from "@/config";
// MCP 核心
import { MCPConnection } from "@/mcp-core";
// CLI 相关
import { Container } from "@/cli";
import { StartCommand } from "@/cli/commands/start";
// 后端服务
import { HandlerManager } from "@/server/handlers/HandlerManager";
import { ConfigService } from "@/server/services/ConfigService";
// 工具函数
import { formatDate } from "@/utils";
// 4. 相对路径(同模块内引用,仅在必要时)
import { helperFunction } from "./helpers";// ✅ 推荐
import type { HassState } from "@/types";
// ❌ 避免
import { HassState } from "@/types";同一文件中对同一目录的模块使用一致的导入方式。
import type 语法通过这个技能的帮助,可以确保项目始终遵循路径别名最佳实践,提高代码质量和可维护性。
© shenjingnan, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/path-alias-validator of shenjingnan/xiaozhi-client.
Open the folder on GitHubat commit fe3c382
Path Alias Validator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Path Alias Validator this skillshenjingnan/xiaozhi-client | 341 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 5 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop | 5.3k | 1 repos | ~2.2k | Automated safety check: Pass | MIT | |
| Generate Release Notesteambit/bit | 18k | — | ~2.2k | Automated safety check: Pass | Custom licence | |
| Pnpm Engineteambit/bit | 18k | — | ~1.9k | Automated safety check: Pass | Custom licence | |
| Convert Internal Package to TypeScriptTryGhost/Ghost | 55k | — | ~1.2k | Automated safety check: Pass | MIT |
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
dmmulroy/anti-slop
Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.
teambit/bit
Generate comprehensive release notes for Bit from git commits and pull requests.
teambit/bit
Work on the pnpm Rust engine (@pnpm/napi, the pacquet crates) that bit install runs through.
TryGhost/Ghost
Moves a legacy internal Ghost package from JavaScript and CommonJS to TypeScript and ESM in three focused commits that keep git file history intact.
kucherenko/jscpd
Measures a code port between languages or frameworks with jscpd's function-level comparison, porting tests before code and tracking what is left unmatched.
shenjingnan/xiaozhi-client
分析当前分支 git 改动,检查 e2e 测试用例覆盖情况,并可补充缺失的测试用例. An agent skill from shenjingnan/xiaozhi-client.
shenjingnan/xiaozhi-client
GitHub 评论修复技能,用于获取 PR 的 Copilot 评论并分析修复问题. An agent skill from shenjingnan/xiaozhi-client.
shenjingnan/xiaozhi-client
文档自动生成
shenjingnan/xiaozhi-client
CI检查验证和质量保障
shenjingnan/xiaozhi-client
生成代码评审友好的 commit 信息
shenjingnan/xiaozhi-client
开发流程检查技能,确保代码修改后执行必要的质量检查
Works with
Categories
Run `npx skills add shenjingnan/xiaozhi-client --skill path-alias-validator -a claude-code`. Or copy the skill folder (.agents/skills/path-alias-validator in shenjingnan/xiaozhi-client) into .claude/skills/path-alias-validator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add shenjingnan/xiaozhi-client --skill path-alias-validator -a codex`. Or copy the skill folder (.agents/skills/path-alias-validator in shenjingnan/xiaozhi-client) into .agents/skills/path-alias-validator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shenjingnan/xiaozhi-client --skill path-alias-validator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/path-alias-validator, .gemini/skills/path-alias-validator, .github/skills/path-alias-validator and .opencode/skills/path-alias-validator in your project.
SKILL.md names no scripts, command-line tools or credentials: Path Alias Validator is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Path Alias Validator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Path Alias Validator: Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars), Generate Release Notes (teambit/bit, 18k stars) and Pnpm Engine (teambit/bit, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
shenjingnan (a GitHub user) maintains it in shenjingnan/xiaozhi-client, which has 341 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on September 3, 2026.
Source: shenjingnan/xiaozhi-client on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.