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.

referencebranch-health.md

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

Branch Health Diagnostics Reference

Purpose: Score branch readiness by sync, age, conflict risk, CI state, size creep, and review status.

Contents

  • Health indicators
  • Aggregate score and grades
  • Report template
  • Monitoring rules
  • Remediation workflows
  • Branch lifecycle

Health Indicators

Indicator Weight Key thresholds
Sync status 25% behind main: 0-5 healthy, 6-15 warning, 16-30 critical, 31+ severe
Branch age 20% 0-3 fresh, 4-7 active, 8-14 warning, 15+ stale
Conflict potential 20% overlapping files or hunks raise risk
CI status 15% failing or unstable CI lowers score immediately
Size creep 10% branch keeps growing after review start
Review status 10% long-unreviewed branches degrade health

Sync Status

sync_status:
  commits_behind:
    healthy: 0-5
    warning: 6-15
    critical: 16-30
    severe: 31+
  days_since_rebase:
    healthy: 0-3
    warning: 4-7
    critical: 8-14
    severe: 15+

Branch Age

branch_age:
  fresh: 0-3
  active: 4-7
  maturing: 8-14
  stale: 15+

Aggregate Score

Grade Score Meaning
Excellent 90-100 ready to merge or review
Healthy 75-89 minor issues only
Warning 50-74 needs attention before merge
Critical 25-49 unsafe without remediation
Severe 0-24 likely requires rebase or split

Report Template

## Branch Health Report

**Branch:** `feature/example`
**Target:** `main`

### Health Score: 65/100 (Warning)

### Status Indicators
- Sync: warning
- Age: healthy
- CI: healthy
- Review: warning

### Issues Detected
- 12 commits behind `main`
- 9 days since rebase

### Recommended Actions
1. Rebase onto `main`
2. Resolve overlapping files before requesting merge

Proactive Monitoring

Automate checks for:

  • branch age
  • commits behind target
  • CI state
  • open review age
  • overlapping file growth

Remediation Workflows

Rebase Workflow

  1. refresh target branch
  2. rebase or merge according to team strategy
  3. resolve conflicts
  4. rerun CI
  5. refresh branch health score

Split Workflow

Use when:

  • branch reaches XL or larger
  • unrelated concerns accumulated
  • review or CI churn keeps growing

Branch Lifecycle

Recommended lifecycle:

  • create
  • stay short-lived
  • review quickly
  • merge or close
  • auto-delete after merge

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 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/guardian