MCPInstall

compliance-review

Compliance review and testing: evaluate your application against HIPAA, SOC 2, PCI-DSS, and GDPR technical requirements with browser-based validation and YAML regression tests for continuous compliance.

Installs
418
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/shiplightai/agent-skills --skill compliance-review
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads compliance-review automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Compliance Review

Evaluate your application against industry-specific regulatory requirements. This review translates dense compliance frameworks into concrete, testable technical checks — and validates them through browser-based testing. Non-compliance can result in severe fines, legal action, and loss of business.

When to use

Use /compliance-review when:

  • Building applications for regulated industries (healthcare, finance, government)
  • Preparing for a compliance audit (SOC 2, HIPAA, PCI-DSS)
  • Adding payment processing or health data features
  • Expanding to GDPR-regulated markets
  • After infrastructure or architecture changes that affect data handling

Standards Referenced

  • HIPAA — Health Insurance Portability and Accountability Act (Technical Safeguards §164.312)
  • SOC 2 — Service Organization Control (Trust Service Criteria)
  • PCI-DSS v4.0 — Payment Card Industry Data Security Standard
  • GDPR — General Data Protection Regulation (Technical Measures)

Phase Overview

Phase 1: EDUCATE   → Compliance context and applicable frameworks
Phase 2: SCOPE     → Determine which frameworks apply, identify regulated data
Phase 3: ANALYZE   → Browser-based checks against framework requirements
Phase 4: REPORT    → Findings mapped to specific regulatory sections
Phase 5: REMEDIATE → Fix guidance + YAML regression tests for continuous compliance

Phase 1: Educate

Why this matters: HIPAA violations: up to $1.9M per violation category per year. PCI-DSS non-compliance: $5,000-$100,000/month in fines plus liability for breaches. SOC 2 failures: loss of enterprise customers who require it. GDPR: up to 4% of global annual revenue. These aren't theoretical — enforcement is active and increasing.

Compliance frameworks are large documents. This review extracts the technical requirements testable in a web application — not the organizational/procedural requirements (policies, training, vendor management) that require human process review.


Phase 2: Scope

Determine applicable frameworks

  1. Auto-detect from codebase:

    • Health data handling (HIPAA indicators: HL7, FHIR, patient records, PHI references)
    • Payment processing (PCI-DSS indicators: Stripe, Braintree, credit card fields, payment forms)
    • EU user data (GDPR indicators: consent banners, cookie notices, EU deployments)
    • Audit logging (SOC 2 indicators: audit trail, event logging, access logs)
  2. Ask the user:

    • Which frameworks apply? (auto-detected, confirm)
      • HIPAA — healthcare / protected health information
      • SOC 2 — enterprise SaaS / customer data
      • PCI-DSS — payment card data
      • GDPR — EU personal data
      • Other (specify)
    • Target URL: Where is the app running?
    • Regulated data types: What regulated data does the app handle? (auto-detected)
    • Test credentials: Accounts with access to regulated data for testing
  3. Map regulated data flows:

    • Where regulated data enters the system (forms, APIs, imports)
    • Where it's displayed (dashboards, reports, exports)
    • Where it's stored client-side (if anywhere)
    • Where it's transmitted (API endpoints, third-party services)

Phase 3: Analyze

Run only the sections applicable based on Phase 2 scoping. Open a browser session with new_session using record_evidence: true.

HIPAA Technical Safeguards (HIP)

Applicable when: application handles Protected Health Information (PHI).

Check IDCheckHIPAA SectionMethod
HIP-01PHI not displayed without authentication§164.312(d)Access PHI pages without auth, verify 401/redirect
HIP-02Session auto-timeout after inactivity§164.312(a)(2)(iii)Wait for idle period, verify session expiration
HIP-03PHI not in URL parameters§164.312(e)(1)Navigate PHI pages, check URLs
HIP-04PHI not in browser console/logs§164.312(b)Check get_browser_console_logs for PHI patterns
HIP-05PHI not cached in browser storage§164.312(a)(2)(iv)Check localStorage, sessionStorage for PHI
HIP-06PHI transmitted over HTTPS only§164.312(e)(1)Verify all PHI API calls use HTTPS
HIP-07Audit trail for PHI access§164.312(b)Access PHI, verify audit log entry exists
HIP-08Role-based access to PHI§164.312(a)(1)Test PHI access with different user roles
HIP-09PHI display has minimum necessary principle§164.502(b)Check if UI shows only needed PHI fields
HIP-10Emergency access procedure exists§164.312(a)(2)(ii)Check for break-glass or emergency access UI
HIP-11No PHI in error messages§164.312(b)Trigger errors on PHI pages, check messages
HIP-12Logout fully terminates PHI access§164.312(a)(2)(iii)Logout, back button, check no PHI visible

