Verification loop

From mshadmanrahman/pm-pilot · View interactive version

Verification loop is an AI agent skill from the GitHub repository mshadmanrahman/pm-pilot. Pre-commit verification with lint, type-check, tests, and security scan

How to use this skill

Skill file

Verification Loop

Run all quality gates before committing or creating a PR.

When to Use

Procedure

Step 1: Detect Project Type

Identify available tools from project files:

Step 2: Run Quality Gates

Execute in order (stop on CRITICAL):

| Gate | Command (detect per project) | Severity |

|------|------------------------------|----------|

| Lint | eslint, ruff, golangci-lint | HIGH |

| Type Check | tsc --noEmit, mypy, go vet | HIGH |

| Tests | jest, pytest, go test | CRITICAL |

| Security | npm audit, pip-audit, cargo audit | CRITICAL |

| Coverage | jest --coverage, pytest --cov | HIGH |

Step 3: Report Results

Verification: {project name}

  Lint:       PASS | FAIL ({count} issues)
  Types:      PASS | FAIL ({count} errors)
  Tests:      PASS | FAIL ({pass}/{total})
  Security:   PASS | FAIL ({count} vulnerabilities)
  Coverage:   {percent}% (target: 80%)

Verdict: READY TO COMMIT | BLOCKED ({reason})

Step 4: Actionable Fixes

For each failure, provide:

{gate} FAIL:
  {file}:{line} - {error message}
  Fix: {specific suggestion}

Blocking Rules

Output Format

Verification: lead-scoring-simulator

  Lint:       PASS
  Types:      PASS
  Tests:      PASS (24/24)
  Security:   PASS
  Coverage:   87% (target: 80%)

Verdict: READY TO COMMIT

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.