qa-commit
Ensures code meets defined QA contracts and triggers automated debugging if tests fail.
Install
mkdir -p .claude/skills/qa-commit && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3669" && unzip -o skill.zip -d .claude/skills/qa-commit && rm skill.zipInstalls to .claude/skills/qa-commit
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Verify implementation against QA Contract (G#N, AC#N), auto-invoke debug on REDKey capabilities
- →Verify code against Gherkin scenarios
- →Validate implementation against acceptance criteria
- →Perform static analysis and type checking
- →Automatically trigger debug on failure
How it works
It systematically validates code against defined QA contracts using linting, type checks, and browser-based interaction tests.
Inputs & outputs
When to use qa-commit
- →Verifying code against gherkin scenarios
- →Running acceptance criteria checks
- →Validating api endpoint implementation
- →Automated debugging after failed QA checks
About this skill
QA Commit Skill
Verify that the current commit satisfies its assigned QA Contract criteria (G#N Gherkin scenarios and AC#N acceptance criteria). Returns GREEN (pass) or RED (fail, triggers debug).
When to Use
- After pr-review passes, before git commit
- During Agent Mode commit-level workflow
- Manually with "use qa-commit skill"
Input: Commit Context
Before running, identify:
- Current commit from Commit Plan
- Assigned criteria: "Satisfies: G#X, AC#Y, ..."
- Related files being changed
Phase 1: Load QA Contract
Retrieve the assigned criteria for this commit:
## Commit: [Name]
**Satisfies:** G#1, G#2, AC#1, AC#3
### Criteria to Verify:
- G#1: [Scenario description]
- G#2: [Scenario description]
- AC#1: [Acceptance criteria]
- AC#3: [Acceptance criteria]
Phase 2: Technical Validation
Use Cursor tools for technical checks:
2.1 ReadLints
ReadLints:
paths: [changed files]
Expect: No errors related to committed functionality
2.2 Type Safety
npm run typecheck
Expect: Exit code 0
2.3 Related Tests (if exist)
npm run test -- --grep "[feature name]"
Expect: All tests pass
Phase 3: Gherkin Verification (Backend - G#N)
For each G#N assigned to this commit:
3.1 Endpoint Existence
Verify the API endpoint exists and is implemented:
SemanticSearch: "Where is [endpoint] implemented?"
3.2 Response Shape
Check response matches expected schema:
Grep: "interface.*Response" in related files
3.3 Error Handling
Verify error cases are handled:
Grep: "throw|catch|error" in handler files
Gherkin Checklist
| G#N | Scenario | Status | Notes |
|---|---|---|---|
| G#1 | [Name] | PASS/FAIL | [Details] |
| G#2 | [Name] | PASS/FAIL | [Details] |
Phase 4: Acceptance Verification (Frontend - AC#N)
For each AC#N assigned to this commit:
4.1 Component Existence
Verify component is implemented:
Glob: **/*[ComponentName]*.tsx
4.2 Storybook Story (if AC involves visual)
Check Storybook story exists:
Glob: **/*[ComponentName]*.stories.tsx
4.3 Browser MCP Verification (if running)
For interactive acceptance criteria:
Browser MCP:
1. browser_navigate to Storybook URL
2. browser_snapshot to check state
3. browser_click/browser_type to test interaction
4. browser_take_screenshot for evidence
Acceptance Checklist
| AC#N | Criteria | Status | Evidence |
|---|---|---|---|
| AC#1 | [Criteria] | PASS/FAIL | [Screenshot/Notes] |
| AC#3 | [Criteria] | PASS/FAIL | [Screenshot/Notes] |
Phase 5: Generate Verification Report
## Verification Report
**Commit:** [Name]
**Satisfies:** G#1, G#2, AC#1, AC#3
### Technical Validation
| Check | Status |
|-------|--------|
| ReadLints | PASS/FAIL |
| TypeCheck | PASS/FAIL |
| Tests | PASS/FAIL/SKIP |
### Gherkin Scenarios (Backend)
| ID | Scenario | Status | Notes |
|----|----------|--------|-------|
| G#1 | [Name] | PASS/FAIL | [Details] |
| G#2 | [Name] | PASS/FAIL | [Details] |
### Acceptance Criteria (Frontend)
| ID | Criteria | Status | Evidence |
|----|----------|--------|----------|
| AC#1 | [Criteria] | PASS/FAIL | [Link/Notes] |
| AC#3 | [Criteria] | PASS/FAIL | [Link/Notes] |
### Verdict
**[GREEN / RED]**
[If GREEN: All criteria verified, ready to commit]
[If RED: Failed criteria listed, invoking debug skill]
Phase 6: Handle Verdict
GREEN Verdict
All criteria verified. Proceeding to git commit.
RED Verdict - Auto-Invoke Debug
**Verification failed. Auto-invoking debug skill.**
### Failed Criteria:
- [G#N or AC#N]: [What failed]
- [G#N or AC#N]: [What failed]
### Context for Debug:
- Error messages: [from ReadLints]
- Expected behavior: [from QA Contract]
- Actual behavior: [observed]
Invoking debug skill with context...
After debug fixes, re-run qa-commit to verify.
Integration with Debug
When verdict is RED:
- Automatically invoke
debugskill - Pass context:
- Failed G#N or AC#N
- Error messages from ReadLints/Shell
- Browser console/network errors (if applicable)
- Debug skill fixes issue
- Re-run qa-commit
- Repeat until GREEN or user intervention
MCP Tools Used
| Tool | Purpose |
|---|---|
| ReadLints | Get lint/type errors |
| Shell | Run tests, typecheck |
| Browser MCP | Storybook verification |
| SemanticSearch | Find implementations |
| Grep | Search for patterns |
Invocation
Invoked by:
commit.mdc- After pr-review passesagent.mdc- Part of commit-level workflow
Or manually with "use qa-commit skill".
When not to use it
- →Pre-commit hooks for trivial changes
- →Environments lacking test or linting infrastructure
Prerequisites
Limitations
- →Requires pre-defined QA contracts
- →Depends on existing test and linting scripts
How it compares
It automates the transition from failed verification to debugging by passing specific context to the debug skill.
Compared to similar skills
qa-commit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| qa-commit (this skill) | 1 | 7mo | Review | Intermediate |
| python-testing-patterns | 77 | 2mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| test-cases | 57 | 7mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by WellApp-ai
View all by WellApp-ai →You might also like
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
test-cases
cexll
This skill should be used when generating comprehensive test cases from PRD documents or user requirements. Triggers when users request test case generation, QA planning, test scenario creation, or need structured test documentation. Produces detailed test cases covering functional, edge case, error handling, and state transition scenarios.
reviewing-code
CaptainCrouton89
Systematically evaluate code changes for security, correctness, performance, and spec alignment. Use when reviewing PRs, assessing code quality, or verifying implementation against requirements.
wcag-audit-patterns
wshobson
Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.
code-coverage-with-gcov
gadievron
Add gcov code coverage instrumentation to C/C++ projects