一键导入
run-and-fix
Runs project quality gates in sequence, auto-fixes failures, retries up to N times per step before escalating. Adapts to any runtime via project.yaml.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Runs project quality gates in sequence, auto-fixes failures, retries up to N times per step before escalating. Adapts to any runtime via project.yaml.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generates a context-specific audit brief and executes review via code-reviewer agent. Usable standalone or as a building block within other skills.
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/PRD asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".
Full SDLC workflow - from task to PR. Plans, audits adversarially, implements, runs quality gates, and opens a PR.
Generates a PR description from the current branch diff and project conventions. Output is a ready-to-use markdown body.
Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
Validates project.yaml is well-formed. Checks required fields, valid values, resolvable paths, and detects typos.
| name | run-and-fix |
| description | Runs project quality gates in sequence, auto-fixes failures, retries up to N times per step before escalating. Adapts to any runtime via project.yaml. |
Executes quality gates sequentially, fixing failures along the way.
Read project.yaml (in the project's config directory, default .ai/) to get:
quality_gates.commands (format, lint, typecheck, test, audit)quality_gates.retry_max (default: 3)quality_gates.coverage_thresholdIf no project.yaml exists, detect from project root files:
deno.json / deno.jsonc -> deno fmt / deno lint / deno task check / deno task testpackage.json -> npm run format / npm run lint / tsc --noEmit / npm testgo.mod -> gofmt / golangci-lint run / (skip typecheck) / go test ./...Cargo.toml -> cargo fmt / cargo clippy / (skip typecheck) / cargo testRun each step. On failure, analyze the error, apply a minimal fix, re-run. Move to the next step only when the current one passes.
for each step:
attempt = 0
while step fails AND attempt < retry_max:
analyze error output
apply minimal targeted fix
re-run step
attempt++
if step still fails:
STOP and report to user with:
- which step failed
- error output
- what was tried
- suggested manual fix
If quality_gates.commands.coverage is defined:
coverage_threshold% minimum line coverage on modified files.If running as a final pre-commit check:
git diff --stat main...HEAD
Check for:
Report findings but do not auto-fix.
## Quality Gate Results
| Step | Status | Attempts | Notes |
|------------|--------|----------|--------------------------|
| Format | PASS | 1 | Auto-fixed 3 files |
| Lint | PASS | 2 | Fixed unused import |
| Type check | PASS | 1 | - |
| Tests | PASS | 1 | 42 tests, all passing |
| Audit | PASS | 1 | No vulnerabilities found |
| Coverage | PASS | - | 85% (threshold: 80%) |
| Git hygiene| PASS | - | No unintended changes |
All gates passed.