一键导入
firestore
Query and manage Google Firestore databases. Use TypeScript scripts for typed access or REST API via curl. Ideal for Firebase/GCP projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Query and manage Google Firestore databases. Use TypeScript scripts for typed access or REST API via curl. Ideal for Firebase/GCP projects.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Eliminate AI-sounding patterns from any written output. Applies editorial rules synthesized from the best open-source anti-slop tools: banned phrases, structural pattern detection, false agency checks, and a scoring rubric. Use as a quality gate for ANY content — blog posts, social media, emails, documentation, marketing copy. Triggers on: "make it sound human", "less AI", "remove slop", "humanize this", "doesn't sound natural", "too AI", "rewrite naturally", or when reviewing any AI-generated text before publishing.
AWS Bedrock AgentCore comprehensive expert for deploying and managing all AgentCore services. Use when working with Gateway, Runtime, Memory, Identity, or any AgentCore component. Covers MCP target deployment, credential management, schema optimization, runtime configuration, memory management, and identity services.
AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python. Use when creating CDK stacks, defining CDK constructs, implementing infrastructure as code, or when the user mentions CDK, CloudFormation, IaC, cdk synth, cdk deploy, or wants to define AWS infrastructure programmatically. Covers CDK app structure, construct patterns, stack composition, and deployment workflows.
This skill provides AWS cost optimization, monitoring, and operational best practices with integrated MCP servers for billing analysis, cost estimation, observability, and security assessment.
AWS serverless and event-driven architecture expert based on Well-Architected Framework. Use when building serverless APIs, Lambda functions, REST APIs, microservices, or async workflows. Covers Lambda with TypeScript/Python, API Gateway (REST/HTTP), DynamoDB, Step Functions, EventBridge, SQS, SNS, and serverless patterns. Essential when user mentions serverless, Lambda, API Gateway, event-driven, async processing, queues, pub/sub, or wants to build scalable serverless applications with AWS best practices.
A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems. Use when building, optimizing, or debugging agent systems that require effective context management.
基于 SOC 职业分类
| name | firestore |
| description | Query and manage Google Firestore databases. Use TypeScript scripts for typed access or REST API via curl. Ideal for Firebase/GCP projects. |
| version | 1.0.0 |
| allowed-tools | Bash, Read |
| metadata | {"credentials":["GOOGLE_APPLICATION_CREDENTIALS_JSON","FIREBASE_PROJECT_ID"]} |
Query and manage Google Firestore databases using TypeScript scripts or the REST API.
# Using the included scripts (recommended)
cd .claude/skills/firestore/scripts && bun install && cd -
# List collections
bun run .claude/skills/firestore/scripts/fs-list.ts
# Get a document
bun run .claude/skills/firestore/scripts/fs-get.ts users/user123
# Query a collection
bun run .claude/skills/firestore/scripts/fs-query.ts users status active
| Variable | Description | Example |
|---|---|---|
GOOGLE_APPLICATION_CREDENTIALS_JSON | Service account key JSON (stringified) | {"type":"service_account",...} |
FIREBASE_PROJECT_ID | Firebase/GCP project ID | my-project-123 |
cd .claude/skills/firestore/scripts && bun install && cd -
bun run .claude/skills/firestore/scripts/fs-list.ts
bun run .claude/skills/firestore/scripts/fs-list.ts
# Get document by path
bun run .claude/skills/firestore/scripts/fs-get.ts users/user123
# Nested document
bun run .claude/skills/firestore/scripts/fs-get.ts users/user123/orders/order456
# Query with single filter: collection field operator value
bun run .claude/skills/firestore/scripts/fs-query.ts users status == active
# Default operator is ==
bun run .claude/skills/firestore/scripts/fs-query.ts users role admin
# Numeric comparison
bun run .claude/skills/firestore/scripts/fs-query.ts orders amount '>' 100
# Limit results
bun run .claude/skills/firestore/scripts/fs-query.ts users status active --limit 10
# Set document (creates or overwrites)
bun run .claude/skills/firestore/scripts/fs-set.ts users/user123 '{"name":"John","email":"john@example.com","status":"active"}'
# Merge (partial update — only updates specified fields)
bun run .claude/skills/firestore/scripts/fs-set.ts users/user123 '{"status":"inactive"}' --merge
For environments without bun/npm, use the Firestore REST API directly.
# Requires an OAuth2 access token (see Firebase Admin SDK docs)
curl -s "https://firestore.googleapis.com/v1/projects/$FIREBASE_PROJECT_ID/databases/(default)/documents/users/user123" \
-H "Authorization: Bearer $ACCESS_TOKEN" | jq .
curl -s "https://firestore.googleapis.com/v1/projects/$FIREBASE_PROJECT_ID/databases/(default)/documents/users?pageSize=10" \
-H "Authorization: Bearer $ACCESS_TOKEN" | jq '.documents[]'
| Error | Cause | Solution |
|---|---|---|
PERMISSION_DENIED | Service account lacks access | Check Firestore IAM permissions |
NOT_FOUND | Document/collection doesn't exist | Verify path |
UNAUTHENTICATED | Invalid credentials | Check GOOGLE_APPLICATION_CREDENTIALS_JSON |
Cannot find module | Dependencies not installed | Run cd .claude/skills/firestore/scripts && bun install |
INVALID_ARGUMENT | Query syntax error | Check field name and value types |
GOOGLE_APPLICATION_CREDENTIALS_JSONFIREBASE_PROJECT_ID to your project IDcat service-account.json | jq -c .
fs-list.ts to discover available collectionsfs-get.ts to inspect individual documents--merge for partial updates to avoid overwriting entire documentsundefined — use null or omit the fieldcollection/document/subcollection/document