AI PRODUCT MANAGEMENT

Writing Specs for AI-Assisted Engineering Teams: What Changes When Your Engineers Use AI

By Institute of AI PM·13 min read·Nov 26, 2026

TL;DR

When engineers use AI coding tools like Claude Code, Cursor, and GitHub Copilot, they can implement a spec in hours rather than days. The spec itself is now the main bottleneck. Vague requirements that a good engineer once figured out through back-and-forth now produce AI-generated code that confidently ships the wrong thing. This guide covers exactly what to add, what to cut, and how to structure specs so your AI-assisted team moves fast without rework.

The AI PM Minute

One tactic to make you a sharper AI PM, twice a week. 60 seconds to read. Free.

No fluff. Unsubscribe anytime.

How AI Coding Tools Change the Engineering Workflow

Tools like Claude Code, Cursor, Windsurf, and GitHub Copilot have changed what a good spec needs to accomplish. To understand the change, it helps to understand how engineers now use these tools in practice.

An engineer reads your spec, then asks their AI coding tool to implement it. The AI tool reads the spec (literally, in the prompt or as attached context), reads the existing codebase, and generates an implementation. The engineer reviews and iterates. The whole cycle is significantly faster than writing from scratch, but the AI tool makes strong assumptions when the spec is ambiguous. Those assumptions are often wrong in ways that take longer to fix than writing it correctly would have.

Before AI coding tools

Engineer reads vague spec, sends a Slack message to clarify, waits a day

With AI coding tools

AI tool reads vague spec, makes an assumption, generates 200 lines of code implementing the wrong behavior, engineer ships it

Before AI coding tools

Engineer understands product context from months of team involvement

With AI coding tools

AI tool understands only what the engineer puts in the prompt, plus what it reads from the codebase

Before AI coding tools

Missing edge case discovered during code review, fixed in 20 minutes

With AI coding tools

Missing edge case discovered after AI tool implemented around it, requiring a rearchitecture of the generated code

Before AI coding tools

Engineer pushes back on ambiguous requirement, discussion surfaces the real need

With AI coding tools

AI tool never pushes back, implements the literal interpretation, and an ambiguous spec ships as implemented

The core shift is this: the feedback loop that used to catch spec problems early (engineer reads it, engineers asks questions, PM clarifies) is now much shorter. AI tools implement fast and do not ask questions. The spec now carries more of the communication burden that used to happen in conversation.

The Spec Precision Problem: What Goes Wrong

The most common failure mode is not ambiguity that obviously needs clarification. It is ambiguity that looks fine to the PM and the engineer but that an AI tool resolves by picking one of several plausible interpretations.

Undefined edge cases

What goes wrong

Spec says: 'User can delete their account.' AI tool implements the happy path. No spec guidance on what happens to in-progress orders, shared resources, referral credits, dependent accounts, or pending transactions. AI tool picks defaults. Defaults are wrong for your business rules.

How to fix it

List the five most important edge cases explicitly. For each: what state triggers it, what should happen, what should NOT happen.

Implicit constraints from product history

What goes wrong

Spec says: 'Add a bulk export feature.' Your product has had export rate-limiting since a 2024 incident. That constraint lives in engineering memory, not in the spec. AI tool generates an export feature with no rate limiting. Rate-limiting bug is now a production incident.

How to fix it

Add a constraints section to every spec. Include: performance limits, security requirements, rate limits, accessibility requirements, and anything that broke before. Do not assume engineering memory carries forward.

Underspecified success criteria

What goes wrong

Spec says: 'The search should be fast.' Fast means different things to the AI tool, the engineer, and the product requirement. AI tool ships a search that returns in 800ms. Your acceptable threshold was 200ms. Neither the AI tool nor the engineer knew.

How to fix it

Replace adjectives with numbers. 'Fast' becomes 'p50 latency under 200ms, p95 under 500ms, measured from user keypress to first result render.' Every 'fast', 'accurate', 'reliable', 'scalable' in a spec is a potential misimplementation.

Missing context about adjacent systems

What goes wrong

Spec says: 'Send the user a confirmation email.' Engineer instructs AI tool to implement email sending. AI tool generates code that calls your email service directly from the new feature. Your team has an email queue architecture. Now you have two email paths.

How to fix it

Include a 'how this connects to existing systems' section. Name the specific services, APIs, or patterns the new feature should use. If it should NOT use something, state that explicitly.

What to Include in Every Spec for AI-Assisted Teams

The spec sections below are not new for experienced PMs. What changes is the level of detail required in each section and the fact that some sections that were optional for traditional teams are now required when engineers use AI coding tools.

Required

Goal and user outcome

One to two sentences: what user problem does this solve, and how does the user's situation improve? This is the North Star the AI tool uses when it encounters ambiguous choices. Without it, the AI tool makes implementation choices that optimize for technical elegance, not user outcome.

Required

Exact user flows (not wireframes)

Write out the user journey in numbered steps, in plain language. 'User clicks X, sees Y, can do Z' is clearer for an AI tool than a Figma link. Include both the happy path and the two or three most common alternative flows.

Required

Explicit success criteria with numbers

Replace every adjective with a measurable requirement. Latency, error rate, accuracy threshold, conversion target. If you do not know the number, make an explicit decision and document it rather than leaving it open.

Required

Edge cases and boundary conditions

List the states, inputs, or conditions that are not covered by the happy path. For each: what should happen (explicitly), what should NOT happen (explicitly). Five edge cases per feature is a reasonable minimum. Ten is not excessive for complex features.

Required

Constraints section

