Write a spec with the edge cases

Turn a feature idea into a spec that includes the cases the code already handles.

Product · Software · When you ask · Updated

Works with

How do you write a product requirements document with edge cases?

To write a product requirements document with edge cases, send Maito the feature idea. It reads your code to find behavior the feature has to respect, such as cascading deletes, writes the flows and edge cases, lists decisions that need an owner, and attaches the spec. It can also read your Notion, Confluence or Box docs.

How it's done today

Specs miss cases engineers find mid-build.

What Maito does

  1. Read the idea
  2. Check the current product behavior
  3. Draft goals, flows, edge cases and open questions

Example

product
Leo 2:05 PM

@Maito Write a spec for archiving projects.

Maito APP 2:11 PM

Draft attached: archive-projects-spec.pdf. It has 4 flows (archive, view archived, restore, auto-archive after 90 days idle), 9 edge cases and 3 decisions for you. One edge case the code already handles that specs usually miss: deleting a project cascades to its 6 webhook subscriptions. An archived project would keep firing them unless we pause them too. Other cases I wrote up: • Archiving a project with open invites • A user who is the only admin of an archived project • Restoring when the project name was reused Decisions for you • Do archived projects count toward the seat limit? • Can editors archive, or only admins? • Should restoring be unlimited? I read the current project code and the permissions in the Notion roles page.

Leo 2:30 PM

@Maito Admins only, not counted toward seats, unlimited restores.

Maito APP 2:32 PM

Updated the spec with all three and removed the open questions. Version 2 attached.

Example complete

How to set it up

When you ask Write a spec with the edge cases
Set up

Nothing to set up. Ask in Slack or by email whenever you need it.

Connect docs
  • Notion
  • Confluence
  • Box

Not connected yet? Your agent sends you a link to sign in.

What it won't do

The spec covers what it finds in code and docs. Customer needs, priority and scope remain the product lead's call.

Questions

More product workflows

See all workflows

Put your AI teammate to work.

Set it up in minutes. Start with this one, and let it earn the next one.