Lawful basis assessment

From mukul975/Privacy-Data-Protection-Skills · View interactive version

Lawful basis assessment is an AI agent skill from the GitHub repository mukul975/Privacy-Data-Protection-Skills. Guides determination of the correct lawful basis under GDPR Article 6(1)(a)-(f) for each processing activity. Includes decision tree logic for consent vs legitimate interest vs contract necessity. Activate when evaluating legal grounds for processing or reviewing lawful basis selections. Keywords: l

How to use this skill

Skill file

Implementing Lawful Basis Assessment

Overview

Every processing activity under GDPR must have a valid lawful basis established before processing begins. Article 6(1) provides six mutually non-exclusive bases. Selecting the wrong basis creates compliance risk, may invalidate the processing entirely, and can result in enforcement action. This skill provides a systematic methodology for evaluating and documenting the appropriate lawful basis.

The Six Lawful Bases — Art. 6(1)

(a) Consent

The data subject has given consent to the processing of their personal data for one or more specific purposes.

Requirements per Art. 7 and Recital 32:

Best suited for: Marketing communications, cookies/tracking, research participation, sharing data with third parties for their own purposes.

Not appropriate when: There is a power imbalance (employer-employee, public authority-citizen), processing is necessary for another basis, or withdrawal would be impractical.

(b) Contract Performance

Processing is necessary for the performance of a contract to which the data subject is party, or to take steps at the data subject's request prior to entering into a contract.

Key test: Would the contract be impossible to perform without this specific processing? The processing must be objectively necessary, not merely useful or standard practice.

Best suited for: Delivering purchased goods, processing payments, providing contracted services, pre-contractual enquiries at the data subject's request.

Not appropriate when: Processing is useful but not necessary for the contract (e.g., profiling customers is not necessary to deliver their order).

(c) Legal Obligation

Processing is necessary for compliance with a legal obligation to which the controller is subject.

Requirements:

Best suited for: Tax reporting, employment law obligations, anti-money laundering checks, regulatory reporting, court orders.

(d) Vital Interests

Processing is necessary to protect the vital interests of the data subject or of another natural person.

Requirements:

Best suited for: Emergency medical treatment for unconscious patients, disaster response, humanitarian crises.

(e) Public Task

Processing is necessary for the performance of a task carried out in the public interest or in the exercise of official authority vested in the controller.

Requirements:

Best suited for: Public administration, law enforcement, statutory functions of public bodies, public health monitoring.

(f) Legitimate Interests

Processing is necessary for the purposes of the legitimate interests pursued by the controller or by a third party, except where such interests are overridden by the interests or fundamental rights and freedoms of the data subject.

Requirements (three-part test):

  1. Purpose test: Is there a legitimate interest? (commercial, societal, or individual)
  2. Necessity test: Is the processing necessary for that interest? (no less intrusive alternative)
  3. Balancing test: Do the data subject's interests override the controller's?

Best suited for: Fraud prevention, network security, direct marketing to existing customers, intra-group administrative transfers, internal analytics.

Not available to: Public authorities in the performance of their tasks (Art. 6(1) final paragraph).

Decision Tree for Lawful Basis Selection

Step 1: Is the processing required by law?

Step 2: Is the processing necessary to perform a contract with the data subject?

Step 3: Is this a life-threatening or medical emergency?

Step 4: Is the controller a public authority performing a statutory function?

Step 5: Does the controller have a legitimate interest that requires this processing?

Step 6: Can the data subject provide valid consent?

Documentation Requirements

For each processing activity, document:

  1. Processing activity name and RoPA reference: Link to the Art. 30 record.
  2. Selected lawful basis: Cite the specific Art. 6(1) paragraph.
  3. Rationale: Explain why this basis was selected and why alternatives were rejected.
  4. Necessity analysis: Demonstrate why the processing is necessary for the stated basis (not merely useful).
  5. Supporting evidence: Reference the specific law (for legal obligation), contract (for contract performance), LIA (for legitimate interest), or consent mechanism (for consent).
  6. Special category data: If Art. 9 data is involved, identify the additional Art. 9(2) condition.
  7. Criminal offence data: If Art. 10 data is involved, confirm the specific authorisation in EU/Member State law.
  8. Review date: Set the next review date (recommended: annually or upon material change).

Common Assessment Errors

  1. Defaulting to consent: Using consent when another basis is more appropriate, creating unnecessary withdrawal risk.
  2. Stretching contract performance: Claiming processing is necessary for a contract when it is merely beneficial (e.g., profiling for cross-selling is not necessary to fulfil a purchase order).
  3. Citing non-existent legal obligations: Referencing industry standards or contractual requirements as "legal obligations" when they do not constitute EU or Member State law.
  4. Ignoring the necessity test: Selecting a basis without demonstrating that the specific processing is necessary (not just the purpose).
  5. Switching bases post-hoc: Changing the lawful basis after processing has begun when the original basis fails, without valid justification.
  6. Overlooking power imbalances: Relying on employee consent for workplace processing where genuine free choice is absent.

Integration with Other GDPR Requirements

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.