DEV Community

Cover image for Spec First, Then Prompt: 8 Mac Tools for Writing the Spec Before Claude Code Writes the Code (2026)
E Daugherty
E Daugherty

Posted on

Spec First, Then Prompt: 8 Mac Tools for Writing the Spec Before Claude Code Writes the Code (2026)

Hand Claude Code a one-line prompt and you get a confident pile of code that solves a slightly different problem. Hand it a half-page spec and it usually builds the thing you meant.

The spec is the part most of us skip, because writing it feels slower than just typing "add auth". These are the 8 Mac tools I'd use to get the spec written first, grouped by the job each one does.

Get the idea out of your head

1. Wispr Flow: talk through the feature before you type it

Most specs start as a ramble, and rambling is faster out loud. Wispr Flow is a dictation app that works across your Mac apps, so you can talk through the feature, the edge cases and what "done" means straight into a notes file. There's a free plan with a weekly dictation allowance; Pro is $15 a month, or $12 a month billed annually.

2. Excalidraw: sketch the flow in 2 minutes

If the feature touches more than two screens or services, a rough box-and-arrow sketch catches gaps a paragraph hides. Excalidraw is a free, hand-drawn-style whiteboard in the browser that exports PNG and SVG, so the sketch can sit right next to the spec. Excalidraw+ ($6 a month per user) adds cloud workspaces, more AI requests and collaboration features.

Give the spec a structure

3. GitHub Spec Kit: a ready-made spec process for your agent

Staring at an empty spec.md is its own blank page. Spec Kit is GitHub's open-source toolkit that gives coding agents structured processes and templates, with spec-driven development in core: a specification carried through planning and implementation. It also ships bundled extensions for bug fixing and idea assessment.

4. Kiro: an IDE built around specs

If you'd rather the editor enforce the habit, Kiro turns a feature request into three files: requirements.md with user stories and acceptance criteria, design.md with architecture and sequence diagrams, and tasks.md with a trackable implementation plan. There's a free tier with 50 credits a month; Pro starts at $20 a month.

5. AGENTS.md: the context every spec shouldn't repeat

Half of every prompt is the same boilerplate: how to install, how to run tests, which style rules apply. AGENTS.md is a simple, open format for that, a README for agents that sits in the repo root and works with a long list of coding agents and tools. Put the setup commands and conventions there once, and keep each spec about the feature.

Write it and keep it

6. Obsidian: a home for specs that outlive the PR

Specs are worth keeping. Six months later they explain why the code looks the way it does. Obsidian stores everything as local markdown files, links notes to each other, and is free with no sign-up; Sync ($4 a month billed annually) is optional if you want it on every device.

7. DraftKey: finish the sentences you keep abandoning

DraftKey rewrite preview on a Mac, showing a suggested rewrite to review before inserting

The spec usually dies halfway through the acceptance criteria, when the sentences stop coming. DraftKey suggests the next words as you type and you press Tab to accept, and it can rewrite a messy paragraph into a version you review before inserting. It's $4.99 once for up to 3 Macs with 500 free words per Mac, and needs an Apple Silicon Mac on macOS 14 or later with 8 GB of RAM. The download is about 1.12 GB.

Hand it off

8. Claude Code plan mode: make the agent read the spec before it touches a file

Last step: give the spec to the agent, but don't let it edit yet. In Claude Code, plan mode has Claude read files and propose a plan without making changes until you approve. Press Shift+Tab until the status bar shows plan mode on, or start with claude --permission-mode plan. If the plan doesn't match your spec, the spec was unclear, and that's a cheap place to find out.

The short version

  • Dictate the ramble: Wispr Flow
  • Sketch the flow: Excalidraw
  • Structure it: Spec Kit or Kiro
  • Keep shared context out of every prompt: AGENTS.md
  • Store it: Obsidian
  • Finish the sentences: DraftKey
  • Check the agent understood: Claude Code plan mode

Do you write a spec before handing work to an agent, or do you go straight to the prompt and fix it in review?

Top comments (0)