AGENT SKILL

质量门禁 PR 提交

to-quality-pr

质量门禁式发布:先运行 ensure-quality,再提交通过门禁的改动,并创建一个分诊 PR,其正文为门禁摘要(LOW_RISK_MERGE / MEDIUM_REVIEW / HIGH_HOLD)。作为防止 AI 低质代码流出机器的护栏。当用户要求 to-quality-pr、质量 PR、门禁提 PR、发布 PR 或在改动后创建 PR 时使用;在完成实质性或 AI 生成的工作、且下一步是拉取请求时使用;优先于没有质量门禁的直接提交或创建 PR。

License 许可
GPL-2.0
所属仓库
gambitph/Cimo
最近更新
2026-10-15
Stars
★ 2
Forks
0

01 前言 Front Matter

name
to-quality-pr
description
Quality-gated ship: run ensure-quality, then commit dirty gated work and open a triage PR whose body is the gate summary (LOW_RISK_MERGE / MEDIUM_REVIEW / HIGH_HOLD). Guardrail against AI slop leaving the machine. Use when the user asks to to-quality-pr, quality PR, gate and PR, ship a PR, or open a PR after changes; after finishing substantive or AI-generated work when the next step is a pull request; prefer this over committing or opening a PR without a quality gate.

02 资源文件 3

03 SKILL.md 正文

To quality PR

Ship guardrail: gate first, then PR. Runs ensure-quality to completion, then commits the gated worktree and opens a pull request whose description is the gate output in a triage-first format. Reviewers should decide merge-now vs inspect-first from the PR header alone.

Does not re-implement the gate. Anti-slop / review / test / docs / lint live only in ensure-quality.

Stages (order): ensure-quality → ship (branch → commit → push → PR). Load reference/ship.md and reference/pr-body.md only when ship runs.

When to run

Fire this skill when any of these hold:

  • The user asks for to-quality-pr / quality PR / gate and PR / ship a PR / open a PR after changes.
  • You finished substantive or AI-generated source changes and the natural next step is a pull request.
  • You would otherwise commit and open a PR without a quality gate.

Prefer ensure-quality alone when the user wants a local gate only (no commit, no PR). Skip auto-invoke for pure Q&A, exploration with no edits, or when the user said to keep iterating without shipping.

Preconditions

  1. Synthesize intent the same way ensure-quality requires - authoritative acceptance criteria for the gate.
  2. Confirm ship target. Record base branch (same default resolution as ensure-quality's fixed-point base) and whether the user named a PR title or branch.
  3. Dirty scope. Note that ship will include all work ensure-quality gated (committed-since-fixed-point plus unstaged/staged fixes the gate applied).

Completion: intent written; ship target named; then enter the pipeline.

Pipeline

1. Ensure quality

Read and execute .cursor/skills/ensure-quality/SKILL.md fully for this worktree. Honor its HITL pauses; do not ship past unresolved ask-user findings. Capture its Summary fields verbatim for the PR body - do not invent a second risk score.

If Summary Ship readiness is blocked (or the gate aborts): stop. Leave the worktree dirty. Emit a short blocked report (intent, risk, remaining findings). Do not commit. Do not push. Do not open a PR.

If the gate reports ready with an empty diff (nothing to gate): stop and say so - no empty PR.

2. Ship

Only when ensure-quality ended Ship readiness: ready with a non-empty gated change set.

  1. Read reference/ship.md and follow it (branch, commit, push).
  2. Read reference/pr-body.md, map Summary → triage verdict + body, open the PR.
  3. Return the PR URL and the triage verdict to the user.

Completion: PR URL exists (or ship blocked with a concrete git/gh error); verdict stated; worktree clean relative to the pushed commit unless the user forbade commit.

Triage verdict (summary)

Derived in reference/pr-body.md from ensure-quality Risk (+ caution signal):

Verdict Meaning for reviewers
LOW_RISK_MERGE Skim intent + diffstat; merge if CI green
MEDIUM_REVIEW Read Caution and linked hunks before merge
HIGH_HOLD Do not merge until Caution is checked; open as draft unless the user already approved shipping high risk

Empty Caution on Medium or High is a skill failure - rewrite before gh pr create.

04 同仓库更多 Skills

gambitph
gambitph/Cimo

智能体技能文档编写

writing-for-agents

为智能体编写文档。在创建或编辑技能(skills),或修改 AGENTS.md 或 CLAUDE.md 时使用。

AI 工程师智能体开发
★ 2
gambitph
gambitph/Cimo

WordPress REST API 开发

wp-rest-api

用于构建、扩展或调试 WordPress REST API 端点/路由:register_rest_route、WP_REST_Controller/控制器类、schema/参数校验、permission_callback/身份验证、响应构造、register_rest_field/register_meta,或通过 show_in_rest 暴露 CPT/分类法。

软件开发工程师内容管理系统开发
★ 2
gambitph
gambitph/Cimo

WordPress 项目诊断

wp-project-triage

当你需要对 WordPress 仓库(插件/主题/区块主题/WP 核心/Gutenberg/完整站点)进行确定性检查,包括工具链/测试/版本提示,并生成结构化 JSON 报告以指导工作流和防护栏时使用。

软件开发工程师内容管理系统开发
★ 2
gambitph
gambitph/Cimo

WordPress插件目录合规审查

wp-plugin-directory-guidelines

审查 WordPress 插件的 GPL 合规性、检查许可证头或兼容性、评估追加销售/免费增值/试用版(upsell/freemium/trialware)模式、验证插件命名或商标规则、检查插件 slug、理解某个插件为何被 WordPress.org 拒绝,或回答有关 18 条 WordPress.org 插件目录指南的任何问题——即使用户没有明确提到『指南』。

质量合规审核员开源许可证合规审计
★ 2
gambitph
gambitph/Cimo

WordPress插件开发

wp-plugin-development

开发 WordPress 插件时使用:架构与钩子、激活/停用/卸载、管理界面与 Settings API、数据存储、定时任务、安全(nonce/权限/清理/转义)以及发布打包。

软件开发工程师内容管理系统开发
★ 2
gambitph
gambitph/Cimo

WordPress 性能剖析与优化

wp-performance

在排查或改进 WordPress 性能时使用(仅限后端代理):性能剖析与测量(WP-CLI profile/doctor、Server-Timing、通过 REST 请求头使用 Query Monitor)、数据库/查询优化、自动加载选项(autoloaded options)、对象缓存、定时任务(cron)、HTTP API 调用,以及安全验证。

软件开发工程师性能剖析与优化
★ 2