Skip to content
cccskills
FreePublished on GitHub

security

Code scan to detect secrets before commit. Use before git add/commit/push or on demand. Checks for tokens, API keys, credentials, and other sensitive data.

The English summary is being prepared. Showing the original description.

Works withGitLabAWS
See how to install

Files included (1)

  • SKILL.md3.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Security - Secret Detection

Persona

Read .claude/roles/code-reviewer.md — adopt this profile and follow all its rules.

Activation

This skill activates:

  • Before a git commit or git push
  • On explicit request (/security)
  • Via the CLI command flux security-scan (full repo scan)

Detected Patterns

Tokens & API Keys

PatternExampleRegex
GitLab PATglpat-xxxxglpat-[a-zA-Z0-9_-]{20,}
GitHub PATghp_xxxxgh[ps]_[a-zA-Z0-9]{36,}
GitHub OAuthgho_xxxxgho_[a-zA-Z0-9]{36,}
OpenAIsk-xxxxsk-[a-zA-Z0-9]{32,}
Anthropicsk-ant-xxxxsk-ant-[a-zA-Z0-9-]{32,}
AWS Access KeyAKIA...AKIA[0-9A-Z]{16}
AWS Secret-[a-zA-Z0-9/+=]{40} (AWS context)
Slack Tokenxox[baprs]-xox[baprs]-[a-zA-Z0-9-]+
Discord Token-[MN][a-zA-Z0-9]{23,}\.[a-zA-Z0-9-_]{6}\.[a-zA-Z0-9-_]{27}

Generic Credentials

PatternContext
password\s*=\s*["'][^"']+["']Hardcoded passwords
secret\s*=\s*["'][^"']+["']Hardcoded secrets
token\s*=\s*["'][^"']+["']Hardcoded tokens
api[_-]?key\s*=\s*["'][^"']+["']Hardcoded API keys
Bearer [a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+\.[a-zA-Z0-9_-]+JWT tokens

Suspicious Files

FileRisk
.envEnvironment variables (often secrets)
*.pem, *.keyPrivate keys
secrets.*, credentials.*Secret files
config.toml with [secrets] sectionConfig with embedded secrets
id_rsa, id_ed25519Private SSH keys

Workflow

Pre-commit scan (git diff --staged)

SECURITY - Pre-commit Scan

Analyzing staged diff...

Result:
- Files scanned: X
- Secrets detected: Y

[If secrets found]
WARNING: Secrets detected!

File: src/config.ts
Line 42: token = "glpat-..." (GitLab PAT)

Action: Fix before committing.
Suggestions:
- Use an environment variable
- Move to a secure configuration file

Full repo scan (flux security-scan)

SECURITY - Full Scan

Scanning entire repository...

Result:
- Files scanned: X
- Files ignored (.gitignore): Y
- Secrets detected: Z

[List of files with secrets]

Commands

Git diff staged

git diff --cached --name-only  # List of staged files
git diff --cached              # Diff content

Scan patterns

# Example with grep (the skill uses more advanced tools)
git diff --cached | grep -E "(glpat-|ghp_|sk-|password\s*=)"

False Positives

Ignore if:

  • In a test file with dummy values (test_token, fake_key)
  • In documentation (examples with xxxx or your-token-here)
  • Pattern in a comment explaining the expected format

CLAUDE.md Integration

This skill applies the security rule:

Absolute rule: Never store tokens, API keys, or secrets in plain text in code or versioned files.

Report

The scan produces a report with:

  1. Overall status (OK / WARNING)
  2. Number of files scanned
  3. List of detected secrets (file, line, type)
  4. Correction suggestions

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Guide for creating optimized Claude Code agents. Use to design a new specialized agent, a swarm sub-agent, or a multi-agent workflow. Follows the Skill → Agent (preloaded skills) → Skill orchestration pattern.

The English summary is being prepared. Showing the original description.

DGouron/review-flow44Updated Oct 18, 2026

Anti-overengineering guide based on YAGNI. Use before adding an architectural pattern, during code review, or to challenge an overly complex implementation.

The English summary is being prepared. Showing the original description.

DGouron/review-flow44Updated Oct 18, 2026

Clean Architecture (Uncle Bob) guide for this project. Use when creating modules, entities, use cases, presenters, controllers, gateways, guards, services. Contains tactical patterns and structure conventions.

The English summary is being prepared. Showing the original description.

DGouron/review-flow44Updated Oct 18, 2026

Audit documentation for duplication, staleness, language issues, and verbosity. Read-only — produces an actionable report.

The English summary is being prepared. Showing the original description.

DGouron/review-flow44Updated Oct 18, 2026

Local auto-review of modified code (no GitLab/GitHub). Runs 5 sequential audits and generates a local report. Ideal for validating code before creating a MR/PR.

The English summary is being prepared. Showing the original description.

DGouron/review-flow44Updated Oct 18, 2026

Clean Code (Robert C. Martin) guide to produce and challenge code that is readable, durable, simple, and consistent. Covers naming, functions, comments, smells, and refactor heuristics. Complements `/solid` (SOLID principles) and `/anti-overengineering` (YAGNI/KISS). Activate during the REFACTOR phase of the TDD cycle and during implementation self-review.

The English summary is being prepared. Showing the original description.

DGouron/review-flow44Updated Oct 18, 2026

See all skills by DGouron

Report a problem with this skill