Cursor Playbook

Cursor pairs an AI assistant with your IDE. Use this guide to connect the toolkit files and mirror Claude workflows inside Cursor.

Prepare Cursor for the toolkit

  1. Open the repository in Cursor, confirm AI-toolkit/ is visible in the file tree, and grant the assistant access to that folder.
  2. Copy required agents/prompts/commands into .claude/ so Cursor and Claude point to the same files.
  3. Pin claude.md, your session summary log, and your most-used agent/prompt files to the left sidebar for one-click referencing.
  4. Run /init (or your stored “boot” snippet) so the assistant reads the current session, plan, and guardrails.
  5. Install Cursor extensions you rely on (Git UI, testing panels, design previews) to complement the AI-driven workflow.
Cursor supports multiple projects—keep a dedicated “AI Toolkit” workspace open so you can drag plans/agents into any active repo.

File placement & context sync

Working with agents inside Cursor

ActionHowPro tip
Inject agentType @agent-name.md in chatPreface with the current plan or session link for richer answers.
Open instructionsCtrl/Cmd+P → search the agent file → adjust parametersPin the file to keep it one click away.
Follow a planAsk “Follow the steps from tech-lead-orchestrator.mdCursor will chunk instructions into actionable tasks.
Batch runCreate command palette macros with multiple agents/promptsGreat for multi-stage workflows (plan → specialist → review).

Prompt-driven development

Plan

Type @plan_feature.md, paste the story, acceptance criteria, design links, and ask Cursor to annotate affected files.

Review

Type @code_review.md, attach a git diff, and request severity tags plus missing tests.

Docs

Type @write_docs.md, supply plan + review output, and specify the audience (README, changelog, runbook).

Brief

Use @create_brief.md to capture stakeholders and success metrics before kicking off a new effort.

Coordinate multi-agent runs

  1. Map the chain: Run @plan_feature.md followed by tech-lead-orchestrator.md so the chat contains a sequenced agent plan with expected deliverables.
  2. Confirm roles: Feed that plan into @team-configurator.md to lock in ownership, escalation rules, and success criteria; pin the output for quick reference.
  3. Drive the sequence: Before invoking each specialist, paste the prior agent’s summary (or handoff note) so Cursor keeps the entire context in-line.
  4. Agent-controlled delegation: When an agent needs to brief the next, ask it to run @session-closer.md (or generate a handoff paragraph) that lists TODOs, blockers, and artefacts for the successor.
  5. Quality sweep: After the chain finishes, run @reliability-commander.md, @testing-expert.md, and @brutal-critic.md; record the results in /project:session-update before committing code.
Maintain an “agent stack” snippet in the thread so new contributors know which agent ran last and who is next in line.

Sample scenario: implementing a feature flag rollout

  1. Prompt the brief: Start a new chat thread, run @create_brief.md to capture business goals, then @plan_feature.md to outline backend + frontend steps. Copy the outputs into the Claude session log.
  2. Multi-agent plan: Invoke tech-lead-orchestrator.md to define the sequence (backend-developer → react-component-architect → testing-expert) and lock assignments with @team-configurator.md.
  3. Execution in Cursor: Call @backend-developer.md to add flag evaluation code, run recommended tests in the terminal, then switch threads and use @react-component-architect.md for UI toggles. Each agent emits a handoff note via @session-closer.md.
  4. Session tracking: After each milestone, paste terminal output plus the agent handoff into /project:session-update so Claude, Gemini, and Codex stay in sync.
  5. Review & release: Conclude with @code_review.md, @testing-expert.md, and @write_docs.md. Export the Cursor transcript and attach it to your session insights archive.
Use the Git panel to stage only the files mentioned in each agent handoff—this keeps diffs small and matches the orchestrator’s plan.

Full multi-agent example (Cursor)

This walkthrough shows every chat message, agent invocation, and session update needed to deliver a “payment receipt email” feature entirely within Cursor.

  1. Open a fresh thread and send:
    Command + Enter@create_brief.md
    // paste ticket description + stakeholders
  2. Generate the build plan:
    @plan_feature.md
    // include acceptance criteria + file list
  3. Draft orchestration:
    @tech-lead-orchestrator.md
    // ask for ordered phases + recommended agents + artefacts
  4. Lock ownership:
    @team-configurator.md
    // “Backend: Alice, Frontend: Bob, QA: Chen. Escalate to Dana.”
  5. Backend agent run:
    @backend-developer.md
    // provide orchestrator phase 1 summary
    Cursor returns patch instructions. Apply edits, run tests:
    npm run test:backend
    Paste command output back into chat.
  6. Agent-controlled handoff: ask Cursor “Summarise the backend changes as a handoff note” or run:
    @session-closer.md
    Keep the generated note open.
  7. Frontend agent run: Start a new message:
    @react-component-architect.md
    // include handoff note + relevant file list
    Follow the returned instructions, run frontend tests:
    npm run test:ui
    Paste logs into chat.
  8. Quality sweep via agents:
    @testing-expert.md
    // request additional coverage ideas
    @brutal-critic.md
    // supply git diff for qualitative review
  9. Documentation prompt:
    @write_docs.md
    // feed plan output + testing results + git log
  10. Session logging: copy the latest Claude log into Cursor, request “Summarise today’s work”, then paste the summary, command outputs, and agent URLs into /project:session-update within Claude.
  11. Finalise: trigger /project:session-end in Claude, attach the exported Cursor transcript, and stage/commit using Cursor’s Git panel.
Keep each chat message prefixed with // comments to indicate context (plan, handoff, logs). This makes the transcript self-documenting when you archive it.

Workflow patterns

  1. Kickoff: Import the latest Claude session, run @plan_feature.md, and pin the plan to the top of the chat.
  2. Implementation: Use Cursor’s inline edit suggestions plus the terminal to run tests/formatters. Stage changes with the Git panel.
  3. Legacy work: Ask Cursor to summarise history using session-restorer.md, then follow code-refactorer.md for safe sequencing.
  4. Frontend & design: Combine frontend-designer.md with live preview (Storybook/Vite) to tighten the design loop.
  5. Wrap-up: Paste results into /project:session-update, generate docs, and trigger session-closer.md.

Discipline-specific tips

Mirror session logs

  1. Copy the latest /project:session-update from Claude and paste it into Cursor for shared context.
  2. After Cursor suggests changes, update the Claude log with decisions, command outputs, and next steps.
  3. Archive significant Cursor chats in your session insights folder or ticketing system for future reference.
Keep a dedicated “Cursor summary” section in each session log so teammates know what was accomplished in the IDE.

Integrations and tools

Best practices