How to read these recipes
Each recipe includes:- When to use it: what task this solves.
- Steps: with example prompts.
- Context notes: what Ona sees automatically vs what you should provide.
- Verification: how to check the output.
Explore a codebase
Use this when you are onboarding, inheriting a service, or trying to understand a request flow. Steps:- Open a new environment for the repository.
- Prompt Ona with the area you want to understand:
- Follow up with specific questions:
- Ona reads your AGENTS.md and codebase automatically.
- For large monorepos, point Ona at the relevant directory: “Focus on the
backend/auth/directory.”
- Ask Ona to produce a checklist or diagram you can validate against the code.
Fix a bug
Use this when you have a failing behavior you can reproduce. Steps:- Give Ona a reproduction recipe and the files you suspect:
- You provide: repro steps and constraints. These matter more than a high-level description.
- Ona provides: command output, discovered call sites, and any stack traces it triggers.
- Ask Ona to re-run the repro steps after the fix:
Write tests
Use this when you want to add test coverage for existing code. Steps:- Point Ona at the function or module:
- Ona reads existing test files to match conventions (test framework, assertion style, file naming).
- For table-driven tests, mention the pattern: “Use the same table-driven pattern as the other tests in this package.”
- Ask Ona to run the tests and report results:
Prototype from a screenshot
Use this when you have a design mock or UI reference and want a working prototype. Steps:- Attach the image by dropping it into the prompt box or pasting from clipboard.
- Provide constraints and structure:
- The image provides visual requirements, but you still need to specify implementation constraints (framework, routing, component style).
- For non-obvious behavior, describe it in text: hover states, validation rules, keyboard interactions.
- Ask Ona to start a preview server:
Raise a pull request
Use this when you are done with changes and want to open a PR following your team’s conventions. Steps:- Encode your PR process in a
/create-prskill (see Skills). Or use a prompt directly:
- Ona reads your git config for username and branch naming.
- If your SCM is connected under Organization Settings > Integrations, Ona can open the PR directly.
- Check the PR on GitHub/GitLab. Verify the description, linked issues, and branch name match your conventions.
Review code
Use this when you want a second set of eyes before committing or creating a PR. Steps:- Ask Ona to review your changes:
- For PR reviews, point Ona at the PR:
- Ona reads the diff, existing tests, and AGENTS.md for project conventions.
- For focused reviews, specify the area: “Focus on the database migration changes.”
- Apply fixes based on review feedback, then ask for a follow-up review to confirm issues are resolved.
Encode a reviewer’s style
Use this when you want to capture a specific engineer’s review approach and make it available to the team. Steps:- Make sure your SCM is connected under Organization Settings > Integrations.
- Run this meta-prompt, replacing
[REVIEWER_NAME]with the person’s name:
- Save the generated prompt as a
/review-like-[name]skill under Settings > Agents.
- This requires SCM integration so Ona can read the reviewer’s past PR comments.
- The generated prompt works best when the reviewer has at least 10-15 reviews in the last 30 days.
- Run the new skill on a recent PR and compare its feedback to what the reviewer would actually say.
Generate a weekly digest
Use this when you want a summary of your team’s engineering activity. Steps:- Run this prompt at the end of each week (or set it up as an automation):
- Ona reads git history and PR metadata from your connected SCM.
- For monorepos, scope the digest: “Focus on the
backend/directory.”
- Spot-check a few entries against the actual PRs merged that week.
Measure agent adoption
Use this when you want to track how much of your codebase is being written with agent assistance. Steps:- Run this prompt:
- Ona marks itself as a co-author on commits it contributes to. This prompt counts those co-authored commits.
- Cross-check a few commits manually with
git log --format="%H %s" --grep="Co-authored-by: Ona".
Compare before vs after
Use this for design work and fine adjustments where you want a visual comparison of your changes. Steps:- Make your changes first, then ask Ona to generate a comparison page:
- Ona needs access to both the old and new state. If you haven’t committed the old state, Ona can use git diff to reconstruct it.
- Open the preview URL on both desktop and mobile to verify the comparison renders correctly.