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 從公開儲存庫中收錄這些內容。

檢舉或申請下架

Pr Review · .claude/skills/pr-review 代理程式技能 | SourceWeft