AgentSkillsCN

pr-toolkit

全面的拉取请求质量工具集。在审查PR、准备代码合并,或分析代码变更时使用此功能。该工具集可引导至多个专业子技能:代码审查员(检查样式与规范合规性)、代码简化器(提升代码清晰度与可维护性)、评论分析器(确保文档准确性)、PR测试分析器(识别测试覆盖率缺口)、静默失败猎手(进行错误处理审计)、类型设计分析器(确保类型不变量的质量)。

SKILL.md
--- frontmatter
name: pr-toolkit
description: 'Comprehensive pull request quality toolkit. Use when reviewing PRs, preparing code for merge, or analyzing code changes. Routes to specialized sub-skills: code-reviewer (style/guideline compliance), code-simplifier (clarity/maintainability), comment-analyzer (documentation accuracy), pr-test-analyzer (test coverage gaps), silent-failure-hunter (error handling audit), type-design-analyzer (type invariant quality).'
license: MIT
metadata:
  author: ngx-vest-forms
  version: "1.0"

PR Toolkit

An orchestrator skill that routes pull request review tasks to the appropriate specialized sub-skill.

When to Use

Use this skill when:

  • Reviewing a pull request for overall quality
  • Preparing code for merge
  • Running a comprehensive pre-merge checklist
  • Unsure which specific review tool to use

Available Sub-Skills

Sub-SkillPurposeWhen to Use
code-reviewerGuideline compliance and bug detectionAfter writing code, before committing
code-simplifierClarity and maintainability refinementAfter completing a coding task
comment-analyzerDocumentation accuracy verificationAfter adding/modifying comments or docs
pr-test-analyzerTest coverage gap analysisAfter creating or updating a PR
silent-failure-hunterError handling and silent failure auditWhen code has try/catch, fallbacks, or error handling
type-design-analyzerType invariant and encapsulation qualityWhen introducing or modifying types

Recommended Workflow

For a thorough PR review, run the sub-skills in this order:

  1. code-reviewer - Catch guideline violations and bugs first
  2. silent-failure-hunter - Ensure error handling is robust
  3. type-design-analyzer - Verify type design quality
  4. pr-test-analyzer - Identify test coverage gaps
  5. comment-analyzer - Verify documentation accuracy
  6. code-simplifier - Final clarity pass

Project Context

This project uses:

  • Angular 21 with standalone components and signals
  • TypeScript ~5.9 with strict mode
  • Vest.js for validation
  • Vitest for unit testing
  • Playwright for E2E testing
  • Tailwind CSS v4 for styling

Review against the project's guidelines in .github/instructions/ and .github/copilot-instructions.md.