Set up and manage quality-gate CI pipelines. Use when the user asks to add quality checks to CI/CD, configure GitHub Actions, GitLab CI, or any pipeline with crivo. Also use when debugging CI failures related to quality gate.
You are an expert at integrating quality-gate (crivo) into CI/CD pipelines. This skill covers setup, scripts, debugging, and advanced patterns.
A single Go binary (crivo) that orchestrates existing OSS tools (tsc, eslint, jest, jscpd, semgrep, gitleaks) and produces unified reports. Zero config to start, .qualitygate.yaml to customize.
Key outputs:
--json → structured JSON for AI agents and automation--sarif report.sarif → GitHub Code Scanning integration--md report.md → PR comment body--save → local SQLite history for baseline comparison--new-code → only flag issues in changed files/lines$ARGUMENTSRoute based on the argument:
setup (default if no argument)Walk the user through full CI setup. Detect their CI platform and project type, then generate the appropriate config. Follow these steps:
.github/workflows/, .gitlab-ci.yml, Jenkinsfile, .circleci/, bitbucket-pipelines.yml, azure-pipelines.ymlpackage.json, go.mod, pyproject.toml, Cargo.toml.qualitygate.yaml exists — if not, offer to create one${CLAUDE_SKILL_DIR}/scripts/diagnoseDebug a failing CI quality gate run:
pr-commentSet up automatic PR comments with quality gate results:
baselineSet up baseline comparison so legacy debt doesn't block PRs:
crivo run --save to capture baseline--new-code for PRsshow-configShow the current quality gate configuration and explain each field. Read .qualitygate.yaml and annotate it.
Generate this workflow at .github/workflows/quality-gate.yml: