gcp
Google Cloud Platform SDK integration. Cloud Functions, Firestore, Cloud Storage, Pub/Sub, BigQuery, and Cloud Run. Node.js and Python client libraries. USE WHEN: user mentions "GCP", "Google Cloud", "Cloud Functions", "Firestore", "Cloud Storage", "Pub/Sub", "BigQuery", "Cloud Run", "Firebase" DO NOT USE FOR: AWS services - use `aws`; Azure services - use `azure`; Firebase Auth - use auth skills
What this skill does
# Google Cloud Platform
## Cloud Functions
```typescript
import { HttpFunction, CloudEvent } from '@google-cloud/functions-framework';
// HTTP trigger
export const getProduct: HttpFunction = async (req, res) => {
const product = await getProductById(req.query.id as string);
res.json(product);
};
// Pub/Sub trigger
export const processOrder = async (cloudEvent: CloudEvent<{ message: { data: string } }>) => {
const data = JSON.parse(Buffer.from(cloudEvent.data!.message.data, 'base64').toString());
await handleOrder(data);
};
// Cloud Storage trigger
export const onFileUpload = async (cloudEvent: CloudEvent<{ bucket: string; name: string }>) => {
const { bucket, name } = cloudEvent.data!;
await processUploadedFile(bucket, name);
};
```
## Firestore
```typescript
import { Firestore, FieldValue } from '@google-cloud/firestore';
const db = new Firestore();
// Create/Update
await db.collection('users').doc(userId).set({
name, email, createdAt: FieldValue.serverTimestamp(),
});
// Read
const doc = await db.collection('users').doc(userId).get();
const user = doc.data();
// Query
const snapshot = await db.collection('orders')
.where('userId', '==', userId)
.where('status', '==', 'active')
.orderBy('createdAt', 'desc')
.limit(10)
.get();
const orders = snapshot.docs.map((d) => ({ id: d.id, ...d.data() }));
// Real-time listener
db.collection('messages')
.where('roomId', '==', roomId)
.onSnapshot((snapshot) => {
snapshot.docChanges().forEach((change) => {
if (change.type === 'added') handleNewMessage(change.doc.data());
});
});
```
## Cloud Storage
```typescript
import { Storage } from '@google-cloud/storage';
const storage = new Storage();
const bucket = storage.bucket(process.env.GCS_BUCKET!);
// Upload
await bucket.file(`uploads/${filename}`).save(buffer, {
metadata: { contentType },
});
// Download
const [content] = await bucket.file(path).download();
// Signed URL
const [url] = await bucket.file(path).getSignedUrl({
version: 'v4',
action: 'read',
expires: Date.now() + 3600 * 1000,
});
```
## Pub/Sub
```typescript
import { PubSub } from '@google-cloud/pubsub';
const pubsub = new PubSub();
// Publish
const topic = pubsub.topic('order-events');
await topic.publishMessage({
json: { orderId: '123', status: 'completed' },
attributes: { eventType: 'ORDER_COMPLETED' },
});
// Subscribe
const subscription = pubsub.subscription('order-processor');
subscription.on('message', async (message) => {
const data = JSON.parse(message.data.toString());
await processOrder(data);
message.ack();
});
```
## BigQuery
```typescript
import { BigQuery } from '@google-cloud/bigquery';
const bq = new BigQuery();
const [rows] = await bq.query({
query: `SELECT product_id, SUM(quantity) as total
FROM \`project.dataset.orders\`
WHERE DATE(created_at) = @date
GROUP BY product_id
ORDER BY total DESC
LIMIT 10`,
params: { date: '2026-03-05' },
});
```
## Authentication
```typescript
// Application Default Credentials (works everywhere)
// Local: gcloud auth application-default login
// GCE/Cloud Run/GKE: automatic via metadata server
// CI/CD: GOOGLE_APPLICATION_CREDENTIALS env var
import { GoogleAuth } from 'google-auth-library';
const auth = new GoogleAuth({ scopes: ['https://www.googleapis.com/auth/cloud-platform'] });
```
## Anti-Patterns
| Anti-Pattern | Fix |
|--------------|-----|
| Service account key files in repo | Use Application Default Credentials |
| Not using composite indexes (Firestore) | Define indexes for multi-field queries |
| Synchronous Pub/Sub publish | Batch messages, use `topic.publishMessage` |
| Full table scans in BigQuery | Use partitioned/clustered tables |
| No IAM least privilege | Grant minimum required roles per service |
## Production Checklist
- [ ] Application Default Credentials (no key files)
- [ ] IAM roles with least privilege
- [ ] VPC Service Controls for sensitive data
- [ ] Cloud Monitoring and alerting configured
- [ ] Resource labels for cost tracking
- [ ] Firestore composite indexes deployed
Related 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.