legal-pages

Draft legal pages from code inventory, test compliance, and hold them to documented behavior.

579|76|Updated Oct 29, 2026
Ready to run
npx skills add https://github.com/phuryn/product-engineering --skill legal-pages-phuryn
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: legal-pages
Source: https://github.com/phuryn/product-engineering/tree/main/app-stack/skills/legal-pages
Command: npx skills add https://github.com/phuryn/product-engineering --skill legal-pages-phuryn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building products involves collecting data, storing it, and sending it to third parties—but legal pages often lag behind, making false promises or missing critical disclosures. This Skill keeps privacy policies, terms, and cookie banners synchronized with the actual code by drafting from an inventory of what the product does, testing that pages match implementation, and requiring owner approval before any public URL is shared. ## Core Features & Use Cases - Inventory-Driven Drafting: Extract data flows, providers, cookies, and retention periods directly from code (schema, CSP headers, scheduled jobs, tables) rather than starting with a template. - Automated Compliance Testing: Unit tests fail when code reaches an undocumented provider, when a promised deletion job does not exist, or when the plan claims a feature marked unbuilt. - Multi-Product Reuse: Start new product pages from existing company boilerplate, updating only the data processing section. - Use Case: You are launching a SaaS with Stripe payments, Segment analytics, and a sign-up flow. This Skill inventories what the code collects (email, payment method), where it goes (Stripe, Segment, your database), and for how long it stays. It drafts a policy from that inventory, writes a test that breaks if someone adds a new provider without updating the policy, and requires your founder to read and sign off on the final text before the public site goes live. ## Quick Start Ask the owner for their legal entity name, working email, and the providers they use, then inventory the code to draft privacy, terms, and cookie pages with a test that fails if they diverge.

Frequently Asked Questions about legal-pages

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

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

Write the policy from an inventory of what your code actually does: which providers receive data, how long data is stored, and what cookies are set. Then write a unit test that fails when the code reaches a provider the policy does not name or when the policy promises a deletion job that does not exist. Update the policy in the same commit that changes behavior.

What data sources should I inventory for legal pages?▼

Extract the complete picture from: environment schema and provider configuration, Content-Security-Policy headers naming third-party origins, database table definitions and column purposes, cookies and browser storage (localStorage, sessionStorage, IndexedDB) detected by automated tests on public pages, and scheduled jobs that delete or expire data.

When should legal pages be written during product development?▼

Draft and finalize pages before sharing the public front door URL with anyone outside your team. Until launch, the pages sit behind a placeholder stating they are not yet final. During the build, update pages whenever you add a provider, change retention periods, or integrate a new analytics tool.

Do I need legal counsel to use this Skill?▼

This Skill drafts factual pages describing what the code does; it is not legal advice. You or your counsel must review the final text, decide on governing law and rights, and approve it before publication. The owner supplies facts only they have and provides sign-off.

How do I handle consent for non-essential cookies?▼

Essential cookies (sign-in, theme, security) require no consent. Non-essential cookies (analytics, advertising) require a consent banner and explicit acceptance before the cookie is set. Nothing non-essential loads before acceptance, refusal must be as easy as acceptance, and each cookie must be named in the policy with its purpose and lifetime.

What happens if I sell a feature that is not yet built?▼

The pages, plan table, and terms must all reference one authoritative launch list of built features. A test fails when the pages or terms name something marked unbuilt; that line should say "Coming soon" instead. This check also applies at go-live through the release-gate Skill.