Browser validation: Navigate to pages with PHI. Test access controls. Check for PHI in URLs, storage, console. Test session timeout by waiting. Test logout completeness.

SOC 2 Trust Service Criteria (SOC)

Applicable when: enterprise SaaS handling customer data.

Check IDCheckSOC 2 CriteriaMethod
SOC-01Authentication required for all data accessCC6.1Access data pages without auth
SOC-02Strong password requirements enforcedCC6.1Test signup/password change with weak passwords
SOC-03MFA available for user accountsCC6.1Check account security settings for MFA option
SOC-04Session management is secureCC6.1Check cookie flags, timeout, logout behavior
SOC-05Data is encrypted in transitCC6.7Verify HTTPS everywhere, check for mixed content
SOC-06Access is logged (audit trail)CC7.2Perform actions, verify audit log entries
SOC-07Failed login attempts are monitoredCC7.2Multiple failed logins, check for alerting/lockout
SOC-08User permissions are role-basedCC6.3Test different roles, verify appropriate access
SOC-09Data deletion is availableCC6.5Test account/data deletion functionality
SOC-10System status page or health endpointCC7.1Check for status page or /health endpoint
SOC-11Error handling doesn't leak internal detailsCC7.4Trigger errors, check for stack traces
SOC-12Change management evident (versioning)CC8.1Check for version info, changelog

Browser validation: Test authentication boundaries, password policies, MFA flows, role-based access, audit logging visibility.

PCI-DSS v4.0 (PCI)

Applicable when: application processes, stores, or transmits cardholder data.

Check IDCheckPCI-DSS ReqMethod
PCI-01Credit card numbers never fully displayed3.4View saved cards, verify masking (show last 4 only)
PCI-02CVV never stored or displayed after authorization3.3.2Check storage, API responses for CVV
PCI-03Payment form uses HTTPS4.1Verify payment page URL and all resources
PCI-04Payment form is on compliant iframe/redirectSAQ ACheck if using Stripe Elements, PayPal, or similar
PCI-05No cardholder data in URL parameters4.2Check URLs during payment flow
PCI-06No cardholder data in client storage3.2Check localStorage, sessionStorage, cookies
PCI-07No cardholder data in console logs3.2Check get_browser_console_logs during payment
PCI-08Payment form prevents autocomplete on card fieldsBest practiceCheck autocomplete="off" on sensitive fields
PCI-09Strong authentication for payment admin8.3Verify admin/payment management requires strong auth
PCI-10Access to cardholder data is role-restricted7.1Test access to payment data with non-admin users
PCI-11Payment error messages don't reveal card details3.2Trigger payment errors, check messages
PCI-12CSP prevents unauthorized scripts on payment pages6.4.3Check CSP header on payment pages specifically

Browser validation: Walk through the payment flow. Check card display masking. Inspect storage and console for cardholder data. Verify payment form is iframe/hosted (SAQ A compliance).

GDPR Technical Requirements (GDPR)

