All skills
simota avatar

/guardian

@e307415
by shingo imotasimota/agent-skills85 stars
15

Gatekeeping Git/PR by classifying change essence and recommending granularity, naming, and strategy. Use when PR preparation or commit strategy is needed.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/guardian

This session only. Nothing lands on disk.

referencepredictive-quality-gate.md

≈483 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Predictive Quality Gate Reference

Purpose: Predict likely Judge and Zen findings before review so Guardian can warn early without over-blocking.

Contents

  • Judge prediction
  • Zen prediction
  • historical learning
  • predictive report
  • review-flow integration
  • accuracy tracking

Judge Prediction

Typical Judge issue families:

  • null handling
  • race conditions
  • logic bugs
  • missing guards
  • unsafe assumptions

Confidence bands:

  • high: >= 80%
  • medium: 60-79%
  • low: < 60%

Warning rule:

  • high confidence -> always warn
  • medium confidence -> warn only if risk_score > 50

Zen Prediction

Typical Zen issue families:

  • generic names
  • mixed naming conventions
  • large functions
  • magic numbers
  • noisy formatting mixed with logic

Auto-fix rule:

  • only for code-quality issues
  • only when confidence > 90%

Historical Learning

Adjust predictions with:

  • accepted or rejected Judge findings
  • accepted or rejected Zen suggestions
  • project-specific false positive patterns

False positive handling:

  • decrease pattern confidence by 5%

Predictive Report

## Predictive Quality Gate Analysis

### Predicted Judge Findings
- possible null handling issue (85%)

### Predicted Zen Suggestions
- split formatting noise from logic change (92%)

Integration With Review Flow

Use predictive findings before review to:

  • enrich Guardian's report
  • decide whether Judge or Zen should be called early
  • avoid unnecessary review churn

Pause when:

  • predicted security issue is high confidence
  • predicted logic bug is high confidence and high impact
  • multiple predicted fixes conflict

Accuracy Tracking

Targets:

  • Judge prediction accuracy > 75%
  • Zen prediction accuracy > 80%
  • false positive rate < 20%

Canonical accuracy report:

## Prediction Accuracy Report (Last 30 Days)

### Judge Predictions
- accuracy: ...

### Zen Predictions
- accuracy: ...

Source: SKILL.md on GitHub

1 warning13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill is a comprehensive Git and PR management tool designed to assist with change classification, quality scoring, and delivery workflows. It has extensive capabilities to execute shell commands for repository manipulation and interacts with the GitHub CLI. While it includes robust safety boundaries, hard gates for security, and a structured escalation process, its core functionality involves processing untrusted code diffs and executing repository-defined build scripts.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    6/20 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e307415. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/guardian