kmp-legal-docs

Generate Privacy Policies and Terms & Conditions for Kotlin Multiplatform apps.

2|Updated Jun 6, 2026
One-click install
npx skills add https://github.com/ronjunevaldoz/kmp-agent-skills --skill kmp-legal-docs-ronjunevaldoz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: kmp-legal-docs
Source: https://github.com/ronjunevaldoz/kmp-agent-skills/tree/main/skills/kmp-legal-docs
Command: npx skills add https://github.com/ronjunevaldoz/kmp-agent-skills --skill kmp-legal-docs-ronjunevaldoz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? KMP apps must ship with a Privacy Policy and Terms & Conditions that accurately reflect what data the code actually collects, and store listings (Google Play Data Safety, App Store privacy labels) must match those documents. Writing these by hand is error-prone and quickly drifts out of sync as new SDKs are added. ## Core Features & Use Cases - Auto-detection scanner: detect_data_collection.py scans Kotlin, Swift, XML, and version catalog files for 17 data-collection signals (analytics, crash reporting, location, camera, biometrics, payments, and more) and reports gaps or conflicts against an existing policy. - Tailored document generation: Produces Privacy Policy and Terms & Conditions markdown from a questionnaire, with GDPR, CCPA, and store-specific sections included only when relevant. - Store listing mapping: Fills in Google Play Data Safety rows and App Store App Privacy categories from the same answers. - In-app display and consent: Provides a LegalDocsScreen composable and a version-pinned consent gate using DataStore and BuildKonfig, plus a CI gate that fails the build when code and policy drift apart. - Use Case: Before releasing a KMP shopping app, run the scanner, answer the remaining jurisdiction questions, and generate both legal documents plus the store listing tables in one pass. ## Quick Start Ask the agent to scan your KMP project for data collection and generate a Privacy Policy and Terms & Conditions with the matching Google Play and App Store disclosure tables.

Frequently Asked Questions about kmp-legal-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a privacy policy for a Kotlin Multiplatform app?▼

Run the bundled detect_data_collection.py scanner against your project root to auto-detect data collection from SDK imports and permissions, then answer the remaining questionnaire items like jurisdiction and retention. The skill generates both Privacy Policy and Terms & Conditions markdown from those answers.

How do I fill in the Google Play Data Safety section?▼

Map the questionnaire answers to the Data Safety table: mark each data type as collected or shared, note whether it is required or optional, and state whether users can request deletion. The skill provides a pre-built mapping table covering name, email, crash logs, location, and financial info.

Can I detect what data my app collects automatically?▼

Yes, the detect_data_collection.py script scans Kotlin, Swift, XML, and libs.versions.toml files for 17 data types including analytics, crash reporting, location, camera, biometrics, and payments. It outputs file:line evidence and supports JSON output for agent consumption.

Does the generated privacy policy count as legal advice?▼

No, the output is a best-practice template based on common app patterns and public platform requirements, not legal advice. The skill explicitly requires review by a qualified lawyer licensed in your jurisdiction before publishing.

How do I keep my privacy policy in sync with code changes?▼

Add detect_data_collection.py with the --policy flag to your CI pipeline. It exits with code 1 when new SDK data collection is detected but not disclosed in the policy, failing the build until the policy is updated.

When should I not use this legal docs generator?▼

Avoid it for apps in highly regulated domains like healthcare, finance, or children under 13, which require specialist legal review beyond templates. It also does not cover web-only cookie consent banners or jurisdiction-specific legal advice.