consent-tracking-audit

Audits consent collection, storage, and enforcement across Django backend and React frontend for HIPAA and GDPR compliance.

Updated May 11, 2026
One-click install
npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill consent-tracking-audit-thachrocky12345
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: consent-tracking-audit
Source: https://github.com/thachrocky12345/local-agent-train-workstation/tree/main/.claude/skills/consent-tracking-audit
Command: npx skills add https://github.com/thachrocky12345/local-agent-train-workstation --skill consent-tracking-audit-thachrocky12345

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Healthcare platforms must prove that user consent is collected, enforced, and revocable across every data touchpoint, but consent flags are often scattered across models, views, and frontend components with no unified audit trail. This Skill systematically inventories consent points, verifies backend enforcement, checks minor/dependent consent handling, and maps data subject rights coverage against HIPAA and GDPR requirements. ## Core Features & Use Cases - Consent Points Inventory: Greps Django models, views, mutations, and React components to map every consent flag (e.g., User.is_agree, Client.tandc_consent) to its UI element and backend enforcement point. - Enforcement & Minor Consent Verification: Runs Django ORM queries to find active users operating without consent, validates parent/dependent account relationships, and checks jurisdiction-specific age-of-consent rules. - Data Subject Rights Audit: Checks for data export, account deletion cascade, rectification, and consent withdrawal endpoints required by GDPR Articles 17-20 and HIPAA 164.524-528. - Use Case: Before a production release of a telehealth feature, run the audit to discover that video recording consent and clinical notes sharing consent are missing, then generate a prioritized gap report for the compliance team. ## Quick Start Ask the assistant to run a consent tracking audit across the backend and frontend with scope set to all, and produce a compliance gap report.

Frequently Asked Questions about consent-tracking-audit

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

FAQPage Schema
How do I audit consent tracking for HIPAA compliance?

Run the audit with scope set to all to inventory every consent flag in Django models, verify backend enforcement in views and mutations, and generate a gap report mapping missing consent points to HIPAA sections like 164.508 and 164.520.

How to check GDPR data subject rights implementation in Django?

Use the data-rights scope to grep for data export, account deletion, and rectification endpoints, then verify deletion cascades via on_delete=models.CASCADE across client, appointment, and payment models. The audit flags missing rights like portability and restriction of processing.

Does the audit handle minor and dependent consent verification?

Yes, the minors scope queries users with a parent_user foreign key, validates relationship fields and date of birth, and cross-references the AgeOfConsent model for jurisdiction-specific minimum ages including state carve-outs like CA 12+ and OR 14+ for mental health services.

Can the audit detect users operating without consent?

Yes, it runs Django ORM queries to find active clients with tandc_consent=False, users with is_agree=False, providers without credential agreement, and scheduled appointments booked by unconsented clients.

What are the limitations of this consent audit approach?

The audit relies on grep patterns and known model fields, so consent logic hidden in middleware, third-party services, or obfuscated code may be missed. It also cannot fix gaps automatically except in limited cases with the --fix flag.