Install
$ agentstack add skill-mishrashardendu22-agent-skills-precommit-workflow-management ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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
- Selective Staged-File Execution: Avoids unnecessary work by only running checks relevant to the files staged for the commit.
- Fast-Path for Documentation: Commits containing only markdown (
*.md), text (*.txt), or asset files skip expensive build and test pipelines. - Subshell Directory Isolation: Every check runs in a subshell
(cd "${REPO_ROOT}" && ...)to prevent current working directory drift. - Fail-Fast with Remediation: Aborts immediately on failure and outputs exact commands needed to fix the problem.
- 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.
- Author: MishraShardendu22
- Source: MishraShardendu22/agent-skills
- License: MIT
- Homepage: https://github.mishrashardendu22.is-a.dev
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.