No history yet

Intent Design Principles

From Instructions to Intent

In traditional programming, your job is to provide a precise, step-by-step set of instructions for the computer to execute. You manage every variable, loop, and conditional statement. It's a process of telling the machine exactly how to achieve a result.

With generative AI, the paradigm shifts. You are no longer the micro-manager. Instead, you're the creative director. Your goal is to articulate the what—the desired outcome, the user experience, the core feeling of the application. This is the essence of intent-driven development, a cornerstone of s. Think of it like commissioning a piece of art. You don't instruct the artist on brush strokes; you describe the mood, the subject, and the style you envision.

The foundational principle of vibe coding is the prioritization of intent over implementation.

This approach requires a different kind of thinking. Instead of breaking a problem down into procedural steps, you define the desired end state. The AI handles the implementation details, freeing you to focus on architectural and experiential goals.

Defining Your App's Vibe

A vague idea leads to generic code. To get a high-quality result from an AI, you need to translate your vision into a semantically dense prompt. This means packing your request with layers of meaning that go beyond a simple feature list. It’s not just what the app does; it’s how it feels to use it.

Before writing a single prompt, draft a short brief that defines the 'vibe' of your Minimum Viable Product (MVP). This document should articulate the core purpose, target audience, and desired emotional response.

Traditional Feature ListMVP Vibe Brief
User login and registration.A frictionless, modern authentication system. It should feel secure but almost invisible to the user. Prioritise a clean, minimalist UI.
A dashboard to show data.The central hub for the user's journey. It needs to be calming and insightful, not cluttered. Key data should surface naturally, guiding the user towards their next action.
Users can create posts.A simple, elegant content creation flow. The user should feel creative and empowered. The interface should encourage thoughtful input with a clean, distraction-free writing environment.

The brief on the right has much higher semantic densitys. It provides the AI with context about the why behind the features, leading to more nuanced and appropriate code, from component structure to even CSS class names.

Choosing the Right Tool

Not all AI models are equally suited for high-level architectural tasks. When sketching out the initial structure of an application, the choice of model matters. For the Claude family, there's a key distinction between Sonnet and Opus.

Claude 3.5 Sonnet is fast and cost-effective. It excels at rapid prototyping, generating boilerplate code, and handling well-defined, single-file tasks. Use Sonnet when you need to quickly scaffold a component or translate a clear idea into functional code. It's your workhorse for tactical implementation.

Claude 3 Opus, on the other hand, is the architect. With its larger context window and deeper reasoning capabilities, it's better at understanding complex, multi-file projects and grasping the subtle relationships between different parts of a system. Use Opus when you're prompting for the overall structure, asking it to design a database schema based on your MVP vibe, or refactoring a large codebase. It's slower and more expensive, but its strategic insight is invaluable for foundational work.

Your workflow might involve using Opus to outline the project's skeleton and then switching to Sonnet to flesh out the individual components. The key is to match the tool to the task's complexity.

Quiz Questions 1/5

What is the primary paradigm shift for a developer when moving from traditional programming to using generative AI?

Quiz Questions 2/5

In the context of prompting a generative AI, what does 'semantic density' refer to?

This shift from instruction to intent is the most critical skill in modern, AI-assisted development. By mastering it, you move from simply writing code to designing systems.