Agent Skillsopen-mercato/open-mercato › om-pr-autopilot

om-pr-autopilot

GitHub

扩展PR自动飞行技能,定义仓库特定的差异范围分类、标签体系和QA门禁规则。处理权限不足场景及缺失技能安装,确保PR流程符合内部规范与合并限制。

.ai/skills/om-pr-autopilot/SKILL.md open-mercato/open-mercato

触发场景

需要分析PR代码变更范围 执行PR自动化审查流程 检查QA门禁状态

安装

npx skills add open-mercato/open-mercato --skill om-pr-autopilot -g -y
更多选项

非标准路径

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

不安装直接使用

npx skills use open-mercato/open-mercato@om-pr-autopilot

指定 Agent (Claude Code)

npx skills add open-mercato/open-mercato --skill om-pr-autopilot -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-pr-autopilot",
    "description": "Open Mercato repo-local extension of the shared `om-pr-autopilot` skill (installed from open-mercato\/skills into .agents\/skills\/). Adds this repo's label taxonomy and QA gate, the concrete diff-scope classification, what a triage-permission `403` means for the claim when the active account hits one, and the install command for a missing companion skill."
}

PR Autopilot — Open Mercato extension

This file extends the shared om-pr-autopilot skill from open-mercato/skills (installed at .agents/skills/om-pr-autopilot/SKILL.md). Follow the shared skill's full workflow — agentic setup, PR resolution, outer claim, the ten diagnosis signals, the state matrix, chain execution, the summary report, lock release — with the repo-specific rules below layered on top.

The shared skill's own references (references/diagnose.md, references/state-matrix.md, references/report-templates.md, references/claim-pr.md, …) live next to it under .agents/skills/om-pr-autopilot/; they are not committed here. When the shared skill or any companion it dispatches to is missing, run yarn install-skills and re-enter — never improvise a substitute procedure for the claim, worktree, diagnosis, or setup mechanics.

Diff-scope classification (this repo's layers)

The shared references/diagnose.md signal 4 asks for the diff's scope. In this repository, classify against:

  • spec-only — only .ai/specs/ or .ai/specs/enterprise/ (the config's paths.specs). A spec-only PR gets the specification review and must never grow into implementation here.
  • docs-onlyapps/docs/, root markdown, AGENTS.md files, .ai/skills/, .ai/runs/.
  • UI-touchingpackages/ui/, any module's backend/ or frontend/ pages and components, and the customer-portal surfaces. This is what drives needs-qa.
  • migration/schemamigrations/, .snapshot-open-mercato.json, ORM entities under data/entities.ts.
  • contract surface — anything enumerated in BACKWARD_COMPATIBILITY.md: auto-discovery files, exported types and signatures, import paths, event IDs, widget spot IDs, API routes, DB schema, DI keys, ACL feature IDs, notification IDs, CLI commands, generated registries. A touch here forces risk-high and deeper review.

Label taxonomy and the QA gate

The label vocabulary, the mutual-exclusion groups, and the priority/risk inference rules are defined in the root AGENTS.md → PR Workflow section; read it rather than restating the taxonomy. Three repo rules bind the chain:

  • The QA-approval merge gate is hard. A PR carrying needs-qa without qa-approved MUST NOT merge, even when everything else is green. skip-qa is the explicit opt-out; never combine it with needs-qa/qa-approved.
  • Never set the qa pipeline label. It means "manual QA in progress" and is applied by QA reviewers only. This skill and everything it dispatches request QA with needs-qa alone.
  • qa-failed, blocked, and do-not-merge are hard blocks — matrix row 0c stops on them.

When the active account lacks triage rights

Triage permission here depends on which account the run is executing as: a maintainer run assigns and labels normally, an outside-contributor run cannot. Never assume either way — perform the full three-signal claim exactly as the shared references/claim-pr.md prescribes, and degrade only in response to a real permission error.

When assign-pr or apply_label actually returns a 403 (replaceActorsForAssignable / addLabelsToLabelable), that is an expected outcome for a contributor account, not an incident: the outer claim degrades to the 🤖 claim comment alone, the release path tolerates the absent in-progress label, and the intended label set is listed in the summary comment addressed to a maintainer. Do not retry the mutation that failed, and never report a label or an assignee as applied when it was not — the reverse holds too: when the mutations succeed, the claim and the label state machine run in full.

Validation

This skill dispatches rather than validating; the delegated skills own the gate. When one of them runs it, the ordered validation.commands list in .ai/agentic.config.json is the CI-mirroring gate, and the Docker-vs-local runner decision in root AGENTS.md § Validation Commands applies. Prefer GitHub PR check results over re-running the gate locally, per .ai/skills/om-auto-review-pr/SKILL.md.

版本历史

  • 8b49232 当前 2026-08-27 19:05

同 Skill 集合

.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-review-pr/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-auto-upgrade-0.6.6-to-0.6.7/SKILL.md
.ai/skills/om-auto-upgrade-0.6.7-to-0.7.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-judge-agent-session/SKILL.md
.ai/skills/om-migrate-mikro-orm/SKILL.md
.ai/skills/om-mockup-prototype/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-refresh-standalone-harness/SKILL.md
.ai/skills/om-share-this-session/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-figma-design-with-ds/SKILL.md
.ai/skills/om-gap-analysis/SKILL.md

元信息

文件数
0
版本
8b49232
Hash
a55c23ac
收录时间
2026-08-27 19:05

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 01:58
浙ICP备14020137号-1 $访客地图$