Overview
Prompts are reusable workflow templates stored in.drevon/prompts/. They provide structured, step-by-step guidance for common development tasks like code review, debugging, and feature implementation.
How Prompts Work
Prompts are markdown files with YAML frontmatter. When prompts are enabled, agents are informed about available prompts and can reference them when a matching task arises.Starter Prompts
When you rundrevon init and opt into starter prompts, you get 5 production-ready templates:
Code Review
Code Review
A 7-section code review checklist:
- Understanding — Read and understand the code’s purpose
- Correctness — Verify logic and edge cases
- Security — Check for vulnerabilities
- Performance — Identify bottlenecks
- Readability — Assess code clarity
- Testing — Evaluate test coverage
- Documentation — Check docs and comments
Debug
Debug
A 7-step debugging workflow:
- Reproduce — Confirm the exact issue
- Isolate — Narrow down the cause
- Understand — Analyze the root cause
- Hypothesize — Form a theory
- Fix — Implement the solution
- Verify — Confirm the fix works
- Document — Record the issue and fix
New Feature
New Feature
A 7-step feature implementation workflow:
- Requirements — Clarify what needs to be built
- Design — Plan the architecture
- Plan — Break into tasks
- Implement — Write the code
- Test — Verify correctness
- Review — Self-review before submission
- Document — Update docs and changelog
Refactor
Refactor
A 7-step safe refactoring methodology:
- Identify — Find the code smell or issue
- Safety Net — Ensure tests exist
- Plan — Define the refactoring strategy
- Execute Incrementally — Small, testable steps
- Common Refactors — Pattern-specific guidance
- Verify — Run tests after each step
- Document — Record what changed and why
Write Tests
Write Tests
A 7-section test writing methodology:
- Identify — What needs tests
- AAA Structure — Arrange, Act, Assert pattern
- Happy Path — Standard use cases
- Edge Cases — Boundary conditions
- Error Paths — Failure scenarios
- Organization — Test structure and naming
- Avoid Mistakes — Common testing anti-patterns
Creating Custom Prompts
Via CLI
.drevon/prompts/my-workflow.md:
Manual Creation
Create any.md file in .drevon/prompts/:
Listing Prompts
Prompt Index
Drevon auto-generates a.drevon/prompts/_index.md file — a table of contents linking to all available prompts with their titles and descriptions. This index is regenerated whenever you create or delete prompts.
Self-Evolution Through Prompts
One of Drevon’s key principles is self-evolution: agents are instructed to create new prompts when they notice they’re performing the same multi-step workflow repeatedly. For example, if you frequently ask an agent to set up a new React component with tests and Storybook, the agent should eventually create anew-component.md prompt that captures that workflow — making future instances faster and more consistent.