Check the change with machine-verified checks. Do not trust a textual explanation without commands executed.
Related context: LLM Rules].
Entrance
Target repository/folder.
A list of modified files.
Risk class change.
Local teams from TEST_PLAN.md and README.md.
Workflow
Gather teams of checks from:
TEST_PLAN.md
AGENT_WORKFLOW.md
README.md
First, run the code gate:
lint
type/static/security checks (if configured)
Perform test gate:
unit tests
integration tests
Run the release/smoke gate:
Smoke teams from the project
Process flaky:
flag
Do not count flaky-pass as a full-fledged green without project policy.
Create a single gate report.
Tough rules.
Do not declare GREEN unless the mandatory command is triggered.
If the command is not available in the environment, mark as INCOMPLETE, not PASS.
If the check drops, add the short root of the problem and the nearest corrective step.
Exit (gate report)
Code gate: PASS|FAIL|INCOMPLETE
Test gate: PASS|FAIL|INCOMPLETE
Smoke gate: PASS|FAIL|INCOMPLETE
Flaky notes: if any
Overall status: GREEN|YELLOW|RED
Status criteria
GREEN: All required gates = PASS.
YELLOW: There is no FAIL, but there is INCOMPLETE/residual risk.
RED: There is a FAIL in the mandatory gates.
1---2name: test-gates-23description: Test Gates4---56# Test Gates78## Appointment9Check the change with machine-verified checks. Do not trust a textual explanation without commands executed.1011Related context: [LLM Rules](.../meta/LLM_RULES.md)].1213## Entrance14- Target repository/folder.15- A list of modified files.16- Risk class change.17- Local teams from `TEST_PLAN.md` and `README.md`.1819## Workflow201. Gather teams of checks from:21- `TEST_PLAN.md`22- `AGENT_WORKFLOW.md`23- `README.md`242. First, run the code gate:25- lint26- type/static/security checks (if configured)273. Perform test gate:28- unit tests29- integration tests304. Run the release/smoke gate:31- Smoke teams from the project325. Process flaky:33- flag34- Do not count flaky-pass as a full-fledged green without project policy.356. Create a single gate report.3637## Tough rules.38- Do not declare `GREEN` unless the mandatory command is triggered.39- If the command is not available in the environment, mark as `INCOMPLETE`, not `PASS`.40- If the check drops, add the short root of the problem and the nearest corrective step.4142## Exit (gate report)43- `Code gate: PASS|FAIL|INCOMPLETE`44- `Test gate: PASS|FAIL|INCOMPLETE`45- `Smoke gate: PASS|FAIL|INCOMPLETE`46- `Flaky notes:` if any47- `Overall status: GREEN|YELLOW|RED`4849## Status criteria50- `GREEN`: All required gates = PASS.51- `YELLOW`: There is no FAIL, but there is INCOMPLETE/residual risk.52- `RED`: There is a FAIL in the mandatory gates.
Run npx skillmds@latest add dzhokhov/test-gates-2 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Test Gates It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
dzhokhov (@dzhokhov) published this skill. Their other Agent Skills are listed on their SkillMD profile.