Agent Skills
› pony-maggie/code_minions
› ai-code-review
ai-code-review
GitHub根据工单验收标准审查代码差异,识别阻塞、主要及次要问题,并生成结构化报告。
Trigger Scenarios
需要检查代码差异是否符合需求
提交代码前的自动化审查
Install
npx skills add pony-maggie/code_minions --skill ai-code-review -g -y
SKILL.md
Frontmatter
{
"llm": {
"temperature": 0.1,
"max_iterations": 15
},
"name": "ai-code-review",
"role": "reviewer",
"inputs": {
"diff": {
"type": "string",
"required": true
},
"ticket": {
"type": "object",
"required": true
},
"files_changed": {
"type": "array",
"required": true
}
},
"outputs": {
"issues": {
"type": "array"
},
"summary": {
"type": "string"
},
"approved": {
"type": "boolean"
}
},
"description": "Structured review of a diff against a ticket's acceptance criteria.",
"allowed-tools": [
"Read"
],
"required-mcps": []
}
ai-code-review
Review a code diff against the ticket's acceptance criteria and project conventions.
Inputs
diff(string, required): unified diff of the changes to review.ticket(object, required): the task/ticket being implemented (hasacceptance_criteria).files_changed(string[], required): relative paths of modified files (for reading full context).
Instructions
- Consult
AGENTS.mdfor project-specific conventions. - For each modified file, read the full current content with the built-in
Readtool to understand context beyond the diff. - Produce structured issues with severity:
blocker: breaks the contract, insecure, or fails the acceptance criteriamajor: logic bug, performance issue, API contract driftminor: readability, minor design smellnit: style/naming/typo
- Do NOT fix the code; only report.
Outputs (reply JSON)
issues(object[]):{severity, file, line, description, suggested_fix}summary(string): 2-4 sentence overall assessmentapproved(boolean): true if no blocker/major issues remain
Version History
- ac75593 Current 2026-07-24 17:41


