Skip to main content
Droid works best with clear, specific instructions. Like pairing with a skilled engineer, the quality of your communication directly affects the results. This guide shows practical patterns that get better outcomes with fewer iterations.

Core principles

Be explicit about what you want. Instead of “can you improve the auth system?” try “add rate limiting to login attempts with exponential backoff following the pattern in middleware/rateLimit.ts.” Droid performs best when you clearly state your goal. Provide context upfront. Include error messages, file paths, screenshots, or relevant documentation. If you’re implementing something from a Jira ticket or design doc, paste the link—droid can automatically read context from platforms you’ve integrated in Factory’s dashboard. Choose your approach. For complex features, consider using Specification Mode for automatic planning. For routine tasks, droid can proceed directly while still showing you all changes for review. See the Planning versus doing section for detailed guidance. Define success. Tell droid how to verify the work is complete—run specific tests, check that a service starts cleanly, or confirm a UI matches a mockup.

Writing effective prompts

The best prompts are direct and include relevant details:
Notice these examples:
  • State the goal clearly in the first sentence
  • Include specific files or commands when known
  • Mention related code that might help
  • Explain how to test the result
  • Keep it conversational but direct

Planning versus doing

For complex features, use Specification Mode which automatically provides planning and review before implementation:
For straightforward tasks, droid can proceed directly while still showing you changes for approval:

Managing context

Use AGENTS.md files to document build commands, testing procedures, and coding standards. Droid reads these automatically, so you don’t have to repeat project conventions. See the AGENTS.md guide for detailed setup instructions. Mention specific files when you know where the code lives. Use @filename to reference files directly, or include file paths in your prompts. This focuses droid’s attention and saves time. Set boundaries for changes. “Only modify files in the auth directory” or “don’t change the public API” helps contain the scope. Reference external resources by including URLs to tickets, docs, designs, or specs. Droid can fetch and use this information.

Common workflows

Understanding code:
Implementing features:
Fixing bugs:
Code review:
Refactoring:

Enterprise integration

Reference your team’s tools by pasting links to tickets or documents:
If you’ve integrated these platforms in Factory’s dashboard, droid can automatically read context from Jira, Notion, Slack, and other sources. For additional tool connections, droid also supports MCP integrations. For security-sensitive work:

Session management

Start new conversations when context gets cluttered or when switching to unrelated tasks. Fresh context often works better than accumulated noise from failed attempts. For large projects, break work into phases:
Then in a follow-up:

Advanced techniques

Test-driven development:
Plan-driven development:

Examples of good prompts

Here are real examples that work well:

What doesn’t work well

Avoid vague requests:
  • “Make the app better” → too broad
  • “Fix the database” → not specific enough
  • “Can you help with the frontend?” → unclear goal
Don’t make droid guess:
  • If you know the file path, include it
  • If you know the command to run, mention it
  • If there’s related code, point to it

Getting better results

Treat droid like a capable teammate. Provide the same context and guidance you’d give a colleague working on the task. Be specific about quality standards and business requirements. Remember that droid learns your organization’s patterns over time. The more consistently you use it within your codebase, the better it becomes at following your conventions. Most importantly, review the changes droid proposes. You maintain full control through the approval workflow, so take time to understand modifications and provide feedback for better future results. Ready to try these patterns? Head back to the Quickstart and practice with your own code.