skills/secret-scanner/SKILL.md
Secret Scanner — Detects and prevents hardcoded secrets in code, configuration, and documentation. Enforces security best practices and integrates with CI/CD pipelines for proactive secret management.
npx skillsauth add ngmthaq/my-copilot secret-scannerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When this skill is invoked, the agent MUST execute the following steps using its bash/shell tool — do not simulate or summarise, actually run the commands:
Make the script executable:
chmod +x path/to/skills/scripts/scan-secrets.sh
Run the scanner against the current code change:
git diff --cached | path/to/skills/scripts/scan-secrets.sh --diff
If no staged changes exist, fall back to unstaged:
git diff | path/to/skills/scripts/scan-secrets.sh --diff
Report results — present each finding with its type, location, severity, and fix. If exit code is 0, confirm the change is clean.
Block completion — do not mark the task complete or approve the code change if exit code is 1.
scan-secrets.shAll detection patterns are encoded in path/to/skills/scripts/scan-secrets.sh. Always run the script against the code change (diff) — not the full codebase — to keep CI fast and output focused.
# Staged changes (pre-commit / pre-merge)
git diff --cached | path/to/skills/scripts/scan-secrets.sh --diff
# Unstaged changes
git diff | path/to/skills/scripts/scan-secrets.sh --diff
# Last commit (post-merge check)
git show | path/to/skills/scripts/scan-secrets.sh --diff
The --diff mode reads a unified diff from stdin and only inspects added lines (+ prefix), ignoring removed lines and context. This targets exactly what is being introduced.
path/to/skills/scripts/scan-secrets.sh path/to/file.env path/to/config.py
| Code | Meaning |
| ---- | --------------------------------------- |
| 0 | No secrets detected |
| 1 | One or more secrets found — block merge |
| Category | Severity | Examples |
| ----------------------------------- | --------------- | -------------------------------------------------------------------- |
| AWS credentials | critical | AKIA… access keys, secret access keys |
| GCP credentials | critical / high | Service account JSON, API keys (AIza…) |
| Azure secrets | critical | Client secrets |
| GitHub tokens | critical | ghp_, gho_, ghs_, ghr_, github_pat_ |
| Private keys | critical | RSA, EC, OPENSSH, DSA, PGP private key blocks |
| Stripe keys | critical / high | sk_live_, rk_live_ |
| Generic secrets | high | password, api_key, auth_token, etc. with quoted literal values |
| Connection strings | high | postgres://, mongodb://, redis://, etc. with credentials |
| Slack / Discord / Twilio / SendGrid | high | Service-specific token formats |
| npm tokens | high | npm_… |
| Bearer / JWT tokens | medium | Bearer …, eyJ… JWTs |
| Internal IPs with ports | medium | RFC-1918 addresses with port numbers |
- name: Scan secrets in PR diff
run: |
git diff origin/${{ github.base_ref }}...HEAD | path/to/skills/scripts/scan-secrets.sh --diff
# .git/hooks/pre-commit
git diff --cached | path/to/skills/scripts/scan-secrets.sh --diff
documentation
Guidelines and protocols for Technical Leaders to manage and oversee technical projects effectively while adhering to the core mandate of being the central orchestration layer for all engineering work.
data-ai
Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Provides execution plan analysis, pagination optimization, batch operations, and performance monitoring guidance.
development
SOLID — Enforces the SOLID principle of object-oriented design (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) for maintainable and scalable code.
development
Separation of Concerns (SoC) — Enforces the Separation of Concerns principle by ensuring each module, layer, and component addresses exactly one well-defined concern. Use when writing, reviewing, or refactoring code that mixes UI with business logic, business logic with data access, presentation with formatting, or cross-cutting concerns (auth, logging, validation) with core logic.