Roo Code Power Usage Overview

Mar 31, 2025

Speed-run of the high-impact Roo Code power user techniques. Update 2025-04-15: see my podcast for more depth.

1. Rewire your habits around prompts and context

Liberal use of @. Foundational - do this always.

2. Architect/Edit Workflow

Structured approach = faster/better results.

  1. Switch to Architect Mode.
  2. Prompt: Outline the components and data flow for a new user authentication feature using React and Firebase Auth. Consider registration, login, and password reset. Include relevant existing files like @src/config/firebase.js. (Let it create authPlan.md).
  3. Review/Refine authPlan.md with Architect.
  4. Switch to Code Mode.
  5. Prompt: Implement the registration component outlined in @authPlan.md using React functional components and hooks. Store user data in Firestore as defined.

3. MCP Servers

Practical value, extend Roo's reach. MCP servers let Roo Code interact with anything outside your VS Code files and terminal, acting like pre-built plugins or integrations. They standardize how the AI uses external tools, so you don't have to write complex API call logic in your prompts.

Finding/Configuring:

  1. Find Servers: Main list of servers here. There are also websites, though I'm not sure which are "canonical" yet.
  2. Configure in Roo Code: Settings -> MCP Servers -> Edit MCP Settings (mcp_settings.json). Follow the MCP's README for what to paste here, pointing to the command that runs it. Roo Code 3.11+ allows project-level MCP config too (stored in project settings), keeping things tidy.
  3. Prompt: Use the use_mcp_tool command as shown in the examples, specifying the server name and the tool/arguments it provides.

4. Create Custom Modes

Specialized agents.

  1. Prompt (Code or Architect Mode): Create a new custom mode named 'UnitTestWriter'. It should be an expert in Jest and React Testing Library, focused solely on writing comprehensive unit tests for React components. It should only have permission to read files and edit files ending in .test.js or .spec.js.
  2. Roo Code will generate a mode definition (likely in a .roomodes file). Review/tweak it in Settings -> Prompts if needed.
  3. Switch to 'UnitTestWriter' Mode.
  4. Prompt: @src/components/UserProfile.jsx Write comprehensive unit tests for this component using Jest and React Testing Library. Cover props rendering and basic interactions.

5. Use RooFlow for Persistent Memory

Stop repeating yourself, maintain context.

6. Boomerang Tasks

Automated orchestration. Delegate & conquer.


I have a 3-part podcast on these topics here:

CTA

Long coding sessions lead to physical fatigue and mental fog. A walking desk keeps you alert and focused, preventing costly bugs and burnout.Stay focused and healthy during long coding sessions.Get the factsGet the facts

Comments temporarily disabled because Disqus started showing ads (and rough ones). I'll have to migrate the commenting system.