pia-generation
Use when conducting or drafting a privacy assessment — a PIA, an Article 35 data-protection impact assessment (DPIA), a legitimate-interests assessment (LIA, the Article 6(1)(f) balancing test), or a transfer impact assessment (TIA, Chapter V) — using the assessment tools (propose_assessment, add_risk, complete_assessment, link_assessment_to_activity, list_assessments) over the company's deployment-global register. Teaches the method that produces a defensible assessment — scope it to the processing activities it covers, work a structured template, identify and SCORE concrete risks to individuals, document specific design-tied mitigations, and complete it only when the high-risk mitigation rule is satisfied.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-23
- Stars
- ★ 17
- Forks
- 5
01 前言 Front Matter
- name
- pia-generation
- lq_ai
- { "tags": [ "privacy", "dpia", "pia", "lia", "tia", "article-35", "gdpr", "risk-assessment", "assessment" ], "title": "Privacy Impact Assessment (PIA / DPIA / LIA / TIA)", "author": "LegalQuants", "inputs": { "optional": [ { "name": "type", "type": "text", "description": "Which assessment to run — pia, dpia, lia or tia. If absent, choose from the Article 35 / 6(1)(f) / Chapter V triggers below (a DPIA when the processing is likely high risk)." } ], "required": [ { "name": "processing", "type": "text", "description": "The processing to assess — a feature, system, vendor arrangement, or an existing ROPA activity. The skill works from what you are told; it does not invent facts the source does not state." } ] }, "version": "1.0.0", "jurisdiction": "regime-aware", "trigger_examples": [ "run a DPIA for our new analytics pipeline", "do a data protection impact assessment for this processing", "we need a PIA before we launch this feature", "assess the legitimate interests for our marketing emails", "do a transfer impact assessment for sending data to the US" ] }
- description
- Use when conducting or drafting a privacy assessment — a PIA, an Article 35 data-protection impact assessment (DPIA), a legitimate-interests assessment (LIA, the Article 6(1)(f) balancing test), or a transfer impact assessment (TIA, Chapter V) — using the assessment tools (propose_assessment, add_risk, complete_assessment, link_assessment_to_activity, list_assessments) over the company's deployment-global register. Teaches the method that produces a defensible assessment — scope it to the processing activities it covers, work a structured template, identify and SCORE concrete risks to individuals, document specific design-tied mitigations, and complete it only when the high-risk mitigation rule is satisfied.
03 SKILL.md 正文
Privacy assessments — building a defensible PIA / DPIA / LIA / TIA
You are conducting a privacy assessment and recording it in the company's assessment register through the assessment tools. Every write is validated before it commits: a proposal that breaks a rule comes back to you with the reason — read it, fix it, and call the tool again. Never fabricate a value to satisfy a field, and never claim you recorded or completed something you did not.
Choose the right assessment
- DPIA (
dpia) — Article 35. Required when processing is likely to result in a high risk to individuals: large-scale special-category data, systematic large-scale monitoring (incl. of a public area), systematic profiling with legal/significant effects, innovative/novel technology (incl. AI), matching or combining datasets, data on vulnerable subjects, or denial of a service/contract. If two or more of the EDPB criteria apply, do a DPIA. - PIA (
pia) — a lighter privacy impact assessment for processing that is not clearly high-risk but still warrants a documented risk look (a screening that may conclude "no DPIA needed", or a general privacy review). - LIA (
lia) — the Article 6(1)(f) legitimate-interests balancing test: (1) purpose — is there a legitimate interest? (2) necessity — is the processing necessary for it, with no less-intrusive means? (3) balancing — do the individual's interests, rights and reasonable expectations override it? Record the three-part reasoning in the summary; the outcome (proceed / proceed-with-conditions / do-not) is the rating. - TIA (
tia) — a Chapter V transfer impact assessment: assess the destination country's law and practice against the chosen transfer mechanism, and whether supplementary measures are needed.
The method: scope → risks → mitigations → complete
Build the assessment to completion in this order, so a run cut short still leaves a coherent record:
propose_assessment— create it as adraftwith thetype, a cleartitle, and asummarythat describes the processing: its nature, scope, context and purposes, and (for an LIA) the three-part test. Leaverisk_ratingunset for now. (A high-risk assessment cannot be created already-completed— it has no documented risk yet — so always start as a draft.)link_assessment_to_activity— link every ROPA processing activity this assessment covers. Uselist_processing_activitiesto get the IDs (andpropose_processing_activityfirst if the activity is not yet in the register). An assessment that covers real, linked activities is far more defensible than a free-floating one.add_risk— identify the risks to individuals (not to the business) and add one finding each, withlikelihoodandimpactscored low/medium/high. Then give each a mitigation (see the quality standard below) and set itsstatus(openuntil mitigated;mitigatedonce the safeguard is in place;acceptedfor a residual risk the business knowingly accepts).complete_assessment— when the assessment is done, set the overall residualrisk_ratingand complete it. The rule the tool enforces: a DPIA, or any assessment ratedhigh, cannot be completed unless at least one risk carries a documented (non-blank) mitigation. If you have not recorded a real mitigation, the completion is refused — add one withadd_risk(or update your approach) and try again. Useconditionson the assessment for any prerequisites before the processing may proceed (e.g. "DPO sign-off; re-review at 6 months").
Call list_assessments whenever you need an id or to see current state.
Risk-quality standard (this is what makes the assessment worth anything)
A risk finding is only useful if it is specific and the mitigation is design-tied. For each risk:
- Name a concrete harm to individuals — not "data could leak" but e.g. "a misconfigured export endpoint could expose customers' contact details and purchase history to other tenants."
- Score it honestly —
likelihoodandimpacteach low/medium/high. Special-category data, children, or irreversible harm pushimpactup; broad exposure or weak controls pushlikelihoodup. - Tie the mitigation to a design change, not an intention. A good mitigation names what changes:
"pseudonymise
user_idat ingest and drop raw IPs after 24h", "tenant-scoped row-level security on the export query", "DPA + SCCs in place before go-live; access limited to the support role". A bad mitigation is "we will be careful" or "staff are trained" with nothing concrete. Vague mitigations do not reduce risk and will not make a high-risk assessment defensible.
Field rules the tools enforce (get them right the first time)
type— one ofpia,dpia,lia,tia.status—draft,in_progress,completed. Acompletedassessment MUST carry arisk_rating.risk_rating—low,medium,high(the overall residual rating).- risk
likelihood/impact— eachlow,medium,high. - risk
status—open,mitigated,accepted.
Grounding and honesty
Ground every statement in what you were given about the processing. If a material fact is missing (the source
does not say where data is hosted, who the recipients are, what the retention is), record what you can, name
the gap in the summary or as a condition, and do not invent specifics. A smaller, honest assessment with
real risks and real mitigations beats a long one padded with generic boilerplate.
04 同仓库更多 Skills
vendor-privacy-policy-first-pass
Use when the user has a vendor's published privacy policy (URL, PDF, or pasted text) and wants a fast triage assessment to decide whether deeper diligence is warranted. Produces a short structured report covering what the policy says about key data practices (collection, use, sharing, retention, transfers, rights) plus identification of red flags that warrant escalation to deeper review. Explicitly a first pass, not a full privacy assessment, DPA negotiation, or compliance certification.
tabular-review
Use when this matter holds SEVERAL documents and the lawyer wants the same fields compared, extracted, or summarised across them — a due-diligence sweep, a key-terms table, "what is the X in each of these", "compare these contracts". Teaches when to PROACTIVELY offer a grid (so the lawyer discovers the capability), how to map natural language onto start_tabular_review with well-chosen columns, ready-made column templates for common reviews, and — just as important — when NOT to build a grid.
surgical-redline
Use when redlining the other side's contract draft with tracked changes (the apply_redline / preview_redline tools) — for any clause you amend. Teaches how to return each amendment so the tool renders surgical, structure-preserving tracked changes — quote the existing clause and return it with only the necessary words changed (the tool computes the word-level diff and keeps the rest bare), balance one-sided clauses through the right legal mechanism, and preview before you apply.
skill-creator
Use when the user wants to create a new LQ.AI skill, turn a chat into a reusable skill, improve an existing skill, or asks "how do I build a skill that does X." Conducts a focused conversation to elicit what the skill should do, when it should trigger, what inputs and outputs it needs, and what edge cases matter, then produces a complete skill folder ready to save.
ropa-population
Use when building or extending an Article 30 Record of Processing Activities (ROPA) from a source — a privacy notice, a data-processing agreement, an intake questionnaire, or system documentation — using the ROPA tools (propose_processing_activity / propose_system / propose_vendor / propose_transfer, link_processing_activity_to_system, link_vendor_to_activity, add_data_subject_categories, add_data_categories, and the list_* tools). Teaches the method that produces a coherent, fully-linked register efficiently — work activity by activity to completion so partial progress still leaves complete records, reuse the controlled vocabulary instead of duplicating it, and satisfy the validation invariants the write tools enforce.
ropa-maintenance
Use when keeping an existing Article 30 Record of Processing Activities (ROPA) up to date as the business changes — replacing or retiring a tool, system or vendor the company has stopped using (e.g. "we moved off Mixpanel, we use Hotjar now", "we no longer use SendGrid", "this activity stopped sharing data with X"). Teaches the change method using the ROPA change verbs (retire_processing_activity / retire_system / retire_vendor / retire_transfer, unlink_system_from_activity, unlink_vendor_from_activity) together with the propose_* / link_* / list_* tools, so a swap leaves the live register coherent — the new thing linked, the old thing gone from the live register but kept on record for audit. Use ropa-population instead when building a register from scratch or adding wholly new activities.