Skip to content
Creating Quality Gates logo

Creating Quality Gates

Establish workflow boundary checklists with clear pass/fail criteria and escalation procedures

SKILL.md

Full skill instructions

Creating Quality Gates

Overview

Create structured quality gates at workflow boundaries with clear "Must Pass" vs "Should Review" criteria, exact commands, and escalation procedures.

Announce at start: "I'm using the creating-quality-gates skill to establish this quality gate."

When to Use

  • Establishing pre-merge verification
  • Creating phase transition gates (design → implement)
  • Building deployment checklists
  • Defining code review criteria
  • Any workflow boundary that needs enforcement

Core Principle

Wrong: Vague criteria ("ensure quality", "review code") Right: Explicit criteria with commands and pass/​fail definitions

Quality gates must be:

  • Unambiguous - Clear what passes/​fails
  • Executable - Exact commands provided
  • Categorized - Must Pass vs Should Review
  • Actionable - What to do when things fail

The Process

Step 1: Identify the Boundary

Determine where the gate belongs:

BoundaryPurposeExample Gate
Before mergeCode qualityPre-merge checklist
Before deployProduction readinessDeploy checklist
After designImplementation readinessDesign review gate
After implementTest readinessImplementation complete gate

Step 2: List All Checks

Brainstorm everything that should be verified:

  • Automated checks (tests, linting, type checking)
  • Manual reviews (code quality, documentation)
  • Cross-functional checks (security, accessibility)
  • Process checks (approvals, tickets updated)

Step 3: Categorize Checks

Separate into two categories:

Must Pass (Automated)

  • Binary pass/​fail
  • Can be automated
  • Blocking - cannot proceed if fail
  • Examples: tests, linting, type checks

Should Review (Manual)

  • Requires judgment
  • Human review needed
  • May be non-blocking
  • Examples: code quality, documentation completeness

Step 4: Write Executable Checks

For each check, provide:

### [Check Name]

- [ ] **[What to verify]**
  ```bash
  [exact command to run]

Expected: [what success looks like]

If fails: [what to do]


Be specific:
- ❌ "Run tests"
- ✅ "Run unit tests: `cargo test --lib` - Expected: All tests pass (0 failures)"

### Step 5: Document Failure Procedures

For automated checks:

```markdown
### If Automated Checks Fail

**STOP. Do not proceed.**

1. Read the error message carefully
2. Check if recent commit caused failure
3. Fix the issue (don't work around)
4. Re-run full check suite
5. If stuck > 30 minutes, ask for help

For manual checks:

### If Manual Review Has Issues

| Severity | Action |
|----------|--------|
| Blocking | Must fix before proceeding |
| Non-blocking | Create follow-up task |
| Discussion | Flag for team review |

Step 6: Add Prerequisites and Sign-Off

Prerequisites - What must be true before starting:

  • All changes committed
  • Branch up to date
  • Feature complete

Sign-Off - How to record completion:

  • Who verified
  • When verified
  • Any exceptions granted

Step 7: Test the Gate

Verify the gate is usable:

  • All commands work as written
  • Pass/​fail criteria are clear
  • Time to complete is reasonable
  • Failure procedures are actionable
  • Someone unfamiliar can follow it

Step 8: Integrate into Workflow

Add gate to workflow documentation:

  • Link from relevant workflow stages
  • Add to CI/​CD if automatable
  • Train team on new gate
  • Schedule periodic reviews of gate effectiveness

Checklist

  • Boundary identified
  • All checks listed
  • Checks categorized (Must Pass / Should Review)
  • Commands are exact and runnable
  • Failure procedures documented
  • Prerequisites specified
  • Sign-off section added
  • Gate tested with fresh eyes
  • Integrated into workflow

Template Structure

# [Workflow Stage] Verification Checklist

**Purpose:** [What this validates]
**When:** [At what point]

## Prerequisites
- [ ] [What must be true first]

## Automated Checks (MUST PASS)

### [Category]
- [ ] **[Check]**
  ```bash
  [command]

Expected: [success criteria]

Manual Verification (SHOULD REVIEW)

[Category]

  • [Check] - [Guidance]

If Checks Fail

[Procedures]

Sign-Off

CategoryStatusNotes
Automated✅/❌
Manual✅/⚠️

**Use template:** `${CLAUDE_PLUGIN_ROOT}templates/​verification-checklist-template.md`

## Anti-Patterns

**Don't:**
- Use vague criteria ("ensure quality")
- Skip the failure procedures
- Mix Must Pass with Should Review
- Make gates so long they get skipped
- Forget to test commands work

**Do:**
- Provide exact commands
- Separate blocking from advisory
- Keep gates focused and timely
- Update when processes change
- Automate what can be automated

## Example: Pre-Merge Gate

```markdown
# Pre-Merge Checklist

## Prerequisites
- [ ] All changes committed
- [ ] Branch rebased on main

## Automated Checks (MUST PASS)

### Tests
- [ ] **Unit tests**
  ```bash
  cargo test --lib

Expected: 0 failures

  • Integration tests
    cargo nextest run
    
    Expected: 0 failures

Static Analysis

  • Linting
    cargo clippy -- -D warnings
    
    Expected: 0 warnings

Manual Verification (SHOULD REVIEW)

Code Quality

  • No magic numbers without explanation
  • Error handling is appropriate
  • Public APIs are documented

If Automated Checks Fail

STOP. Fix issues. Re-run all checks.


## Related Skills

- **Organizing documentation:** `${CLAUDE_PLUGIN_ROOT}skills/​organizing-documentation/​SKILL.md`
- **Creating research packages:** `${CLAUDE_PLUGIN_ROOT}skills/​creating-research-packages/​SKILL.md`
- **Documenting debugging workflows:** `${CLAUDE_PLUGIN_ROOT}skills/​documenting-debugging-workflows/​SKILL.md`

## References

- Standards: `${CLAUDE_PLUGIN_ROOT}standards/​documentation-structure.md`
- Template: `${CLAUDE_PLUGIN_ROOT}templates/​verification-checklist-template.md`

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View