Applicable when: application handles EU personal data. (Note: privacy-specific checks are in /privacy-review — this section covers GDPR's technical/compliance obligations.)

Check IDCheckGDPR ArticleMethod
GDPR-01Consent collected before data processingArt. 6, 7Load page, check if processing occurs before consent
GDPR-02Privacy policy is accessible and currentArt. 13, 14Find and verify privacy policy page
GDPR-03Data subject access request mechanism existsArt. 15Find data export/download feature
GDPR-04Right to erasure is implementedArt. 17Find and test account deletion
GDPR-05Data portability (export in standard format)Art. 20Test data export, verify format (JSON/CSV)
GDPR-06Consent withdrawal is as easy as giving consentArt. 7(3)Compare consent-giving vs withdrawal UX
GDPR-07Age verification for minors (if applicable)Art. 8Check for age gate or parental consent
GDPR-08Data processing records accessibleArt. 30Check for processing activity documentation
GDPR-09Data breach notification mechanismArt. 33, 34Check for incident response documentation
GDPR-10Cross-border transfer safeguardsArt. 44-49Check where third-party services are hosted

Browser validation: Test consent flows, data export, account deletion, privacy policy accessibility. Check third-party script origins for cross-border transfer concerns.


Phase 4: Report

Generate a structured report saved to shiplight/reports/compliance-review-{date}.md:

# Compliance Review Report
**Date:** {date}
**URL:** {url}
**Frameworks evaluated:** {HIPAA, SOC 2, PCI-DSS, GDPR}
**Regulated data types:** {PHI, cardholder data, EU personal data}

## Overall Compliance Score: {X}/10 | Confidence: {X}%

## Framework Scores
| Framework | Score | Pass | Fail | N/A | Critical Gaps |
|-----------|-------|------|------|-----|---------------|
| HIPAA | 6/10 | 8 | 3 | 1 | Session timeout, PHI in URL |
| SOC 2 | 7/10 | 9 | 2 | 1 | No MFA, weak audit trail |
| PCI-DSS | 8/10 | 10 | 1 | 1 | Card data in console |
| GDPR | 5/10 | 5 | 4 | 1 | Consent, data export, erasure |

## Compliance Status by Check
(Full table of all checks with PASS/FAIL/N-A status, evidence, and confidence)

## Critical Non-Compliance Items
(Findings that could result in regulatory action, ordered by risk)

## Audit Preparation Checklist
- [ ] Fix all CRITICAL findings
- [ ] Fix all HIGH findings
- [ ] Document accepted risks for MEDIUM findings
- [ ] Run YAML regression tests before audit date
- [ ] Prepare evidence documentation from this report

Confidence Scoring

  • 90-100%: Browser-validated, compliance violation confirmed (e.g., PHI visible without auth, card number in console)
  • 70-89%: Strong evidence from inspection (e.g., missing header, no timeout behavior)
  • 50-69%: Architectural concern based on code patterns (e.g., audit logging might be incomplete)
  • Below 50%: Don't report — compliance findings must be substantiated

Phase 5: Remediate

1. Fix guidance (example)

#### HIP-02: No session auto-timeout
**Regulation:** HIPAA §164.312(a)(2)(iii) — Automatic logoff
**Risk:** Unattended sessions with PHI visible
**Current:** Sessions persist indefinitely
**Fix:** Implement idle timeout (HIPAA recommends ≤15 minutes for PHI access)
- Add client-side idle detection (mouse, keyboard events)
- Server-side session expiry as backup
- Show warning dialog at 12 minutes
- Auto-logout and clear screen at 15 minutes

2. YAML regression test

- name: hip-02-session-auto-timeout
  description: Verify session auto-timeout for HIPAA compliance
  severity: critical
  standard: HIPAA-164.312(a)(2)(iii)
  steps:
    - URL: /login
    - intent: Log in with test credentials
      action: fill
      locator: "getByLabel('Email')"
      value: "test@example.com"
    - intent: Enter password
      action: fill
      locator: "getByLabel('Password')"
      value: "testpass123"
    - intent: Submit login form
      action: click
      locator: "getByRole('button', { name: 'Sign in' })"
    - WAIT_UNTIL: Dashboard with PHI is visible
      timeout_seconds: 15
    - VERIFY: Session timeout warning appears after inactivity period
      timeout_seconds: 900
    - VERIFY: User is automatically logged out after timeout expires
      timeout_seconds: 300

Save all YAML tests to shiplight/tests/compliance-review.test.yaml.


Depth Levels

  • --quick: Critical checks only — authentication boundaries + data exposure. ~3 minutes.
  • default: Full applicable framework. ~10-15 minutes.
  • --thorough: All checks + multi-role testing + edge cases + documentation review. ~25-40 minutes.

Tips

  • Run the compliance review specific to your framework: "run HIPAA checks only"
  • Compliance requires evidence — use record_evidence: true and generate_html_report for audit documentation
  • YAML regression tests from this review serve as continuous compliance monitoring
  • This review covers technical requirements only — organizational requirements (policies, training) need human review
  • For privacy-specific concerns, complement with /privacy-review
  • For security-specific concerns, complement with /security-review
  • Close session with close_session and use generate_html_report for evidence

FAQ

What does the compliance-review skill do?

Compliance review and testing: evaluate your application against HIPAA, SOC 2, PCI-DSS, and GDPR technical requirements with browser-based validation and YAML regression tests for continuous compliance.

How do I install compliance-review?

Run npx skills add https://github.com/shiplightai/agent-skills --skill compliance-review in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/compliance-review/ (personal) or .claude/skills/compliance-review/ (project).

Which AI agents can use compliance-review?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is compliance-review safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains compliance-review?

It is published by shiplightai in shiplightai/agent-skills. It has 418 recorded installs.

More from shiplightai/agent-skills

View all →

verify

shiplightai/agent-skills

Verify UI changes in the browser using Shiplight MCP tools.

AI & Agents636 installs

review

shiplightai/agent-skills

Review orchestrator and single entry point for all application reviews. Triage what needs reviewing, then run the right domains: security (OWASP, auth, headers, supply chain), privacy (PII, tracking, consent, GDPR/CCPA), compliance (HIPAA, SOC 2, PCI-DSS, GDPR), design (responsive, accessibility, typography, i18n), resilience (error handling, degradation, API contracts), performance (Core Web Vitals, bundles, runtime), SEO (meta, structured data, crawlability), and GEO (AI citation readiness, llms.txt, entity clarity). Use for pre-launch readiness, post-incident planning, or any 'review my app for X' request.

cloud

shiplightai/agent-skills

Sync local tests with Shiplight cloud — push and pull YAML test cases, templates, and functions between your repo and the cloud. Requires a Shiplight cloud subscription.

Testing & QA593 installs

triage

shiplightai/agent-skills

Triage failing Shiplight YAML tests: reproduce failures, inspect evidence, apply minimal correct fixes, report app/spec mismatches, and update project memory.

AI & Agents584 installs

create-tests

shiplightai/agent-skills

Deprecated alias for create-yaml-tests. Renamed to create-yaml-tests; this entry only redirects for backward compatibility. Use create-yaml-tests to create, update, and repair local Shiplight YAML E2E tests.

Testing & QA495 installs

design-review

shiplightai/agent-skills

UI and design review: evaluate visual quality, responsive behavior, accessibility, color/contrast, typography, layout consistency, and i18n readiness using browser-based validation against industrial standards.

Popular security skills

View category →

azure-compliance

microsoft/azure-skills

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

OfficialSecurity567K installs

minimal-run-and-audit

lllllllama/rigorpilot-skills

Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized reprooutputs/ files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.

Security477.4K installs

seo-audit

coreyhaines31/marketingskills

When the user wants to audit, review, or diagnose SEO issues on their site. Also use when the user mentions "SEO audit," "technical SEO," "why am I not ranking," "SEO issues," "on-page SEO," "meta tags review," "SEO health check," "my traffic dropped," "lost rankings," "not showing up in Google," "site isn't ranking," "Google update hit me," "page speed," "core web vitals," "crawl errors," "indexing issues," "stuck on page 2," "striking distance keywords," "title tag rewrite," "low CTR," "local SEO," "Google Business Profile," or "map pack." Use this even if the user just says something vague like "my SEO is bad" or "help with SEO" — start with an audit. For building pages at scale to target keywords, see programmatic-seo. For adding structured data, see schema. For AI search optimization, see ai-seo.

Security238.7K installs

firebase-security-rules-auditor

firebase/agent-skills

Audits Firebase (Firestore, Cloud Storage) security rules for vulnerabilities, privilege escalation, role bypasses, create vs update inconsistencies, resource exhaustion, type safety, size limits, and hasOnly ownership checks. Use when auditing/reviewing rules, running red-team rule assessments, or scoring against auditor checklists. Don't use for Firebase CLI (login, deploy), Auth, Crashlytics, Remote Config, or database queries.

OfficialSecurity139.1K installs

audit

pbakaus/impeccable

Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns. Generates a scored report with P0-P3 severity ratings and actionable plan. Use when the user wants an accessibility check, performance audit, or technical quality review.

Security81.9K installs

competitors

coreyhaines31/marketingskills

When the user wants to create competitor comparison or alternative pages for SEO and buyer-facing use. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'competitor teardown,' 'audit our competitor pages,' 'are our comparison pages out of date,' or 'competitive asset audit.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you vs competitor, and competitor vs competitor. For auditing existing claims (not researching competitors from scratch, which is competitor-profiling; not technical SEO on these pages, which is seo-audit), use the asset audit here. For internal battle cards and sales-specific competitor docs, see sales-enablement.

Security79.3K installs