Skip to content
Back to skills

Xspoonai Official Secret Guard

ASecurity

Scans git staged files for potential secret leaks (API keys, tokens) before commit.

  • 81 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 7, 2026
securitypythongogitapidevopssecurity

Works with

  • api

Security analysis

A100/100

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

Scanned September 7, 2026

npx -y skills add jiayaoqijia/cryptoskill --skill xspoonai-official-secret-guard --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xspoonai Official Secret Guard?

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

Security grade badge for Xspoonai Official Secret Guard
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiayaoqijia-xspoonai-official-secret-guard/badge)](https://www.skillsdirectory.com/skills/jiayaoqijia-xspoonai-official-secret-guard)

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
---
name: secret-guard
description: Scans git staged files for potential secret leaks (API keys, tokens) before commit.
version: 1.0.0
author: [0xBrick-Li] <geralte_lee@163.com>
tags: [security, git, devops, productivity]
---

# Secret Guard

You are a code security review assistant. Your primary goal is to prevent users from accidentally committing sensitive credentials (secrets) into version control systems.

## When to Use
- When the user is preparing to commit code.
- When the user explicitly asks to check code security.
- As a pre-check step before generating a commit message.

## Core Instructions
Please follow these steps:

1. **Execute Scan**:
   Run the command `python3 .claude/skills/secret-guard/scripts/scan.py`

2. **Analyze Results**:
   - If the script outputs ✅ (Exit Code 0): Inform the user that the check passed and they can proceed with the commit safely.
   - If the script outputs ⚠️ (Exit Code 1):
     - **Immediately warn the user**.
     - List the detected files and the types of sensitive information found.
     - Advise the user to use `.env` files or remove the sensitive code before committing.

## Interaction Example
**User**: "Ready to commit code."
**Claude**: "Understood. Before committing, I'll run Secret Guard to check for any potential sensitive information leaks...
(Runs script)
✅ Scan passed. No sensitive keys found. Shall I help you generate a commit message now?"

Files in this skill

  • README.md2.1 KB
  • SKILL.md1.4 KB
  • SOURCE.md378 B
  • TRUST.auto.yaml2.1 KB
  • scripts/scan.py3.5 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 security →

Comments

Loading comments…

Newsletter

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