comprehensive-review-pr-enhance – skill Lập trình cho agent AI
Tạo mô tả PR có cấu trúc từ diff, thêm danh sách kiểm tra review, đánh giá rủi ro và tóm tắt độ phủ kiểm thử. Dùng khi người dùng nói "viết mô tả PR", "cải thiện PR này", "tóm tắt thay đổi của tôi", "PR review", "pull request", hoặc yêu cầu ghi lại diff cho người review.
Cài skill comprehensive-review-pr-enhance bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/comprehensive-review-pr-enhance-eed11.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /comprehensive-review-pr-enhance – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/comprehensive-review-pr-enhance-eed11.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $comprehensive-review-pr-enhance – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/comprehensive-review-pr-enhance-eed11.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /comprehensive-review-pr-enhance – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/comprehensive-review-pr-enhance-eed11.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /comprehensive-review-pr-enhance – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Pull Request Enhancement
When to Use
- You need to turn a git diff into a reviewer-friendly pull request description.
- You want a PR summary with change categories, risks, testing notes, and a checklist.
- The diff is large enough that reviewers need explicit structure instead of a short ad hoc summary.
Workflow
1. Run git diff <base>...HEAD --stat to identify changed files and scope
2. Categorise changes: source, test, config, docs, build, styles
3. Generate the PR description using the template below
4. Add a review checklist based on which file categories changed
5. Flag breaking changes, security-sensitive files, or large diffs (>500 lines)
PR Description Template
## Summary
<!-- one-paragraph executive summary: what changed and why -->
## Changes
| Category | Files | Key change |
|----------|-------|------------|
| source | `src/auth.ts` | added OAuth2 PKCE flow |
| test | `tests/auth.test.ts` | covers token refresh edge case |
| config | `.env.example` | new `OAUTH_CLIENT_ID` var |
## Why
<!-- link to issue/ticket + one sentence on motivation -->
## Testing
- [ ] unit tests pass (`npm test`)
- [ ] manual smoke test on staging
- [ ] no coverage regression
## Risks & Rollback
- **Breaking?** yes / no
- **Rollback**: revert this commit; no migration needed
- **Risk level**: low / medium / high — because ___Review Checklist Rules
Add checklist sections only when the matching file category appears in the diff:
| File category | Checklist items |
|---------------|----------------|
| source | no debug statements, functions <50 lines, descriptive names, error handling |
| test | meaningful assertions, edge cases, no flaky tests, AAA pattern |
| config | no hardcoded secrets, env vars documented, backwards compatible |
| docs | accurate, examples included, changelog updated |
| security-sensitive (auth, crypto, token, password in path) | input validation, no secrets in logs, authz correct |
Splitting Large PRs
When diff exceeds 20 files or 1000 lines, suggest splitting by feature area:
git checkout -b feature/part-1
git cherry-pick <commits-for-part-1>Resources
resources/implementation-playbook.md— Python helpers for automated PR analysis, coverage reports, and risk scoring
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Evidence and helper limits
Use the repository’s existing PR template and scale the description to the actual diff; do not invent metrics, tests, performance gains, rollback safety or issue intent. These Python fragments are incomplete sketches: status/category/impact/dependency/coverage/AI helper functions are absent, so no automated review result exists until implemented and run. Bind base/head SHAs and compare compatible coverage from the same tool/configuration and scope in isolated checkouts; unavailable coverage is unknown, not zero. Risk averages, line-count thresholds and review-time estimates are arbitrary advisory heuristics and cannot override a specific severe finding or required review. The fixed architecture diagram is illustrative, not inferred evidence. Diff-line positions need Git hunk mapping and renamed/deleted/binary-file handling; regex matches and file-name categories are not security analysis. Split branches must originate from the agreed base rather than successively cherry-picking onto branches already containing all changes. Drafting descriptions does not authorize branch pushes, PR creation, comments, reviews or merges; apply the user’s actual authorized action and repository rules.
Skill liên quan
- concise-planning – Dùng khi người dùng yêu cầu kế hoạch cho một tác vụ lập trình, để tạo danh sách kiểm tra…
- conductor-revert – Hoàn tác có nhận biết Git theo đơn vị công việc logic (track, phase hoặc task)
- rust-async-patterns – Làm chủ lập trình bất đồng bộ trong Rust với Tokio, async trait, xử lý lỗi và các mẫu…
- python-debugpy – Gỡ lỗi Python: REPL pdb + debugpy từ xa (DAP).
- context-driven-development – Hướng dẫn triển khai và duy trì ngữ cảnh như một artifact được quản lý cùng với mã…
- convex – Chuyên gia backend reactive Convex: thiết kế schema, hàm TypeScript, đăng ký real-time…
- convex-backend – Xây dựng backend reactive với hàm Convex, kiểm tra schema, tích hợp auth và quy trình…
- copilot-delegate – Chỉ giao tác vụ viết code cho GitHub Copilot CLI (`copilot`) khi người dùng yêu cầu rõ…