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.

referencebranching-strategies.md

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

Branching Strategies

Purpose: Choose the branch workflow that matches team size, release model, CI maturity, and feature-flag capability.

Contents

  • Strategy comparison
  • Selection guide
  • Feature flags vs feature branches
  • Naming guidance
  • Anti-patterns

Strategy Comparison

Factor Trunk-Based GitHub Flow Git Flow
Branch lifetime hours to 1-2 days a few days days to weeks
Branch count minimal low high
Release model continuous deployment merge to main drives deployment release-branch based
Team size fit any mature team small to medium medium to large
Complexity low low to medium high
Best fit SaaS, web, internal apps SaaS, web, service repos versioned products, multi-version support

Selection Guide

Use:

  • Trunk-Based when CI/CD is mature, feature flags exist, and the team can keep branches short-lived.
  • GitHub Flow when simplicity matters more than release-branch ceremony.
  • Git Flow when you must support parallel versions or hotfixes with explicit release branches.

Prerequisites for Trunk-Based

  • strong CI/CD pipeline
  • feature-flag infrastructure
  • consistent code review culture
  • reliable automated test coverage

When Git Flow Is Justified

  • predictable, scheduled release cycles
  • concurrent support of multiple released versions
  • separate hotfix handling is operationally required

Feature Flags vs Feature Branches

Factor Feature Branches Feature Flags
Isolation method Git branch runtime gating
Deployability after merge before exposure
A/B testing weak strong
Merge-conflict risk increases with branch age none from branching itself
Debt type branch cleanup stale-flag cleanup

Recommended default for 2025-era teams:

  • build on short-lived feature branches
  • roll out in production with feature flags

Representative flag platforms:

  • LaunchDarkly
  • Statsig
  • Unleash
  • Flagsmith

Naming Guidance

Guardian's default branch naming remains:

<type>/<short-kebab-description>

Alternative org-specific patterns can still be supported if they are already established:

feature/<issue-id>-<short-description>
fix/<issue-id>-<short-description>
hotfix/<version>-<description>
release/<version>
chore/<description>

Anti-Patterns

Pattern Risk Safer default
long-lived branches conflict buildup and context drift merge or rebase within 1-2 days when possible
direct commits to main in larger teams bypassed review and quality gates protect branches and require review
inconsistent naming (feature/, feat/, f/) weak discoverability and automation standardize and automate naming
abandoned stale branches repository clutter auto-delete after merge and alert on stale age
too many release branches management overhead grows fast keep only the minimum supported branches

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