gdpr-gate
This skill should be used when auditing diffs or plans for GDPR/CCPA/HIPAA compliance gaps.
от jikig-ai★ 21 звезда на GitHub
Установить gdpr-gate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cloud Mode (Devin): before pipeline work run bash "${CLAUDE_PLUGIN_ROOT}/scripts/cloud-detect.sh". If CLAUDE_PLUGIN_ROOT is unset (cloud exec shells do not export it), resolve the root by IDENTITY, never by script basename: for d in "$HOME/.local/share/devin/cli/plugins/cache" and /opt/.devin/plugins, skip unless [ -d "$d" ], then MANIFEST="$(find "$d" -path '*/.claude-plugin/plugin.json' -exec grep -l '"name":space:*::space:*"soleur"' {} + 2>/dev/null | head -1)", ROOT="${MANIFEST%/.claude-plugin/plugin.json}" — one resolution, two consumers: $ROOT/scripts/cloud-detect.sh and $ROOT/scripts/precommit-guard.sh. (Shape check, not authentication: a planted {"name":"soleur"} dir passes — ADR-179 A11.) local or not-local:no-devin-env proceeds normally; any other not-local:<reason> applies <plugin-root>/devin/INSTRUCTIONS.md §Cloud Mode: emit the --banner, fan out sequentially with Reviewed-Coverage: sequential-fallback disclosure (never claim an independent review ran), message_user ack before any secrets read or production mutation, and run precommit-guard.sh before any git commit — hooks do not fire in cloud.
Grok Build (plugins/soleur/lib/harness.ts invokeSkill()): Read this SKILL.md in this process and run it to completion. A one-segment soleur:<name> in this document names a SKILL — on Grok Build, Read plugins/soleur/skills/<name>/SKILL.md in this process; it is not a nested tool_use. A multi-segment id such as soleur:<domain>:<name> names an AGENT: spawn it, never Read it, and on Grok Build spawn_subagent takes the id with its colons replaced by hyphens (agentIdToGrokSubagentType). Claude Code: Skill tool for a skill (soleur:<name>), Task tool with subagent_type for an agent. Forbidden is executing a subset, not the Read.
GDPR / CCPA / HIPAA pre-generation gate
gdpr-gate is an advisory code-level gate that fires inline during soleur:plan Phase 2.7 and at soleur:work Phase 2 exit. It scans plan prose, schema migrations, and diffs for regulated-data gaps under GDPR (Articles 5/6/9/17/20/25/30/32/33/35), with secondary coverage for CCPA / CPRA and HIPAA. It never blocks. Critical findings (Article 9 special-category data) prompt operator acknowledgment + GitHub issue creation; the gate never auto-writes to compliance-posture.md.
This is not legal review. Output is a heuristic, machine-generated checklist meant to compress regulator-shaped surprises out of the normal feature-design loop. Consult the soleur:legal:clo agent and soleur:legal:legal-compliance-auditor before merging anything load-bearing.
When to invoke
- Plan time — automatic at
soleur:planPhase 2.7 when the plan touches regulated-data surfaces (perhr-gdpr-gate-on-regulated-data-surfacescanonical regex). - Work time — automatic at end of
soleur:workPhase 2, single pass after all per-task RED/GREEN/REFACTOR loops complete (token budget ≤4k per invocation). - Manual —
soleur:gdpr-gate "<scope>"where<scope>is a file path, glob, or one-line description. - Manual repo-scan —
soleur:gdpr-gate --repo-scanruns the gate against the whole working tree (operator-initiated only). Defenses, batching, and output contract documented in## --repo-scan modebelow. - Hook (advisory only) —
lefthook.ymlgdpr-gate-advisoryprints a stderr breadcrumb when staged paths match the canonical regex. The hook always exits 0 — it never blocks the commit. Blocking enforcement lives insoleur:shipPhase 5.5 (post-PR).
The gate is read-only with respect to the canonical soleur:plan template. It audits the plan; it never injects its own checklist into the plan body. Architectural invariant per ADR-026.
Disclaimer (always first)
Every gate output begins, as the first non-blank line, with the literal:
**This is not legal review. Findings are heuristic. Consult `soleur:legal:clo` + `soleur:legal:legal-compliance-auditor` before merging.**
The disclaimer is hardcoded. A test in plugins/soleur/test/gdpr-gate.test.ts asserts the literal appears as the first non-blank line of every fixture output.
--repo-scan mode
soleur:gdpr-gate --repo-scan runs the gate against the whole working tree. Operator-initiated only — never auto-fires from soleur:plan, soleur:work, or lefthook. Token budget remains ≤4k per Haiku call (ADR-026 TR3) via 25-files-per-batch fan-out.
Sole-arg sentinel. When invoked with $ARGUMENTS, trim leading/trailing whitespace (including \t and \n). If the trimmed value equals exactly --repo-scan (no spaces, no quotes, no additional tokens), enter repo-scan mode. Any other value — including --repo-scan apps/web-platform, repo scan, or "--repo-scan section of the repo" — falls through to the v1 scope-string mode and is forwarded verbatim
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- NOTICE
- references/fields.md
- references/layers/api-layer.md
- references/layers/auth-sessions.md
- references/layers/data-in-transit.md
- references/layers/data-lifecycle.md
- references/layers/frontend.md
- references/layers/testing-seeding.md
- references/leakage-vectors.md
- references/legacy/legal-consent-v1-prose.md
- references/legal-consent.md
- references/non-negotiables.md
- scripts/gdpr-gate.sh
- scripts/notice-frontmatter.sh
- scripts/path-denylist.txt
- scripts/repo-scan.sh
- scripts/vendor-drift-classify.sh
- scripts/vendor-pin-integrity.sh
FAQ
Что делает скилл gdpr-gate?
This skill should be used when auditing diffs or plans for GDPR/CCPA/HIPAA compliance gaps.
Как установить скилл gdpr-gate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gdpr-gate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…