skill
cn-agent-skills
🤖 23个中文AI编程技能集合 | Chinese AI coding skills for Claude Code, Cursor, Copilot
Set up
Skills are installed by placing their folder where your agent loads skills.
The download comes from github.com/guyulong/cn-agent-skills itself, not from our server, so what you get is exactly what its author published.
Install instructions come from the README
README
synced Oct 27, 2026cn-agent-skills
面向中文开发者的 AI Agent 技能集合 — 提供原生 skills/<name>/SKILL.md 目录结构,同时每个 SKILL.md 也可作为 Markdown 规则片段直接复制到 Claude Code、Cursor、Copilot 等工具中使用。
项目定位
本仓库收集了 23 个 Markdown 格式的技能(skills),覆盖中文代码注释、文档翻译、国内技术栈适配(微信小程序、抖音、FastAPI 等)、安全防护、游戏开发等场景。
每个技能以 skills/<name>/SKILL.md 形式组织,可直接用于 Claude Code 原生 skill 机制,也可将内容复制到 Cursor、Copilot 等工具的规则文件中。
快速开始
# 克隆仓库
git clone https://github.com/<你的用户名>/cn-agent-skills.git ~/.cn-agent-skills
# 或使用 install.sh
REPO_URL=https://github.com/<你的用户名>/cn-agent-skills.git bash -c "$(curl -fsSL https://raw.githubusercontent.com/<你的用户名>/cn-agent-skills/main/install.sh)"
请将 <你的用户名> 替换为你 fork 后的 GitHub 用户名。
各工具推荐使用方式
Claude Code
将整个技能目录复制到项目的 .claude/skills/ 下:
cp -R ~/.cn-agent-skills/skills/zh-code-comment .claude/skills/zh-code-comment
Claude Code 会自动识别 .claude/skills/<name>/SKILL.md 结构。
Cursor
读取对应技能的 SKILL.md 内容,追加到项目根目录的 .cursor/rules 文件(或 .cursorrules)中:
cat ~/.cn-agent-skills/skills/zh-code-comment/SKILL.md >> .cursor/rules
多个技能可以合并为一个文件,也可以按文件拆分到 .cursor/rules/ 目录下。
GitHub Copilot
读取对应技能的 SKILL.md 内容,写入以下位置之一:
.github/copilot-instructions.md(项目级指令).github/instructions/*.instructions.md(按文件/目录匹配的指令片段)
cat ~/.cn-agent-skills/skills/zh-code-comment/SKILL.md >> .github/copilot-instructions.md
其他工具
- Windsurf:
.windsurfrules - Cline:
.clinerules - Aider:配置文件中指定
以上工具均支持读取 Markdown 规则片段,直接复制 SKILL.md 内容即可。
技能列表(共 23 个)
| 技能 | 描述 |
|---|---|
ai-manga | AI 漫剧/短视频制作流程 |
canvas-optimize | Canvas 渲染优化 |
cdn-replace | 国内 CDN 资源替换(需自行验证源可用性) |
cocos-helper | Cocos Creator 开发助手 |
code-review-cn | 中文代码审查 |
docker-cn | Docker 国内镜像配置(需自行验证源安全性) |
douyin-miniapp-adapter | 抖音小游戏适配 |
echarts-gen | ECharts 图表生成 |
fastapi-best-practices | FastAPI 中文最佳实践 |
h5-game-perf | H5 游戏性能优化 |
readme-cn | 中文 README 模板 |
sql-review | SQL 审查与优化 |
stock-analysis | A 股/港股技术分析 |
test-gen | 单元测试生成 |
uniapp-helper | uni-app 开发助手 |
wechat-auth | 微信登录授权集成 |
wechat-miniapp-review | 微信小程序代码审查 |
xiaohongshu-analyze | 小红书数据分析 |
xss-prevent | XSS 防护指南 |
zh-code-comment | 中文代码注释生成 |
zh-commit-msg | 中文 Git 提交信息生成 |
zh-doc-translate | 中英技术文档互译 |
zh-regex-helper | 中文正则表达式常用模式 |
项目结构
cn-agent-skills/
├── README.md
├── CONTRIBUTING.md
├── install.sh
├── LICENSE
├── skills.json # 所有技能的索引(name / description / path)
└── skills/
├── zh-code-comment/
│ └── SKILL.md
├── fastapi-best-practices/
│ └── SKILL.md
├── cocos-helper/
│ ├── SKILL.md
│ ├── references/ # 参考资料(文档链接、API 说明等)
│ ├── scripts/ # 辅助脚本(示例代码、自动化工具)
│ └── assets/ # 静态资源(模板、图片等)
└── .../
└── SKILL.md
贡献
欢迎提交 PR!请阅读 CONTRIBUTING.md。