К основному содержанию
скилл CX Codex

legal-pages — скилл для Claude Code: что делает и как установить

Скилл legal-pages для Claude Code помогает подготовить юридические страницы по фактическому поведению приложения. Запускается при создании продукта и изменениях в обработке данных, cookies или провайдерах.

MIT ★ 741 обновлён 2026-11-14

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add phuryn/product-engineering
/plugin install app-stack@product-engineering
Открыть на GitHub

Что делает legal-pages

Скилл собирает сведения о данных, которые приложение получает, хранит и передаёт, и на их основе готовит политику конфиденциальности, условия использования и cookie-баннер. Он также добавляет согласие с документами при регистрации, публичные ссылки на страницы и тесты, которые сверяют описанное с кодом.

В инвентаризацию входят провайдеры, таблицы с персональными данными, cookies и браузерное хранилище, а также задачи удаления данных. Тест выявляет провайдера, которого нет в списке политики, и обещания о функциях, которые ещё не собраны. Для сроков хранения нужен код задачи, которая их соблюдает.

Владелец продукта предоставляет юридические сведения и факты о провайдерах, затем утверждает текст; скилл не заменяет юридическую консультацию. Перед публикацией нужны рабочий контактный адрес, а в описанных случаях продаж потребителям в ЕС — также адрес учреждения и телефон.

Какие задачи решает

  • составить политику конфиденциальности по данным приложения
  • согласовать условия использования с готовыми функциями
  • добавить согласие с документами при регистрации
  • проверить тестом список провайдеров в политике
  • связать сроки хранения данных с задачами их удаления

Примеры запросов агенту

  • Подготовь юридические страницы по тому, какие данные приложение собирает и куда передаёт.
  • Добавь согласие с политикой и условиями при регистрации.
  • Проверь, что список провайдеров в политике совпадает с вызовами приложения.

Как установить legal-pages

1Через маркетплейс плагинов

/plugin marketplace add phuryn/product-engineering
/plugin install app-stack@product-engineering

Команда ставит плагин app-stack целиком, со всеми его скиллами

2Через Skills CLI (Vercel)

npx skills add phuryn/product-engineering --skill legal-pages -a claude-code

3Вручную: положить файлы

~/.claude/skills/legal-pages/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/legal-pages/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о legal-pages

Как установить legal-pages в Claude Code?

Выполни команды по порядку: /plugin marketplace add phuryn/product-engineering, затем /plugin install app-stack@product-engineering.

Что делает legal-pages?

Скилл помогает написать юридические страницы на основе поведения приложения и добавляет тесты, сверяющие их с кодом. Владелец предоставляет свои факты и утверждает документы.

Заменяет ли legal-pages юридическую консультацию?

Нет. Скилл готовит черновики и проверки, а владелец или его юрист решает, что должно быть в документах.

Исходный текст

SKILL.md · MIT
---
name: legal-pages
description: "Privacy policy, terms, a cookie banner, consent at sign-up, a public front door: legal pages drafted from what the code does, held to it by a test, with the owner's facts and sign-off."
---

# Legal pages: drafted from the code, held to it

**Draft legal pages from what the code collects, stores and sends.** A confident guess can promise a deletion the code does not perform. Build the pages alongside the product, with a test that fails when they diverge. The owner supplies facts only they have and approves the text. This method keeps legal text true; it is not legal advice. The owner, or their counsel, decides what the pages say.

## When it applies

- **Write the pages before the first stranger is asked for anything.** During the build, this includes a sign-up, an email address or a payment. The pages land with the public front door, and until then the deploy's URL is shared with nobody (for a SaaS, stage 8 of `app-lifecycle`). Before that, a placeholder behind each legal link says the text comes before launch and holds no sentence of policy, so it promises nothing the code must match.
- **Change the page in the change that alters what it describes.** This includes providers, analytics tags, cookies, retention jobs and model providers reading what people type. The page changes in the same change, never before it and never after.
- **Check pages against code at go-live and as intent at review.** Apply `release-gate` for the go-live check and `intended-vs-implemented` to read them as documented intent at review. Neither is where they are written.

## What binds

