一键导入
quality-gate
Run full validation suite (make check + gopls diagnostics) and report structured pass/fail. Usage: /quality-gate [package...]
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run full validation suite (make check + gopls diagnostics) and report structured pass/fail. Usage: /quality-gate [package...]
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Prepare a release (phases 1-6). Usage: /prepare-release [version]. If version omitted, infers from conventional commits. Coordinates agents for review, runs prepare-release.sh, then enhances release notes with rich formatting.
Run corpus regression tests against real-world OpenAPI specs. Usage: /corpus-test [short]
Generate test scaffolding for a Go file following oastools conventions. Usage: /gen-test <file.go> [function names...]
Review unpushed commits before pushing for code quality, bugs, security issues, and error handling. Use when preparing to push commits, want pre-push code review, or need to validate changes before pushing. Runs comprehensive analysis using specialized review agents.
Publish a prepared release (phase 7). Usage: /publish-release <version>. Requires version argument. Wraps publish-release.sh for deterministic execution.
Compare two OpenAPI spec versions, highlight breaking changes, and suggest migration steps
| name | quality-gate |
| description | Run full validation suite (make check + gopls diagnostics) and report structured pass/fail. Usage: /quality-gate [package...] |
Run the complete quality pipeline and report structured results.
Usage:
/quality-gate — validate all changed packages/quality-gate parser validator — validate specific packagesDetermine which packages to check.
If packages were specified as arguments, use those.
Otherwise, find changed .go files:
git diff --name-only HEAD
Then extract unique package directories from the output using string processing — do NOT use piped bash commands (they trigger permission prompts). Convert relative paths to absolute paths (prepend the repo root) for Step 3.
make checkThis runs tidy, fmt, lint, and tests in one command:
make check
Record pass/fail and capture any output.
Use the go_diagnostics MCP tool on changed .go files (NOT bash). Pass absolute paths.
Categorize results:
Present results in this format:
## Quality Gate Results
### `make check`: ✅ PASS / ❌ FAIL
[details if failed]
### gopls Diagnostics
| File | Level | Message | Suggested Fix (if any) |
|------|-------|---------|------------------------|
| ... | ... | ... | ... |
### Verdict: ✅ READY / ❌ NOT READY
Issues to address:
1. [issue]
2. [issue]
If there are fixable issues, offer: