quality-gate-automation-architect
Use when designing, comparing, or reviewing autonomous repo-quality automation for pull-request repair, coverage ratchets, analyzer debt burn-down, or merge-governance decisions. Triggers include requests to keep PRs green, auto-fix failing checks, plan Sonar or Codacy workflows, compare GitHub-native versus Codex versus local automation, or decide between zero-touch and human-approved merges.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- quality-gate-automation-architect
- description
- Use when designing, comparing, or reviewing autonomous repo-quality automation for pull-request repair, coverage ratchets, analyzer debt burn-down, or merge-governance decisions. Triggers include requests to keep PRs green, auto-fix failing checks, plan Sonar or Codacy workflows, compare GitHub-native versus Codex versus local automation, or decide between zero-touch and human-approved merges.
02 资源文件 14
- 参考文档agents/openai.yaml238 B
- 参考文档backlog-template.md564 B
- 参考文档checklist.md1.1 KB
- 参考文档discover-inputs.md3.8 KB
- 参考文档references/analyzers-and-gates.md3.4 KB
- 参考文档references/evidence-refresh.md2.0 KB
- 参考文档references/github-control-plane.md2.9 KB
- 参考文档references/local-consult-lane.md2.6 KB
- 参考文档references/openai-codex-workers.md2.6 KB
- 参考文档steps/step-01-gather-context.md6.4 KB
- 参考文档steps/step-02-review.md2.2 KB
- 参考文档steps/step-03-triage.md2.7 KB
- 参考文档steps/step-04-present.md6.0 KB
- 参考文档workflow.md2.1 KB
03 SKILL.md 正文
Quality Gate Automation Architect
Overview
Design safe, bounded automation systems for repo quality work. Prefer short, auditable loops with explicit stop rules over long-lived "super-agent" flows that mix repair, debt cleanup, and merge policy into one opaque process.
Reference Map
- Read references/github-control-plane.md when GitHub is or should be the control plane.
- Read references/openai-codex-workers.md when Codex is a candidate worker or the user mentions Codex app, Codex Cloud,
codex exec, oropenai/codex-action. - Read references/analyzers-and-gates.md when coverage, SonarQube Cloud, Codacy, Codecov, or branch-protection quality gates are involved.
- Read references/local-consult-lane.md when a local agent sidecar, local schedulers, VS Code sidecars, or Codex app automations are part of the design.
- Read references/evidence-refresh.md when the user wants the skill or references to absorb recurring lessons from prior sessions or repos.
Workflow Decision
digraph automation_decision {
rankdir=TB;
ask [label="Need unattended repo work while away?", shape=diamond];
github [label="Prefer GitHub as control plane", shape=box];
local [label="Local lane can stay secondary", shape=box];
codex [label="Need custom prompts and worker behavior?", shape=diamond];
codex_primary [label="Use Codex as repair worker", shape=box];
github_primary [label="Use GitHub-native agent", shape=box];
hybrid [label="Keep local app / sidecar as consultation lane", shape=box];
ask -> github [label="yes"];
ask -> local [label="no"];
github -> codex;
codex -> codex_primary [label="yes"];
codex -> github_primary [label="no"];
local -> hybrid;
codex_primary -> hybrid;
github_primary -> hybrid;
}
Required Discovery
Before proposing architecture, inspect or establish these facts:
- Current control plane: GitHub Actions, hosted agent, local scheduler, Codex app automation, or mixed.
- Current signal producers: tests, coverage, lint, security scans, SonarQube Cloud, Codacy, Codecov, visual checks, deployment checks.
- Current merge policy: branch protection, rulesets, required approvals, merge queue, zero-touch tolerance.
- Mutation surfaces: which actor is allowed to edit code, rerun checks, update branches, or merge.
- Scope split: whether historical debt is separate from pull-request repair.
Ask follow-up questions only for high-impact intent that cannot be discovered:
- What outcome is primary: PR rescue, coverage ratchet, debt reduction, or governance design?
- Is true unattended behavior required, or is a consultation lane acceptable?
- Is human-approved merge mandatory?
- Are there explicit "never touch" areas such as auth, security, infra, migrations, or release branches?
Ask one question at a time.
Required Comparison
Always compare these three backbones, even if one is obviously favored:
1. GitHub-native agent
Use when GitHub should own the control plane and the user wants the most reliable unattended path. Emphasize governance, branch protection, PR workflow fit, and built-in review requirements.
2. OpenAI-first Codex
Use when the worker needs tighter prompt control, custom repair policies, or consistent behavior across CLI, app, and CI. Emphasize that GitHub can still remain the control plane while Codex is the repair worker.
3. Local-first hybrid
Use when the user needs rich local context, local sidecar consultation, or local-only tools. Keep it secondary unless the user explicitly accepts machine-uptime dependency and sidecar fragility.
State which lane is primary, which lanes are secondary, and why.
Required Lane Separation
Never collapse these into one generic loop:
PR repair lane: make required checks green on the current PR head SHA.Coverage ratchet lane: raise or preserve coverage with narrow, test-led changes.Analyzer debt burn-down lane: reduce historical Sonar or Codacy backlog in small reviewable batches.Consultation lane: explain blocked cases, classify failures, or design next steps without becoming the main unattended executor.
Only let historical debt enter the PR repair lane when the failing PR explicitly requires it.
Required Guardrails
Every plan must make concrete decisions for:
- concurrency per PR or branch
- retry budget
- stop-on-no-progress rule
- stale-head-SHA behavior
- diff size or file scope caps
- allowed production edits versus test-only preference
- flaky or external provider handling
- zero-touch versus human-approved merge
- audit trail and status reporting
Default recommendations unless the user overrides them:
- human-approved merge
- one bounded attempt per failure classification before escalation
- separate coverage work from lint or analyzer debt work
- prefer targeted tests over production refactors
- stop with
success,partial, orblocked
Output Contract
Return a complete playbook with these sections:
recommendationoption_comparisonarchitectureworkflow_outlineprompt_patternsguardrailsrollout_phasesrisksvalidation_plan
If the user asks casually, the sections can be prose instead of literal JSON keys, but all nine elements must still be present.
Prompt Patterns
Reuse and adapt these defaults:
PR repair
Read the current failing required checks, CI logs, and provider statuses for this PR. Goal: make the required checks on the latest head SHA pass. Make the smallest high-confidence changes necessary. Keep work scoped to the failing lane. Re-run the smallest relevant verification. Stop if the next step needs broader refactoring or if no meaningful progress is possible.
Coverage ratchet
Read the PR diff and coverage report. Prefer targeted tests in already-touched code. Avoid broad refactors. Allow only tiny seam changes when behavior-preserving. Stop as soon as the ratchet target is met or the next gain would require broader production changes.
Analyzer debt burn-down
Fix one rule family in one subsystem. Keep the batch reviewable. Do not mix coverage work, dependency updates, or unrelated cleanup. Stop when the batch crosses behavioral boundaries or when reviewer-only judgment is required.
Red Flags
These patterns should trigger pushback:
- "Make everything 100% and zero issues forever" as one loop
- whole-repo historical debt mixed into every PR rescue run
- zero-touch merge without proven low-risk rule allowlists
- acting on stale or obsolete status contexts without checking the true producer
- local sidecars or app automations used as the primary unattended backbone without acknowledging uptime and state drift risks
- prompts that permit unrelated refactors or undefined success conditions
Common Mistakes
- Treating provider dashboards as the only source of truth instead of checking branch protection, rulesets, and actual workflow producers.
- Using one retry loop for unrelated failure lanes such as coverage, lint, infra, and visual tests.
- Designing prompts around "fix everything" instead of a bounded unit of work.
- Assuming local automation equals remote unattended execution.
- Offering architecture without a rollout and validation plan.
04 同仓库更多 Skills
clarify-requirements
Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.
openmm-md
Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.
visual-review
Take screenshots of web pages and UI using Playwright for visual review and iteration
status
Diagnostic status report — shows metaswarm installation state, project setup, and potential issues
start
Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work
setup
Interactive project setup — detects your project, configures metaswarm, writes project-local files