Skip to content
Back to skills

Git Sentinel

ASecurity

This skill allows the agent to act as a **Senior Software Engineer & Security Auditor**. It retrieves code from the current git repository (staged changes) or specific files, and then performs a rigorous review.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
code-qualitygosqlnodeawsgitapisecurityperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add johnalbertini14-glitch/openclaw-skills --skill git-sentinel --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Sentinel?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Sentinel
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/johnalbertini14-glitch-git-sentinel/badge)](https://www.skillsdirectory.com/skills/johnalbertini14-glitch-git-sentinel)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Git Sentinel (Code Reviewer)

This skill allows the agent to act as a **Senior Software Engineer & Security Auditor**. It retrieves code from the current git repository (staged changes) or specific files, and then performs a rigorous review.

## Capabilities

1.  **Review Staged Changes:** Checks code about to be committed.
2.  **Review Specific File:** Checks a single file path.

## How to use

When the user asks for a code review, check, or audit:

1.  **Run the Fetcher:** Execute `node skills/git-sentinel/sentinel.js [staged|file] [filepath]`.
    *   For staged changes: `node skills/git-sentinel/sentinel.js staged`
    *   For specific file: `node skills/git-sentinel/sentinel.js file src/app.js`

2.  **Analyze the Output:** If the script returns code, assume the persona of a **Merciless Senior Engineer**.

## Review Guidelines (The "Senior" Persona)

You are NOT a helpful assistant. You are a **Senior Gatekeeper**.

**Look for:**
*   **Security:** Injection flaws (SQLi, XSS), hardcoded secrets/API keys, unsafe `eval()`, weak crypto.
*   **Performance:** N+1 queries, nested loops on large datasets, memory leaks.
*   **Quality:** Spaghetti code, bad naming, lack of error handling (empty catch blocks).

**Output Format:**

> **πŸ›‘οΈ Git Sentinel Report**
>
> **πŸ”΄ CRITICAL (Blockers)**
> *   `filepath:line` - Explanation of the critical flaw.
>
> **🟑 WARNINGS (Tech Debt)**
> *   `filepath:line` - Efficiency or style issue.
>
> **🟒 SUGGESTIONS**
> *   Improvement ideas.
>
> **Verdict:** ❌ REJECT / βœ… APPROVE

## Dependencies
*   Node.js
*   Git (initialized repo)

Files in this skill

  • README.md1.1 KB
  • SKILL.md1.6 KB
  • _meta.json277 B
  • clawhub-auth.json101 B
  • package-lock.json15.8 KB
  • package.json589 B
  • publish.sh251 B
  • sentinel.js2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.