liveBook · Manning

Requirements

As explained in Coding with AI

Software requirements are specified capabilities, constraints, and qualities that a software system must satisfy.

Requirements specify what software must do and the constraints or qualities it must satisfy. Good requirements interpret stakeholders’ goals, needs, constraints, and desired outcomes rather than merely listing features. section 4.2

Requirements change and are often misinterpreted when development begins too quickly. Generative AI can accelerate extraction, but unclear requirements only help produce a bad project faster. section 4.2

A practical AI-assisted requirements workflow:

  • Define the scope and provide the design document or relevant context. section 4.2
  • Request structured output, such as numbered or categorized requirements, and ask for potential pitfalls. section 4.2
  • Convert the extracted requirements into user stories, then create code stubs based on those stories. section 4.2
  • Review the result with stakeholders or domain experts; retain developer judgment over AI suggestions. section 4.2 section 4.7

From a design document to test-preparation requirements

For a HAM radio test-preparation application, a prompt asking for key requirements can yield a question-pool database, fields for question text and answers, data validation, random selection of 35 non-repeating questions, and an accessible user interface. Those suggestions still require review before implementation. section 4.2.1 section 4.2

Figure 9.1 A quality prompt starts with clear context, specific instructions, and an expected format. The better the input quality, the better the result.
A diagram of effective response

Description automatically generated

A quality prompt makes requirements actionable by combining context, specific instructions, and an expected format. section 9.1

How Coding with AI covers it

How deep it goes
Explains extraction steps, structured prompts, user stories, stubs, and validation, but stops short of formal requirements specification.
Examples
Uses a HAM radio test-preparation application, question-pool requirements, random question selection, UI needs, and email-validation prompts.
What it assumes
Assumes a design document and stakeholder or domain knowledge, while teaching structured extraction and validation from the beginning.
What you can do after
Apply it via ChatGPT or Gemini to extract, structure, validate, and transform design details into implementation-ready stories and stubs.
How it connects
Connects requirements with stakeholders, constraints, design documents, prompt engineering, user stories, software stubs, and validation.

Also explained in

Compare how 13 books explain requirements →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Coding with AI. The section links point to the parts of the book it draws on.