.agents/skills/code-quality-gates/SKILL.md
Quality gates, code review standards, static analysis policy, and merge criteria enforcement.
npx skillsauth add thesammykins/dotfiles code-quality-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.
Ensures rigorous quality gates via structured reviews, static analysis policy, and merge criteria.
<context_gathering> Execute these commands IN PARALLEL to establish ground truth:
git status
git diff
git log -5 --oneline
Capture these data points:
| Condition | Mode/Strategy | |-----------|---------------| | Large or risky change set | Deep review + stricter gate thresholds | | Small, isolated change | Standard review + baseline gates | | Missing tests or low coverage | Block merge until tests added |
You MUST output this block before proceeding. NO EXCEPTIONS.
ANALYSIS RESULT
===============
Detected Context: [...]
Selected Strategy: [...]
Plan:
1. Confirm review scope and risk level
2. Apply quality gate checklist
3. Enforce static analysis policy
4. Verify tests and merge criteria
</analysis>
Review Scope & Risk:
Apply Review Checklist:
Static Analysis Policy:
Merge Criteria:
git status
Final Report: Summarize checks performed, exceptions (if any), and next steps. </verification>
<best_practices>
<anti_patterns>
Sources:
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Autonomous feature development - setup and execution. Triggers on: ralph, set up ralph, run ralph, run the loop, implement tasks. Two phases: (1) Setup - chat through feature, create tasks with dependencies (2) Loop - pick ready tasks, implement, commit, repeat until done.
tools
Enforces the 2025 Python stack. Replaces legacy tools (pip, flake8, isort) with modern, fast equivalents (uv, ruff). Mandates strict type hints.
documentation
Generate a Product Requirements Document (PRD) for a new feature. Use when planning a feature, starting a new project, or when asked to create a PRD. Triggers on: create a prd, write prd for, plan this feature, requirements for, spec out.