CommunityCoding & Developmentgithub.com

crear-proyecto-cloudflare

Trigger: create project, new project, create website, create app, new Cloudflare project, web-name, app-name, web-app-name, scaffold, start project, crear proyecto, nuevo proyecto, crear web, crear app, nuevo proyecto cloudflare, web-nombre, app-nombre, web-app-nombre, create project, new project. Creates Cloudflare web or app projects (Workers + Hono + HTMX) inside proyectos/ with TAREAS.md first, MVC-style structure and documentation in English; activates when the user asks to create or start a project, not for deploys or new features.

What is crear-proyecto-cloudflare?

crear-proyecto-cloudflare is a Claude Code agent skill that trigger: create project, new project, create website, create app, new Cloudflare project, web-name, app-name, web-app-name, scaffold, start project, crear proyecto, nuevo proyecto, crear web, crear app, nuevo proyecto cloudflare, web-nombre, app-nombre, web-app-nombre, create project, new project. Creates Cloudflare web or app projects (Workers + Hono + HTMX) inside proyectos/ with TAREAS.md first, MVC-style structure and documentation in English; activates when the user asks to create or start a project, not for deploys or new features.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/furbox/skill-cloudflare-apps/tree/HEAD

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Activation Contract

Activate when the user asks to create, start or scaffold a web or app project in this repo. Do not activate for deploys, features in existing projects, or single throwaway files.

Hard Rules

  1. Create everything inside proyectos/ because outside it nothing deploys or gets documented.
  2. Apply docs/convenciones.md as is because it is the repo contract; any other user request is obeyed and recorded in TAREAS.md → ## Decisiones.
  3. Fix the type (web, app, web-app) with docs/cuando-usar-cada-stack.md because each type has a different structure; with missing type or name, ask one question and wait.
  4. Use mandatory prefix + kebab-case with no accents or spaces (web-, app-, web-app-) because the prefix fixes the type; if the folder exists, stop and report.
  5. Create TAREAS.md first from assets/tareas-template.md because it is the project memory and gets written before deciding.
  6. Generate the structure only with scripts/scaffold.sh because hand-made scaffolds skip files (see references/flujo-de-creacion.md).
  7. Put a 2 to 4 line header in English on every code file because the future reader lacks the context; verify with scripts/validar-cabeceras.sh.
  8. Keep the stack fixed unless decided otherwise (see docs/stack.md) because another stack breaks the skeletons.
  9. Never run installs, deploys or commits nor create secrets because those are user steps; leave bun install and wrangler dev in README.md.
  10. Write documentation and comments in English and identifiers, files and folders in English because docs/convenciones.md says so.
  11. Never copy versions, prices or limits because they expire; cite docs/cloudflare-free-tier.md and docs/stack.md.
  12. Always use web, app, web-app, scaffold, TAREAS.md and tenant_id per references/glosario.md because synonyms break activation.
  13. After any change to the skill (scripts/, assets/, references/ or this SKILL.md), run both suites in both copies (scripts/tests/scaffold.test.sh and scripts/tests/validar-cabeceras.sh in the local skill and in skills-dist/) and require exit 0 on all four before reporting, because an unverified skill ships broken scaffolds.
  14. In data apps require the full pyramid (unit bun test + bindings-vs-c.env grep + Playwright E2E against local wrangler dev with seeded + swept data and screenshots); static webs are exempt because they have no backend to break.
  15. Every route touching D1 is stepped on by at least one test with real D1 (path coverage, not percentage) because fakes pass and production fails.
  16. Name the visual direction before drawing and forbid defaults (cream backgrounds+serif+terracotta, everything-in-cards, uppercase eyebrows) because defaults read as template.
  17. Verify every visual change in a real browser with screenshots and parent review before reporting, because rendering cannot be tested in text.
  18. Install, test and improve only on local/dev, never secrets or production, record every install in TAREAS.md and leave rm -rf to the parent, because that is the user's condition for the good of the app.
  19. Seeds with hash-only in migrations and credentials only in dev TAREAS.md+README.md, deleted before exposing, because a key in code stays exposed.

Decision Gates

SituationAction
Uncertain type after the checklistAsk the user and wait before creating anything
Name without prefix or with uppercase/accentsAsk for a correction with the right prefix
The folder already existsStop and report; do not overwrite anything
scaffold.sh exits non-zeroStop and report the error without creating anything else
The user asks for another stackObey and record it in TAREAS.md → ## Decisiones
The user asks for deploy, secrets or a big featureNot this skill's job; report it as a next step

Execution Steps

  1. Read references/glosario.md, references/ejemplos.md and references/flujo-de-creacion.md.
  2. Fix type and name with the checklist in docs/cuando-usar-cada-stack.md; if anything is missing, ask one question and wait.
  3. In the project root or its proyectos/ run bash <ruta-a-la-skill>/scripts/scaffold.sh <tipo> <nombre> (<ruta-a-la-skill> = skill directory; creates under $PWD/proyectos, or under $PWD inside proyectos/) and stop on non-zero exit.
  4. Complete TAREAS.md (Objetivo, Tipo, Stack, tasks) and the created project's README.md.
  5. Run bash <ruta-a-la-skill>/scripts/validar-cabeceras.sh <ruta-al-proyecto> (proyectos/<nombre> from the root, <nombre> from inside proyectos/) and fix until exit 0 (validate → fix → re-verify).
  6. Report per ## Output Contract.

Output Contract

Return: created tree, type and name, questions asked and answers received, exit codes of both scripts with the validator output, what was NOT run (installs, tests, deploy) with next steps for the user (bun install, wrangler dev), and residual risks. A report without the four exit codes and their summary lines is incomplete and must not be delivered.

References

Paths relative to the skill directory: references/flujo-de-creacion.md, references/ejemplos.md, references/pruebas.md, references/contratos-de-capas.md, references/glosario.md, scripts/scaffold.sh, scripts/validar-cabeceras.sh. Project documents: use references/docs/ if present inside the skill; otherwise docs/ at the current project root (docs/convenciones.md, docs/cuando-usar-cada-stack.md, docs/stack.md, docs/cloudflare-free-tier.md).

Related Skills