スキル一覧に戻る
maslennikov-ig

run-quality-gate

by maslennikov-ig

🎼 Turn Claude Code into a production powerhouse. 33+ AI agents automate bug fixing, security scanning, and dependency management. 19 slash commands, 6 MCP configs (600-5000 tokens), quality gates, and health monitoring. Ship faster, ship safer, ship smarter.

56🍴 15📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: run-quality-gate description: Execute quality gate validation with configurable blocking behavior. Use when running type-check, build, tests, lint, or custom validation commands in orchestrators or workers to enforce quality standards. allowed-tools: Bash, Read

Run Quality Gate

Execute validation commands as quality gates with structured error reporting.

When to Use

  • Type-check, build, test, lint validation
  • Orchestrator phase validation
  • Worker self-validation

Input

{
  "gate": "type-check|build|tests|lint|custom",
  "blocking": true,
  "custom_command": "pnpm custom-validate"
}

Gate Commands

GateCommand
type-checkpnpm type-check
buildpnpm build
testspnpm test
lintpnpm lint
customcustom_command value

Process

  1. Map gate to command - Validate custom_command if gate="custom"
  2. Execute via Bash - Timeout: 5 minutes, capture stdout/stderr
  3. Parse result - Exit code 0 = passed, non-zero = failed
  4. Extract errors - Lines with "error", "failed", TS#### codes
  5. Determine action:
    • Passed → action="continue"
    • Failed + blocking → action="stop"
    • Failed + non-blocking → action="warn"

Output

{
  "gate": "type-check",
  "passed": true,
  "blocking": true,
  "action": "continue",
  "errors": [],
  "exit_code": 0,
  "duration_ms": 2345,
  "command": "pnpm type-check",
  "timestamp": "2025-10-18T14:30:00Z"
}

Examples

Blocking gate passes:

{ "gate": "type-check", "blocking": true }
→ { "passed": true, "action": "continue", "errors": [] }

Blocking gate fails (stops workflow):

{ "gate": "build", "blocking": true }
→ { "passed": false, "action": "stop", "errors": ["Module not found: missing-module"] }

Non-blocking gate fails (warns only):

{ "gate": "lint", "blocking": false }
→ { "passed": false, "action": "warn", "errors": ["Missing semicolon"] }

Error Handling

  • Timeout (5 min): Return failed with timeout error
  • Missing custom_command: Return error
  • Command not found: Return failed with exit_code=127

Notes

  • Exit code 0 always = success regardless of output
  • Blocking flag only affects action, not passed status
  • Error extraction is best-effort

スコア

総合スコア

75/100

リポジトリの品質指標に基づく評価

SKILL.md

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

+20
LICENSE

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

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

+5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

0/5

レビュー

💬

レビュー機能は近日公開予定です