The first 20 minutes of a new project with Claude are the most dangerous
Hi 👋 (scroll abajo para Español)
Quick story before the article.
Last month I started a fresh project with Claude. No CLAUDE.md, no hooks, no context — just an empty folder and a prompt. Within 15 minutes Claude had:
runÂ
npm install (I use pnpm)written aÂ
terraform apply command for me to copy-paste against devhardcoded an API key "just for testing"
offered to commit withÂ
Co-Authored-By: Claudecreated a storage account withÂ
allow_blob_public_access = true because it saw it on Stack Overflow in 2019
None of this is Claude's fault. It's mine — for not setting the rules before the first prompt.
So I built a tool to fix it.
scaffold-generator is a public repo. You open it with Claude, say "I want to create a new project", and Claude runs a structured interview. One question at a time. No assumptions. No defaults.
When the interview ends, you walk away with:
A project-specificÂ
CLAUDE.md with all your rules14 hooks inÂ
.claude/hooks/ that block dangerous actions before they hit diskThe seven invariants from Gartner's How to Govern Anthropic's Claude Code at Scale (G00850426, March 2026)
Real CI/CD pipelines for GitHub / GitLab / Azure DevOps
Clean Architecture, real tests (not stubs), Terraform with the right tags
A prompt-lineage ledger so you can audit every generated file six months from now
The whole point: zero design decisions made by the AI without your consent.
You want to verify the hooks actually work? Ask Claude to write a file with a fake AWS key like AKIA1234567890ABCDEF. It will refuse — and the error comes from block-secrets.sh, not from Claude's good intentions. That's the difference between hoping and enforcing.
I wrote up the full thing — the seven invariants, all 14 hooks with their code, the interview phases, and a reproducible example you can verify in five minutes.
👉 Read the article
👉 Star the repo (MIT, PRs welcome)
If this saves your team a security incident, I've done my job.
Cheers,
Victor
Was this forwarded to you?
============================================================
Hola đź‘‹
Una historia rápida antes del artĂculo.
El mes pasado empecĂ© un proyecto nuevo con Claude. Sin CLAUDE.md, sin hooks, sin contexto — solo una carpeta vacĂa y un prompt. En 15 minutos Claude habĂa:
ejecutadoÂ
npm install (yo uso pnpm)escrito unÂ
terraform apply para que yo lo copiara contra devhardcodeado una API key "solo para pruebas"
ofrecido firmar el commit conÂ
Co-Authored-By: Claudecreado una storage account conÂ
allow_blob_public_access = true porque lo vio en Stack Overflow en 2019
Nada de esto es culpa de Claude. Es mĂa — por no haber puesto las reglas antes del primer prompt.
Asà que monté una herramienta para arreglarlo.
scaffold-generator es un repo pĂşblico. Lo abres con Claude, dices "Quiero crear un proyecto nuevo", y Claude conduce una entrevista estructurada. Una pregunta a la vez. Sin asunciones. Sin valores por defecto.
Cuando termina la entrevista, te llevas:
UnÂ
CLAUDE.md especĂfico para tu proyecto, con todas tus reglas14 hooks enÂ
.claude/hooks/ que bloquean acciones peligrosas antes de que lleguen al discoLos siete invariantes de Gartner (How to Govern Anthropic's Claude Code at Scale, G00850426, marzo 2026)
Pipelines de CI/CD reales para GitHub / GitLab / Azure DevOps
Clean Architecture, tests de verdad (no stubs), Terraform con los tags correctos
Un registro de linaje de prompts para auditar cualquier fichero generado dentro de seis meses
La idea: cero decisiones de diseño tomadas por la IA sin tu consentimiento.
ÂżQuieres comprobar que los hooks funcionan de verdad? PĂdele a Claude que escriba un fichero con una AWS key falsa tipo AKIA1234567890ABCDEF. Va a negarse — y el error viene de block-secrets.sh, no de las buenas intenciones de Claude. Esa es la diferencia entre confiar y hacer cumplir.
Lo escribà todo — los siete invariantes, los 14 hooks con su código, las fases de la entrevista, y un ejemplo reproducible que puedes verificar en cinco minutos.
👉 Lee el artĂculo
👉 Dale una estrella al repo (MIT, PRs bienvenidas)
Si esto le ahorra a tu equipo un incidente de seguridad, he hecho mi trabajo.
Un saludo,
Victor
ÂżTe han reenviado este correo?