Agent Skillsopen-mercato/open-mercato › om-auto-review-pr

om-auto-review-pr

GitHub

扩展PR自动审查技能,优先使用GitHub CI检查结果进行验证以节省资源,仅在CI数据不可用时回退本地测试。设定更严格的评审标准:Medium及以上发现即请求更改,仅Low或无发现则批准。

.ai/skills/om-auto-review-pr/SKILL.md open-mercato/open-mercato

Trigger Scenarios

收到Pull Request审查任务 需要执行代码质量与逻辑审查

Install

npx skills add open-mercato/open-mercato --skill om-auto-review-pr -g -y
More Options

Non-standard path

npx skills add https://github.com/open-mercato/open-mercato/tree/main/.ai/skills/om-auto-review-pr -g -y

Use without installing

npx skills use open-mercato/open-mercato@om-auto-review-pr

指定 Agent (Claude Code)

npx skills add open-mercato/open-mercato --skill om-auto-review-pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add open-mercato/open-mercato --all -g -y

预览 repo 内 skill

npx skills add open-mercato/open-mercato --list

SKILL.md

Frontmatter
{
    "name": "om-auto-review-pr",
    "description": "Open Mercato repo-local extension of the shared `om-auto-review-pr` skill (installed from open-mercato\/skills into .agents\/skills\/). Makes the review GitHub-checks-first (local validation only as a narrow fallback) and keeps this repo's stricter verdict rule (Medium findings request changes)."
}

Auto Review PR — Open Mercato extension

This file extends the shared om-auto-review-pr skill from open-mercato/skills (installed at .agents/skills/om-auto-review-pr/SKILL.md). Follow the shared skill's full workflow — claim protocol, worktree isolation, review, verdict, labels, autofix loop, lock release — with the repo-specific rules below layered on top. The om-code-review step also picks up this repo's own extension at .ai/skills/om-code-review/SKILL.md.

GitHub-checks-first validation (saves local resources)

CI already runs the full validation gate on every PR. Prefer GitHub PR check results over re-running validation.commands locally:

  • Read the current PR checks (tracker operation get-pr-checks) and required checks (get-required-checks) first.
  • For failing checks, inspect the check logs from GitHub rather than reproducing locally — e.g. gh run view <run-id> --log-failed when the check links to a workflow run.
  • Run local test, typecheck, lint, build, template-sync, Playwright, package-install, or migration commands only as a fallback when GitHub check data is unavailable or unusable for the current PR head (permissions/API errors, no reported checks for the head SHA, or a failing check whose logs cannot be opened).
  • Keep the fallback as narrow as the missing CI signal allows: relevant unit tests / typecheck for the changed packages first; expand to workspace scope only when findings touch shared contracts or multiple packages; run broad yarn lint / yarn test / yarn typecheck / yarn build:* only when GitHub provides no usable check data for those gates.
  • If required checks are merely pending, do not run local substitutes — continue the code review, report the pending checks, and let branch protection plus the merge queue hold the actual merge.
  • Record the validation source in the review report (Validation source: GitHub checks / local fallback (<commands>)).

When the shared skill (or the shared om-code-review) asks for local validation, first replace that action with GitHub check inspection under the rules above. Keep the same analysis depth: read code, specs, tests, contracts, and relevant docs.

Verdict rule (stricter than the shared default)

This repo requests changes on Medium findings too:

Condition Decision
Any Critical/blocker, High/major, or Medium/minor finding changes_requested
Only Low/nit findings approved
No findings approved

Repo conventions the shared workflow already parameterizes

  • Base branch: PRs target develop (config baseBranch); the PR's own baseRefName stays authoritative for diffs.
  • Labels, QA gate, and claim protocol: as defined in .ai/agentic.config.json and root AGENTS.md (QA-approval merge gate: needs-qa without qa-approved never merges; auto-skills never touch the qa pipeline label).

Version History

  • c915d76 Current 2026-07-24 20:42

Same Skill Collection

.ai/skills/codex/backend-ui-design/SKILL.md
.ai/skills/om-app-spec-writing/SKILL.md
.ai/skills/om-auto-continue-pr-loop/SKILL.md
.ai/skills/om-auto-create-pr-loop/SKILL.md
.ai/skills/om-auto-publish-pr/SKILL.md
.ai/skills/om-auto-qa-scenarios/SKILL.md
.ai/skills/om-auto-sec-report-pr/SKILL.md
.ai/skills/om-auto-sec-report/SKILL.md
.ai/skills/om-auto-upgrade-0.4.10-to-0.5.0/SKILL.md
.ai/skills/om-backend-ui-design/SKILL.md
.ai/skills/om-code-review/SKILL.md
.ai/skills/om-create-agents-md/SKILL.md
.ai/skills/om-dev-container-maintenance/SKILL.md
.ai/skills/om-ds-guardian/SKILL.md
.ai/skills/om-fix-specs/SKILL.md
.ai/skills/om-followup-issue-from-pr/SKILL.md
.ai/skills/om-help/SKILL.md
.ai/skills/om-implement-spec/SKILL.md
.ai/skills/om-integration-builder/SKILL.md
.ai/skills/om-integration-tests/SKILL.md
.ai/skills/om-migrate-mikro-orm/SKILL.md
.ai/skills/om-pre-implement-spec/SKILL.md
.ai/skills/om-prepare-issue/SKILL.md
.ai/skills/om-prepare-test-env/SKILL.md
.ai/skills/om-skill-creator/SKILL.md
.ai/skills/om-smart-test/SKILL.md
.ai/skills/om-spec-writing/SKILL.md
.ai/skills/om-create-ai-agent/SKILL.md
.ai/skills/om-gap-analysis/SKILL.md

Metadata

Files
0
Version
d61843e
Hash
5cd25e37
Indexed
2026-07-24 20:42

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 02:20
浙ICP备14020137号-1 $방문자$