一键导入
code-quality-gates
Quality gates, code review standards, static analysis policy, and merge criteria enforcement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Quality gates, code review standards, static analysis policy, and merge criteria enforcement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | code-quality-gates |
| description | Quality gates, code review standards, static analysis policy, and merge criteria enforcement. |
| license | MIT |
Ensures rigorous quality gates via structured reviews, static analysis policy, and merge criteria.
<context_gathering> Execute these commands IN PARALLEL to establish ground truth:
git status
git diff
git log -5 --oneline
Capture these data points:
| Condition | Mode/Strategy |
|---|---|
| Large or risky change set | Deep review + stricter gate thresholds |
| Small, isolated change | Standard review + baseline gates |
| Missing tests or low coverage | Block merge until tests added |
You MUST output this block before proceeding. NO EXCEPTIONS.
ANALYSIS RESULT
===============
Detected Context: [...]
Selected Strategy: [...]
Plan:
1. Confirm review scope and risk level
2. Apply quality gate checklist
3. Enforce static analysis policy
4. Verify tests and merge criteria
Review Scope & Risk:
Apply Review Checklist:
Static Analysis Policy:
Merge Criteria:
git status
Final Report: Summarize checks performed, exceptions (if any), and next steps.
<best_practices>
<anti_patterns>
Sources:
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating browser actions.
Reviews and removes unsupported, non-idiomatic code and UI/design changes introduced on a branch. Use when implementing or reviewing a feature or fix before handoff.
Design principles for REST and GraphQL APIs in 2025. Enforces OpenAPI-first, versioning strategies, and standardized error responses.
Use the `fm` CLI (Apple Foundation Models) for on-device and Private Cloud Compute LLM inference on macOS. Use when the user wants to prompt, chat, serve, or count tokens with Apple's built-in foundation models. Also use for structured output generation (`fm schema`), checking model availability (`fm available`), or checking quota usage (`fm quota-usage`). Trigger on phrases like 'run fm', 'Apple Foundation Model', 'on-device LLM', 'Apple AI', 'fm respond', 'fm chat', 'fm serve', 'fm token-count', 'fm schema', or any task involving Apple's local AI models.
This skill should be used when the user asks to "trigger a build", "check build status", "watch a build", "view build logs", "retry a build", "cancel a build", "list builds", "download artifacts", "upload artifacts", "manage secrets", "create a pipeline", "list pipelines", or "interact with Buildkite from the command line". Also use when the user mentions bk commands, bk build, bk job, bk pipeline, bk secret, bk artifact, bk cluster, bk package, bk auth, bk configure, bk use, bk init, bk api, or asks about Buildkite CLI installation, terminal-based Buildkite workflows, or command-line CI/CD operations.
Buildkite CI/CD pipeline setup, migration, validation, hardening, and live pipeline management. Use when Codex needs to create, review, debug, or update Buildkite pipelines, .buildkite/pipeline.yml files, steps, queues, triggers, artifacts, annotations, secrets, OIDC, or deployment stages.