# Cleanrooms Diagnostics

> >

- **Type:** Skill
- **Install:** `agentstack add skill-aws-samples-sample-ai-agent-skills-cleanrooms-troubleshooting`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [aws-samples](https://agentstack.voostack.com/s/aws-samples)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT-0
- **Upstream author:** [aws-samples](https://github.com/aws-samples)
- **Source:** https://github.com/aws-samples/sample-ai-agent-skills/tree/main/cleanrooms-troubleshooting

## Install

```sh
agentstack add skill-aws-samples-sample-ai-agent-skills-cleanrooms-troubleshooting
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Clean Rooms Diagnostics

## When to use

Any Clean Rooms investigation where the console alone is insufficient — collaboration setup, table configuration, analysis rules, query execution, privacy controls, ML features, or access control issues.

## Investigation workflow

### Step 1 — Collect and triage

```
aws cleanrooms list-collaborations
aws cleanrooms list-memberships
aws cleanrooms get-collaboration --collaboration-identifier 
aws cleanrooms get-membership --membership-identifier 
aws cleanrooms list-configured-tables
```

### Step 2 — Deep dive

```
aws cleanrooms get-configured-table --configured-table-identifier 
aws cleanrooms get-configured-table-analysis-rule --configured-table-identifier  --analysis-rule-type 
aws cleanrooms list-configured-table-associations --membership-identifier 
aws cleanrooms list-protected-queries --membership-identifier 
aws cleanrooms get-protected-query --membership-identifier  --protected-query-identifier 
aws cleanrooms get-collaboration-privacy-budget-template --collaboration-identifier  --privacy-budget-template-identifier 
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=cleanrooms.amazonaws.com --max-results 20
```

Read `references/guardrails.md` before concluding on any Clean Rooms issue.

## Tool quick reference

| Tool / API | When to use |
|------------|-------------|
| `cleanrooms list-collaborations` | List all collaborations |
| `cleanrooms get-collaboration` | Collaboration details and status |
| `cleanrooms list-memberships` | List memberships |
| `cleanrooms get-membership` | Membership details and abilities |
| `cleanrooms list-configured-tables` | List configured tables |
| `cleanrooms get-configured-table` | Table configuration details |
| `cleanrooms get-configured-table-analysis-rule` | Analysis rule details |
| `cleanrooms list-protected-queries` | List queries in a membership |
| `cleanrooms get-protected-query` | Query details and results |
| `cleanrooms list-schemas` | List schemas in a collaboration |
| `cleanrooms get-schema` | Schema details |
| `cleanrooms-ml list-training-datasets` | List ML training datasets |

## Gotchas: Clean Rooms

- Collaborations require at least two members: A collaboration must have at least two member accounts. A single account cannot create a collaboration with itself for testing — use two separate AWS accounts.
- Analysis rules restrict query capabilities: Each configured table must have an analysis rule (AGGREGATION, LIST, or CUSTOM) that defines what queries are allowed. Without an analysis rule, the table cannot be queried.
- Configured tables reference Glue Data Catalog: Tables must be registered in the Glue Data Catalog before they can be configured in Clean Rooms. Missing Glue tables cause configuration failures.
- Query results go to the member who can receive results: Only members with the CAN_RECEIVE_RESULTS ability can receive query output. The output S3 bucket must be in the same account as the receiving member.
- Differential privacy has a budget: Differential privacy uses a privacy budget that depletes with each query. Once exhausted, no more queries can run until the budget is refreshed. Monitor budget consumption.
- Cryptographic computing requires specific setup: Clean Rooms cryptographic computing requires client-side encryption of data before upload. It uses specific encryption schemas and cannot be enabled retroactively on existing tables.
- ML features are separate from core Clean Rooms: Clean Rooms ML (lookalike modeling, etc.) uses a separate API (`cleanrooms-ml`) and has its own permissions and configuration requirements.
- Cross-account data never leaves the owner's account: Clean Rooms processes queries without moving raw data between accounts. Only aggregated or filtered results are shared. This is a fundamental design principle.

## Anti-hallucination rules

1. Always cite specific collaboration IDs, membership IDs, or API responses as evidence.
2. Collaborations need at least two members — never suggest single-account collaborations.
3. Analysis rules are required — never claim tables can be queried without them.
4. Raw data never leaves the owner's account — never suggest data is copied between accounts.
5. Differential privacy budget depletes — never claim unlimited queries with differential privacy.
6. Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.

## 18 runbooks

| Category | IDs | Covers |
|----------|-----|--------|
| A — Collaboration | A1-A2 | Creation, membership |
| B — Tables | B1-B2 | Configured tables, analysis rules |
| C — Queries | C1-C2 | Query failures, output configuration |
| D — Privacy | D1-D2 | Differential privacy, cryptographic computing |
| E — ML | E1-E2 | ML modeling, lookalike segments |
| F — Security | F1-F2 | IAM permissions, data access |
| Z — Catch-All | Z1 | General Clean Rooms troubleshooting |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [aws-samples](https://github.com/aws-samples)
- **Source:** [aws-samples/sample-ai-agent-skills](https://github.com/aws-samples/sample-ai-agent-skills)
- **License:** MIT-0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-aws-samples-sample-ai-agent-skills-cleanrooms-troubleshooting
- Seller: https://agentstack.voostack.com/s/aws-samples
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
