data-clean-room
Use when the user asks about a data clean room, AWS Clean Rooms, Snowflake Data Clean Rooms, private set intersection (PSI), privacy-preserving joins…
от j4flmao★ 47 звёзд на GitHub
Установить data-clean-room в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Data Clean Room
Purpose
Enable privacy-preserving data collaboration between multiple parties using clean room architectures, private set intersection, differential privacy, and controlled query environments.
Agent Protocol
Trigger
Exact user phrases: "data clean room", "AWS Clean Rooms", "Snowflake Clean Room", "PSI", "Private Set Intersection", "privacy-preserving join", "data collaboration", "secure MPC", "multi-party computation", "differential privacy", "privacy-enhancing technologies", "PET", "clean room query", "privacy budget".
Input Context
Before activating, verify:
- Clean room platform (AWS Clean Rooms, Snowflake Clean Room, custom PSI, Google Ads Data Hub, Habu, InfoSum)
- Participating parties and data roles (contributor, querier, collaborator)
- Data types (PII, behavioral, transactional, demographic)
- Join keys (email, hashed email, device ID, customer ID)
- Query patterns (aggregation, JOIN, differential privacy)
- Compliance requirements (CCPA, GDPR, HIPAA, financial regulations)
Output Artifact
Clean room architecture with table schema, join key configuration, query constraints, privacy controls, and collaboration agreement as SQL, YAML, and JSON.
Response Format
-- Clean room table schema with privacy configuration
-- Clean room configuration
-- Query constraints and policies
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output.
Completion Criteria
- Join key strategy defined (hashed, salted, or PSI-based)
- Column-level access policies configured per party
- Query constraints with row count and aggregation limits
- Differential privacy budget (epsilon) configured
- Output validation rules documented
- Audit logging and compliance controls defined
Max Response Length
4096
Workflow
Clean Room Architecture
A clean room is a controlled environment where multiple parties contribute data for collaborative analysis without exposing raw data to each other.
Core Components
- Join Key Service — performs private set intersection to find common records without revealing non-matching records
- Query Engine — executes queries within configurable constraints (aggregation only, min row count thresholds)
- Policy Engine — enforces column-level access, output filters, and privacy budget
- Audit Logger — records all queries, results, and policy decisions
AWS Clean Rooms Example
# AWS Clean Rooms configuration
collaboration:
name: "Ad Campaign Attribution"
description: "Publisher-advertiser conversion analysis"
participants:
- account_id: "111111111111"
display_name: "Publisher"
role: contributor
tables:
- name: "impressions"
columns: ["user_id", "campaign_id", "timestamp", "publisher_id"]
- name: "clicks"
columns: ["user_id", "campaign_id", "timestamp"]
- account_id: "222222222222"
display_name: "Advertiser"
role: querier
tables:
- name: "conversions"
columns: ["user_id", "order_id", "conversion_timestamp", "revenue"]
- name: "customer_segments"
columns: ["user_id", "segment_id", "lifetime_value"]
policies:
- name: "PII Protection"
rules:
- column: user_id
access_level: join_only
transform: SHA256_HASH(email)
- column: revenue
access_level: aggregated
min_row_count: 100
- column: timestamp
access_level: binned
bin_precision: day
query_constraints:
min_aggregation_rows: 100
max_output_rows: 100000
allow_group_by: ["campaign_id", "segment_id", "date_trunc('day', timestamp)"]
banned_operations:
- "SELECT *"
- "WHERE user_id = "
- "ORDER BY revenue"
- "LIMIT 1"
-- AWS Clean Rooms: Allowed query pattern
SELECT
DATE_TRUNC('day', i.timestamp) AS day,
i.campaign_id,
c.segment_id,
COUNT(DISTINCT i.user_id) AS unique_users,
COUNT(c.order_id) AS conversions,
SUM(c.revenue) AS total_revenue
FROM publisher.impressions i
JOIN advertiser.conversions c
ON i.user_id = c.user_id
AND i.timestamp BETWEEN c.conversion_timestamp - INTERVAL '30 days'
AND c.conversion_timestamp
GROUP BY 1, 2, 3
HAVING COUNT(DISTINCT i.user_id) >= 100
-- Banned: Attempting to join on raw PII
SELECT
i.user_id,
c.user_id,
c.revenue
FROM publisher.impressions i
JOIN advertiser.conversions c ON i.user_id = c.user_id
-- This violates: user_id is join_only, revenue is aggregated only
Snowflake Clean Room Example
-- Snowflake Clean Room: Create clean room with privacy controls
CREATE CLEAN ROOM attribution_clean_room
WITH
AUTO_APPROVE_MEMBERSHIP = FALSE
COMMENT = 'Publisher-Advertiser attribution collaboration';
-- Add publisher data
ALTER CLEAN ROOM attribution_clean_room
ADD SHARE publisher_share
WITH DATA = publisher_data.impr
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/clean-room-architecture.md
- references/clean-room-data-types.md
- references/clean-room-deployment.md
- references/clean-room-ops.md
- references/clean-room-performance.md
- references/clean-room-use-cases.md
- references/privacy-compute-patterns.md
- references/privacy-compute.md
FAQ
Что делает скилл data-clean-room?
Use when the user asks about a data clean room, AWS Clean Rooms, Snowflake Data Clean Rooms, private set intersection (PSI), privacy-preserving joins, differential privacy budgets or secure multi-party computation for data collaboration. Produces a clean-room design with analysis rules, PET choice and privacy budget. Not for in-house masking (use backend-data-masking).
Как установить скилл data-clean-room?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-clean-room запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…