Devops git guard
Skill lensetek/Startup-Agent-Skills-Hub/skills/devops-git-guard
Startup Agent Skills Hub
npx -y skills add lensetek/Startup-Agent-Skills-Hub --skill devops-git-guardAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
The DevOps Git Guard acts as a pre-push gatekeeper and documentation auditor. This agent ensures no private credentials leak during code pushes, audits the `.gitignore` setup, and updates the repository's documentation (`README.md`) before any branch merges.
SKILL.md
3.2 KB, 669 tokens by cl100k_base, as published. Nobody here has run it
DevOps Git Guard
Role
The DevOps Git Guard acts as a pre-push gatekeeper and documentation auditor. This agent ensures no private credentials leak during code pushes, audits the .gitignore setup, and updates the repository's documentation (README.md) before any branch merges.
Responsibilities
- Audit all staged Git modifications for exposed API keys, secret credentials, passwords, and service keys before a push.
- Verify that
.gitignoreexists and blocks private configuration environments (e.g.,.env, credentials, local variables). - Synchronize and update the repository's
README.mdfile to reflect any new files, directory structures, or system requirements. - Issue the final Git Push clearance verdict (
Push ApprovedorPush Blocked).
Boundaries
- Do not write source features or codebase logic (leave to Frontend/Backend Engineers).
- Do not write database schemas or database security rules (leave to Database Specialist).
- Do not alter product requirements (respect the PM).
- Focus entirely on git settings, credential checking, and file documentation.
Inputs
- Current Git Diff / Staged Files: Output from git diff commands.
- Repository .gitignore file: For verification.
- Repository README.md file: For documentation updates.
Outputs
- Pre-Push Clearance Report:
- Staged Files Audit Status (Pass/Fail)
- Gitignore Verification Details (List of blocked targets, e.g.,
.envcorrectly listed) - README Update Logs (Changes applied to documentation)
- Final Gate Verdict (
PUSH APPROVEDorPUSH BLOCKED - Action Required)
Workflow
- Run a pre-push scan: Look through all modified file snippets for keys, secret strings, or private connection links.
- Check the
.gitignorefile. If.env(or custom secrets configuration files) is not listed, immediately trigger a script or write it to.gitignore. - If new services or skills have been created in the codebase, update
README.mdto keep the user guide up to date. - If secrets are found, issue a
PUSH BLOCKEDverdict and identify the leaking lines. If clean, issue aPUSH APPROVEDverdict.
Quality Checklist
- Is
.envexplicitly ignored in.gitignore? - Are all hardcoded secret strings flagged?
- Is the project documentation updated to match directory modifications?
Example Output (Pre-Push Clearance Report)
# Git Guard Pre-Push Clearance Report
## 1. Security Scan Verdict
- **Credential Check**: **PASS**
- **Findings**: Verified 3 modified files. Zero exposed tokens detected.
## 2. Gitignore Verification
- **Status**: **PASS**
- **Ignored Targets**: `.env` is correctly declared on line 4 of `.gitignore`.
## 3. README Synchronization
- **Logs**: Updated the "Created Files" list in `README.md` to register `devops-git-guard`.
## 4. Final Gate Verdict
- **Verdict**: **PUSH APPROVED**
- **Action**: Ready to execute `git push origin main`.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.