init-proyecto

A one-time command for turning a project template into the real project repository. It checks the project documentation, asks for missing project details, and updates files such as the README and project configuration.

In plain words
What is it for?
Use it when starting a new project from this template, after the required planning documents have been completed.
Why use it?
It prevents a template from being treated as a finished project and ensures the repository reflects the project's actual purpose, status, and structure.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/polmarza/project-template/init-proyecto
Clone the repo
git clone --depth 1 https://github.com/polmarza/project-template

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 782 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00782
Opus 5 $0.00000 $0.00391
Sonnet 5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

Measured 2d ago against content hash 6caa7f41b049, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

init-proyecto scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

8. `.template/` — bórrala (`rm -rf .template`). Quita después las referencias a
.claude/commands/init-proyecto.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Convierte esta plantilla en el repositorio del proyecto real. Es un proceso de una sola vez.

Antes de empezar

  1. Lee todos los archivos de docs/.
  2. Si están vacíos o incompletos, no inicialices todavía: primero complétalos con el usuario siguiendo el orden de CLAUDE.md (prd.md → business.md → design-system.md → architecture.md → data-model.md → roadmap.md → user-flows.md). No hacen falta los ocho: mira antes la tabla "Qué documentación necesita cada proyecto" de CLAUDE.md y pide solo los que apliquen al tamaño de este proyecto.
  3. Si no existe .template/, el repo ya está inicializado. Dilo y no toques nada, salvo que el usuario pida rehacer algo concreto.

Datos que necesitas

Pregunta solo lo que no puedas deducir de docs/:

  • Nombre del proyecto y descripción de una línea
  • Estado actual (En desarrollo / Beta / Producción)
  • Autor y año para la licencia

Qué hacer

Ejecuta el checklist de "Inicialización del proyecto" de CLAUDE.md:

  1. README.md — reescríbelo entero para el proyecto (qué es, qué problema resuelve, requisitos, variables de entorno, instalación con pnpm, estructura, cómo contribuir, estado). Sin referencias a la plantilla.
  2. CLAUDE.md — rellena nombre, descripción, estado, stack, estructura de carpetas, convenciones y "Qué NO hacer". Borra los comentarios que ya no apliquen y la sección de inicialización del proyecto (ya no hace falta) junto con la referencia a este comando. El "Protocolo de MCPs" se queda: sigue aplicando cada vez que entre una integración nueva.
  3. LICENSE — sustituye la línea de copyright de la plantilla por el año actual y el titular de este proyecto.
  4. .env.example — deja solo las variables del stack real.
  5. MCPs — pregunta qué servidores MCP quiere y con qué alcance, siguiendo el "Protocolo de MCPs" de CLAUDE.md. Si prefieres tratarlo aparte, lanza /mcp-setup.
  6. docs/ — borra los documentos que este proyecto no necesite según la tabla de tamaños. Los que no aplican se borran, no se dejan vacíos: un archivo con solo comentarios hace que el arranque de cada sesión se pare a preguntar por él. docs/features/ se queda vacía, solo con su README.md.
  7. mejoras/backlog.md — borra el ejemplo comentado.
  8. .template/ — bórrala (rm -rf .template). Quita después las referencias a .template/assets/ que queden en otros archivos: hay una en docs/features/README.md.
  9. changelog/ — crea la primera entrada real del proyecto (tipo: Configuración) con /changelog y limpia de changelog/README.md la referencia a la plantilla.
  10. Verifica que no queden restos: grep -ril "plantilla\|template" . --exclude-dir=.git --exclude-dir=node_modules
  11. Pasa /doctor como última comprobación: entorno, variables, MCPs y tests. Si algo sale en FALLO, arréglalo antes de dar la inicialización por terminada.

Read the full file on GitHub · 55 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 55 lines · 0 tokens per session scan C 6caa7f41b049

Subscribe to this mod's changes

init-proyecto is a command published in the GitHub repository polmarza/project-template (79 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 782 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.