miro-data-handling
Implement Miro REST API v2 data handling with PII detection in board content, data export via API, retention policies, and GDPR/CCPA compliance patterns. Trigger with phrases like "miro data", "miro PII", "miro GDPR", "miro data export", "miro privacy", "miro compliance".
What this skill does
# Miro Data Handling
## Overview
Handle sensitive data correctly when integrating with Miro REST API v2. Miro boards can contain PII in sticky notes, cards, and text items. This skill covers detecting PII in board content, exporting board data for DSAR requests, implementing retention policies, and ensuring GDPR/CCPA compliance.
## Data Classification for Miro Content
| Category | Examples in Miro | Handling |
|----------|-----------------|----------|
| PII | Emails/names in sticky notes, assignee info in cards | Detect, redact in logs, export on DSAR request |
| Sensitive | OAuth tokens, API keys in text items | Never cache, alert on detection |
| Business | Board names, project plans, diagrams | Standard handling, respect board sharing policy |
| Public | Template content, product names | No special handling needed |
## PII Detection in Board Items
Scan board content for personally identifiable information:
```typescript
const PII_PATTERNS = [
{ type: 'email', regex: /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g },
{ type: 'phone', regex: /\b\d{3}[-.]?\d{3}[-.]?\d{4}\b/g },
{ type: 'ssn', regex: /\b\d{3}-\d{2}-\d{4}\b/g },
{ type: 'credit_card', regex: /\b\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}\b/g },
{ type: 'ip_address', regex: /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/g },
];
interface PiiFindings {
boardId: string;
itemId: string;
itemType: string;
findings: Array<{ type: string; field: string; count: number }>;
}
async function scanBoardForPii(boardId: string): Promise<PiiFindings[]> {
const results: PiiFindings[] = [];
// Fetch all text-containing items
const itemTypes = ['sticky_note', 'card', 'text', 'shape'];
for (const type of itemTypes) {
const items = await fetchAllItems(boardId, type);
for (const item of items) {
const contentFields = extractTextContent(item);
const findings: PiiFindings['findings'] = [];
for (const [field, text] of Object.entries(contentFields)) {
if (!text) continue;
for (const pattern of PII_PATTERNS) {
const matches = text.match(pattern.regex);
if (matches) {
findings.push({ type: pattern.type, field, count: matches.length });
}
}
}
if (findings.length > 0) {
results.push({ boardId, itemId: item.id, itemType: item.type, findings });
}
}
}
return results;
}
function extractTextContent(item: any): Record<string, string> {
switch (item.type) {
case 'sticky_note': return { content: item.data?.content };
case 'card': return { title: item.data?.title, description: item.data?.description };
case 'text': return { content: item.data?.content };
case 'shape': return { content: item.data?.content };
default: return {};
}
}
```
## Board Data Export (for DSAR Requests)
When a user requests their data under GDPR Article 15 / CCPA:
```typescript
interface BoardDataExport {
exportedAt: string;
requestedBy: string;
boards: Array<{
boardId: string;
boardName: string;
role: string;
items: Array<{
id: string;
type: string;
content: string | null;
createdAt: string;
createdBy: string;
}>;
}>;
}
async function exportUserBoardData(userId: string): Promise<BoardDataExport> {
// Step 1: List all boards the user has access to
const boards = await fetchAllBoards();
const exportData: BoardDataExport = {
exportedAt: new Date().toISOString(),
requestedBy: userId,
boards: [],
};
for (const board of boards) {
// Step 2: Get board members to check user's role
const members = await miroFetch(`/v2/boards/${board.id}/members?limit=50`);
const userMember = members.data.find((m: any) => m.id === userId);
if (!userMember) continue;
// Step 3: Get all items created by this user
const allItems = await fetchAllItems(board.id);
const userItems = allItems.filter((item: any) => item.createdBy?.id === userId);
exportData.boards.push({
boardId: board.id,
boardName: board.name,
role: userMember.role,
items: userItems.map((item: any) => ({
id: item.id,
type: item.type,
content: item.data?.content ?? item.data?.title ?? null,
createdAt: item.createdAt,
createdBy: item.createdBy?.id,
})),
});
}
return exportData;
}
```
## Data Redaction in Logs
Never log board content that might contain PII:
```typescript
function redactMiroData(data: Record<string, any>): Record<string, any> {
const sensitiveFields = [
'content', 'title', 'description', 'assigneeId',
'access_token', 'refresh_token', 'client_secret',
];
const redacted = JSON.parse(JSON.stringify(data));
function redactDeep(obj: any): void {
for (const key of Object.keys(obj)) {
if (sensitiveFields.includes(key) && typeof obj[key] === 'string') {
obj[key] = `[REDACTED:${obj[key].length} chars]`;
} else if (typeof obj[key] === 'object' && obj[key] !== null) {
redactDeep(obj[key]);
}
}
}
redactDeep(redacted);
return redacted;
}
// Use in logging middleware
function logMiroResponse(path: string, status: number, body: any): void {
console.log('[MIRO]', {
path,
status,
body: redactMiroData(body), // Content never appears in logs
});
}
```
## Data Retention for Cached Miro Data
If you cache or sync Miro board data locally:
```typescript
interface RetentionPolicy {
dataType: string;
retentionDays: number;
reason: string;
}
const RETENTION_POLICIES: RetentionPolicy[] = [
{ dataType: 'board_cache', retentionDays: 1, reason: 'Performance cache only' },
{ dataType: 'webhook_events', retentionDays: 30, reason: 'Debugging' },
{ dataType: 'api_audit_logs', retentionDays: 365, reason: 'Compliance' },
{ dataType: 'user_tokens', retentionDays: 0, reason: 'Delete on user disconnect' },
];
async function enforceRetention(db: Database): Promise<RetentionReport> {
const report: RetentionReport = { deletedCounts: {} };
for (const policy of RETENTION_POLICIES) {
const cutoff = new Date();
cutoff.setDate(cutoff.getDate() - policy.retentionDays);
const deleted = await db.deleteWhere(policy.dataType, {
createdAt: { $lt: cutoff },
});
report.deletedCounts[policy.dataType] = deleted;
}
return report;
}
// Schedule daily
// cron: 0 3 * * * node -e "enforceRetention(db)"
```
## Right to Deletion (GDPR Article 17)
```typescript
async function deleteUserMiroData(userId: string): Promise<DeletionResult> {
const steps: string[] = [];
// 1. Delete cached board data for this user
await db.boardCache.deleteMany({ userId });
steps.push('Deleted cached board data');
// 2. Delete webhook event logs mentioning this user
await db.webhookEvents.deleteMany({ 'event.createdBy.id': userId });
steps.push('Deleted webhook event logs');
// 3. Delete stored OAuth tokens
await tokenStorage.delete(userId);
steps.push('Deleted OAuth tokens');
// 4. Audit log the deletion (required to keep for compliance)
await db.auditLogs.insert({
action: 'GDPR_DELETION',
userId,
service: 'miro',
deletedAt: new Date().toISOString(),
steps,
});
// NOTE: You cannot delete data from Miro boards via API on behalf of a user.
// The user must delete their own board content in Miro directly,
// or a board admin can remove the user's items.
return { success: true, steps };
}
```
## Board Content Security Scanning
```typescript
// Detect secrets accidentally pasted into board items
const SECRET_PATTERNS = [
{ type: 'aws_key', regex: /AKIA[0-9A-Z]{16}/g },
{ type: 'github_token', regex: /ghp_[A-Za-z0-9_]{36}/g },
{ type: 'miro_token', regex: /eyJ[A-Za-z0-9_-]{20,}/g },
{ type: 'private_key', regex: /-----BEGIN (RSA |EC )?PRIVATE KEY-----/g },
];
async function scanBoardForSecrets(boardId: string): Promise<SecurityAlert[]> {
const alerts: SecurityAlert[] = [];
const items = await fetchAllItemsRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.