Anti-patterns and common errors
🌍 Language pair / Par de idioma
Section titled “🌍 Language pair / Par de idioma”- English: 20-anti-patterns-and-common-errors.md
- Español: ../es/20-anti-patrones-y-errores-comunes.md
🗣️ Friendly prompt (copy/paste)
Section titled “🗣️ Friendly prompt (copy/paste)”Use this when you are not technical and want the AI to do setup + guidance end-to-end:
Using https://github.com/juanklagos/spec-driven-development-template, create everything needed to carry out my project end-to-end.My project is: [describe your project in plain language].
If my project is new, initialize it with this template and GitHub Spec Kit.If my project already exists, adapt it to idea/specs/bitacora without breaking current behavior.Guide me step by step for my level (beginner/intermediate/advanced), using simple language.Do not skip specification, plan, tasks, refinement trace, logbook, and validation.[!CAUTION] These are the most frequent mistakes that break the SDD workflow. Learn them to avoid wasted sessions.
🚫 Critical anti-patterns
Section titled “🚫 Critical anti-patterns”1. Coding before specifying
Section titled “1. Coding before specifying”| Symptom | Impact | Fix |
|---|---|---|
| “Let me just build it real quick” | Directionless changes, scope creep | Write spec.md first, even if it’s 10 lines |
| AI generates code without context | Hallucinated features, wrong architecture | Feed IDEA_GENERAL.md + active spec to the AI before asking for code |
Skipping plan.md |
Implementation doesn’t match requirements | Always fill plan.md before opening your editor |
2. Invisible scope changes
Section titled “2. Invisible scope changes”| Symptom | Impact | Fix |
|---|---|---|
| “Oh, I also added X while I was at it” | Untracked work, broken traceability | Record every scope change in history.md |
| Requirements discussed only in chat/Slack | Lost decisions, conflicting understanding | Transfer decisions to bitacora/decisiones/ |
| Changing priorities without updating INDEX | Team confusion about what’s active | Update specs/INDEX.md status and priority immediately |
3. Session continuity failures
Section titled “3. Session continuity failures”| Symptom | Impact | Fix |
|---|---|---|
| No handoff at end of session | Next session starts from scratch | Create bitacora/handoffs/ entry every time |
| “I’ll remember what I was doing” | Context loss after 24+ hours | Write it down — your future self is a stranger |
| Multiple specs in progress without tracking | Priority chaos, partial implementations | Keep specs/INDEX.md as single source of truth |
4. Template/product context confusion
Section titled “4. Template/product context confusion”| Symptom | Impact | Fix |
|---|---|---|
| AI modifies template files for a user project | Corrupted template | Clarify mode: template maintenance vs project execution |
| Creating specs for the template itself during project work | Mixed contexts | Separate repos or explicitly declare maintenance mode |
⚠️ Warning signals that SDD discipline is slipping
Section titled “⚠️ Warning signals that SDD discipline is slipping”tasks.mdhasn’t been updated in 3+ sessionsspecs/INDEX.mddoesn’t match realitybitacora/has no entries in the last weekhistory.mdshows no changes but code has evolvedvalidate-sdd.shhasn’t been run since project start
📏 The one rule to remember
Section titled “📏 The one rule to remember”If it is not documented, it is not aligned. If it is not aligned, it will break.
Si no está documentado, no está alineado. Si no está alineado, se va a romper.
💡 Recovery protocol
Section titled “💡 Recovery protocol”If you catch yourself (or your team) breaking SDD discipline:
- Stop coding immediately
- Run
./scripts/validate-sdd.sh . --strictto see what’s missing - Fill the gaps: update the active spec, log decisions, create handoff
- Only then resume implementation
This takes 15 minutes and saves hours of rework.
💡 Quick tips
Section titled “💡 Quick tips”- Start from a simple one-paragraph project description.
- Ask the AI to confirm the active spec before coding.
- Close every session with validation and a clear next step.
📊 Visual flow
Section titled “📊 Visual flow”flowchart LR A["Project idea"] --> B["Spec approved"] B --> C["Plan aligned"] C --> D["Tasks prioritized"] D --> E["Implementation"] E --> F["Validation + Logbook"]