@intentsolutionsio/general-legal-assistant 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +13 -0
- package/LICENSE +21 -0
- package/README.md +74 -0
- package/agents/legal-clauses.md +162 -0
- package/agents/legal-compliance.md +180 -0
- package/agents/legal-obligations.md +230 -0
- package/agents/legal-recommendations.md +185 -0
- package/agents/legal-risks.md +146 -0
- package/package.json +43 -0
- package/skills/agreement-generator/SKILL.md +225 -0
- package/skills/compliance-audit/SKILL.md +287 -0
- package/skills/contract-compare/SKILL.md +191 -0
- package/skills/contract-review/SKILL.md +183 -0
- package/skills/freelancer-review/SKILL.md +271 -0
- package/skills/missing-protections/SKILL.md +234 -0
- package/skills/nda-generator/SKILL.md +181 -0
- package/skills/negotiate/SKILL.md +163 -0
- package/skills/plain-english/SKILL.md +195 -0
- package/skills/privacy-generator/SKILL.md +213 -0
- package/skills/risk-analysis/SKILL.md +175 -0
- package/skills/terms-generator/SKILL.md +194 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agreement-generator
|
|
3
|
+
description: |
|
|
4
|
+
Generates customized business agreements for 10 common relationship types with
|
|
5
|
+
plain English annotations. Use when formalizing a business relationship, creating
|
|
6
|
+
a partnership agreement, or drafting a service contract from scratch.
|
|
7
|
+
Trigger with "/agreement-generator" or "create a freelancer agreement".
|
|
8
|
+
allowed-tools: Read, Write, Glob, Grep
|
|
9
|
+
version: 1.0.0
|
|
10
|
+
author: Intent Solutions <jeremy@intentsolutions.io>
|
|
11
|
+
license: MIT
|
|
12
|
+
compatible-with: claude-code, codex, openclaw
|
|
13
|
+
tags: [legal, agreements, contracts, business, document-generation]
|
|
14
|
+
---
|
|
15
|
+
# Business Agreement Generator
|
|
16
|
+
|
|
17
|
+
## Overview
|
|
18
|
+
|
|
19
|
+
Generates professional business agreements for 10 common relationship types, each
|
|
20
|
+
with type-specific clause sections, plain English annotations, and proper legal
|
|
21
|
+
structure. Templates are benchmarked against CommonPaper standards (CC BY 4.0),
|
|
22
|
+
Bonterms (CC BY 4.0), and Open-Agreements (MIT) to ensure market-standard language.
|
|
23
|
+
|
|
24
|
+
The skill uses an information-gathering wizard approach — collecting essential details
|
|
25
|
+
before generating, rather than producing generic boilerplate that requires heavy editing.
|
|
26
|
+
|
|
27
|
+
> **Legal Disclaimer:** This skill generates template documents for informational and
|
|
28
|
+
> educational purposes only. Generated agreements are not a substitute for legal advice.
|
|
29
|
+
> Contract requirements vary by jurisdiction, industry, and transaction specifics.
|
|
30
|
+
> All documents should be reviewed by a licensed attorney before execution. No
|
|
31
|
+
> attorney-client relationship is created by using this tool.
|
|
32
|
+
|
|
33
|
+
## Prerequisites
|
|
34
|
+
|
|
35
|
+
- Names and details of all parties to the agreement
|
|
36
|
+
- Clear understanding of the business relationship and obligations
|
|
37
|
+
- Desired term, payment structure, and governing jurisdiction
|
|
38
|
+
|
|
39
|
+
## Instructions
|
|
40
|
+
|
|
41
|
+
1. **Identify the agreement type.** Determine which of the 10 types the user needs:
|
|
42
|
+
|
|
43
|
+
| Type | When to Use | Key Focus |
|
|
44
|
+
|------|-------------|-----------|
|
|
45
|
+
| Freelancer | Hiring independent contractors | Deliverables, IP, independent contractor status |
|
|
46
|
+
| Partnership | Forming a business partnership | Profit sharing, decision authority, exit |
|
|
47
|
+
| NDA | Protecting confidential info | Scope, duration, remedies (use nda-generator for full NDA) |
|
|
48
|
+
| Licensing | Granting IP usage rights | Grant scope, royalties, exclusivity |
|
|
49
|
+
| Consulting | Engaging expert advisors | Scope of work, deliverables, hourly/project fees |
|
|
50
|
+
| Statement of Work (SOW) | Defining project specifics | Milestones, acceptance criteria, change orders |
|
|
51
|
+
| Master Service Agreement (MSA) | Ongoing service relationship | Framework terms, SOW attachment structure |
|
|
52
|
+
| Joint Venture | Temporary business collaboration | Contributions, profit split, governance, dissolution |
|
|
53
|
+
| Distribution | Product distribution rights | Territory, exclusivity, minimum orders, marketing |
|
|
54
|
+
| Referral | Formalizing referral partnerships | Commission structure, tracking, payment triggers |
|
|
55
|
+
|
|
56
|
+
2. **Run the information-gathering wizard.** Collect these details from the user:
|
|
57
|
+
|
|
58
|
+
**Universal fields (all types):**
|
|
59
|
+
- Full legal names and entity types of all parties
|
|
60
|
+
- Business addresses
|
|
61
|
+
- Effective date and term (with renewal provisions)
|
|
62
|
+
- Governing law jurisdiction
|
|
63
|
+
- Payment terms (amount, schedule, method)
|
|
64
|
+
- Termination provisions (for cause, for convenience, notice period)
|
|
65
|
+
|
|
66
|
+
**Type-specific fields:**
|
|
67
|
+
- *Freelancer:* Deliverables list, deadlines, IP ownership, equipment provided
|
|
68
|
+
- *Partnership:* Capital contributions, profit/loss split, management structure
|
|
69
|
+
- *Licensing:* Licensed IP description, territory, exclusivity, royalty rate
|
|
70
|
+
- *Consulting:* Hourly/project rate, travel expenses, deliverable format
|
|
71
|
+
- *SOW:* Milestones with dates, acceptance criteria, change order process
|
|
72
|
+
- *MSA:* Service categories, SLA requirements, SOW template
|
|
73
|
+
- *Joint Venture:* Purpose, contributions (cash/IP/labor), governance board
|
|
74
|
+
- *Distribution:* Products, territory, exclusivity, minimum purchase volumes
|
|
75
|
+
- *Referral:* Commission percentage, payment trigger, tracking mechanism
|
|
76
|
+
|
|
77
|
+
3. **Generate type-specific clause sections.** Each agreement type includes its
|
|
78
|
+
required sections. Common sections across all types:
|
|
79
|
+
|
|
80
|
+
| Section | Included In |
|
|
81
|
+
|---------|-------------|
|
|
82
|
+
| Recitals & Definitions | All types |
|
|
83
|
+
| Scope of Work / Services | Freelancer, Consulting, SOW, MSA |
|
|
84
|
+
| Compensation & Payment | All types |
|
|
85
|
+
| Intellectual Property | Freelancer, Consulting, Licensing, JV |
|
|
86
|
+
| Confidentiality | All types |
|
|
87
|
+
| Representations & Warranties | All types |
|
|
88
|
+
| Indemnification | All types |
|
|
89
|
+
| Limitation of Liability | All types |
|
|
90
|
+
| Term & Termination | All types |
|
|
91
|
+
| Non-Compete / Non-Solicit | Freelancer, Partnership, Consulting, JV |
|
|
92
|
+
| Dispute Resolution | All types |
|
|
93
|
+
| General Provisions | All types |
|
|
94
|
+
| Signature Block | All types |
|
|
95
|
+
|
|
96
|
+
**Type-specific sections:**
|
|
97
|
+
- *Freelancer:* Independent Contractor Status, Tax Obligations, Equipment & Workspace
|
|
98
|
+
- *Partnership:* Capital Accounts, Voting & Decisions, Admission of New Partners, Dissolution
|
|
99
|
+
- *Licensing:* Grant of License, Sublicensing Rights, Quality Control, Audit Rights
|
|
100
|
+
- *SOW:* Milestones & Deliverables Table, Acceptance Testing, Change Order Procedure
|
|
101
|
+
- *MSA:* Service Level Agreement, SOW Incorporation, Escalation Procedures
|
|
102
|
+
- *Joint Venture:* JV Entity Formation, Management Committee, Capital Calls, Wind-Down
|
|
103
|
+
- *Distribution:* Territory & Exclusivity, Minimum Orders, Marketing Obligations, Inventory
|
|
104
|
+
- *Referral:* Referral Definition, Commission Calculation, Tracking & Reporting, Clawback
|
|
105
|
+
|
|
106
|
+
4. **Add plain English annotations.** After each section, include:
|
|
107
|
+
`> **Plain English:** {simple explanation of what this means for both parties}`
|
|
108
|
+
|
|
109
|
+
5. **Apply jurisdiction-specific adjustments:**
|
|
110
|
+
- California: Enhanced independent contractor tests (ABC test per AB 5)
|
|
111
|
+
- New York: Specific partnership law requirements
|
|
112
|
+
- Texas: Non-compete enforceability standards
|
|
113
|
+
- International: Choice of law and arbitration provisions (ICC or UNCITRAL rules)
|
|
114
|
+
|
|
115
|
+
6. **Insert [VERIFY] tags** on any assumptions about party details, payment amounts,
|
|
116
|
+
or relationship specifics not explicitly provided by the user.
|
|
117
|
+
|
|
118
|
+
7. **Write the output file** using the naming convention below.
|
|
119
|
+
|
|
120
|
+
## Output
|
|
121
|
+
|
|
122
|
+
Generate a single Markdown file named `{TYPE}-AGREEMENT-{PartyA}-{PartyB}-{YYYY-MM-DD}.md`:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
# {Type} Agreement
|
|
126
|
+
|
|
127
|
+
**Between:** {Party A} ("{Role A}")
|
|
128
|
+
**And:** {Party B} ("{Role B}")
|
|
129
|
+
**Effective Date:** {date}
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Table of Contents
|
|
134
|
+
{numbered section list}
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## 1. Recitals and Definitions
|
|
139
|
+
{formal legal text}
|
|
140
|
+
|
|
141
|
+
> **Plain English:** {simple explanation}
|
|
142
|
+
|
|
143
|
+
## 2. {Type-Specific Section}
|
|
144
|
+
{formal legal text}
|
|
145
|
+
|
|
146
|
+
> **Plain English:** {simple explanation}
|
|
147
|
+
|
|
148
|
+
{... remaining sections ...}
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Signature Block
|
|
153
|
+
| | {Party A} | {Party B} |
|
|
154
|
+
|---|-----------|-----------|
|
|
155
|
+
| Signature | _________________ | _________________ |
|
|
156
|
+
| Name | {name} | {name} |
|
|
157
|
+
| Title | {title} | {title} |
|
|
158
|
+
| Date | _________________ | _________________ |
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
**[VERIFY] Tags Summary:**
|
|
163
|
+
{numbered list of assumptions}
|
|
164
|
+
|
|
165
|
+
**Agreement Type:** {type}
|
|
166
|
+
**Clause Count:** {count} sections
|
|
167
|
+
**Generated by:** Legal Assistant Plugin — Not a substitute for legal counsel.
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Error Handling
|
|
171
|
+
|
|
172
|
+
| Error | Cause | Solution |
|
|
173
|
+
|-------|-------|----------|
|
|
174
|
+
| Unclear agreement type | User describes a hybrid relationship | Recommend the closest type, note deviations |
|
|
175
|
+
| Missing payment details | User has not set compensation terms | Provide market-rate ranges for context, add [VERIFY] |
|
|
176
|
+
| Multi-party agreement | More than 2 parties | Adapt signature block and obligations for all parties |
|
|
177
|
+
| International parties | Cross-border relationship | Add international arbitration clause, address currency and tax |
|
|
178
|
+
| Regulated industry | Healthcare, finance, government contracting | Flag additional compliance requirements (HIPAA, SOX, FAR) |
|
|
179
|
+
| California freelancer | AB 5 independent contractor risks | Include ABC test analysis, recommend legal review |
|
|
180
|
+
|
|
181
|
+
## Examples
|
|
182
|
+
|
|
183
|
+
**Example 1: Freelancer Agreement**
|
|
184
|
+
|
|
185
|
+
Request: "Create a freelancer agreement for a web developer building our new marketing site"
|
|
186
|
+
|
|
187
|
+
Result: `FREELANCER-AGREEMENT-AcmeCorp-JaneDev-2026-04-02.md` with:
|
|
188
|
+
- Detailed scope of work with milestone deliverables
|
|
189
|
+
- IP assignment to company upon payment (work-for-hire with assignment backup)
|
|
190
|
+
- Independent contractor status affirmation
|
|
191
|
+
- NET-30 payment upon milestone acceptance
|
|
192
|
+
- 14-day termination for convenience with kill fee
|
|
193
|
+
- Non-compete limited to direct competitors for 6 months
|
|
194
|
+
|
|
195
|
+
**Example 2: Master Service Agreement**
|
|
196
|
+
|
|
197
|
+
Request: "Generate an MSA between our consulting firm and a new enterprise client"
|
|
198
|
+
|
|
199
|
+
Result: `MSA-AGREEMENT-ConsultingCo-EnterpriseCorp-2026-04-02.md` with:
|
|
200
|
+
- Framework agreement with SOW attachment template
|
|
201
|
+
- Service level commitments (response times, availability)
|
|
202
|
+
- Rate card structure with annual escalation cap
|
|
203
|
+
- Mutual indemnification with liability cap at 12 months fees
|
|
204
|
+
- Data protection addendum referencing GDPR
|
|
205
|
+
- SOW change order procedure with approval workflow
|
|
206
|
+
|
|
207
|
+
**Example 3: Referral Agreement**
|
|
208
|
+
|
|
209
|
+
Request: "Create a referral agreement — we'll pay 10% commission for qualified leads"
|
|
210
|
+
|
|
211
|
+
Result: `REFERRAL-AGREEMENT-CompanyA-PartnerB-2026-04-02.md` with:
|
|
212
|
+
- Qualified referral definition (signed contract within 90 days)
|
|
213
|
+
- 10% commission on first-year revenue
|
|
214
|
+
- 30-day payment after client payment received
|
|
215
|
+
- 12-month attribution window
|
|
216
|
+
- CRM tracking and quarterly reporting requirements
|
|
217
|
+
|
|
218
|
+
## Resources
|
|
219
|
+
|
|
220
|
+
- [CommonPaper Standard Agreements](https://commonpaper.com/standards/) — CC BY 4.0 cloud, consulting, NDA standards
|
|
221
|
+
- [Bonterms Cloud Terms](https://bonterms.com/) — CC BY 4.0 standardized commercial terms
|
|
222
|
+
- [Open-Agreements](https://github.com/open-agreements) — MIT-licensed agreement templates
|
|
223
|
+
- [SCORE Business Agreement Resources](https://www.score.org/) — SBA-funded small business templates
|
|
224
|
+
- [California AB 5 (Dynamex)](https://leginfo.legislature.ca.gov/) — Independent contractor classification
|
|
225
|
+
- [ICC Model Contracts](https://iccwbo.org/) — International commercial agreement standards
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: compliance-audit
|
|
3
|
+
description: |
|
|
4
|
+
Performs regulatory gap analysis across 7 compliance frameworks with a scored
|
|
5
|
+
report card and prioritized remediation roadmap. Use when assessing a website
|
|
6
|
+
or application for GDPR, CCPA, ADA, PCI-DSS, CAN-SPAM, COPPA, or SOC 2 compliance.
|
|
7
|
+
Trigger with "/compliance-audit" or "audit my website for regulatory compliance".
|
|
8
|
+
allowed-tools: Read, Glob, Grep, WebFetch
|
|
9
|
+
version: 1.0.0
|
|
10
|
+
author: Intent Solutions <jeremy@intentsolutions.io>
|
|
11
|
+
license: MIT
|
|
12
|
+
compatible-with: claude-code, codex, openclaw
|
|
13
|
+
tags: [legal, compliance, gdpr, ccpa, ada, pci-dss, audit, regulatory]
|
|
14
|
+
---
|
|
15
|
+
# Regulatory Compliance Audit
|
|
16
|
+
|
|
17
|
+
## Overview
|
|
18
|
+
|
|
19
|
+
Executes a two-phase compliance analysis — detection scan followed by framework-by-framework
|
|
20
|
+
evaluation — across 7 regulatory frameworks. Produces a compliance scorecard with letter
|
|
21
|
+
grades (A-F) per framework, identifies specific gaps, and generates a prioritized
|
|
22
|
+
remediation roadmap with effort estimates and timelines.
|
|
23
|
+
|
|
24
|
+
This skill reads and analyzes existing assets. It does not generate legal documents or
|
|
25
|
+
modify any files. The output is an audit report documenting findings and recommendations.
|
|
26
|
+
|
|
27
|
+
> **Legal Disclaimer:** This skill generates AI-assisted compliance analysis for
|
|
28
|
+
> informational purposes only. It does not constitute legal advice, certification, or
|
|
29
|
+
> attestation of compliance. Regulatory requirements are complex and jurisdiction-specific.
|
|
30
|
+
> All findings should be reviewed by qualified legal counsel and/or certified compliance
|
|
31
|
+
> professionals. No attorney-client relationship is created by using this tool.
|
|
32
|
+
|
|
33
|
+
## Prerequisites
|
|
34
|
+
|
|
35
|
+
- A live website URL or local codebase to analyze
|
|
36
|
+
- Access to any existing privacy policy, terms of service, or compliance documentation
|
|
37
|
+
- Knowledge of the business type, target audience, and geographic reach
|
|
38
|
+
|
|
39
|
+
## Instructions
|
|
40
|
+
|
|
41
|
+
### Phase 1: Detection Scan
|
|
42
|
+
|
|
43
|
+
1. **Scan the website.** Use WebFetch on the target URL to collect:
|
|
44
|
+
- HTML source (meta tags, structured data, accessibility attributes)
|
|
45
|
+
- Cookie and tracking behavior (Set-Cookie headers, JavaScript trackers)
|
|
46
|
+
- Form elements (input types, required fields, consent checkboxes)
|
|
47
|
+
- Payment indicators (payment form fields, processor scripts)
|
|
48
|
+
- Third-party scripts and embeds (analytics, advertising, social)
|
|
49
|
+
- SSL/TLS certificate presence
|
|
50
|
+
- Content targeting indicators (age-related content, children's themes)
|
|
51
|
+
|
|
52
|
+
2. **Scan the codebase (if available).** Use Glob and Grep to find:
|
|
53
|
+
- Privacy policy and terms of service files
|
|
54
|
+
- Cookie consent implementation code
|
|
55
|
+
- Authentication and access control patterns
|
|
56
|
+
- Data encryption at rest and in transit
|
|
57
|
+
- Logging and audit trail implementations
|
|
58
|
+
- Age verification or gate mechanisms
|
|
59
|
+
- Email sending code and unsubscribe handling
|
|
60
|
+
- Payment processing integrations
|
|
61
|
+
- Accessibility attributes (aria-*, alt text, semantic HTML)
|
|
62
|
+
|
|
63
|
+
3. **Build the detection inventory.** Create a structured map of findings:
|
|
64
|
+
|
|
65
|
+
| Category | Signals Found | Frameworks Triggered |
|
|
66
|
+
|----------|---------------|---------------------|
|
|
67
|
+
| Data Collection | Forms, cookies, analytics | GDPR, CCPA |
|
|
68
|
+
| Payments | Stripe, PayPal, card fields | PCI-DSS |
|
|
69
|
+
| Accessibility | Missing alt text, no skip nav | ADA/WCAG |
|
|
70
|
+
| Email Marketing | Newsletter signup, email sends | CAN-SPAM |
|
|
71
|
+
| User Demographics | Age gates, child-oriented content | COPPA |
|
|
72
|
+
| Security Controls | Auth, encryption, logging | SOC 2 |
|
|
73
|
+
|
|
74
|
+
### Phase 2: Framework-by-Framework Evaluation
|
|
75
|
+
|
|
76
|
+
4. **Evaluate each applicable framework.** Score against these criteria:
|
|
77
|
+
|
|
78
|
+
**GDPR (General Data Protection Regulation)**
|
|
79
|
+
- [ ] Privacy policy published and accessible
|
|
80
|
+
- [ ] Legal basis documented for each processing activity
|
|
81
|
+
- [ ] Cookie consent with granular opt-in (not just notice)
|
|
82
|
+
- [ ] Data subject rights mechanism (access, erasure, portability)
|
|
83
|
+
- [ ] Data Processing Agreement with third-party processors
|
|
84
|
+
- [ ] Data breach notification procedure documented
|
|
85
|
+
- [ ] Data Protection Impact Assessment for high-risk processing
|
|
86
|
+
- [ ] Records of processing activities maintained
|
|
87
|
+
- [ ] International transfer safeguards (SCCs, adequacy decisions)
|
|
88
|
+
- [ ] DPO appointed (if required by Article 37)
|
|
89
|
+
|
|
90
|
+
**CCPA/CPRA (California Consumer Privacy Act)**
|
|
91
|
+
- [ ] "Do Not Sell or Share My Personal Information" link visible
|
|
92
|
+
- [ ] Privacy policy discloses categories of personal information collected
|
|
93
|
+
- [ ] Consumer request mechanism (access, delete, correct, opt-out)
|
|
94
|
+
- [ ] Service provider agreements with data sharing restrictions
|
|
95
|
+
- [ ] Financial incentive disclosures (if offering loyalty programs)
|
|
96
|
+
- [ ] Sensitive personal information opt-out mechanism
|
|
97
|
+
- [ ] Annual privacy policy update
|
|
98
|
+
- [ ] Employee/applicant privacy notices (if applicable)
|
|
99
|
+
|
|
100
|
+
**ADA/WCAG 2.1 (Accessibility)**
|
|
101
|
+
- [ ] Alt text on all images
|
|
102
|
+
- [ ] Keyboard navigation support
|
|
103
|
+
- [ ] Color contrast ratios (4.5:1 minimum for text)
|
|
104
|
+
- [ ] Form labels and error messages
|
|
105
|
+
- [ ] Skip navigation links
|
|
106
|
+
- [ ] ARIA landmarks and roles
|
|
107
|
+
- [ ] Video captions and audio descriptions
|
|
108
|
+
- [ ] Responsive design / mobile accessibility
|
|
109
|
+
|
|
110
|
+
**PCI-DSS (Payment Card Industry)**
|
|
111
|
+
- [ ] No card data stored in plaintext
|
|
112
|
+
- [ ] Payment processing via certified processor (Stripe, Braintree)
|
|
113
|
+
- [ ] HTTPS enforced on all payment pages
|
|
114
|
+
- [ ] No card numbers in URLs, logs, or error messages
|
|
115
|
+
- [ ] SAQ (Self-Assessment Questionnaire) type determined
|
|
116
|
+
- [ ] Quarterly vulnerability scans (if applicable)
|
|
117
|
+
|
|
118
|
+
**CAN-SPAM (Commercial Email)**
|
|
119
|
+
- [ ] Physical mailing address in marketing emails
|
|
120
|
+
- [ ] Functional unsubscribe mechanism
|
|
121
|
+
- [ ] Unsubscribe honored within 10 business days
|
|
122
|
+
- [ ] Accurate "From" and "Subject" headers
|
|
123
|
+
- [ ] Commercial content clearly identified
|
|
124
|
+
- [ ] No harvested or purchased email lists
|
|
125
|
+
|
|
126
|
+
**COPPA (Children's Online Privacy Protection)**
|
|
127
|
+
- [ ] Age screening mechanism (if content may attract children under 13)
|
|
128
|
+
- [ ] Verifiable parental consent before collecting children's data
|
|
129
|
+
- [ ] Direct notice to parents about data practices
|
|
130
|
+
- [ ] Parental review and deletion rights
|
|
131
|
+
- [ ] Data minimization for children's data
|
|
132
|
+
- [ ] No behavioral advertising to children
|
|
133
|
+
|
|
134
|
+
**SOC 2 (Trust Services Criteria)**
|
|
135
|
+
- [ ] Access controls and authentication (Security)
|
|
136
|
+
- [ ] System monitoring and alerting (Availability)
|
|
137
|
+
- [ ] Data encryption and integrity checks (Processing Integrity)
|
|
138
|
+
- [ ] Privacy policy aligned with commitments (Privacy)
|
|
139
|
+
- [ ] Data handling and retention policies (Confidentiality)
|
|
140
|
+
- [ ] Incident response plan documented
|
|
141
|
+
- [ ] Vendor management program
|
|
142
|
+
- [ ] Change management procedures
|
|
143
|
+
|
|
144
|
+
5. **Calculate compliance scores.** For each framework:
|
|
145
|
+
- Count the criteria met vs. total applicable criteria
|
|
146
|
+
- Calculate a percentage score
|
|
147
|
+
- Assign a letter grade:
|
|
148
|
+
|
|
149
|
+
| Grade | Score | Meaning |
|
|
150
|
+
|-------|-------|---------|
|
|
151
|
+
| A | 90-100% | Substantially compliant |
|
|
152
|
+
| B | 75-89% | Minor gaps, low risk |
|
|
153
|
+
| C | 60-74% | Moderate gaps, action needed |
|
|
154
|
+
| D | 40-59% | Significant gaps, priority remediation |
|
|
155
|
+
| F | 0-39% | Non-compliant, immediate action required |
|
|
156
|
+
|
|
157
|
+
6. **Generate remediation roadmap.** For each gap, provide:
|
|
158
|
+
- Description of the gap
|
|
159
|
+
- Regulatory risk (fine amounts, enforcement precedents)
|
|
160
|
+
- Remediation action with specific steps
|
|
161
|
+
- Effort estimate (hours: 1-4, 4-16, 16-40, 40+)
|
|
162
|
+
- Priority tier: P0 (immediate), P1 (30 days), P2 (90 days), P3 (6 months)
|
|
163
|
+
- Suggested responsible party (legal, engineering, marketing, ops)
|
|
164
|
+
|
|
165
|
+
7. **Compile the audit report** using the output format below.
|
|
166
|
+
|
|
167
|
+
## Output
|
|
168
|
+
|
|
169
|
+
Generate a single Markdown file named `COMPLIANCE-AUDIT-{company}-{YYYY-MM-DD}.md`:
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
# Regulatory Compliance Audit
|
|
173
|
+
**{Company Name}** — {URL or codebase path}
|
|
174
|
+
|
|
175
|
+
**Audit Date:** {date}
|
|
176
|
+
**Auditor:** AI Compliance Scan (Legal Assistant Plugin)
|
|
177
|
+
**Scope:** {frameworks evaluated}
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Executive Summary
|
|
182
|
+
{3-5 sentence overview of compliance posture, highest-risk areas, and top recommendation}
|
|
183
|
+
|
|
184
|
+
## Compliance Scorecard
|
|
185
|
+
|
|
186
|
+
| Framework | Score | Grade | Status |
|
|
187
|
+
|-----------|-------|-------|--------|
|
|
188
|
+
| GDPR | {%} | {A-F} | {Compliant / Gaps Found / Non-Compliant} |
|
|
189
|
+
| CCPA/CPRA | {%} | {A-F} | {status} |
|
|
190
|
+
| ADA/WCAG 2.1 | {%} | {A-F} | {status} |
|
|
191
|
+
| PCI-DSS | {%} | {A-F} | {status} |
|
|
192
|
+
| CAN-SPAM | {%} | {A-F} | {status} |
|
|
193
|
+
| COPPA | {%} | {A-F} | {status} |
|
|
194
|
+
| SOC 2 | {%} | {A-F} | {status} |
|
|
195
|
+
| **Overall** | **{%}** | **{grade}** | |
|
|
196
|
+
|
|
197
|
+
## Detection Inventory
|
|
198
|
+
{table of all signals detected during Phase 1}
|
|
199
|
+
|
|
200
|
+
## Detailed Findings
|
|
201
|
+
|
|
202
|
+
### GDPR
|
|
203
|
+
{criteria-by-criteria evaluation with PASS/FAIL/N-A}
|
|
204
|
+
|
|
205
|
+
### CCPA/CPRA
|
|
206
|
+
{criteria-by-criteria evaluation}
|
|
207
|
+
|
|
208
|
+
{... remaining frameworks ...}
|
|
209
|
+
|
|
210
|
+
## Remediation Roadmap
|
|
211
|
+
|
|
212
|
+
### P0 — Immediate (This Week)
|
|
213
|
+
| # | Gap | Framework | Action | Effort | Owner |
|
|
214
|
+
|---|-----|-----------|--------|--------|-------|
|
|
215
|
+
{high-risk items}
|
|
216
|
+
|
|
217
|
+
### P1 — Short-Term (30 Days)
|
|
218
|
+
{moderate-risk items}
|
|
219
|
+
|
|
220
|
+
### P2 — Medium-Term (90 Days)
|
|
221
|
+
{lower-risk items}
|
|
222
|
+
|
|
223
|
+
### P3 — Long-Term (6 Months)
|
|
224
|
+
{enhancement items}
|
|
225
|
+
|
|
226
|
+
## Risk Exposure Summary
|
|
227
|
+
{estimated fine exposure per framework based on published enforcement ranges}
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
**Frameworks Not Applicable:** {list with reason}
|
|
232
|
+
**Limitations:** AI scan cannot detect server-side controls, review organizational policies,
|
|
233
|
+
or assess physical security. This audit supplements but does not replace professional
|
|
234
|
+
compliance assessment.
|
|
235
|
+
**Generated by:** Legal Assistant Plugin — Not a substitute for legal counsel.
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## Error Handling
|
|
239
|
+
|
|
240
|
+
| Error | Cause | Solution |
|
|
241
|
+
|-------|-------|----------|
|
|
242
|
+
| Website unreachable | URL down, behind auth, or blocked | Ask for codebase path or manual description of features |
|
|
243
|
+
| Framework not applicable | Business does not trigger certain regulations | Mark as N/A with explanation, exclude from overall score |
|
|
244
|
+
| Cannot assess server-side | No codebase access, only URL | Note limitation, recommend server-side review separately |
|
|
245
|
+
| Mixed signals on COPPA | Cannot determine if audience includes children | Flag for manual review, apply COPPA criteria conservatively |
|
|
246
|
+
| Payment processing unclear | Redirects to external checkout | Note processor, limit PCI-DSS scope to integration points |
|
|
247
|
+
| Existing policies not found | No privacy policy or ToS published | Score as F for policy-dependent criteria, flag as P0 |
|
|
248
|
+
|
|
249
|
+
## Examples
|
|
250
|
+
|
|
251
|
+
**Example 1: E-Commerce Website**
|
|
252
|
+
|
|
253
|
+
Request: "Audit https://example-shop.com for compliance"
|
|
254
|
+
|
|
255
|
+
Result: `COMPLIANCE-AUDIT-ExampleShop-2026-04-02.md` with:
|
|
256
|
+
- GDPR: C (68%) — privacy policy exists but missing granular consent, no DPA with Shopify
|
|
257
|
+
- CCPA: D (45%) — no "Do Not Sell" link, no consumer request mechanism
|
|
258
|
+
- ADA/WCAG: B (82%) — good semantic HTML, missing alt text on 12 product images
|
|
259
|
+
- PCI-DSS: A (95%) — Stripe checkout handles card data, HTTPS enforced
|
|
260
|
+
- CAN-SPAM: B (78%) — unsubscribe works, missing physical address
|
|
261
|
+
- COPPA: N/A — adult products only
|
|
262
|
+
- SOC 2: N/A — not pursuing certification
|
|
263
|
+
- Remediation: 14 items across P0-P2, estimated 120 hours total
|
|
264
|
+
|
|
265
|
+
**Example 2: SaaS Application Codebase**
|
|
266
|
+
|
|
267
|
+
Request: "Run a compliance audit on our codebase at ./src"
|
|
268
|
+
|
|
269
|
+
Result: `COMPLIANCE-AUDIT-SaaSApp-2026-04-02.md` with:
|
|
270
|
+
- GDPR: D (52%) — no data processing records, no breach notification procedure
|
|
271
|
+
- CCPA: C (65%) — basic privacy controls exist, missing sensitive data handling
|
|
272
|
+
- ADA/WCAG: F (35%) — minimal ARIA attributes, no keyboard navigation, poor contrast
|
|
273
|
+
- PCI-DSS: B (80%) — Stripe integration clean, but card-related strings in logs
|
|
274
|
+
- CAN-SPAM: A (92%) — proper unsubscribe, physical address, clear headers
|
|
275
|
+
- COPPA: N/A
|
|
276
|
+
- SOC 2: D (48%) — no incident response plan, minimal access controls
|
|
277
|
+
- Remediation: 23 items, accessibility overhaul as top P0
|
|
278
|
+
|
|
279
|
+
## Resources
|
|
280
|
+
|
|
281
|
+
- [ICO GDPR Guidance](https://ico.org.uk/for-organisations/guide-to-data-protection/) — UK Information Commissioner's Office
|
|
282
|
+
- [California Attorney General CCPA](https://oag.ca.gov/privacy/ccpa) — Official CCPA guidance and enforcement
|
|
283
|
+
- [FTC CAN-SPAM Compliance Guide](https://www.ftc.gov/business-guidance/resources/can-spam-act-compliance-guide-business) — Federal requirements
|
|
284
|
+
- [W3C WCAG 2.1 Guidelines](https://www.w3.org/TR/WCAG21/) — Web accessibility standards
|
|
285
|
+
- [PCI Security Standards Council](https://www.pcisecuritystandards.org/) — Payment card security standards
|
|
286
|
+
- [FTC COPPA Rule](https://www.ftc.gov/legal-library/browse/rules/childrens-online-privacy-protection-rule-coppa) — Children's privacy requirements
|
|
287
|
+
- [AICPA SOC 2 Trust Services Criteria](https://www.aicpa.org/interestareas/frc/assuranceadvisoryservices/sorhome) — SOC 2 framework
|