hcindus/aos-brain/cmp

Claude Code and agent skill by hcindus/aos-brain

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install hcindus/aos-brain/cmp

SKILL.md

The same SKILL.md was published earlier as hcindus/aos-brain/cmp.

AGI CMP - Consent Management Platform

Version: 1.0.0 Location: /root/.openclaw/workspace/AGI_COMPANY/products/cmp/ Type: Product/Tool


Overview

A custom-built Consent Management Platform (CMP) for GDPR, CCPA, and privacy law compliance. Similar features to Cookiebot and Usercentrics, but fully owned and customizable.


Features

Frontend
  • ✅ 5 Consent Categories: Essential, Functional, Analytics, Marketing, Social
  • ✅ Script Blocking: Prevents execution of tracking scripts until consent
  • ✅ Google Consent Mode v2: Native integration with GTM
  • ✅ IAB TCF 2.2 Inspired: Structure aligned with industry standards
  • ✅ Responsive UI: Works on mobile and desktop
  • ✅ Granular Controls: Accept All, Reject All, or customize preferences
Backend
  • ✅ Consent Recording: Stores consent decisions with audit trail
  • ✅ GDPR Rights: Withdraw consent, data export, data portability
  • ✅ Hashed IPs: Privacy-preserving IP storage for audit
  • ✅ Statistics: Aggregate consent metrics
  • ✅ FastAPI: Modern Python backend

Quick Start

1. Add to Your Website
html
<!-- Load CMP FIRST, before any tracking scripts -->
<script src="/path/to/agi-cmp.js"></script>
<!-- Blocked script example -->
<script type="text/plain" data-agi-category="analytics">
// Google Analytics won't execute until consent given
gtag('config', 'GA_MEASUREMENT_ID');
</script>
2. Configure Google Tag Manager
javascript
// Default deny until user choice
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'consent': {
'ad_storage': 'denied',
'analytics_storage': 'denied',
'functionality_storage': 'denied',
'personalization_storage': 'denied',
'security_storage': 'granted',
'ad_user_data': 'denied',
'ad_personalization': 'denied'
}
});
3. Run Backend
bash
cd /root/.openclaw/workspace/AGI_COMPANY/products/cmp/api
pip install fastapi uvicorn
uvicorn consent_api:app --host 0.0.0.0 --port 8083

API Endpoints

EndpointMethodDescription
/api/consentPOSTRecord new consent
/api/consent/{id}GETRetrieve consent record
/api/consent/{id}/withdrawPOSTWithdraw consent
/api/consent/stats/summaryGETAggregate statistics
/api/consent/export/{id}GETGDPR data export
/healthGETHealth check

JavaScript API

javascript
// Check if user has consented to analytics
if (window.__agi_cmp.hasConsent('analytics')) {
// Load analytics
}
// Get all consents
const consent = window.__agi_cmp.getConsent();
// Listen for consent changes
window.__agi_cmp.on('consent', (consent) => {
console.log('User updated consent:', consent);
});
// Reset consent (for testing)
window.__agi_cmp.reset();
// Open settings modal
window.__agi_cmp.openSettings();

Script Categories

CategoryRequiredCommon CookiesVendors
Essential✅ Yessession, csrf, authInternal
Functional❌ Nopreferences, language-
Analytics❌ No_ga, _gidGoogle Analytics, Plausible
Marketing❌ No_fbp, _gcl_auFacebook Pixel, Google Ads
Social❌ Nofb_cookieFacebook SDK, Twitter

Files

  • agi-cmp.js - Frontend consent manager
  • api/consent_api.py - Backend FastAPI server
  • integration.html - Example integration page

Compliance Features

GDPR
  • ✅ Lawful basis tracking
  • ✅ Right to withdraw
  • ✅ Data portability export
  • ✅ Audit trail
  • ✅ Consent timestamp/version
CCPA
  • ✅ Opt-out tracking
  • ✅ Do Not Sell flag support
  • ✅ Disclosure records

Comparison with Commercial CMPs

FeatureAGI CMPCookiebotUsercentrics
CostFree€39-79/mo€30-100/mo
Customizable✅ FullLimitedLimited
Data Ownership✅ YouThird-partyThird-party
Google Consent Mode✅ v2✅ v2✅ v2
IAB TCFInspired✅ Full✅ Full
Script Blocking✅ Yes✅ Yes✅ Yes

Next Steps

  • [ ] Add IAB TCF 2.2 full compliance (vendor list API)
  • [ ] Implement CCPA "Do Not Sell My Info" link
  • [ ] Add geo-detection for jurisdiction-specific banners
  • [ ] Create WordPress/Drupal plugins
  • [ ] Add more analytics integrations
  • [ ] Implement automated cookie scanner

Created: 2026-07-04

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hcindus/aos-brain/cmp/badge)](https://verified-skill.com/skills/hcindus/aos-brain/cmp)

Something wrong with this skill or its page? Tell us.