AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Precommit Workflow Management

skill-mishrashardendu22-agent-skills-precommit-workflow-management · by MishraShardendu22

>-

— No reviews yet
0 installs
26 views
0.0% view→install

Install

$ agentstack add skill-mishrashardendu22-agent-skills-precommit-workflow-management

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-mishrashardendu22-agent-skills-precommit-workflow-management)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 25d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Precommit Workflow Management? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Pre-Commit Workflow Management Skill

This skill explains how to maintain, configure, and execute the intelligent pre-commit hook workflow in the GitHub Backup Automation System monorepo.

1. Branch-First Development

> [!IMPORTANT] > CREATE A LOCAL BRANCH FIRST: Always start by creating a local branch from main: > ``bash > git switch -c MishraShardendu22/main/ > ` > Never make changes directly on main`.


2. Pre-Commit Architecture

The pre-commit workflow lives in .githooks/pre-commit and is tracked directly in version control.

Staged Changes Detected (git diff --cached)
  │
  ├── Only Go files changed ───────► Run Go formatting, vet, tests, build (~1-2s)
  ├── Only Python files changed ───► Run Pyright typecheck, agent test suite (~3-4s)
  ├── Only Frontend files changed ─► Run Biome lint, Next.js build (~10-12s)
  ├── Only Documentation changed ──► Fast-path bypass (<0.2s)
  └── Global / Config / Manual ────► Full monorepo validation gate (~20s)

2. Key Features

  1. Selective Staged-File Execution: Avoids unnecessary work by only running checks relevant to the files staged for the commit.
  2. Fast-Path for Documentation: Commits containing only markdown (*.md), text (*.txt), or asset files skip expensive build and test pipelines.
  3. Subshell Directory Isolation: Every check runs in a subshell (cd "${REPO_ROOT}" && ...) to prevent current working directory drift.
  4. Fail-Fast with Remediation: Aborts immediately on failure and outputs exact commands needed to fix the problem.
  5. Zero External Runtime Dependencies: Implemented in portable POSIX bash, requiring no npm wrapper packages (like Husky) at the repository root.

3. Operations & Maintenance Runbook

Activating the Hook Locally

make hooks-install
# Or: ./scripts/install-hooks.sh

Manually Running Pre-Commit Gate

make pre-commit

Bypass Flags (Emergency Only)

# Skip tests for quick drafts
SKIP_TESTS=1 git commit -s -S -m "chore: draft"

# Skip builds for lightweight edits
SKIP_BUILDS=1 git commit -s -S -m "fix: comment"

# Force full validation across all subsystems
PRECOMMIT_ALL=1 git commit -s -S -m "feat: core change"

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.