Retext
AiderCopilotFor Designers

Aider Prompts for Designers

Designers need help writing UX copy, planning user research, summarizing interview notes, documenting design system components, and writing clear handoff specs for engineers. These Aider prompts start from that: fill in your situation once and reuse it. The worked example below is a code review task, one of the most common for designers.

Installs as a snippet — type ;designer-aider to paste this prompt anywhere on your Mac.
Prompt Template
I'm a designer and need help with [task, e.g. ui mockups and prototypes].

What I have:
- [the material involved: code, draft, notes or data]

What a good result looks like:
- [the outcome and its format]

Ask me one clarifying question if something important is missing, then give the result.

About my work
- Product and user: [e.g. scheduling app for clinic front-desk staff]
- Screen or flow: [e.g. rescheduling an appointment on mobile]
- Design system and constraints: [e.g. our button and form components, WCAG AA]

Context
- Files involved: [list the files, or reference them in the chat]
- How I build and test: [e.g. npm test]

How to use this prompt

  1. 1

    Open Aider

    Start aider in your repository and paste the prompt at the aider prompt.

  2. 2

    Give it context

    Add the files it should edit with /add before you send the prompt. Aider only edits files you have added.

  3. 3

    Review and iterate

    Aider commits each change to git, so review with git diff and use /undo if a change is wrong.

Working in Aider

  • •Only /add the files that need changes. Extra files cost context and invite unrelated edits.
  • •Because every change is a git commit, you can keep requests small and roll back cheaply.
  • •Paste test output or error messages directly; aider works well in a fix, run, paste-error loop.

Example task: Code Review

What you give it

Language: JavaScript, Node 20
What it does: returns the names for a list of user IDs.
Focus: correctness.

async function getUserNames(ids) {
  const names = [];
  ids.forEach(async (id) => {
    const user = await db.users.find(id);
    names.push(user.name);
  });
  return names;
}

What a good answer looks like (shortened)

Critical
- forEach does not wait for async callbacks, so the function returns an empty array before any lookup finishes. Use Promise.all:

async function getUserNames(ids) {
  const users = await Promise.all(ids.map((id) => db.users.find(id)));
  return users.map((user) => user.name);
}

Should fix
- If an ID does not exist, db.users.find likely returns null and user.name throws. Decide whether to skip missing users (users.filter(Boolean)) or raise a clear error.

Optional
- Promise.all fires every query at once. For very large ID lists, a single query by ID list would be cheaper.

Verdict: needs rework.

Tips for better results

  • •Describe the screen state by state (empty, loading, error, success) when asking for UX copy or specs. It forces the edge cases that handoffs usually miss.
  • •Add the files it should edit with /add before you send the prompt. Aider only edits files you have added.
  • •Check this before you use the output: check that research summaries reflect what participants actually said, not patterns the AI expected, by going back to the raw notes for any key finding.

Check before you use it: Check that research summaries reflect what participants actually said, not patterns the AI expected, by going back to the raw notes for any key finding.

Get the free prompt pack

Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.

Variations

Task

Code Review: Replace the first line with: Review the code below like a senior engineer on my team would.

Pull request review

Replace the Code section with: ## Diff [paste the git diff] and add: Only comment on lines added or changed in this diff.

Second task

Change the task line to: [Design system maintenance].

Save it as a Retext snippet

Retext is a free text expander for Mac. Save this prompt once, then type ;designer-aider in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.

  1. Click Add to Retext. The prompt installs as a snippet with the trigger ;designer-aider.
  2. Change the trigger in Retext if you prefer a different one.
  3. Type the trigger wherever you want the prompt, then fill in the brackets.

Frequently asked questions

Can AI help with accessibility reviews?

It can check copy, heading order, labels and color contrast values you give it, and list common issues to test. You still need to test with a screen reader and keyboard, since it cannot see your actual interface.

Why didn't aider change the file I meant?

Aider edits only files added to the chat. Run /add with that file, then resend the prompt.

How do I undo a bad edit?

Use /undo in aider to revert its last commit, or use git as usual, since each change is committed.

How do I reuse this prompt without copying it every time?

Click Add to Retext to save it as a snippet. Then type ;designer-aider in any Mac app, including your AI tool, and the full prompt is pasted in.

Related Templates

Get the free prompt pack

Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.