storage-inspector
Dump and analyze all client-side storage: localStorage, sessionStorage, cookies with full attributes, IndexedDB schemas and record counts, Cache API contents, and storage quota usage via CDP Storage and IndexedDB domains.
What this skill does
# Storage Inspector
Perform a comprehensive audit of all client-side storage mechanisms used by a
web page. Extracts localStorage, sessionStorage, cookies with full attributes,
IndexedDB database schemas with record counts and estimated sizes, Cache API
cached URLs, and overall storage quota usage.
## When to Use
- Debugging data persistence issues (missing or stale stored values).
- Auditing what data a site stores on the client for privacy review.
- Identifying storage quota pressure from large IndexedDB databases or caches.
- Detecting stale or orphaned storage entries from deprecated features.
- Understanding cookie sprawl across domains and their security attributes.
- Investigating Cache API contents for service worker debugging.
## Prerequisites
- **Playwright MCP server** connected and responding.
- **Chromium-based browser** for CDP DOMStorage, IndexedDB, Storage, and Network domains.
- Target page must be navigated to before inspection (storage is origin-scoped).
## Workflow
### Phase 1: Navigate to Target
Storage inspection is origin-scoped, so we must navigate first.
```
browser_navigate({ url: "<target_url>" })
```
```
browser_wait_for({ time: 3 })
```
### Phase 2: Enable CDP Domains and Get Storage Origin
```javascript
browser_run_code({
code: `async (page) => {
const client = await page.context().newCDPSession(page);
await client.send('DOMStorage.enable');
await client.send('IndexedDB.enable');
const origin = await page.evaluate(() => window.location.origin);
globalThis.__storageInspector = { client, origin };
return 'Storage inspector ready for origin: ' + origin;
}`
})
```
### Phase 3: Inspect localStorage and sessionStorage
```javascript
browser_run_code({
code: `async (page) => {
const { client, origin } = globalThis.__storageInspector;
// localStorage
const localStorageId = { securityOrigin: origin, isLocalStorage: true };
const localItems = await client.send('DOMStorage.getDOMStorageItems', { storageId: localStorageId });
// sessionStorage
const sessionStorageId = { securityOrigin: origin, isLocalStorage: false };
const sessionItems = await client.send('DOMStorage.getDOMStorageItems', { storageId: sessionStorageId });
const analyzeItems = (items) => {
return items.map(([key, value]) => {
let parsedType = 'string';
let size = key.length + value.length;
try {
const parsed = JSON.parse(value);
parsedType = Array.isArray(parsed) ? 'array' : typeof parsed;
} catch { /* not JSON */ }
return {
key,
value: value.substring(0, 200) + (value.length > 200 ? '...' : ''),
fullLength: value.length,
sizeBytes: size * 2, // UTF-16
type: parsedType
};
});
};
return {
localStorage: {
count: localItems.entries.length,
totalSizeBytes: localItems.entries.reduce((s, [k, v]) => s + (k.length + v.length) * 2, 0),
items: analyzeItems(localItems.entries)
},
sessionStorage: {
count: sessionItems.entries.length,
totalSizeBytes: sessionItems.entries.reduce((s, [k, v]) => s + (k.length + v.length) * 2, 0),
items: analyzeItems(sessionItems.entries)
}
};
}`
})
```
### Phase 4: Inspect Cookies
```javascript
browser_run_code({
code: `async (page) => {
const { client, origin } = globalThis.__storageInspector;
const { cookies } = await client.send('Network.getAllCookies');
// Filter to relevant domain
const hostname = new URL(origin).hostname;
const relevantCookies = cookies.filter(c =>
hostname.endsWith(c.domain.replace(/^\\./, '')) || c.domain === hostname
);
const analyzed = relevantCookies.map(c => ({
name: c.name,
value: (c.value || '').substring(0, 100) + (c.value && c.value.length > 100 ? '...' : ''),
domain: c.domain,
path: c.path,
secure: c.secure,
httpOnly: c.httpOnly,
sameSite: c.sameSite || 'None',
expires: c.expires === -1 ? 'Session' : new Date(c.expires * 1000).toISOString(),
size: c.size,
priority: c.priority,
sameParty: c.sameParty || false
}));
const totalSize = analyzed.reduce((s, c) => s + c.size, 0);
return {
total: analyzed.length,
totalSizeBytes: totalSize,
sessionCookies: analyzed.filter(c => c.expires === 'Session').length,
persistentCookies: analyzed.filter(c => c.expires !== 'Session').length,
cookies: analyzed
};
}`
})
```
### Phase 5: Inspect IndexedDB
Enumerate all databases, their object stores, indexes, and record counts.
```javascript
browser_run_code({
code: `async (page) => {
const { client, origin } = globalThis.__storageInspector;
// Request database names for this origin
const { databaseNames } = await client.send('IndexedDB.requestDatabaseNames', {
securityOrigin: origin
});
const databases = [];
for (const dbName of databaseNames) {
try {
const { databaseWithObjectStores } = await client.send('IndexedDB.requestDatabase', {
securityOrigin: origin,
databaseName: dbName
});
const db = {
name: databaseWithObjectStores.name,
version: databaseWithObjectStores.version,
objectStores: []
};
for (const os of databaseWithObjectStores.objectStores) {
// Get record count by requesting data with limit 0
let recordCount = 0;
try {
const data = await client.send('IndexedDB.requestData', {
securityOrigin: origin,
databaseName: dbName,
objectStoreName: os.name,
indexName: '',
skipCount: 0,
pageSize: 1
});
recordCount = data.totalCount || 0;
} catch {}
db.objectStores.push({
name: os.name,
keyPath: os.keyPath ? os.keyPath.string || JSON.stringify(os.keyPath.array) : '(auto)',
autoIncrement: os.autoIncrement,
indexes: os.indexes.map(idx => ({
name: idx.name,
keyPath: idx.keyPath ? idx.keyPath.string || JSON.stringify(idx.keyPath.array) : '',
unique: idx.unique,
multiEntry: idx.multiEntry
})),
recordCount
});
}
databases.push(db);
} catch (err) {
databases.push({ name: dbName, error: err.message });
}
}
return {
databaseCount: databases.length,
databases
};
}`
})
```
### Phase 6: Inspect Cache API
```javascript
browser_evaluate({
function: `async () => {
if (!('caches' in self)) return { supported: false };
const cacheNames = await caches.keys();
const cacheDetails = [];
for (const name of cacheNames) {
const cache = await caches.open(name);
const requests = await cache.keys();
const entries = [];
for (const req of requests.slice(0, 50)) {
const response = await cache.match(req);
let size = 0;
try {
const blob = await response.clone().blob();
size = blob.size;
} catch {}
entries.push({
url: req.url.substring(0, 200),
method: req.method,
contentType: response.headers.get('content-type') || 'unknown',
status: response.status,
sizeBytes: size
});
}
cacheDetails.push({
name,
entryCount: requests.length,
sampledEntries: entries,
totalSizeBytes: entries.reduce((s, e) => s + e.sizeBytes, 0),
truncated: requests.length > 50
});
}
return {
supported: true,
cacheCount: cacheDetails.length,
caches: cacheDetails
};
}`
})
```
### Phase 7: Storage Quota Usage
```javascript
browser_evaluate({
function: `async () => {
const result = {};
// Storage eRelated 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.