Back to list
takumi12311123

quality-gate

by takumi12311123

1🍴 0📅 Jan 19, 2026

SKILL.md


name: quality-gate description: | MANDATORY quality gate. Auto-triggered before: ExitPlanMode, commit, PR, user confirmation. Handles plan file output, format/lint/build checks, and codex-review iteration. metadata: auto-trigger: true

Quality Gate

Purpose

Ensure code quality through automated checks before any user-facing action.

Auto-Triggers

  • Before ExitPlanMode
  • Before asking "commit?" or similar confirmation
  • Before git commit
  • Before creating PR

Flow

┌─────────────────────────────────────────────────────┐
│  1. Plan Mode Exit?                                 │
│     → Write plan to `.claude/plans/{task-name}.md`  │
└─────────────────────────────────────────────────────┘
                        ↓
┌─────────────────────────────────────────────────────┐
│  2. Detect & Run Project Checks                     │
│     → Auto-detect from Makefile/package.json/go.mod │
└─────────────────────────────────────────────────────┘
                        ↓
┌─────────────────────────────────────────────────────┐
│  3. Run codex-review                                │
│     → Wait for ok: true                             │
└─────────────────────────────────────────────────────┘
                        ↓
          ┌─────────────────────────┐
          │  Errors or blocking?    │
          └─────────────────────────┘
                 ↓ Yes        ↓ No
          ┌──────────┐   ┌──────────────┐
          │ Fix      │   │ Notify user  │
          │ issues   │   │ or proceed   │
          └──────────┘   └──────────────┘
                 ↓
          Loop back to step 2

Step 1: Plan File Output

When exiting plan mode:

  1. Create file: .claude/plans/{task-name}.md
  2. Include:
    • Task summary
    • Implementation steps
    • Files to modify
    • Risks/considerations

Step 2: Project Check Detection

Scan for ALL applicable config files and run ALL matching checks:

FileCheck Command
MakefileRun available targets: make lint, make check, make fmt
package.jsonRun available scripts: lint, check, build, test
go.modgo fmt ./... + go vet ./... + go build ./...
pyproject.tomlruff format + ruff check
Cargo.tomlcargo fmt + cargo clippy + cargo build

Detection rules:

  1. Scan ALL config files in project root
  2. Collect ALL applicable commands (not first-match)
  3. Verify target/script exists before running
  4. Skip unavailable commands gracefully (no error)
  5. If no checks found, proceed to codex-review

Step 3: Run codex-review

Execute codex-review skill:

  • Wait for ok: true
  • If blocking issues exist, fix and re-run checks
  • Max 5 iterations

Important

  • NEVER skip this gate
  • ALWAYS wait for checks to complete
  • Fix ALL blocking issues before proceeding
  • Document any skipped checks with reason

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon