Common Workflows¶
Step-by-step patterns for everyday tasks with Ourogen's CLI.
Explore an unfamiliar codebase¶
anote explain # generate a CODEBASE.md tour
anote explain src/auth.ts "how does this work?"
anote index && anote search "JWT validation"
explain with no arguments writes a CODEBASE.md overview of the whole repo. Point it at a file or ask a specific question to go deeper.
Fix a bug¶
anote fix --error "TypeError: cannot read property 'id' of undefined"
anote fix src/handler.ts "the webhook handler drops events under load"
anote fix --loop --cmd "npm test" # keep iterating until tests pass
Write and commit¶
anote generate "a rate limiter middleware for Express" -o src/middleware/rateLimit.ts
anote test src/middleware/rateLimit.ts --write
anote commit # AI-generated commit message
Review before you push¶
anote diff --staged # review staged changes
anote review --pr 42 # or review an open GitHub PR
anote security --severity high # OWASP Top 10 audit
Open a pull request¶
Refactor safely¶
anote refactor src/legacy.ts "extract the validation logic into its own function" --dry-run
anote refactor src/legacy.ts "extract the validation logic into its own function" --auto
Always try --dry-run first on anything you haven't reviewed yet.
Keep working while you do something else¶
Document as you go¶
Next steps¶
- Prompt library — copy-paste starting points
- CLI Commands — full flag reference