一键导入
quality-gate
Run before creating a PR — chains test creation, compliance checks, and build verification in sequence, stopping on failure
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run before creating a PR — chains test creation, compliance checks, and build verification in sequence, stopping on failure
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build a new agent from natural conversation — understand the job, shape the persona, check capabilities, propose, confirm, create
Aggregate standup prep reports from department agents into a unified morning briefing for leadership
Create tests for recent code changes — analyzes the diff, identifies what needs coverage, and writes appropriate tests
| name | quality-gate |
| description | Run before creating a PR — chains test creation, compliance checks, and build verification in sequence, stopping on failure |
| agents | ["all"] |
| workflow | project-tools |
Single command that runs all pre-PR quality checks in sequence. Stops on first failure.
If the create-tests skill is available, invoke it scoped to the current branch changes.
This analyzes changed files, triages what's worth testing, and generates tests as needed. It may generate no tests if the changes don't warrant them (e.g., docs-only, config changes).
On completion: Commit any generated tests, then proceed to step 2.
If skill not available: Skip to step 2.
Run the project's check command (typically npm run check — typecheck + lint + format + test).
On failure: Stop. Report violations. Fix issues before proceeding.
On pass: Proceed to step 3.
Run the project's build command (typically npm run build).
On failure: Stop. Report errors with details.
On pass: Report success.
## Quality Gate Results
**Branch:** <branch-name>
### 1. Test Creation
✅ Created N tests (or: ✅ No new tests needed / ⏭ Skipped)
### 2. Compliance Checks
✅ PASS — all checks clean
### 3. Build
✅ PASS — compiled successfully
**Ready for PR:** ✅ Yes