From dev-team
Unifies accuracy validation, verification, and review-correction into a three-phase quality gate for agent output. Use before delivery or during rework.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-team:quality-gate-pipelineThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Single quality gate that every agent passes through before output is accepted. Replaces three formerly separate skills (accuracy-validation, verification-before-completion, task-review-correction) with a unified pipeline of three phases that run in sequence.
Single quality gate that every agent passes through before output is accepted. Replaces three formerly separate skills (accuracy-validation, verification-before-completion, task-review-correction) with a unified pipeline of three phases that run in sequence.
Every agent runs this checklist mentally before presenting output.
Factual Accuracy
Instruction Fidelity
Internal Consistency
Confidence Assessment
| Confidence | Meaning | Action |
|---|---|---|
| High | Verified via tool output or direct file read | Deliver as-is |
| Medium | Inferred from context, not directly verified | Flag with caveat |
| Low | Recalled from training or guessed | Verify before delivering, or mark as unverified |
Hallucination Detection Signals
Strong signals (likely hallucination):
When a signal fires: Pause → Verify (use tools) → Correct → Log (hallucination_detected: true in metrics)
Iron Law: No completion claims without fresh verification evidence. Skipping any step is falsification, not verification.
The Gate Function:
npm test, cargo build)Required Evidence (all tasks):
structure-review + complexity-review signal. Options:
error/warning findings on the latest diff.error/warning finding is logged as a deferred item (with owner + tracking reference) per the Phase 3 exit criteria — and surfaced in the completion summary.structural-review-waiver: <reason> in the completion summary. Waivers are surfaced, not hidden.Quality Ownership: green means the entire suite, not just the tests your
change touched. A failing test is a failing test regardless of whether this change
caused it — "already broken" / "not my diff" is not a pass. A red signal you
observe must be fixed, or explicitly surfaced and triaged (file an issue, or
record a quarantine with a reason via /triage) and reported as not green.
Never claim completion over a red suite by attributing the failure to someone else's
change. You own the quality state you can see, not just your delta.
Additional Evidence by task type:
| Task Type | Additional Evidence |
|---|---|
| Bug fix | Red-green cycle: failing test → passing test |
| New feature | Feature working via test output or demo command |
| Refactor | Same test count, same pass count |
| Config change | Config loads without error |
| Documentation | Commands/code blocks in doc actually work |
| Agent work | Inspect VCS diff independently — don't trust self-report |
Evidence Format:
## Verification
- Tests: `npm test` → 47 passed, 0 failed (output below)
- Build: `npm run build` → success, 0 warnings
- Lint: `npm run lint` → 0 errors, 0 warnings
Red Flag Language — stop and verify when you catch yourself saying:
Activated when output is returned for rework, during peer review, or when self-reviewing before delivery (complements Phase 1).
Defect Severity:
| Severity | Definition | Required Action |
|---|---|---|
| Critical | Wrong, breaks functionality, contradicts requirements | Immediate correction, block delivery |
| Major | Significant gap in completeness or correctness | Correct before acceptance |
| Minor | Small inaccuracy, suboptimal approach | Correct if time permits |
| Cosmetic | Formatting, naming, style | Bundle with next change |
Correction Scope:
Review Checklist:
Iteration Rules:
Escalation: Summarize defect pattern and attempted corrections → escalate to Orchestrator for re-routing → log with escalation_reason in task metrics.
| Situation | Phases to run |
|---|---|
| Initial development, about to deliver | Phase 1 → Phase 2 |
| Claiming task completion | Phase 2 (at minimum) |
| Output returned for rework | Phase 3 → Phase 2 |
| Peer-reviewing another agent's output | Phase 1 (as reviewer) → Phase 3 if defects found |
| Trivial one-line fix | Phase 2 only (verify it works) |
Phase 1: Confidence-scored validation — report failures only. Phase 2: Verification evidence block with tool output. Phase 3: Defect table (severity, scope, status: fixed/deferred/escalated).
hallucination_detected, rework_cycles, defects_found are logged automatically by hooks/task_completion_metrics.py on task completion — no skill-level logging step needed. To surface non-default values, populate .claude/session-metrics.json with the relevant fields before the session ends.npx claudepluginhub bdfinst/agentic-dev-team --plugin dev-teamRuns pre-commit quality checks: tests, completeness scan (no stubs/TODOs/mocks), and code review. Triggers on 'quality gate', 'run tests', 'check for stubs', 'is this ready to commit?'.
Enforces evidence-before-claims discipline: requires fresh verification (test, build, lint) before any completion claim. Prevents premature sign-offs.
Gates final sign-off on work by requiring fresh evidence before claiming completion, fixes, passing status, or readiness for review.