What must NOT change. Performance ceilings, security requirements, rate limits, accessibility standards, things that broke before. This section prevents the AI tool from generating technically correct code that violates a constraint the engineer did not think to include in the prompt.

Required

Integration guidance

Name the specific APIs, services, and patterns this feature should use. 'Use the existing EmailQueue service, not direct SMTP' is a spec instruction. 'Write to the user activity log via the ActivityLogger class, not direct DB writes' is a spec instruction. Without this, AI tools generate independent implementations that duplicate or bypass existing systems.

Required

What is out of scope

Explicitly list what this spec does NOT include. AI tools are helpful and will add related functionality they infer you would want. Without a scope boundary, engineers review AI-generated code that added three features you did not ask for.

Optional

Open questions

List decisions that are not yet made. This tells the engineer to come back for clarification rather than making the decision themselves (or letting the AI tool make it). An unresolved open question in a spec is better than an invisible assumption.

Learn AI PM Craft in a Live Cohort

The AI PM Masterclass covers spec writing, working with AI-assisted engineering teams, and the full toolkit for shipping AI products that work. Taught live by a Salesforce Sr. Director PM.

The Spec Format That Works with AI-Assisted Development

There is no single correct spec format, but some structures work better than others when engineers are using AI coding tools. The common element in formats that work: they are structured so that an AI coding tool, reading the spec as a document, encounters the most important constraints and goals before it encounters the implementation details.

# [Feature Name]

## Goal
One sentence: what user problem does this solve?
One sentence: how does the user's situation improve?

## User Flow
1. User [action]
2. System [response]
3. User [action]
4. System [response]
...

## Success Criteria
- [Metric]: [Number] (e.g., p95 latency: under 400ms)
- [Metric]: [Number] (e.g., error rate: under 0.1%)
- [Behavior]: [Description with specific, testable outcome]

## Edge Cases
1. When [condition]: [what should happen]
2. When [condition]: [what should NOT happen]
3. When [condition]: [what should happen]
...

## Constraints
- Must use [service/pattern/API]
- Must NOT [behavior that is off limits]
- Accessibility: [specific requirement]
- Performance ceiling: [specific limit]

## Integration
- Uses: [service A via method X]
- Writes to: [data store Y via Z]
- Triggers: [downstream event W]

## Out of Scope
- [Thing that might seem related but is excluded]
- [Thing that engineers or AI might add but should not]

## Open Questions
- [Decision not yet made] - owner: [PM/Eng/Design]

Why structure matters for AI tools

When an engineer pastes a spec into Claude Code or Cursor, the AI coding tool processes it as a prompt. Sections at the top receive more weight in the generated code. A spec that opens with implementation details and buries the success criteria at the bottom produces different code than one that leads with goal, success criteria, and constraints. Put the most important requirements first.

Working With Your Engineering Team on Spec Quality

Better specs are a joint project between PMs and engineers. The PM writes them; the engineering team flags when they are not actionable. That feedback loop needs to be explicit and low-friction, or spec quality will not improve over time.

Spec review before kickoff

30-minute meeting with the engineer lead to read the spec together before implementation starts. The goal is to find the five places where the engineer would have to make a decision. PMs clarify those in real time, not after code is written.

When: Every feature above one day of engineering work

Post-build spec quality retro

After each feature ships, ask the engineer: 'What did you have to decide or assume that was not in the spec?' Add those to the spec template as new required sections. Five retrospectives build a checklist specific to your product.

When: Monthly or after any significant rework

AI tool test read

Before finalizing a spec, paste it into the AI coding tool your team uses and ask it to list the top three ambiguous points. This reveals spec gaps faster than any review process. If the AI tool asks clarifying questions, those are sections the spec did not cover.

When: Before handing off any significant feature

Written decision log

During any discussion that resolves a spec ambiguity, the PM writes the decision into the spec immediately. 'We decided X because Y, and Z is explicitly excluded.' Decisions that happen verbally and are not written down do not exist for the AI coding tool.

When: Every time a spec question is answered verbally

What Changes for PMs as AI Coding Matures

The trend is clear: AI coding tools will continue to get better at generating correct code from ambiguous instructions. But the ceiling for what a better spec unlocks also rises. The teams getting the most leverage from AI-assisted development are not the ones with the best AI tools. They are the ones with the clearest specs.

PM becomes the main bottleneck

When engineers ship in hours rather than days, the spec pipeline determines team velocity. A PM who takes three days to write a spec is a bigger bottleneck than a PM who took three days when engineering was the constraint. Spec writing speed and quality are now primary PM performance metrics.

Verbal alignment becomes a liability

When implementation happens fast, verbal discussions that do not get written into the spec create more misalignment faster. Teams that document every decision in the spec are higher-leverage than teams that rely on shared understanding.

The PM review scope expands

With AI-generated code, PMs are increasingly reviewing the output of their own specs. A feature that ships wrong is evidence of a spec problem, not (only) an engineering problem. PMs who frame AI-generated mistakes as 'engineering issues' miss the feedback loop.

Spec templates compound in value

A checklist built from past spec failures is worth significantly more in an AI-assisted environment than in a traditional one. Each item on the checklist prevents a category of AI-generated mistake from happening again. Teams should build and maintain their spec checklists actively.

Ship AI Products That Work as Specified

The AI PM Masterclass covers spec writing for AI products, working with AI-assisted engineering teams, and every other skill you need to ship in the current environment. Taught live by a Salesforce Sr. Director PM and former Apple Group PM.

Before you go: get the AI PM Minute

One tactic to make you a sharper AI PM, twice a week. 60 seconds to read. Free.

No fluff. Unsubscribe anytime.