mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
fix: address review feedback from PR #929
- Add missing code-review.md and development-workflow.md to zh/README.md directory listing - Add mkdir -p command before copy in manual install instructions - Fix TypeScript test command path in SKILL-DEVELOPMENT-GUIDE.md - Add Anti-Patterns section to SKILL.md template - Add Template category to Skill Categories table in CONTRIBUTING.md - Add Pre-Review Requirements section to code-review.md (both en and zh) - Add Pre-Review Checks step to development-workflow.md (both en and zh) - Add trailing newlines to all files that were missing them
This commit is contained in:
@@ -14,6 +14,14 @@ Code review ensures quality, security, and maintainability before code is merged
|
||||
- When architectural changes are made
|
||||
- Before merging pull requests
|
||||
|
||||
**Pre-Review Requirements:**
|
||||
|
||||
Before requesting review, ensure:
|
||||
|
||||
- All automated checks (CI/CD) are passing
|
||||
- Merge conflicts are resolved
|
||||
- Branch is up to date with target branch
|
||||
|
||||
## Review Checklist
|
||||
|
||||
Before marking code complete:
|
||||
@@ -113,4 +121,4 @@ This rule works with:
|
||||
- [testing.md](testing.md) - Test coverage requirements
|
||||
- [security.md](security.md) - Security checklist
|
||||
- [git-workflow.md](git-workflow.md) - Commit standards
|
||||
- [agents.md](agents.md) - Agent delegation
|
||||
- [agents.md](agents.md) - Agent delegation
|
||||
|
||||
@@ -36,3 +36,9 @@ The Feature Implementation Workflow describes the development pipeline: research
|
||||
- Detailed commit messages
|
||||
- Follow conventional commits format
|
||||
- See [git-workflow.md](./git-workflow.md) for commit message format and PR process
|
||||
|
||||
5. **Pre-Review Checks**
|
||||
- Verify all automated checks (CI/CD) are passing
|
||||
- Resolve any merge conflicts
|
||||
- Ensure branch is up to date with target branch
|
||||
- Only request review after these checks pass
|
||||
|
||||
@@ -14,7 +14,9 @@ rules/
|
||||
│ ├── patterns.md
|
||||
│ ├── hooks.md
|
||||
│ ├── agents.md
|
||||
│ └── security.md
|
||||
│ ├── security.md
|
||||
│ ├── code-review.md
|
||||
│ └── development-workflow.md
|
||||
├── zh/ # 中文翻译版本
|
||||
│ ├── coding-style.md
|
||||
│ ├── git-workflow.md
|
||||
@@ -24,6 +26,7 @@ rules/
|
||||
│ ├── hooks.md
|
||||
│ ├── agents.md
|
||||
│ ├── security.md
|
||||
│ ├── code-review.md
|
||||
│ └── development-workflow.md
|
||||
├── typescript/ # TypeScript/JavaScript 特定
|
||||
├── python/ # Python 特定
|
||||
@@ -60,6 +63,9 @@ rules/
|
||||
> 并破坏语言特定文件使用的 `../common/` 相对引用。
|
||||
|
||||
```bash
|
||||
# 创建目标目录
|
||||
mkdir -p ~/.claude/rules
|
||||
|
||||
# 安装通用规则(所有项目必需)
|
||||
cp -r rules/common ~/.claude/rules/common
|
||||
|
||||
@@ -99,4 +105,4 @@ cp -r rules/php ~/.claude/rules/php
|
||||
|
||||
`rules/common/` 中可能被语言特定文件覆盖的规则会标记:
|
||||
|
||||
> **语言说明**:此规则可能被语言特定规则覆盖,对于某些语言,该模式可能不是惯用的。
|
||||
> **语言说明**:此规则可能被语言特定规则覆盖,对于某些语言,该模式可能不是惯用的。
|
||||
|
||||
@@ -47,4 +47,4 @@
|
||||
- 高级工程师
|
||||
- 安全专家
|
||||
- 一致性审查者
|
||||
- 冗余检查者
|
||||
- 冗余检查者
|
||||
|
||||
@@ -14,6 +14,14 @@
|
||||
- 进行架构更改时
|
||||
- 合并 pull request 之前
|
||||
|
||||
**审查前要求:**
|
||||
|
||||
在请求审查之前,确保:
|
||||
|
||||
- 所有自动化检查(CI/CD)已通过
|
||||
- 合并冲突已解决
|
||||
- 分支已与目标分支同步
|
||||
|
||||
## 审查检查清单
|
||||
|
||||
在标记代码完成之前:
|
||||
@@ -113,4 +121,4 @@
|
||||
- [testing.md](testing.md) - 测试覆盖率要求
|
||||
- [security.md](security.md) - 安全检查清单
|
||||
- [git-workflow.md](git-workflow.md) - 提交标准
|
||||
- [agents.md](agents.md) - 代理委托
|
||||
- [agents.md](agents.md) - 代理委托
|
||||
|
||||
@@ -45,4 +45,4 @@
|
||||
- [ ] 没有深层嵌套(>4 层)
|
||||
- [ ] 正确的错误处理
|
||||
- [ ] 没有硬编码值(使用常量或配置)
|
||||
- [ ] 没有变更(使用不可变模式)
|
||||
- [ ] 没有变更(使用不可变模式)
|
||||
|
||||
@@ -35,4 +35,10 @@
|
||||
4. **提交与推送**
|
||||
- 详细的提交消息
|
||||
- 遵循约定式提交格式
|
||||
- 参见 [git-workflow.md](./git-workflow.md) 了解提交消息格式和 PR 流程
|
||||
- 参见 [git-workflow.md](./git-workflow.md) 了解提交消息格式和 PR 流程
|
||||
|
||||
5. **审查前检查**
|
||||
- 验证所有自动化检查(CI/CD)已通过
|
||||
- 解决任何合并冲突
|
||||
- 确保分支已与目标分支同步
|
||||
- 仅在这些检查通过后请求审查
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
5. 如果是新分支,使用 `-u` 标志推送
|
||||
|
||||
> 对于 git 操作之前的完整开发流程(规划、TDD、代码审查),
|
||||
> 参见 [development-workflow.md](./development-workflow.md)。
|
||||
> 参见 [development-workflow.md](./development-workflow.md)。
|
||||
|
||||
@@ -27,4 +27,4 @@
|
||||
- 缺失的项目
|
||||
- 多余的不必要项目
|
||||
- 错误的粒度
|
||||
- 误解的需求
|
||||
- 误解的需求
|
||||
|
||||
@@ -28,4 +28,4 @@
|
||||
- 包含成功/状态指示器
|
||||
- 包含数据负载(错误时可为空)
|
||||
- 包含错误消息字段(成功时可为空)
|
||||
- 包含分页响应的元数据(total、page、limit)
|
||||
- 包含分页响应的元数据(total、page、limit)
|
||||
|
||||
@@ -52,4 +52,4 @@
|
||||
1. 使用 **build-error-resolver** 代理
|
||||
2. 分析错误消息
|
||||
3. 增量修复
|
||||
4. 每次修复后验证
|
||||
4. 每次修复后验证
|
||||
|
||||
@@ -26,4 +26,4 @@
|
||||
2. 使用 **security-reviewer** 代理
|
||||
3. 在继续之前修复关键问题
|
||||
4. 轮换任何已暴露的密钥
|
||||
5. 审查整个代码库中的类似问题
|
||||
5. 审查整个代码库中的类似问题
|
||||
|
||||
@@ -26,4 +26,4 @@
|
||||
|
||||
## 代理支持
|
||||
|
||||
- **tdd-guide** - 主动用于新功能,强制先写测试
|
||||
- **tdd-guide** - 主动用于新功能,强制先写测试
|
||||
|
||||
Reference in New Issue
Block a user