name: team-quality-gate
description: "[Team] Run quality gate checklists for development stages. Covers 4 stage gates (Idea>PBI, PBI>Dev, Dev>QA, QA>Release), compliance verification (architecture, security, accessibility, performance), audit trails, and quality metrics. Triggers on "quality gate", "qa gate", "pre-release", "checklist", "gate check", "compliance", "quality metrics", "QC review"."
argument-hint: "<pre-dev|pre-qa|pre-release> <artifact-path|PR#number>"
infer: true
allowed-tools: Read, Write, Grep, Glob, Bash, TodoWrite
Quality Gate
Verify artifacts meet quality criteria at development stages.
When to Use
- Before starting development (pre-dev)
- Before QA handoff (pre-qa)
- Before release (pre-release)
- Compliance verification needed
- Quality metrics tracking
MUST READ References
IMPORTANT: You MUST read these reference files for complete protocol. Do NOT skip.
- MUST READ
.claude/skills/team-quality-gate/references/quality-checklists.md — stage gate details, pre-dev/pre-release checklists, compliance verification, audit trail format, metrics dashboard template, output naming conventions
Quick Reference: Gate Types
Pre-Development
Pre-QA
Pre-Release
Workflow
- Identify gate type (from target arg or artifact type)
- Load appropriate checklist (see
.claude/skills/team-quality-gate/references/quality-checklists.md)
- Verify each criterion against artifact/code
- Check compliance areas: Architecture, Security, Accessibility, Performance
- Note pass/fail/conditional for each item
- Generate report with audit trail
- Save to
team-artifacts/qc-reports/
Report Template
## Quality Gate: {Type}
**Target:** {artifact/PR}
**Date:** {date}
### Results
| Criterion | Status | Notes |
| --------- | -------------- | ------ |
| {item} | PASS/FAIL/WARN | {note} |
### Compliance
| Area | Status |
| ------------- | --------- |
| Architecture | PASS/FAIL |
| Security | PASS/FAIL |
| Accessibility | PASS/FAIL |
| Performance | PASS/FAIL |
### Gate Status: PASS / FAIL / CONDITIONAL
Output
- Path:
team-artifacts/qc-reports/{YYMMDD}-gate-{type}-{slug}.md
- Status: PASS | FAIL | CONDITIONAL
Example
/team-quality-gate pre-dev team-artifacts/pbis/260119-pbi-dark-mode-toggle.md
/team-quality-gate pre-release PR#123
IMPORTANT Task Planning Notes
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed
1---2name: team-quality-gate3description: Verify artifacts meet quality criteria at development stages.4---5
6---
7name: team-quality-gate
8description: "[Team] Run quality gate checklists for development stages. Covers 4 stage gates (Idea>PBI, PBI>Dev, Dev>QA, QA>Release), compliance verification (architecture, security, accessibility, performance), audit trails, and quality metrics. Triggers on "quality gate", "qa gate", "pre-release", "checklist", "gate check", "compliance", "quality metrics", "QC review"."
9argument-hint: "<pre-dev|pre-qa|pre-release> <artifact-path|PR#number>"
10infer: true
11allowed-tools: Read, Write, Grep, Glob, Bash, TodoWrite
12---
13
14# Quality Gate
15
16Verify artifacts meet quality criteria at development stages.
17
18## When to Use
19- Before starting development (pre-dev)
20- Before QA handoff (pre-qa)
21- Before release (pre-release)
22- Compliance verification needed
23- Quality metrics tracking
24
25## MUST READ References
26
27**IMPORTANT: You MUST read these reference files for complete protocol. Do NOT skip.**
28
29- **MUST READ** `.claude/skills/team-quality-gate/references/quality-checklists.md` — stage gate details, pre-dev/pre-release checklists, compliance verification, audit trail format, metrics dashboard template, output naming conventions
30
31## Quick Reference: Gate Types
32
33### Pre-Development
34- [ ] Problem statement clear
35- [ ] Acceptance criteria in GIVEN/WHEN/THEN
36- [ ] Out of scope defined
37- [ ] Dependencies identified
38- [ ] Design approved (if UI)
39
40### Pre-QA
41- [ ] Code review approved
42- [ ] Unit tests >80% coverage
43- [ ] No P1 linting errors
44- [ ] Documentation updated
45
46### Pre-Release
47- [ ] All test cases executed
48- [ ] No open P1/P2 bugs
49- [ ] Regression suite passed
50- [ ] PO sign-off received
51
52## Workflow
531. Identify gate type (from target arg or artifact type)
542. Load appropriate checklist (see `.claude/skills/team-quality-gate/references/quality-checklists.md`)
553. Verify each criterion against artifact/code
564. Check compliance areas: Architecture, Security, Accessibility, Performance
575. Note pass/fail/conditional for each item
586. Generate report with audit trail
597. Save to `team-artifacts/qc-reports/`
60
61## Report Template
62```markdown
63## Quality Gate: {Type}
64
65**Target:** {artifact/PR}
66**Date:** {date}
67
68### Results
69| Criterion | Status | Notes |
70| --------- | -------------- | ------ |
71| {item} | PASS/FAIL/WARN | {note} |
72
73### Compliance
74| Area | Status |
75| ------------- | --------- |
76| Architecture | PASS/FAIL |
77| Security | PASS/FAIL |
78| Accessibility | PASS/FAIL |
79| Performance | PASS/FAIL |
80
81### Gate Status: PASS / FAIL / CONDITIONAL
82```
83
84## Output
85- **Path:** `team-artifacts/qc-reports/{YYMMDD}-gate-{type}-{slug}.md`
86- **Status:** PASS | FAIL | CONDITIONAL
87
88## Example
89```bash
90/team-quality-gate pre-dev team-artifacts/pbis/260119-pbi-dark-mode-toggle.md
91/team-quality-gate pre-release PR#123
92```
93
94
95## IMPORTANT Task Planning Notes
96
97- Always plan and break many small todo tasks
98- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed