LegalOSS82.1ktracked
Compliance & Privacy

safeai-global-agent

datht-work/safeai-global-agent

Global AI compliance suite

SafeAI-Global Compliance Suite ๐Ÿ›ก๏ธ

๐ŸŒ English | ๐Ÿ‡ป๐Ÿ‡ณ Tiแบฟng Viแป‡t ๐Ÿ“– Actionable User Guide | ๐Ÿ‡ป๐Ÿ‡ณ Hฦฐแป›ng dแบซn Sแปญ dแปฅng

10 AI-Powered Compliance Skills for Product Managers โ€” covering 35+ jurisdictions, ISO standards, and flexible compliance depth

License: MIT Security Audit skills.sh Version


๐ŸŽฏ The Business Value (Biz View)

Building globally compliant software is traditionally slow, expensive, and legally risky. The SafeAI-Global Compliance Suite acts as your embedded Legal & Security co-pilot, shifting compliance entirely to the leftโ€”straight into the hands of Product Managers and Engineers.

For Product Leadership (CPO/PM):

  • โšก Accelerate Time-to-Market (TTM): Generate engineering-ready, legally compliant PRDs in minutes. Never wait weeks for external legal reviews that delay sprint cycles.
  • ๐Ÿ›ก๏ธ De-Risk Product Launches: Automatically identify and mitigate regulatory risks (GDPR, CCPA, SEC, DORA) before a single line of code is written. Prevents expensive post-launch fines.
  • ๐Ÿ’ฏ Immediate Quality Control: Instantly gauge your PRD's compliance readiness with the SafeAI-Global Score (Privacy, Security, and Transparency pillars).
  • ๐Ÿ“‰ Prevent "Compliance Overkill": Ensure you only apply the regulations necessary for your specific target market and product tier, avoiding unnecessary development bloat.

For Engineering Leadership (CTO/DevSecOps):

  • ๐Ÿ”„ Zero-Friction Handover: Use /safeai export jira to instantly transform PRDs into Epics and Gherkin BDD Acceptance Criteria. Legal constraints become code constraints.
  • ๐Ÿ—๏ธ DevSecOps Ready: Generate Terraform/OPA policies direct from PRDs. Validate implementation automatically in CI/CD using locally run safeai-lint.
  • ๐Ÿ” Secure Vibe Coding: Audit AI-generated code (/safeai scan) for secrets, hallucinated dependencies, and compliance gaps instantly within your IDE.

๐ŸŽ›๏ธ Step 0: The Compliance Depth Selector

Not every PRD needs full compliance. To prevent over-engineering simple features, the agent asks you to choose your depth at the start of every chat:

Level Mode Name Best For What Happens
๐ŸŸข ๐Ÿ“ Standard PRD MVPs, internal tools, fast iteration Generates a clean, standard PRD โ€” no compliance scanning.
๐ŸŸก ๐Ÿ›ก๏ธ Smart Compliance (Default) Products going to production Auto-detects region and applies only the relevant local laws.
๐Ÿ”ด ๐Ÿ”’ Full Compliance Audit Enterprise, strictly regulated industries Full audit: All jurisdictions + ISO 27001/42001 + SOC 2 + WCAG.

Tip: You don't have to wait for the bot to ask. Just say "Standard PRD" or "Full compliance for EU" in your very first prompt to skip Step 0.

๐Ÿš€ Instant Starts: The /template Command

Type /template [industry] [region] to instantly grab a tailored PRD skeleton for your specific market:

Command Industry Region Applied Regulations
/template fintech eu FinTech ๐Ÿ‡ช๐Ÿ‡บ EU PSD2, GDPR, DORA
/template healthcare us HealthTech ๐Ÿ‡บ๐Ÿ‡ธ USA HIPAA, FDA SaMD
/template banking vn Banking/Payment ๐Ÿ‡ป๐Ÿ‡ณ Vietnam SBV Decision 2345, Circulars 45 & 77, PDPL
/template ecommerce vn E-Commerce ๐Ÿ‡ป๐Ÿ‡ณ Vietnam Law on E-Commerce 2025, PDPL, VNeID verification
/template ai vn AI/ML Product ๐Ÿ‡ป๐Ÿ‡ณ Vietnam Law on AI 2025, Qฤ 33/2026, PDPL
/template social vn Social Media ๐Ÿ‡ป๐Ÿ‡ณ Vietnam PDPL (2026), Decree 356, Law on Cybersecurity 2025
/template ai eu AI/ML ๐Ÿ‡ช๐Ÿ‡บ EU EU AI Act, GDPR Art. 22

See the full list of templates in SKILL.md.


๐Ÿ“ฆ Available Skills

# Skill Focus For Who
๐ŸŒ SafeAI-Global PRD Agent 35+ jurisdictions, cross-border transfers, AI governance All Product Managers
๐Ÿ‡ป๐Ÿ‡ณ SafeAI Vietnam Compliance Deep-dive Vietnam local compliance, SBV, Law on AI 2025 VN market PMs
๐Ÿ‡ช๐Ÿ‡บ SafeAI GDPR Expert GDPR Art-by-Art, EU AI Act risk classification, DPIA EU market PMs
๐Ÿฅ SafeAI HIPAA Expert HIPAA safeguards, FDA SaMD, PHI handling HealthTech PMs
๐Ÿ’ณ SafeAI FinTech Compliance PCI-DSS v4.0, PSD2/SCA, AML/KYC, Open Banking FinTech PMs
๐ŸŒ SafeAI ASEAN Data Protection SG, TH, MY, ID, PH country deep-dives (general overview) ASEAN startups
๐Ÿ‡บ๐Ÿ‡ธ SafeAI US State Privacy Expert CCPA, CPA, VCDPA, GPC, Opt-in consent US market PMs
๐Ÿ‘ถ SafeAI EdTech & Child Privacy Expert COPPA, FERPA, AADC, Age Gating EdTech PMs
๐Ÿค– SafeAI Ethics & Risk Expert NIST AI RMF, Bias Testing, Human-in-the-Loop AI/ML PMs
๐Ÿ›ก๏ธ SafeAI Code Scanner Code audit โ€” Vibe Coding risk, secrets detection DevSecOps / Engineers

๐Ÿ”— Modular Architecture for Global Scale

The SafeAI-Global suite uses a Hub-and-Spoke architecture. You always start with the Global Hub, and pivot to deep-dive Spoke experts only when you hit heavily regulated verticals.

               โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
               โ”‚    ๐ŸŒ SafeAI-Global PRD Agent (Hub)     โ”‚
               โ”‚   โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€       โ”‚
               โ”‚   โ€ข Covers 35+ Jurisdictions            โ”‚
               โ”‚   โ€ข Cross-border Data Transfers         โ”‚
               โ”‚   โ€ข Defines AI Governance               โ”‚
               โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                   โ”‚
              [ Step 0: Auto-Detects Region & Depth ]
                                   โ”‚
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ–ผ             โ–ผ           โ–ผ           โ–ผ           โ–ผ             โ–ผ             โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿ‡ป๐Ÿ‡ณ Vietnam โ”‚ โ”‚ ๐Ÿ‡ช๐Ÿ‡บ GDPR โ”‚ โ”‚ ๐Ÿฅ HIPAAโ”‚ โ”‚ ๐Ÿ’ณ Fin  โ”‚ โ”‚ ๐ŸŒ ASEANโ”‚ โ”‚ ๐Ÿ“ Stand. โ”‚ โ”‚ ๐Ÿค– AI/Riskโ”‚
โ”‚ Complianceโ”‚ โ”‚  Expert โ”‚ โ”‚  Expert โ”‚ โ”‚ Tech    โ”‚ โ”‚  Data   โ”‚ โ”‚    PRD    โ”‚ โ”‚   Expert  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ โ€ข SBV 2345โ”‚ โ”‚ โ€ข GDPR  โ”‚ โ”‚ โ€ข SaMD  โ”‚ โ”‚ โ€ข PCI   โ”‚ โ”‚ โ€ข SG, THโ”‚ โ”‚ โ€ข No Legalโ”‚ โ”‚ โ€ข NIST AI โ”‚
โ”‚ โ€ข AI/Cyberโ”‚ โ”‚ โ€ข AI Actโ”‚ โ”‚ โ€ข PHI   โ”‚ โ”‚ โ€ข PSD2  โ”‚ โ”‚ โ€ข ID, PHโ”‚ โ”‚ โ€ข Fast TTMโ”‚ โ”‚ โ€ข Ethics  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
*(Plus specialized nodes for US Privacy, EdTech, and Code Scanning)*

> **The Hub Workflow:** Start your chat with the **Global PRD Agent**. If it detects a highly regulated domain (like Healthcare in the US, FinTech in Europe, or deep compliance requirements in Vietnam), it will automatically recommend you switch to the specialized **Spoke** skill for a deeper audit.

๐Ÿš€ How to Use

Method 1: Install via CLI (Recommended)

npx skills add datht-work/safeai-global-agent

This will show all 9 skills โ€” select the ones you need.

Method 2: Use in Any AI Chat Tool (No Install)

This project uses a Modular Knowledge Engine architecture. To use it in a web interface, you need to provide both the Agent Instructions (SKILL.md) and the Knowledge Base (knowledge/ folder).

AI Tool Setup Instructions
Google Gemini 1. Create a new Gem
2. Paste SKILL.md into Instructions
3. Upload all files from the knowledge/ folder
Claude (Anthropic) 1. Create a new Project
2. Paste SKILL.md into Project Instructions
3. Upload the knowledge/ folder to Project Knowledge
ChatGPT (OpenAI) 1. Go to Explore GPTs โ†’ Create
2. Paste SKILL.md into Instructions
3. Upload the knowledge/ folder to Knowledge
GitHub Copilot Save SKILL.md as .github/copilot-instructions.md in your repo
Cursor Place SKILL.md in .cursor/rules/ and ensure the knowledge/ folder is in your workspace
Windsurf Place SKILL.md in .windsurfrules and ensure the knowledge/ folder is in your workspace

๐ŸŒ Supported Jurisdictions (35+)

๐ŸŒ Asia-Pacific

๐Ÿ‡ป๐Ÿ‡ณ Vietnam ยท ๐Ÿ‡จ๐Ÿ‡ณ China ยท ๐Ÿ‡ฏ๐Ÿ‡ต Japan ยท ๐Ÿ‡ฐ๐Ÿ‡ท South Korea ยท ๐Ÿ‡ฎ๐Ÿ‡ณ India ยท ๐Ÿ‡ธ๐Ÿ‡ฌ Singapore ยท ๐Ÿ‡ฆ๐Ÿ‡บ Australia ยท ๐Ÿ‡น๐Ÿ‡ญ Thailand ยท ๐Ÿ‡ฒ๐Ÿ‡พ Malaysia ยท ๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesia ยท ๐Ÿ‡ต๐Ÿ‡ญ Philippines

๐ŸŒ Europe, Middle East & Africa

๐Ÿ‡ช๐Ÿ‡บ EU ยท ๐Ÿ‡ฌ๐Ÿ‡ง UK ยท ๐Ÿ‡จ๐Ÿ‡ญ Switzerland ยท ๐Ÿ‡น๐Ÿ‡ท Turkey ยท ๐Ÿ‡ฆ๐Ÿ‡ช UAE ยท ๐Ÿ‡ธ๐Ÿ‡ฆ Saudi Arabia ยท ๐Ÿ‡ฎ๐Ÿ‡ฑ Israel ยท ๐Ÿ‡ณ๐Ÿ‡ฌ Nigeria ยท ๐Ÿ‡ฟ๐Ÿ‡ฆ South Africa ยท ๐Ÿ‡ฐ๐Ÿ‡ช Kenya ยท ๐Ÿ‡ช๐Ÿ‡ฌ Egypt

๐ŸŒŽ Americas

๐Ÿ‡บ๐Ÿ‡ธ US (Federal + CA, CO, TX, VA, NY) ยท ๐Ÿ‡จ๐Ÿ‡ฆ Canada ยท ๐Ÿ‡ง๐Ÿ‡ท Brazil (LGPD, Digital ECA) ยท ๐Ÿ‡ฒ๐Ÿ‡ฝ Mexico ยท ๐Ÿ‡ฆ๐Ÿ‡ท Argentina ยท ๐Ÿ‡จ๐Ÿ‡ด Colombia ยท ๐Ÿ‡ต๐Ÿ‡ช Peru


๐Ÿ“ International Standards & Certifications

The agent is trained to map product features to strict international frameworks (applied automatically in Smart and Full Audit modes):

Category Standard What the AI Does / Maps to in PRD
๐Ÿ”’ Security ISO/IEC 27001 Enforces Annex A controls (RBAC, cryptography, MFA, logging).
๐Ÿ›ก๏ธ Privacy ISO/IEC 27701 Adds PII controller/processor obligations and data minimization.
๐Ÿค– AI Risk ISO/IEC 42001 Defines an AI Impact Assessment, human oversight, and bias testing.
๐Ÿข Enterprise SOC 2 Type II Maps Trust Service Criteria (Security, Availability, Privacy).
โ™ฟ Access WCAG 2.2 AA Adds perceivable/operable ACs for frontend features.
๐Ÿ›๏ธ Legal EAA / ADA Checks European Accessibility Act & Americans with Disabilities Act.

๐Ÿ’ก Want to see it in action? Look at examples/sample-prd-output.md for a complete compliance PRD output.


๐Ÿ’ฌ Usage Examples

Your Prompt Mode Detected What Happens
"Write a quick PRD for login feature" ๐Ÿ“ Standard Clean PRD, no compliance scanning
"Viแบฟt PRD cho app thanh toรกn tแบกi Viแป‡t Nam" ๐Ÿ›ก๏ธ Smart Auto-detect VN โ†’ PDPD, Decree 53
"Write a PRD for user tracking in France" ๐Ÿ›ก๏ธ Smart Auto-detect EU โ†’ GDPR, ePrivacy
"Full compliance PRD for a telehealth app in California" ๐Ÿ”’ Full Audit CCPA, HIPAA, FDA SaMD, ISO, WCAG
"Build a payment gateway for Singapore โ€” full audit" ๐Ÿ”’ Full Audit PDPA, MAS TRM, PCI-DSS, ISO 27001

๐Ÿ”’ Security

  • โœ… Zero executable code โ€” Markdown-only skills
  • โœ… Zero runtime dependencies โ€” No supply-chain risk
  • โœ… No network calls โ€” No external connections
  • โœ… No data collection โ€” Stateless operations
  • โœ… CI/CD audited โ€” GitHub Actions security pipeline
  • โœ… LLM Evaluated โ€” Automated promptfoo testing with Golden Datasets

See SECURITY.md for full policy and CONTRIBUTING.md for knowledge standards.


๐Ÿ“‹ Version History

See CHANGELOG.md for detailed version history.

Version Date Highlights
v4.3.0 2026-03-26 AI Engineering Roadmap: Integrated promptfoo testing, Knowledge Schema standards, and automated quarterly law audits.
v4.2.0 2026-03-18 New Skill: SafeAI Code Scanner for Vibe Coding security auditing.
v4.1.0 2026-03-14 DevSecOps Infrastructure: Added /safeai export opa and /safeai export terraform. Fixed Snyk Runtime Fetch vulnerability.
v4.0.0 2026-03-14 Agile Engine & Multilingual: Added /safeai export jira and /safeai export confluence output formats. Full multilingual prompt detection and /safeai lang manual override.
v3.2.0 2026-03-13 Custom Policy Injection โ€” Introduced /safeai inject command and Hybrid Compliance mode
v3.1.0 2026-03-12 Scoring Ecosystem โ€” Introduced the SafeAI-Global Score (0-100) evaluating Privacy, Security, and Transparency
v3.0.0 2026-03-11 Core Modular Knowledge Engine: Extracted all static regulations into a searchable knowledge/ Document Store
v2.5.0 2026-03-10 Added Brazil Digital ECA (Age Signals API, Loot Box ban)
v2.4.0 2026-03-09 /template command, Compliance Visualizer, CLI Linter, Vietnamese README
v2.3.0 2026-03-08 Added 3 new Spoke skills: US State Privacy, EdTech/Child Privacy, and AI Ethics & Risk
v2.2.0 2026-03-06 Compliance Depth selector (Standard/Smart/Full), ISO 27001/27701/42001, SOC 2, Accessibility, Disclaimer
v2.1.0 2026-03-06 Multi-skill architecture, cross-linking, AI tool usage guides
v2.0.0 2026-03-05 35+ jurisdictions, security audit infrastructure
v1.0.0 2026-03-05 Initial release (VN, EU, US, CN)

๐Ÿค Contributing

We welcome contributions! Especially:

  • ๐ŸŒ New country regulations
  • ๐Ÿ”„ Regulation updates
  • ๐Ÿ› Citation corrections
  • ๐Ÿ“ PRD template improvements

See SECURITY.md for security-related contribution guidelines.


๐Ÿ“„ License

MIT License โ€” see LICENSE for details.


๐Ÿ”” Quarterly Legal Audit Required

The SafeAI-Global Knowledge Base heavily relies on up-to-date legal facts. Please audit the following major frameworks to ensure our knowledge/ directory is accurate:

๐ŸŒ Checkpoints (Q2-2026):

  • EU AI Act: Monitor AI Office guidelines ahead of the August 2, 2026 enforcement milestone.
  • Vietnam PDPL: Ensure all facts align with Law No. 91/2025/QH15 and Decree 356/2025/ND-CP.
  • US State Privacy: Validate enforcement for Maryland (MODPA), Indiana, Kentucky, and Rhode Island.
  • ISO Standards: Review EN ISO/IEC 42001:2026 regional adoptions and ISO 27001:2022 amendments.

Action:

  1. Validate the facts in knowledge/ against official sources (e.g., Official Journals, NIST, ISO).
  2. If changes exist, open a PR with updated Markdown tags.
  3. Run npm run eval to ensure the PRD generator still behaves correctly via promptfoo.

โš ๏ธ Disclaimer: This suite provides compliance guidance, not legal advice. Always consult qualified legal counsel for final compliance decisions.

Built with โค๏ธ by SafeAI-Global Team ยท v5.0.0 ยท March 2026


"Buy Me A Coffee"