Nextjs On Cloudflare
cloudflare/skills
Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext.
Self-contained deploy automation — invoke directly, do not decompose.
$ npx skills add popmechanic/VibesOS --skill cloudflare -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install popmechanic/VibesOS cloudflare --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/popmechanic/VibesOS.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cloudflare .claude/skills/cloudflare && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cloudflare" agent skill from https://github.com/popmechanic/VibesOS/tree/main/skills/cloudflare into .claude/skills/cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/popmechanic/VibesOS/tree/main/skills/cloudflareType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add popmechanic/VibesOS --skill cloudflare -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install popmechanic/VibesOS cloudflare --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/popmechanic/VibesOS.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/cloudflare .agents/skills/cloudflare && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cloudflare" agent skill from https://github.com/popmechanic/VibesOS/tree/main/skills/cloudflare into .agents/skills/cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add popmechanic/VibesOS --skill cloudflare -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install popmechanic/VibesOS cloudflare --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/popmechanic/VibesOS.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/cloudflare .cursor/skills/cloudflare && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cloudflare" agent skill from https://github.com/popmechanic/VibesOS/tree/main/skills/cloudflare into .cursor/skills/cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/popmechanic/VibesOS.git --path skills/cloudflare--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add popmechanic/VibesOS --skill cloudflare -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install popmechanic/VibesOS cloudflare --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/popmechanic/VibesOS.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/cloudflare .gemini/skills/cloudflare && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cloudflare" agent skill from https://github.com/popmechanic/VibesOS/tree/main/skills/cloudflare into .gemini/skills/cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install popmechanic/VibesOS cloudflareInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add popmechanic/VibesOS --skill cloudflare -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/popmechanic/VibesOS.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/cloudflare .github/skills/cloudflare && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cloudflare" agent skill from https://github.com/popmechanic/VibesOS/tree/main/skills/cloudflare into .github/skills/cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add popmechanic/VibesOS --skill cloudflare -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install popmechanic/VibesOS cloudflare --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/popmechanic/VibesOS.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/cloudflare .opencode/skills/cloudflare && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cloudflare" agent skill from https://github.com/popmechanic/VibesOS/tree/main/skills/cloudflare into .opencode/skills/cloudflare/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cloudflare", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cloudflareSelf-contained deploy automation — invoke directly, do not decompose.
Cloudflare is an agent skill from popmechanic/VibesOS. Self-contained deploy automation — invoke directly, do not decompose. Deploys a Vibes app to Cloudflare Workers via the Deploy API. Use when deploying, publishing, going live, pushing to production, or hosting on the edge.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Deployment. It works with Cloudflare and Cloudflare Workers. The repository describes itself as: A GUI for Claude Code that makes it easy to vibe code simple, un-hackable apps. The licence is MIT.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 5baf8a2. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
BashReadGlobAskUserQuestionWriteFrom allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bunFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cloudflare loads about 1.2k tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 472 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Bash, Read, Glob, AskUserQuestion, WriteAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from popmechanic/VibesOS at commit 5baf8a2, republished under its MIT licence (© popmechanic). 472 words, ~1,215 tokens.
.claude/skills/cloudflare/SKILL.md (or your agent's skills folder).Plan mode: If you are planning work, this entire skill is ONE plan step: "Invoke /vibes:cloudflare". Do not decompose the steps below into separate plan tasks.
╔═══════════════════════════════════════════════╗
║ ☁️ CLOUDFLARE WORKERS DEPLOY ║
║ Deploy API · Pocket ID · Edge Functions ║
╚═══════════════════════════════════════════════╝Deploy your Vibes app to Cloudflare Workers via the Deploy API.
/vibes:vibes or /vibes:factory)No Cloudflare account or wrangler CLI needed — the Deploy API handles infrastructure.
VIBES_ROOT="${CLAUDE_PLUGIN_ROOT:-$(dirname "$(dirname "${CLAUDE_SKILL_DIR}")")}"
bun "$VIBES_ROOT/scripts/deploy-cloudflare.js" --name myapp --file index.htmlOn first run, a browser window opens for Pocket ID authentication. Tokens are cached for subsequent deploys.
Static Assets: Place images, fonts, or other static files in an assets/ directory next to the app file. The deploy script auto-discovers and includes them (binary files are base64-encoded). Reference in code with absolute paths like /assets/logo.png.
VIBES_ROOT="${CLAUDE_PLUGIN_ROOT:-$(dirname "$(dirname "${CLAUDE_SKILL_DIR}")")}"
bun "$VIBES_ROOT/scripts/deploy-cloudflare.js" --name myapp --file index.html --ai-key "sk-or-v1-your-key"The --ai-key flag configures the OpenRouter API key for the useAI() hook. Without it, /api/ai/chat returns {"error": "AI not configured"}.
| Endpoint | Method | Description |
|---|---|---|
/registry.json | GET | Public registry read |
/check/:subdomain | GET | Check subdomain availability |
/claim | POST | Claim a subdomain (auth required) |
/api/ai/chat | POST | AI proxy to OpenRouter (requires AI key) |
Workers.dev domains only support one subdomain level for SSL. For multi-tenant apps with subdomains (tenant.myapp.workers.dev), you MUST use a custom domain.
Won't work: tenant.myapp.username.workers.dev (SSL error)
Will work: tenant.myapp.com (with custom domain)
On workers.dev, use the ?subdomain= query parameter for testing:
myapp.username.workers.dev → landing pagemyapp.username.workers.dev?subdomain=tenant → tenant appmyapp.username.workers.dev?subdomain=admin → admin dashboard*, Target: <worker-name>.<username>.workers.dev (Proxied: ON)*.yourdomain.com/*After setup:
yourdomain.com → landing pagetenant.yourdomain.com → tenant appadmin.yourdomain.com → admin dashboard| Problem | Cause | Fix |
|---|---|---|
| Browser doesn't open for auth | Headless environment | Copy the printed URL and open manually |
| Deploy API returns 401 | Expired or invalid token | Delete ~/.vibes/auth.json and retry |
| 404 on subdomain URL | Workers.dev doesn't support nested subdomains | Set up a custom domain (see Custom Domain Setup above) |
/api/ai/chat returns "AI not configured" | Missing OpenRouter key | Redeploy with --ai-key |
| Stale content after redeploy | Browser cache | Hard refresh (Cmd+Shift+R) or clear cache |
After successful deployment, present these options:
AskUserQuestion: question: "Your app is deployed! What would you like to do next?" header: "Next steps" options: - label: "Set up custom domain" description: "Configure DNS for subdomain routing (required for multi-tenant)" - label: "Enable AI features" description: "Add OpenRouter API key for the useAI() hook" - label: "Add auth & SaaS features" description: "Transform into SaaS with /vibes:factory, then redeploy" - label: "Open in browser" description: "Visit the deployed URL to verify everything works"
© popmechanic, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/cloudflare of popmechanic/VibesOS.
Open the folder on GitHubat commit 5baf8a2
Cloudflare next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cloudflare this skillpopmechanic/VibesOS | 135 | — | ~1.2k | Automated safety check: Notes | MIT | |
| Nextjs On Cloudflarecloudflare/skills | 3k | 2 repos | ~678 | Automated safety check: Pass | Apache-2.0 | |
| Prepare Cloudflare Production DeploymentLubomirGeorgiev/cloudflare-workers-nextjs-saas-template | 786 | — | ~5.9k | Automated safety check: Notes | MIT | |
| Deploy Microfeedmicrofeed/microfeed | 4.1k | — | ~6.6k | Automated safety check: Pass | AGPL-3.0 | |
| Cloudflare Temporary DeployLuciole-Studio/Misaka-Agent | 158 | 2 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Wranglercloudflare/skills | 3k | 2 repos | ~2.8k | Automated safety check: Pass | Apache-2.0 |
cloudflare/skills
Build, migrate, and deploy Next.js apps on Cloudflare Workers with vinext.
LubomirGeorgiev/cloudflare-workers-nextjs-saas-template
Source-of-truth runbook for preparing this Vinext Cloudflare Workers SaaS template for production deployment.
microfeed/microfeed
Deploy and administer microfeed through the source-code-free @microfeed/cli launcher or the project-owned yarn manage CLI.
Luciole-Studio/Misaka-Agent
Deploy a Worker live, no account, via wrangler --temporary. An agent skill from Luciole-Studio/Misaka-Agent.
cloudflare/skills
Run or troubleshoot Wrangler CLI commands and configure Worker projects for local development, Previews, deployment, and Cloudflare resource management.
JetBrains/skills
Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services.
popmechanic/VibesOS
Self-contained SaaS pipeline — invoke directly, do not decompose.
popmechanic/VibesOS
Self-contained app generator — invoke this skill directly, do not decompose into sub-steps.
popmechanic/VibesOS
Self-contained design transformer — invoke directly, do not decompose.
popmechanic/VibesOS
Self-contained SaaS pipeline — invoke directly, do not decompose.
popmechanic/VibesOS
Self-contained parallel generator — invoke directly, do not decompose.
popmechanic/VibesOS
Lightweight requirements gathering before app generation. An agent skill from popmechanic/VibesOS.
Works with
Categories
Self-contained deploy automation — invoke directly, do not decompose. Cloudflare is an agent skill from popmechanic/VibesOS. Self-contained deploy automation — invoke directly, do not decompose.
Cloudflare fits situations like: pushing to production; hosting on the edge.
Run `npx skills add popmechanic/VibesOS --skill cloudflare -a claude-code`. Or copy the skill folder (skills/cloudflare in popmechanic/VibesOS) into .claude/skills/cloudflare in your project. Claude Code loads it when a task matches its description.
Run `npx skills add popmechanic/VibesOS --skill cloudflare -a codex`. Or copy the skill folder (skills/cloudflare in popmechanic/VibesOS) into .agents/skills/cloudflare in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add popmechanic/VibesOS --skill cloudflare -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cloudflare, .gemini/skills/cloudflare, .github/skills/cloudflare and .opencode/skills/cloudflare in your project.
Going by SKILL.md and its folder, Cloudflare needs the command-line tools its instructions call (bun). Its frontmatter pre-approves these tools: Bash, Read, Glob, AskUserQuestion, Write.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Cloudflare is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Cloudflare: Nextjs On Cloudflare (cloudflare/skills, 3k stars), Prepare Cloudflare Production Deployment (LubomirGeorgiev/cloudflare-workers-nextjs-saas-template, 786 stars), Deploy Microfeed (microfeed/microfeed, 4.1k stars) and Cloudflare Temporary Deploy (Luciole-Studio/Misaka-Agent, 158 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
popmechanic (a GitHub user) maintains it in popmechanic/VibesOS, which has 135 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on July 27, 2026.
Source: popmechanic/VibesOS on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.