MCP HubMCP Hub
スキル一覧に戻る

cloudflare-kv

dave1010
更新日 Today
39 閲覧
0
GitHubで表示
その他data

について

このスキルは、開発者が共有の`TOOLS_KV`ネームスペースを使用して、Cloudflare KVにツールデータを永続化できるようにします。`<ツール名>:<キー>`構造のキー命名規則を提供し、小さなJSONブロブや文字列の保存を推奨します。get/put/deleteのようなアトミック操作を実装する必要がある場合、nullケースを処理しつつツール間のデータ分離を維持するために、このスキルを使用してください。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/dave1010/tools
Git クローン代替
git clone https://github.com/dave1010/tools.git ~/.claude/skills/cloudflare-kv

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Cloudflare KV basics

  • Cloudflare deploys a shared KV namespace bound as TOOLS_KV for all tools. Use the binding directly; do not create new namespaces per tool.
  • Structure keys as <tool-name>:<key> so data stays isolated between tools.
  • Store small JSON blobs or strings. For structured data, serialize to JSON and document the schema in the tool README.

Access patterns

  • Prefer atomic operations like TOOLS_KV.get, put, and delete. For counters, use TOOLS_KV.get + put with retries or Workers KV atomic counters when available.
  • Always handle the null case on get to avoid undefined data paths for first-time users.
  • Cache reads in memory during a single request when multiple lookups are required.

Cloudflare Functions

  • Name or prefix Functions after the tool, e.g. counter_increment or counter/functions/increment so routes stay organized.
  • In Functions, read and write KV via the env.TOOLS_KV binding provided in the handler signature.
  • Return descriptive error messages and HTTP status codes for KV failures to simplify debugging.

Example

The counter tool stores its count in TOOLS_KV under the key counter:value. Reuse that pattern whenever you need shared state across sessions.

GitHub リポジトリ

dave1010/tools
パス: .skills/cloudflare-kv

関連スキル

content-collections

メタ

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

スキルを見る

polymarket

メタ

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

スキルを見る

hybrid-cloud-networking

メタ

This skill configures secure hybrid cloud networking between on-premises infrastructure and cloud platforms like AWS, Azure, and GCP. Use it when connecting data centers to the cloud, building hybrid architectures, or implementing secure cross-premises connectivity. It supports key capabilities such as VPNs and dedicated connections like AWS Direct Connect for high-performance, reliable setups.

スキルを見る

llamaindex

メタ

LlamaIndex is a data framework for building RAG-powered LLM applications, specializing in document ingestion, indexing, and querying. It provides key features like vector indices, query engines, and agents, and supports over 300 data connectors. Use it for document Q&A, chatbots, and knowledge retrieval when building data-centric applications.

スキルを見る