Of Vibe Coding Anatomy of a Spec A spec is a structured Markdown document that captures the three pillars every AI agent needs to succeed. Intent What should be built and why? Describes the goal, user story, and motivation behind the feature. Constraints Tech stack, patterns, and boundaries the agent must follow. Prevents architectural drift. Acceptance Criteria Concrete, testable conditions that define done. The agent validates its own output against these. 1 2 3