1. **Every sentence matches what the code does today.** Each claim traces to a table, a cookie, a script or a provider call, and nothing describes a tag, a job or a feature still to come. The policy names an analytics tool only in the change that adds its tag.
2. **Draft from an inventory of the code, not from a template.** List what is collected and from whom, where it is stored and for how long, and every provider it reaches, from:
   - the environment schema's providers and the server's outbound calls;
   - the Content-Security-Policy's origins, which name every third party a browser page may reach;
   - the tables that hold personal data, and what each column is for;
   - what a visit stores in the browser: a browser test reads the cookie jar, `localStorage`, `sessionStorage` and IndexedDB after every public page;
   - the scheduled jobs that delete or expire data;
   - what people type to an embedded agent, which reaches the model provider under its own retention terms.
3. **When another product by the same company already has legal pages, start from them.** Keep the company's boilerplate (controller, rights, supervisory authority, governing law, accounts, acceptable use, payment, liability) and rewrite everything about processing from this product's inventory.
4. **A unit test pins the pages to the code.** The policy's list of providers lives in code beside the pages, and the test fails when the code reaches a provider the list does not name, or when an area the pages call unbuilt ships.
5. **Sell only what runs.** The plan table, the terms, the policy and the footer read one launch list of what is built, and a test fails when a sold or promised line names something the list marks unbuilt; that line says *Coming soon* instead. The go-live side of the same check is `release-gate`.
6. **No page promises a deletion no job performs.** A retention period on the page needs the job that enforces it, idempotent and with no public endpoint; until it exists, the gap is logged in the backlog and the page promises nothing.
7. **Use only essential cookies unless the visitor accepts the others.** Sign-in, a theme and security cookies are essential; analytics, advertising and most chat widgets are not. Any non-essential cookie brings a consent banner. Nothing non-essential loads before acceptance, refusal is as easy as acceptance, and the policy names each cookie, its purpose and lifetime. Analytics runs without cookies by default (the `product-analytics` skill), which removes the cookie; whether it also removes the banner where the product is offered is the owner's decision, with their counsel.
8. **Require express consent to the terms and policy at sign-up.** A new account accepts the terms and the policy before it exists, through the identity provider's own setting where it has one (on Clerk, *Require express consent to legal documents*, switched on by the owner; `clerk-production`). Each page carries its last-updated date.
9. **Publish a contact address only once the mailbox exists.** An address that bounces is worse than none. Where established in the EU or UK, the operator must provide an email address allowing rapid contact. The e-Commerce rules require it (Directive 2000/31/EC, Art. 5(1)(c); UK SI 2002/2013, reg. 6(1)(c)). Where selling to EU consumers, provide the geographical establishment address, a telephone number and email address before the consumer is bound. This applies wherever the operator is established (2011/83/EU, Art. 6(1)(c), amended by 2019/2161, also covering services paid for with personal data). Then the mailbox exists, and the number answers, before the front door is shared with anyone; elsewhere, ask counsel before showing the postal address alone (`environments`, optional feature switches).
10. **The pages are public and read no session.** They render the same for everyone, signed in or not, and every page links to them in its footer, the sign-up included.

## What the owner does by hand

**Ask the owner for each fact and approval by name.** The agent drafts, inventories, writes the test and wires the links. These remain the owner's:

1. **Ask for the controller's full legal identity and addresses.** Get the legal entity's full name, its registered address and the address it operates from where that differs, and, where one exists, its company number.
2. **Ask for a working email and any required telephone number.** Get an email address that receives mail, required in most cases, and a telephone number where the product sells to consumers in the EU, or is offered to them for personal data used beyond running it (rule 9).
3. **Confirm each provider's account, storage region and processing agreement.** For each provider the inventory found, confirm the account it runs under, the region its data is stored in, and that its data processing agreement is accepted (usually a click in its dashboard). A provider that acts as its own controller, as Microsoft says Clarity does, has no such agreement: the policy names it as a recipient acting as a controller, and counsel decides how the product's own role is described (`product-analytics`).
4. **Ask where the product is offered and which law governs.** Ask for the supervisory authority too.
5. **Ask how long each kind of data is kept.** The agent then builds the job the period needs (rule 6).
6. **Have the owner enable consent in the identity provider's dashboard.** Use its consent setting (rule 8).
7. **Have the owner read and approve the full text.** No URL a stranger is given serves the text before that approval.

Each rule's origin, the case that taught it, is in `receipts.md` beside this file; read it when a rule's edge is unclear.

## How you can tell it worked

