Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

compliance-scan

БесплатноЗапускает вложенные скриптыНе проверен

Privacy and security compliance scanner for the Finance Guru repo. Catches API tokens, account numbers, dispatcher URLs, owner-name leaks, untracked sensitive…

AojdevStudioот AojdevStudio★ 336 звёзд на GitHub

Об этом скилле

Compliance Scan

The repo's last line of defense before something compromising hits GitHub. Layered scanner that runs the existing privacy tests, looks for new patterns of leakage, and (optionally) wires itself into git push so a failed scan blocks the push.

When to invoke

Trigger on any of these phrases — and proactively before any push that touches .claude/skills/, scripts/qa/, PRIVACY.md, .gitignore, notebooks/, or fin-guru/data/:

  • "compliance scan", "is this safe to push", "scan for PII", "secrets check"
  • "pre-commit security", "pre-push security", "check for leaks", "check before I push"
  • "PRIVACY.md compliance", "audit privacy", "any leaks?"
  • After adding a new credential, deploy URL, dispatcher URL, webhook, or API key

What it checks (seven layers)

# Layer Owner
1 Owner-name leak detector reuses tests/python/test_no_hardcoded_references.py
2 Gitignore-coverage integration test reuses tests/integration/test_gitignore_protection.sh
3 CRITICAL secret patterns (AWS/GitHub/Anthropic/OpenAI/Slack/JWT/private-key/Google API) scripts/scan.py
4 HIGH PII patterns (account numbers, dispatcher URLs, SSNs, owner email) — sourced from scripts/qa/pii-replacements.txt plus built-ins scripts/scan.py
5 Untracked files in sensitive paths (.claude/skills/, notebooks/, fin-guru-private/, .env*) scripts/scan.py
6 PRIVACY.md "never leaves your machine" alignment with .gitignore scripts/scan.py
7 Household financial figures in tracked docs (precise currency amounts) scripts/scan.py

What counts as private

references/DataClassification.md is the authority on which values may enter a tracked file. Read it before adding a number, a name, or a fixture to any committed file. The short version: this repo is public, code and docs describe behaviour rather than carrying values, and evidence belongs in a document as a percentage or ratio rather than an amount.

Severity gate

Default policy:

Severity Examples Behaviour
CRITICAL API tokens, private keys, AWS access keys fail — exit 1, block push
HIGH Account numbers, dispatcher URLs, SSNs, owner email, household financial figures fail — exit 1, block push
MEDIUM Owner first/last name in non-allowed file report — does not fail
INFO Untracked file in sensitive path, PRIVACY/.gitignore drift report — does not fail

Override with --fail-on CRITICAL for "secrets only" mode or --fail-on INFO for the strictest posture.

How to run

One-shot scan of staged changes (default before git commit)

.claude/skills/compliance-scan/scripts/scan.py --scope staged

Scan everything that's about to be pushed

.claude/skills/compliance-scan/scripts/scan.py --scope push

Full working-tree audit (slower but comprehensive)

.claude/skills/compliance-scan/scripts/scan.py --scope tree

Auto-add gitignore lines for any sensitive untracked files found

.claude/skills/compliance-scan/scripts/scan.py --scope tree --remediate gitignore

The remediation flag is conservative: it only touches .gitignore, only appends to it, and only for paths that match a known-sensitive prefix (.claude/skills/, notebooks/, fin-guru-private/, .env*). Idempotent — re-running won't create duplicate entries.

Output formats

--format text   # default, human-readable
--format json   # machine-readable; pipe to jq
--format md     # markdown report (use for PR descriptions)

Pre-push hook installation

Install once per clone:

.claude/skills/compliance-scan/scripts/install-pre-push.sh

This drops a .git/hooks/pre-push that runs --scope push. Failed scans block the push. Bypass for a one-off (you'll be asked why) with git push --no-verify — but this should be rare and called out in the commit message.

The hook is local to your clone (git hooks are not versioned). Re-run the installer after git clone on a new machine. The installer is idempotent.

Allowlist for accepted exceptions

Some PII is deliberately committed (e.g., a golden test fixture captured from a real production run). Suppress these via .claude/skills/compliance-scan/allowlist.json:

{
  "allow": [
    {
      "path": "tests/python/fixtures/fidelity_history_golden_expected.json",
      "reason": "Golden test fixture captured from real Fidelity history import",
      "approved_by": "ossie",
      "date": "2026-05-16"
    }
  ]
}

path is a fnmatch glob (tests/**/golden_*.json works). An entry with only a path makes matching files skip the secret and PII pattern scans (layers 3 and 4). The layer 7 financial-figure check still runs. An entry that also sets rule (a built-in pattern name such as bright-data-token) and match_sha256 (the first 32 lowercase hex characters of the SHA-256 of each exact match,

Полный SKILL.md на GitHub

Установить compliance-scan в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

allowlist.jsonreferences/DataClassification.mdreferences/secret-patterns.mdreferences/severity-guide.mdreferences/test-pii-pattern.mdscripts/install-pre-push.shscripts/scan.py

FAQ

Что делает скилл compliance-scan?

Privacy and security compliance scanner for the Finance Guru repo. Catches API tokens, account numbers, dispatcher URLs, owner-name leaks, untracked sensitive files, and gitignore gaps before they reach GitHub. Use this skill whenever the user says "compliance scan", "is this safe to push", "scan for PII", "secrets check", "pre-commit security", "pre-push security", "check for leaks", "PRIVACY.md compliance", "audit privacy", "any leaks", "check before push", or wants a sanity check before `git push`. Also run it proactively after editing PRIVACY.md, after creating any new file under `.claude/skills/`, `notebooks/`, `fin-guru-private/`, or `scripts/qa/`, and any time the user adds a new credential, deploy URL, or webhook. Privacy and security are non-negotiable in this repo — when in doubt, run it.

Как установить скилл compliance-scan?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл compliance-scan запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить compliance-scan с