fix: 符合官方 Skill 规范

- description 改为第三人称
- 目录重命名 references → reference(官方规范)
- 文件引用改用 Markdown 链接格式
- 更新 README.md 路径
This commit is contained in:
Tu Shaokun
2025-11-29 13:48:01 +08:00
parent 9a4d4c4535
commit 8dc3304eca
10 changed files with 26 additions and 25 deletions

View File

@@ -37,11 +37,11 @@ This is a Claude Code skill designed to help developers conduct effective code r
| File | Lines | Description | | File | Lines | Description |
|------|-------|-------------| |------|-------|-------------|
| **SKILL.md** | ~180 | Core principles + index (loads on skill activation) | | **SKILL.md** | ~180 | Core principles + index (loads on skill activation) |
| **references/react.md** | ~650 | React/Next.js patterns (on-demand) | | **reference/react.md** | ~650 | React/Next.js patterns (on-demand) |
| **references/vue.md** | ~200 | Vue 3 patterns (on-demand) | | **reference/vue.md** | ~200 | Vue 3 patterns (on-demand) |
| **references/rust.md** | ~200 | Rust patterns (on-demand) | | **reference/rust.md** | ~200 | Rust patterns (on-demand) |
| **references/typescript.md** | ~100 | TypeScript/JS patterns (on-demand) | | **reference/typescript.md** | ~100 | TypeScript/JS patterns (on-demand) |
| **references/python.md** | ~60 | Python patterns (on-demand) | | **reference/python.md** | ~60 | Python patterns (on-demand) |
**Total: ~2,000+ lines** of review guidelines and code examples, loaded on-demand per language. **Total: ~2,000+ lines** of review guidelines and code examples, loaded on-demand per language.
@@ -84,7 +84,7 @@ ai-code-review-guide/
├── README.md # This file ├── README.md # This file
├── LICENSE # MIT License ├── LICENSE # MIT License
├── CONTRIBUTING.md # Contribution guidelines ├── CONTRIBUTING.md # Contribution guidelines
├── references/ ├── reference/ # On-demand loaded guides
│ ├── react.md # React/Next.js patterns (on-demand) │ ├── react.md # React/Next.js patterns (on-demand)
│ ├── vue.md # Vue 3 patterns (on-demand) │ ├── vue.md # Vue 3 patterns (on-demand)
│ ├── rust.md # Rust patterns (on-demand) │ ├── rust.md # Rust patterns (on-demand)
@@ -197,11 +197,11 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
| 文件 | 行数 | 描述 | | 文件 | 行数 | 描述 |
|------|------|------| |------|------|------|
| **SKILL.md** | ~180 | 核心原则 + 索引(技能激活时加载)| | **SKILL.md** | ~180 | 核心原则 + 索引(技能激活时加载)|
| **references/react.md** | ~650 | React/Next.js 模式(按需加载)| | **reference/react.md** | ~650 | React/Next.js 模式(按需加载)|
| **references/vue.md** | ~200 | Vue 3 模式(按需加载)| | **reference/vue.md** | ~200 | Vue 3 模式(按需加载)|
| **references/rust.md** | ~200 | Rust 模式(按需加载)| | **reference/rust.md** | ~200 | Rust 模式(按需加载)|
| **references/typescript.md** | ~100 | TypeScript/JS 模式(按需加载)| | **reference/typescript.md** | ~100 | TypeScript/JS 模式(按需加载)|
| **references/python.md** | ~60 | Python 模式(按需加载)| | **reference/python.md** | ~60 | Python 模式(按需加载)|
**总计2,000+ 行**审查指南和代码示例,按语言按需加载。 **总计2,000+ 行**审查指南和代码示例,按语言按需加载。
@@ -244,7 +244,7 @@ ai-code-review-guide/
├── README.md # 本文件 ├── README.md # 本文件
├── LICENSE # MIT 许可证 ├── LICENSE # MIT 许可证
├── CONTRIBUTING.md # 贡献指南 ├── CONTRIBUTING.md # 贡献指南
├── references/ ├── reference/ # 按需加载的指南
│ ├── react.md # React/Next.js 模式(按需加载) │ ├── react.md # React/Next.js 模式(按需加载)
│ ├── vue.md # Vue 3 模式(按需加载) │ ├── vue.md # Vue 3 模式(按需加载)
│ ├── rust.md # Rust 模式(按需加载) │ ├── rust.md # Rust 模式(按需加载)

View File

@@ -1,9 +1,10 @@
--- ---
name: code-review-excellence name: code-review-excellence
description: | description: |
Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers. Provides comprehensive code review guidance for React 19, Vue 3, Rust, TypeScript, and Python.
Supports: React 19, Vue 3, Rust, TypeScript, Python. Helps catch bugs, improve code quality, and give constructive feedback.
Triggers: "review", "PR", "pull request", "code review" Use when reviewing pull requests, conducting PR reviews, establishing review standards,
or mentoring developers through code reviews.
--- ---
# Code Review Excellence # Code Review Excellence
@@ -162,16 +163,16 @@ Use labels to indicate priority:
| Language/Framework | Reference File | Key Topics | | Language/Framework | Reference File | Key Topics |
|-------------------|----------------|------------| |-------------------|----------------|------------|
| **React** | `references/react.md` | Hooks, useEffect, React 19 Actions, RSC, Suspense, TanStack Query v5 | | **React** | [React Guide](reference/react.md) | Hooks, useEffect, React 19 Actions, RSC, Suspense, TanStack Query v5 |
| **Vue 3** | `references/vue.md` | Composition API, 响应性系统, Props/Emits, Watchers, Composables | | **Vue 3** | [Vue Guide](reference/vue.md) | Composition API, 响应性系统, Props/Emits, Watchers, Composables |
| **Rust** | `references/rust.md` | 所有权/借用, Unsafe 审查, 异步代码, 错误处理 | | **Rust** | [Rust Guide](reference/rust.md) | 所有权/借用, Unsafe 审查, 异步代码, 错误处理 |
| **TypeScript** | `references/typescript.md` | 类型安全, async/await, 不可变性 | | **TypeScript** | [TypeScript Guide](reference/typescript.md) | 类型安全, async/await, 不可变性 |
| **Python** | `references/python.md` | 可变默认参数, 异常处理, 类属性 | | **Python** | [Python Guide](reference/python.md) | 可变默认参数, 异常处理, 类属性 |
## Additional Resources ## Additional Resources
- `references/common-bugs-checklist.md` - 按语言分类的常见错误清单 - [Common Bugs Checklist](reference/common-bugs-checklist.md) - 按语言分类的常见错误清单
- `references/security-review-guide.md` - 安全审查指南 - [Security Review Guide](reference/security-review-guide.md) - 安全审查指南
- `references/code-review-best-practices.md` - 代码审查最佳实践 - [Code Review Best Practices](reference/code-review-best-practices.md) - 代码审查最佳实践
- `assets/pr-review-template.md` - PR 审查评论模板 - [PR Review Template](assets/pr-review-template.md) - PR 审查评论模板
- `assets/review-checklist.md` - 快速参考清单 - [Review Checklist](assets/review-checklist.md) - 快速参考清单