Pr Review

minimax-ai/skills/.claude/skills/pr-review

作者 minimax-ai60aaae52bb2aMIT13K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库5个月前更新

Review pull requests for the MiniMax Skills repository. Use when reviewing PRs, validating new skill submissions, or checking existing skills for compliance. Run the validation script first for hard checks, then apply quality guidelines for content review. Triggers: PR review, pull request, validate skill, check skill.

AI 生成的概览

使用验证脚本和内容质量指南审查 MiniMax Skills 仓库的拉取请求。

功能
对提交到 MiniMax Skills 仓库的拉取请求执行两阶段审查流程。第一阶段运行验证脚本,检查结构性要求,例如 SKILL.md 是否存在、YAML frontmatter 是否可解析、必填字段、名称与目录是否匹配以及是否包含硬编码密钥。第二阶段应用质量指南,涵盖技能范围、描述触发条件、文件大小、API 密钥处理、脚本质量、语言以及 README 同步。它会产出审查发现以及阻塞项和标记项的检查清单。
适用场景
适用于审查拉取请求、验证新技能提交,或检查现有技能是否符合仓库标准。面向维护者或贡献者,用于评估技能提交是否满足硬性结构规则和软性质量指南。
运行要求
需要 Python 来运行随附的验证脚本 scripts/validate_skills.py。该技能附带可执行脚本,并引用两份模型可读文档:references/quality-guidelines.md 和 references/structure-rules.md。未说明需要凭据或网络访问。

PR Review Skill

Review pull requests against repository standards. Two-phase process: automated validation, then manual content review.

Phase 1: Automated Validation (Hard Rules)

Run the validation script to check structural requirements:

bash
python .claude/skills/pr-review/scripts/validate_skills.py

The script checks:

  • SKILL.md exists in every skill directory
  • YAML frontmatter is parseable
  • Required fields present: name, description
  • name matches directory name
  • No hardcoded secrets detected

All ERROR-level checks must pass. WARNING-level items (missing license, metadata) should be flagged but are not blockers.

See references/structure-rules.md [blocked] for the complete hard rules specification.

Phase 2: Content Review (Soft Guidelines)

After automated checks pass, review the PR against quality guidelines:

  1. Skill scope — Does it overlap with existing skills? Is the boundary clear?
  2. Description quality — Does the description include clear trigger conditions?
  3. File size — Are reference docs reasonably sized for context window consumption?
  4. API key handling — If external APIs are used, are credentials read from environment variables?
  5. Script quality — Do scripts have shebang, requirements.txt, and error handling?
  6. Language — Are SKILL.md and code written in English?
  7. README sync — Are README.md and README_zh.md updated for new skills?

See references/quality-guidelines.md [blocked] for soft guidelines details.

Review Checklist Summary

Must Pass (Blockers)

  • validate_skills.py exits with code 0
  • PR title follows conventional commit format
  • One PR, one purpose

Should Pass (Flagged in Review)

  • No functional overlap with existing skills
  • Description includes trigger conditions
  • Files are reasonably sized
  • API keys via environment variables
  • README tables updated for new skills (Source column set to Community)

来源与署名

来源:minimax-ai/skills位于.claude/skills/pr-review提交60aaae5

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架