Speed-run of the high-impact Roo Code power user techniques.
Liberal use of @
. Foundational - do this always.
fix this function
Refactor the @calculateTotal function in @src/utils/cart.js to improve readability and handle potential null values for item prices. Ensure it still returns the correct total.
@
to include files, folders, URLs, or even @git-changes
. Use the "Enhance Prompt" ✨ button (but review it!) for inspiration.Structured approach = faster/better results.
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
).authPlan.md
with Architect.Implement the registration component outlined in @authPlan.md using React functional components and hooks. Store user data in Firestore as defined.
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.
Using the 'db' MCP, query the 'users' table for users created this week and summarize their roles.
Using the 'aws' MCP, list all S3 buckets in the 'us-east-1' region.
Using the 'webscrape' MCP, extract all H2 headings from example.com.
Finding/Configuring:
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.use_mcp_tool
command as shown in the examples, specifying the server name and the tool/arguments it provides.Specialized agents.
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.
.roomodes
file). Review/tweak it in Settings -> Prompts if needed.@src/components/UserProfile.jsx Write comprehensive unit tests for this component using Jest and React Testing Library. Cover props rendering and basic interactions.
Stop repeating yourself, maintain context.
.roomodes
, .rooignore
, .roo/system-prompt-*
) and a memory-bank/
directory with context files (activeContext.md
, productContext.md
, etc.) to keep specialized modes (Architect, Code, Debug, Test) consistently informed about project goals, progress, and decisions across sessions. This is a more integrated evolution of earlier "Memory Bank" concepts..roomodes
, .rooignore
, files inside .roo/
) into your project root. Run any provided configuration scripts (e.g., insert-variables.sh/cmd
) if needed.memory-bank/
directory and its files when prompted.memory-bank/*.md
files, keeping context persistent. You can occasionally prompt specific updates like Update the memory bank with the new API endpoint decisions.
Automated orchestration. Delegate & conquer.
.roomodes
) breaks down a complex task and uses the new_task
command to delegate sub-tasks to other specialized modes (which could be built-in like 'Code' or custom ones like 'UnitTestWriter' or modes included in the Boomerang/SPARC pack itself). When a sub-task finishes (often by calling attempt_completion
), it "boomerangs" a summary back to the calling Orchestrator task, which then decides the next step.Implement a user login system based on the requirements in @loginSpec.md.
new_task
to call other modes for each step. You'll likely see new tasks appear in Roo Code. Review the plan/output of each sub-task and approve its completion (attempt_completion
) for the process to continue. The Orchestrator manages the flow based on the returned summaries. (Note: you can allow auto-approval of sub-tasks, use with caution).