Prompt Engineering

The craft of writing instructions that get AI to produce what you actually want.

The simple explanation

Prompt engineering is the art of communicating effectively with AI. It's not about magic incantations or secret tricks - it's about being clear, specific, and structured in your instructions, the same skills that make someone a good technical writer or a good manager.

Think about delegating a task to a new team member. If you say "fix the login," you'll get very different results than if you say "the login form on /auth/login is rejecting valid passwords when they contain special characters - fix the password validation in auth/validators.ts, and add a test case for passwords with @, #, and ! characters." The second prompt gives context, locates the problem, and defines what "done" looks like.

That's prompt engineering in a nutshell: providing enough context, constraint, and clarity so the AI does what you actually intended.

Why it matters for agentic engineering

In agentic engineering, prompt engineering evolves from one-off questions into systematic workflows. You're not just writing individual prompts - you're designing specs, AGENTS.md files, system prompts, and task descriptions that agents will use repeatedly.

The shift from chatbot-era prompting to agent-era prompting is significant. With chatbots, cleverness and phrasing tricks mattered. With agents, what matters is structure: break the task down clearly, provide the relevant files, define acceptance criteria, and specify constraints. Agents respond better to well-organized information than to clever phrasing.

In practice