packages/knowledge-hub/dataset/.skills/capability/setup-gates/SKILL.md
Configures CI/CD quality gates per quality-assurance guidelines, producing pipeline configuration for the adopted tech stack. Reads existing gate config from way-of-working. Idempotent: detects existing configuration, confirms rather than re-configuring.
npx skillsauth add foomakers/pair setup-gatesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Configure CI/CD quality gates for the project. Reads quality assurance guidelines and the adopted tech stack to produce appropriate pipeline configuration. Writes gate configuration to way-of-working.md and CI/CD pipeline files.
| Argument | Required | Description |
| -------- | -------- | ------------------------------------------------------------------------------------------- |
| $scope | No | Limit to specific gate type: pre-commit, ci, pre-production, all (default: all) |
| Skill | Type | Required |
| ------------------ | ---------- | ------------------------------------------------------- |
| /record-decision | Capability | Yes — records gate configuration decision |
.github/workflows/, .gitlab-ci.yml, Jenkinsfile, etc.).Gates fully configured (Quality Gates section + Custom Gate Registry + pipeline files exist) → present current config:
Quality gates already configured:
- Quality gate command:
[command]- Custom gates: [N gates listed]
- CI/CD pipeline: [file(s)]
Update configuration? (Only if developer explicitly requests.)
If developer confirms → exit. If update requested → proceed to Step 2.
Partially configured → identify gaps and proceed to Step 2.
Not configured → proceed to Step 2.
Act: Based on the adopted tech stack and guidelines, propose gates per scope:
Pre-commit gates (local developer machine):
eslint, biome)tsc --noEmit)prettier --check)CI gates (pipeline on push/PR):
Pre-production gates (before deployment):
Act: Present the proposal:
Quality Gate Proposal:
| Stage | Gate | Command | Required | |-------|------|---------|----------| | Pre-commit | Lint |
[command]| Yes | | ... | ... | ... | ... |Accept this configuration?
Verify: Developer approves. If changes needed → adjust.
pnpm quality-gate).github/workflows/quality.yml.gitlab-ci.yml quality stage/record-decision:
$type: non-architectural$topic: quality-gate-configuration$summary: "Quality gates configured: [gate list]. Command: [command]. CI: [pipeline type]."GATE CONFIGURATION COMPLETE:
├── Quality Command: [command]
├── Pre-commit: [N gates configured]
├── CI: [N gates configured]
├── Pre-production: [N gates configured | N/A]
├── Pipeline: [file path | manual]
├── Adoption: [way-of-working.md — updated]
├── Record: [ADL path — created]
└── Status: [Complete | Confirmed existing | Updated]
When composed by /bootstrap:
/bootstrap invokes /setup-gates during project setup to establish initial quality gates./bootstrap includes changes in the bootstrap commit.When invoked independently:
/record-decision is not installed, warn and skip decision recording.development
Creates or updates a Product Requirements Document through structured template analysis, hypothesis-driven information gathering, and iterative review. Idempotent — detects existing PRD and offers selective section update.
development
Reviews a pull request through a structured 6-phase process: validation, technical review, adoption compliance, completeness check, decision, and optional merge with parent cascade. Composes /verify-quality, /verify-done, /record-decision, /assess-debt (required) and /verify-adoption, /assess-stack (optional with graceful degradation). Output follows the code review template. Idempotent — re-invocation resumes from incomplete phases.
tools
Refines a user story from Todo to Refined state through structured phases: selection, requirements analysis (Given-When-Then), technical analysis, sprint readiness, and documentation. Section-level idempotency — detects partial refinement and resumes. Composes /write-issue for PM tool updates.
testing
Breaks a refined user story into implementation tasks. Task-level idempotency: detects existing tasks and creates only missing ones. Appends condensed Technical Analysis + Task Breakdown (checklist, Dependency Graph, AC Coverage table, detailed tasks) to the story body. Composes /write-issue to update the story issue body. Tasks are documented inline in the story — no separate task issues are created.