sleeeepy/de-legal-toolkit/audit
Claude Code and agent skill by sleeeepy/de-legal-toolkit
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
User-invocable only via /audit — not auto-triggered. Pre-launch and ongoing DSGVO/Abmahn/UrhG compliance audit for German web apps. Walks the target project's codebase, docs, and runtime against a curated findings file from the de-legal-toolkit. Eight phases cover static resources, runtime behaviour, legal docs (Impressum/Datenschutz/AGB/Widerruf), sub-processors, music-library copyright, image attribution, e-commerce (Bestellbutton + Kündigungsbutton + Widerrufsbutton), and AI Act Art. 50.
Install
npx vskill@latest install sleeeepy/de-legal-toolkit/auditSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as sleeeepy/de-legal-toolkit/audit.
Compliance Audit Skill
Run a pre-launch or refresh audit for German web apps against the curated findings in findings/_current.md. Each finding maps to one or more check files under checks/. The skill orchestrates: discovers the target project, applies the relevant checks, produces a structured report.
This skill is static check catalog, dynamic priority (per the toolkit's design ADR). Findings update the priority and reference rulings for existing checks; they do not declare new executable check specs. If a new ruling demands a fundamentally new check pattern, that's a PR to this skill's checks/ directory, not a runtime mutation.
When to use
- Pre-launch audit of a new project ("Phase 1-6 sweep")
- Re-audit triggered by a new finding from
legal-research(e.g. issue labelledready-for-agentsaying "Re-audit triggered by finding X") - Targeted re-check of one or two phases after a relevant code change
- Pre-deploy verification when an audit-relevant area changed in the PR diff
Do NOT use for:
- Legal-research questions (use the
legal-researchskill) - Implementing fixes (the audit identifies; the fixes are a separate PR)
- Code review of unrelated changes (use
review/simplify)
Core principles
1. Read findings first, always
Before any check executes, read findings/_current.md (or the project-pinned snapshot if specified). The findings tell you:
- Which checks are currently
high-severityvsmediumvslow - Which rulings to cite when an issue is found
- Which checks are temporarily defensive (i.e. the ruling has narrowed the obligation; do NOT raise a finding the user has to chase)
A check without a current finding citation is a check whose underlying legal basis we haven't verified recently. Run it but note "no current finding citation" in the output — flag for the next legal-research sweep.
2. Project applicability gate
Before each phase, check the project's compliance.yml (or CLAUDE.md derived facts) for which phases apply:
A project that's ai_features: false skips Phase 8 entirely, no need to walk the codebase looking for AI surfaces.
3. Subagent parallelism per phase
Each phase is independent. Spawn one focused subagent per phase, run them in parallel, merge results. Each subagent gets:
- The phase's check file (
checks/phase-N-X.md) verbatim - The applicable findings section (filtered to the phase's tags)
- The project root and any project-specific config
4. Output format
Single markdown report with one section per phase:
Final section: aggregated punch list ranked by severity (high → low) with file paths and one-line action per item, followed by a structured `close_when:` block per finding so the sink can lift conditions verbatim without paraphrasing.
The punch list is the audit-run's source of truth. Every issue body is one rendering of one row, and the close_when: block is what the sink lifts into the issue's Close gate section. This is why the orchestrator emits the block at report time, not the sink at create time — the report is reproducible; the sink is incidental.
Required: the report must also include a fixed-bucket "Catalogue does NOT cover" section near the verdict, so the report stays honest about its scope. The catalogue is deliberately violation-driven; absence of findings ≠ absence of risk. Five fixed lines:
This section is non-negotiable in the output. It keeps the verdict honest without inflating finding counts.
5. Lifecycle states are loopholes
Any schema field, status enum, or contract value with a pending-*, provisional, unverified, draft, or similar lifecycle marker MUST be paired with a deploy-time gate that rejects those values in production. Otherwise the marker is a closing loophole: an AC like "all N items have a sidecar conforming to the schema" can be satisfied by N placeholders with status: pending-verification, the original finding stays present, and the issue closes green.
This is broadly applicable — same shape as TODO comments without dated owners, feature flags without expiry, draft documents linked from production navigation.
How to surface this as a finding:
- When a phase check observes a remediation pattern that introduces a lifecycle value (e.g. Phase 6 sidecars with
status: pending-re-source), the phase MUST also check for a corresponding deploy-time gate. - If no gate exists: raise as a finding in its own right — title
lifecycle-state without deploy-time gate at <file:line>, severity HIGH (it nullifies the remediation it accompanies). - If a gate exists: cite it in the Close gate's lifecycle-loophole subsection so the closer can verify it's still wired in.
6. Infrastructure findings vs data findings
A finding like "N existing assets lack attribution sidecars" is actually two pieces of work bundled into one row:
- Infrastructure: schema, validator, generator script, agent prompt.
- Data: back-populate sidecars for each of the N existing items with verified provenance.
Infrastructure is small, visible, tempting to ship first. Data is grindy, easy to defer, easy to satisfy with placeholders. Bundling them into one issue with one AC almost always closes against the infrastructure layer alone.
Heuristic for the orchestrator: when emitting a finding, if both of these hold —
- existing-items count > 0
- current-coverage = 0 (or the remediation requires per-item work, not a schema fix)
— split into two issues, OR emit a single issue whose Close gate has separate infrastructure: and data: bullets with independently-tickable criteria. The sink renders both; the closer cannot tick the issue closed by addressing only one.
7. PASS-WITH-NOTES vs FAIL — operational weight
The per-phase verdict (PASS / PASS-WITH-NOTES / FAIL / NOT-APPLICABLE) carries operational weight that the per-finding row should inherit. A finding raised within a FAIL phase should ship with stricter close-gate templates (regression guard required, infrastructure/data split required when applicable) than a finding within a PASS-WITH-NOTES phase. The orchestrator carries this forward by setting the close_gate_strictness_override: field on FAIL-phase findings to strict regardless of the project's default.
8. Sink routing
After producing the aggregated report, route per-finding output to the configured sink. Read compliance.yml -> audit_output.sink:
github_issues— one issue per HIGH/MEDIUM finding, LOW items collapsed into one "audit notes" issue. Dedupe against existing open issues; update rather than duplicate. Seesinks/github-issues.md.gitlab_issues— same shape, GitLab CLI. Seesinks/gitlab-issues.md.local_markdown— write dated markdown files toaudit_output.local_markdown.output_dir. Default fallback when no issue tracker is configured. Seesinks/local-markdown.md.single_report— emit only the aggregated markdown report; no per-finding artifacts.
If the configured sink fails its pre-flight (e.g. gh auth status doesn't succeed), fall back to local_markdown and emit a warning in the final report. Never silently swallow findings.
9. Over-collection is a finding too (missing vs. excess compliance)
The catalogue's centre of gravity is missing-obligation findings — no Impressum field, a pre-consent cookie, an absent Bestellbutton. These share a property: more compliance UI is safer, so an auditor's bias toward "add the thing" is aligned with the law.
There is an opposite, easily-missed failure mode: excess compliance theatre that is itself non-compliant. A consent that shouldn't exist (an Art. 13 information duty or an Art. 6(1)(b) contract step modelled as a gating, recorded Art. 6(1)(a) consent — see FIND-2026-005) is as much a finding as a consent that's missing. It is harder to catch because every symmetry check passes: the doc mentions it, the code records it, the box looks conservative. Rubber-stamping it because "more consent = safer" is the exact error.
When auditing any consent gate, acceptance tick, or "compliance" checkbox, do not stop at "is it present and symmetric?" Ask "should this exist at all, and is it the right legal instrument?" A required tick on something that is not a freely-given, withdrawable Art. 6(1)(a)/9(2)(a) consent is over-collection — FAIL it, don't bless it. This applies beyond consent: any UI added in the name of compliance that mis-states the legal basis or couples a non-consent step to a gate is a finding in its own right.
Phases
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/audit/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sleeeepy/de-legal-toolkit/audit)