check_compliance
Detect missing compliance coverage in your project. Scans integrations and data processing, then reports which legal facts are still required to complete documentation.
Instructions
Read-only compliance readiness check. Run this after adding any SDK, analytics, payment, auth or AI integration — it detects processing activities your legal documents don't cover yet. It scans the project, detects platforms and data processing, auto-derives what it can (app name, legal entity, contact email) and reports which human facts are still missing (including target markets). Returns {platforms, detected, derived, provided, missing, ready, agentPrompt}: ready is true only when no human fact is missing, and agentPrompt is a prompt you (the dev agent) can answer from the repo, so document generation needs no forms. Never modifies files; errors if dir does not exist or is not a project root. Call it before make_compliant when you want to confirm facts first; re-run it with the answers as arguments until ready is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Path of the project root to analyze (absolute paths are safest). | |
| entity | No | Data controller / legal entity, if already known (overrides the derived one). | |
| appName | No | Override the auto-derived app name. | |
| markets | No | Regions where the app has users. Without them `ready` can never be true (markets are a required human fact). | |
| contactEmail | No | Privacy contact email, if already known (overrides the derived one). |