Loading...
Loading...
Compare original and translation side by side
patterns//reviewpatterns//reviewgh pr view --json baseRefName -q .baseRefNamegh repo view --json defaultBranchRef -q .defaultBranchRef.namemaingit fetch origin <base> --quiet && git diff origin/<base>feature/xmaingh pr view --json baseRefName -q .baseRefNamegh repo view --json defaultBranchRef -q .defaultBranchRef.namemaingit fetch origin <base> --quiet && git diff origin/<base>mainfeature/xpatterns/NN-*.mdpatterns/NN-*.md| Change touches… | Primary patterns | Secondary patterns |
|---|---|---|
| Buffer/array handling (C/C++) | 01, 11 | 06, 05 |
| New API endpoint | 03, 02, 16 | 12, 17 |
| Authentication/login flow | 03, 04 | 07, 09 |
| Database queries | 02, 03 | 20, 07 |
| File upload/download | 17, 02, 03 | 18, 20 |
| Cryptographic operations | 04 | 05, 11, 15 |
| Network protocol | 10, 01 | 05, 17 |
| Configuration changes | 12, 14 | 18, 03 |
| Dependency updates | 08, 14 | 15 |
| Lockfile drift (no package.json Δ) | 08 | 13, 14 |
| Registry / install config | 08, 13 | 12, 18 |
| CI/CD workflow changes | 08 | 13, 18 |
| GitHub Actions cache / OIDC scope | 08, 13 | 18, 19 |
| AI agent config (Claude/Cursor/etc) | 08, 13 | 12, 18 |
| Refactoring/cleanup | 14, 07 | 06, 05 |
| Error handling | 07 | 06, 19, 03 |
| Logging changes | 19 | 02, 12 |
| Container/deployment | 18, 12 | 08, 13 |
| Serialization/parsing | 02, 17, 01 | 09, 10, 20 |
| Concurrency/threading | 05 | 06, 10 |
| User input handling | 02, 17 | 09, 20, 01 |
| Frontend/UI code | 16, 02 | 09, 03 |
| Go code | 07, 05, 09 | 06, 15 |
Rust | 06, 01 | 05, 15 |
| 变更涉及… | 主要模式 | 次要模式 |
|---|---|---|
| 缓冲区/数组处理(C/C++) | 01, 11 | 06, 05 |
| 新API端点 | 03, 02, 16 | 12, 17 |
| 身份验证/登录流程 | 03, 04 | 07, 09 |
| 数据库查询 | 02, 03 | 20, 07 |
| 文件上传/下载 | 17, 02, 03 | 18, 20 |
| 加密操作 | 04 | 05, 11, 15 |
| 网络协议 | 10, 01 | 05, 17 |
| 配置变更 | 12, 14 | 18, 03 |
| 依赖项更新 | 08, 14 | 15 |
| 锁文件漂移(无package.json变更) | 08 | 13, 14 |
| 注册表/安装配置 | 08, 13 | 12, 18 |
| CI/CD工作流变更 | 08 | 13, 18 |
| GitHub Actions缓存/OIDC范围 | 08, 13 | 18, 19 |
| AI Agent配置(Claude/Cursor等) | 08, 13 | 12, 18 |
| 重构/清理 | 14, 07 | 06, 05 |
| 错误处理 | 07 | 06, 19, 03 |
| 日志变更 | 19 | 02, 12 |
| 容器/部署 | 18, 12 | 08, 13 |
| 序列化/解析 | 02, 17, 01 | 09, 10, 20 |
| 并发/线程 | 05 | 06, 10 |
| 用户输入处理 | 02, 17 | 09, 20, 01 |
| 前端/UI代码 | 16, 02 | 09, 03 |
| Go代码 | 07, 05, 09 | 06, 15 |
Rust | 06, 01 | 05, 15 |
patterns/NN-*.mdfile:linepatterns/NN-*.md文件:行号git diff origin/<base>git diff origin/<base>catalog/missed-in-review.mdcatalog/caught-in-review.mdcatalog/concurrency-and-crypto-bugs.md/orders/:idcatalog/missed-in-review.mdcatalog/caught-in-review.mdcatalog/concurrency-and-crypto-bugs.md/orders/:idSecurity Review: N findings (X critical, Y high, Z informational)[SEVERITY] [pattern NN] file:line
Problem: <1-2 lines>
Evidence: <cite the red flag from the pattern file, or the CVE it matches>
Fix: <concrete patch>/reviewSecureHttpOnlyAskUserQuestion安全审查:共N个发现(X个严重,Y个高风险,Z个信息性)[严重程度] [模式NN] 文件:行号
问题:<1-2行描述>
证据:<引用模式文件中的危险信号,或匹配的CVE>
修复方案:<具体补丁>/reviewSecureHttpOnlyAskUserQuestionfile:line文件:行号/review/review/review/review-security/review/review/review-security/review