.agents/quality-enforcer/SKILL.md
Enforces quality gates: 80% test coverage, passing tests, successful builds, semantic versioning. Runs before PR creation. Use when: Running tests, checking coverage, validating quality, versioning Triggers: run tests, check coverage, quality gates, version bump
npx skillsauth add stharrold/bingo quality-enforcerInstall 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.
Ensures code quality standards are met before integration. Enforces:
Runs pytest with coverage and verifies 80% threshold.
python .claude/skills/quality-enforcer/scripts/check_coverage.py [threshold]
Arguments:
threshold (optional): Coverage percentage required (default: 80)Exit codes:
Runs all quality gates and reports comprehensive results.
python .claude/skills/quality-enforcer/scripts/run_quality_gates.py
Checks:
Exit codes:
Minimum 80% code coverage required.
uv run pytest --cov=src --cov-report=term --cov-fail-under=80
All unit and integration tests must pass.
uv run pytest -v
Package must build without errors.
uv build
Code must pass ruff linting.
uv run ruff check src/ tests/
Code must pass mypy type checking.
uv run mypy src/
The workflow-orchestrator calls this skill before PR creation:
# In workflow orchestrator
if current_phase == 3: # Quality Assurance
load_skill('quality-enforcer')
result = subprocess.run([
'python',
'.claude/skills/quality-enforcer/scripts/run_quality_gates.py'
])
if result.returncode != 0:
print("⚠️ Quality gates failed - fix issues before creating PR")
return False
print("✓ All quality gates passed")
Uses git-workflow-manager's semantic_version.py to calculate version bumps.
# Calculate new version
result = subprocess.run([
'python',
'.claude/skills/git-workflow-manager/scripts/semantic_version.py',
'develop', # base branch
'v1.0.0' # current version
], capture_output=True, text=True)
new_version = result.stdout.strip()
# Update TODO file with new semantic version
import yaml
from pathlib import Path
def update_version_in_todo(todo_file, new_version):
"""Update semantic_version in TODO file YAML frontmatter."""
content = Path(todo_file).read_text()
parts = content.split('---', 2)
frontmatter = yaml.safe_load(parts[1])
body = parts[2]
frontmatter['quality_gates']['semantic_version'] = new_version
new_content = f"---\n{yaml.dump(frontmatter)}---{body}"
Path(todo_file).write_text(new_content)
tools
Meta-skill (Phase 0) for bootstrapping new repositories with workflow system. Interactive callable tool that copies skills, documentation, and standards from source repository. Use when: Starting a new project that needs the workflow system Triggers: "initialize new repository", "bootstrap workflow", "replicate workflow system"
data-ai
Manages git operations: worktree creation, branch management, commits, PRs, semantic versioning, daily rebase workflow, and PR feedback handling. Use when: Creating branches/worktrees, committing, pushing, versioning, handling PR feedback Triggers: create worktree, commit, push, rebase, version, PR, PR feedback
tools
Interactive callable tool that creates BMAD planning documents (requirements, architecture, epics) in main repository on contrib branch. Three-persona Q&A system generates comprehensive planning before feature development. Use when: On contrib branch, planning phase, need requirements/architecture Triggers: plan feature, requirements, architecture, BMAD
testing
Persistent state management using AgentDB (DuckDB) for workflow analytics and checkpoints. Provides read-only analytics cache synchronized from TODO_*.md files, enabling: - Complex dependency graph queries - Historical workflow metrics - Context checkpoint storage/recovery - State transition analysis Use when: Data gathering and analysis for workflow state tracking Triggers: "analyze workflow", "query state", "checkpoint", "workflow metrics"