add Cursor plugin manifest and rules

This commit is contained in:
Matt Silverlock
2026-01-31 11:11:38 -05:00
parent 75a603ba75
commit 05f1367d65
6 changed files with 108 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
{
"name": "cloudflare",
"version": "1.0.0",
"description": "Skills for the Cloudflare developer platform: Workers, Durable Objects, Agents SDK, MCP servers, Wrangler CLI, and web performance",
"author": {
"name": "Cloudflare",
"email": "support@cloudflare.com",
"url": "https://workers.cloudflare.com"
},
"keywords": ["cloudflare", "workers", "durable-objects", "agents", "mcp", "wrangler", "serverless", "compute", "storage", "applications"],
"logo": "./logo.svg",
"primaryColor": "#EC582A"
}
+7 -3
View File
@@ -4,13 +4,17 @@
"command": "npx",
"args": ["mcp-remote", "https://docs.mcp.cloudflare.com/mcp"]
},
"cloudflare-workers-observability": {
"cloudflare-bindings": {
"command": "npx",
"args": ["mcp-remote", "https://observability.mcp.cloudflare.com/mcp"]
"args": ["mcp-remote", "https://bindings.mcp.cloudflare.com/mcp"]
},
"cloudflare-workers-builds": {
"cloudflare-builds": {
"command": "npx",
"args": ["mcp-remote", "https://builds.mcp.cloudflare.com/mcp"]
},
"cloudflare-observability": {
"command": "npx",
"args": ["mcp-remote", "https://observability.mcp.cloudflare.com/mcp"]
}
}
}
+8 -2
View File
@@ -14,6 +14,10 @@ Install using the [plugin marketplace](https://code.claude.com/docs/en/discover-
/plugin marketplace add cloudflare/skills
```
### Cursor
Install from the Cursor Marketplace or add manually via **Settings > Rules > Add Rule > Remote Rule (Github)** with `cloudflare/skills`.
### npx skills
Install using the [`npx skills`](https://skills.sh) CLI:
@@ -29,6 +33,7 @@ Clone this repo and copy the skill folders into the appropriate directory for yo
| Agent | Skill Directory | Docs |
|-------|-----------------|------|
| Claude Code | `~/.claude/skills/` | [docs](https://code.claude.com/docs/en/skills) |
| Cursor | `~/.cursor/skills/` | [docs](https://cursor.com/docs/context/skills) |
| OpenCode | `~/.config/opencode/skill/` | [docs](https://opencode.ai/docs/skills/) |
| OpenAI Codex | `~/.codex/skills/` | [docs](https://developers.openai.com/codex/skills/) |
| Pi | `~/.pi/agent/skills/` | [docs](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent#skills) |
@@ -63,8 +68,9 @@ This plugin includes [Cloudflare's remote MCP servers](https://developers.cloudf
| Server | Purpose |
|--------|---------|
| cloudflare-docs | Up-to-date Cloudflare documentation and reference |
| cloudflare-workers-observability | Debug and analyze application logs and analytics |
| cloudflare-workers-builds | Manage and get insights into Workers builds |
| cloudflare-bindings | Build Workers applications with storage, AI, and compute primitives |
| cloudflare-builds | Manage and get insights into Workers builds |
| cloudflare-observability | Debug and analyze application logs and analytics |
## Resources
+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="66" height="30" viewBox="0 0 66 30" fill="none">
<path fill="#F6821F" d="M52.688 13.028c-.22 0-.437.008-.654.015a.3.3 0 0 0-.102.024.37.37 0 0 0-.236.255l-.93 3.249c-.401 1.397-.252 2.687.422 3.634.618.876 1.646 1.39 2.894 1.45l5.045.306a.45.45 0 0 1 .435.41.5.5 0 0 1-.025.223.64.64 0 0 1-.547.426l-5.242.306c-2.848.132-5.912 2.456-6.987 5.29l-.378 1a.28.28 0 0 0 .248.382h18.054a.48.48 0 0 0 .464-.35c.32-1.153.482-2.344.48-3.54 0-7.22-5.79-13.072-12.933-13.072M44.807 29.578l.334-1.175c.402-1.397.253-2.687-.42-3.634-.62-.876-1.647-1.39-2.896-1.45l-23.665-.306a.47.47 0 0 1-.374-.199.5.5 0 0 1-.052-.434.64.64 0 0 1 .552-.426l23.886-.306c2.836-.131 5.9-2.456 6.975-5.29l1.362-3.6a.9.9 0 0 0 .04-.477C48.997 5.259 42.789 0 35.367 0c-6.842 0-12.647 4.462-14.73 10.665a6.92 6.92 0 0 0-4.911-1.374c-3.28.33-5.92 3.002-6.246 6.318a7.2 7.2 0 0 0 .18 2.472C4.3 18.241 0 22.679 0 28.133q0 .74.106 1.453a.46.46 0 0 0 .457.402h43.704a.57.57 0 0 0 .54-.418"/>
</svg>

After

Width:  |  Height:  |  Size: 1008 B

+18
View File
@@ -0,0 +1,18 @@
{
"cloudflare-docs": {
"command": "npx",
"args": ["mcp-remote", "https://docs.mcp.cloudflare.com/mcp"]
},
"cloudflare-bindings": {
"command": "npx",
"args": ["mcp-remote", "https://bindings.mcp.cloudflare.com/mcp"]
},
"cloudflare-builds": {
"command": "npx",
"args": ["mcp-remote", "https://builds.mcp.cloudflare.com/mcp"]
},
"cloudflare-observability": {
"command": "npx",
"args": ["mcp-remote", "https://observability.mcp.cloudflare.com/mcp"]
}
}
+59
View File
@@ -0,0 +1,59 @@
---
description: When building applications on Cloudflare Workers or with frameworks that deploy to Cloudflare Workers, strongly prefer retrieval and fetching documentation over training data.
globs:
- "**/*.ts"
- "**/*.tsx"
- "**/*.js"
- "**/*.mts"
- "**/*.mjs"
- "wrangler.jsonc"
- "wrangler.json"
- "wrangler.toml"
- "worker-configuration.d.ts"
- "**/workers/**"
- "**/worker/**"
---
# Cloudflare Workers
STOP. Your knowledge of Cloudflare Workers APIs and limits may be outdated. Always retrieve current documentation before any Workers, KV, R2, D1, Durable Objects, Queues, Vectorize, AI, or Agents SDK task.
## Docs
- https://developers.cloudflare.com/workers/
- MCP: `https://docs.mcp.cloudflare.com/mcp`
For all limits and quotas, retrieve from the product's `/platform/limits/` page.
## Commands
| Command | Purpose |
|---------|---------|
| `npx wrangler dev` | Local development |
| `npx wrangler deploy` | Deploy to Cloudflare |
| `npx wrangler types` | Generate TypeScript types |
Run `wrangler types` after changing bindings in wrangler.jsonc.
## Node.js Compatibility
If you encounter `Dynamic require of "X" is not supported` or missing Node.js APIs:
```jsonc
{
"compatibility_flags": ["nodejs_compat"],
"compatibility_date": "YYYY-MM-DD" // Use today's date
}
```
Docs: https://developers.cloudflare.com/workers/runtime-apis/nodejs/
## Errors
- **Error 1102** (CPU/Memory exceeded): Retrieve limits from `/workers/platform/limits/`
- **All errors**: https://developers.cloudflare.com/workers/observability/errors/
## Product Docs
Retrieve API references and limits from:
`/kv/` · `/r2/` · `/d1/` · `/durable-objects/` · `/queues/` · `/vectorize/` · `/workers-ai/` · `/agents/`