The test fails for an unnamed provider; every public-page visit leaves only essential cookies and no stored browser id. Phone sign-up requires accepting the terms and policy first, and the owner approved the text with their own facts.

Related skills:

- `product-analytics` (cookieless analytics, and what changes when a cookie comes in)
- `app-lifecycle` (where the front door sits on the path)
- `release-gate` (the go-live check that the pages match the code)
- `intended-vs-implemented` (the pages read as documented intent at a review)
- `environments` (what is held about people, data that expires)
- `clerk-production` (the consent setting, the CSP)
- `ui-design` (what a screen may claim).

© Paweł Huryn · MIT · phuryn/product-engineering

Похожие скиллы

Все скиллы по теме «Финансы и бизнес» →
legal-risk-assessment официальный anthropics Скилл legal-risk-assessment раскладывает юридические риски по матрице «серьёзность × вероятность» и подсказывает, когда звать старшего юриста. Пригодится при разборе договоров и сделок. CX Codex +1 5 500установок legal-response официальный anthropics Скилл legal-response готовит ответы на типовые юридические запросы по шаблонам и проверяет ситуации, где нужен юрист. Подходит для DSR, NDA, vendor-вопросов и subpoena. CX Codex +1 3 600установок linkfox-zhihuiya-legal-status linkfox-ai Скилл linkfox-zhihuiya-legal-status для Claude Code и Codex проверяет правовой статус патентов по базе PatSnap. Запрашивает статус действия, лицензии, судебные споры и передачу прав по номеру публикации или внутреннему ID. CX Codex +1 395установок legal-compliance travisjneuman Скилл legal-compliance для Claude Code помогает разбирать договоры, требования комплаенса и юридические риски. Подключается к запросам о корпоративном управлении, интеллектуальной собственности и судебных спорах. CX Codex +1 389установок researchers-legal bitwize-music-studio Скилл researchers-legal для Claude Code исследует судебные документы по уголовным и гражданским делам и собирает факты с цитатами. Разбирает темы, связанные с судебными процессами. CX Codex +1 261установок legal-advisor VoltAgent Community Субагент legal-advisor для Claude Code разбирает договоры, требования комплаенса и правовые риски технологического бизнеса. Помогает готовить условия обслуживания и документы по интеллектуальной собственности. CX Codex 1 776установок

Из того же набора51

Весь набор →
value-curve Скилл value-curve для Claude Code строит кривую ценности продукта для одного сегмента покупателей. Сравнение показывает, какие потребности закрыть лучше конкурентов и какую цену предложить. CX Codex +1 ★ 741звёзд репо document-app Скилл document-app для Claude Code, который описывает устройство приложения по его коду или сверяет документацию с реализацией. Запускается по просьбе документировать приложение или проверить точность его документов. CX Codex +1 ★ 741звёзд репо uptime-monitoring Скилл uptime-monitoring для Claude Code настраивает внешние проверки доступности приложения и оповещения. Запускается при публикации приложения, добавлении /health или cron-задачи и запросе о мониторинге. CX Codex +1 ★ 741звёзд репо performance-audit-static Скилл performance-audit-static для Claude Code проверяет производительность кода статически: ищет N+1-запросы, лишнюю загрузку данных, проблемы с индексами и кешированием. Запускается по запросу на аудит производительности. CX Codex +1 ★ 741звёзд репо flight-deck Скилл flight-deck для Claude Code, который сохраняет ход долгой работы в файлах и на странице статуса. Запускается по просьбе показать прогресс или восстановить, на чём остановилась сессия. CX Codex +1 ★ 741звёзд репо environments Скилл environments для Claude Code разделяет настройки разработки и production, а также описывает работу с секретами и миграциями. Агент подключает его при настройке окружения, добавлении переменной или разборе утечки ключа. CX Codex +1 ★ 741звёзд репо embedded-agents-agent-sdk Скилл embedded-agents-agent-sdk для Claude Code и Codex встраивает агентов Claude в приложение на Next.js через Claude Agent SDK. Запускается при запросе на интеграцию Agent SDK или когда агенту нужен движок Claude Code. CX Codex +1 ★ 741звёзд репо mcp-server Скилл mcp-server для Claude Code помогает собрать удалённый MCP-сервер, подключить OAuth и подготовить его к публикации в каталоге. Описывает этапы разработки, проверки инструментов и подтверждения работы клиента. CX Codex +1 ★ 741звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой