Skip to content
Agentmart
Submit a tool

quality-gates-runner

Run all quality gates (lint, format, typecheck, tests) via subagents.

Skill by DrJKL

IndexedMIT
Write a review

Chalk Labs

Need help deploying quality-gates-runner?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/drjkl-quality-gates-runner

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Run all quality gates (lint, format, typecheck, tests) via subagents. Use after implementation is complete.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/quality-gates-runner

What's inside

Skill name
quality-gates-runner
Description
Run all quality gates (lint, format, typecheck, tests) via subagents. Use after implementation is complete.
License
MIT
Instructions
271 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Quality Gates Runner

Run quality checks via subagents to keep main context clean.

## When to Use

- After implementation is complete
- Before creating a PR
- In target repository directory

## Prerequisites

1. In target repository directory (auto-checkout below if PR URL/number given)
2. Changes exist (unstaged or staged)
3. `gh` CLI authenticated (if using auto-checkout)

## Workflow

### 0. Checkout PR Branch (if given PR URL/number)

If not already in the target repo, check out the branch:

```bash
# Extract PR info
PR_NUMBER=<N>
REPO_NAME=$(gh pr view "$PR_NUMBER" --json repository --jq '.repository.name // empty' 2>/dev/null \
  || basename "$(gh repo view --json name -q .name)")
BRANCH=$(gh pr view "$PR_NUMBER" --json headRefName -q .headRefName)
```

**Try methods in order:**

```bash
# Method 1: Already on the branch
CURRENT=$(git branch --show-current 2>/dev/null)
if [ "$CURRENT" = "$BRANCH" ]; then
  echo "Already on $BRANCH"

# Method 2: Existing worktree
elif [ -d "${WORKTREE_BASE:-$HOME/worktrees}/$REPO_NAME/$BRANCH" ]; then
  cd "${WORKTREE_BASE:-$HOME/worktrees}/$REPO_NAME/$BRANCH"

# Method 3: Cross-repo task directory
elif ls -d "${CROSS_REPO_BASE:-$HOME/cross-repo-tasks}"/*/"$REPO_NAME" 2>/dev/null | head -1 | grep -q .; then
  cd "$(ls -d "${CROSS_REPO_BASE:-$HOME/cross-repo-tasks}"/*/"$REPO_NAME" 2>/dev/null | head -1)"

# Method 4: wt-continue (branch exists on remote)
else
  wt-continue "$REPO_NAME" "$BRANCH"
  cd "${WORKTREE_BASE:-$HOME/worktrees}/$REPO_NAME/$BRANCH"
fi
```

### 1. Verify Directory

Confirm in target repository and check for changes:

```bash
pwd  # Should be in target repository
git status --short  # Should show modified files
```

### 2. Dispatch Subagents in Parallel

Create tasks for each quality gate using the Task tool. Dispatch all in parallel:

**Task 1: Lint**

```
Run the lint command (e.g., `pnpm lint` or per AGENTS.md) in the target repository.
Report: PASS or FAIL with specific errors and file:line locations.
If FAIL, suggest specific fixes for each error.
```

**Task 2: Format**

```
Run the format check command (e.g., `pnpm format:check`) in the target repository.
Report: PASS or FAIL.
If FAIL, run the format fix command and report files changed.
```

**Task 3: Typecheck**

```
Run the typecheck command (e.g., `pnpm typecheck`) in the target repository.
Report: PASS or FAIL with specific type errors and locations.
For each error, suggest the fix.
```

**Task 4: Unused Code Check** (if available)

```
Run unused code detection (e.g., `pnpm knip`) if configured.
Report: PASS or FAIL with unused exports/dependencies found.
Suggest removals for each finding.
```

**Task 5: Unit Tests**

```
Run unit tests (e.g., `pnpm test:unit` or per AGENTS.md) in the target repository.
Report: PASS with test count, or FAIL with failing test names and errors.
For failures, include the assertion that failed.
```

**Task 6: Style Lint** (only if CSS changes exist)

```
Run style linting (e.g., `pnpm stylelint`) if configured.
Report: PASS or FAIL with issues found.
```

### 3. Collect and Report Results

Wait for all subagents, then compile report:

```markdown
# Quality Gates Report

From DrJKL/ticket-to-pr-pipeline, MIT.

More from DrJKL/ticket-to-pr-pipeline

Signals

Stars
0
Forks
1
Open issues
0
Last commit (this folder)
Mar 5, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from DrJKL

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get quality-gates-runner running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying quality-gates-runner?

CallGet help
Cite this page

quality-gates-runner skill. Agent Mart. https://agentmart.dev/skills/drjkl-quality-gates-runner (last updated 2026-10-24)