Skip to main content
Ona works best when you treat it like a teammate with explicit context and a clear definition of “done.” This page gives end-to-end recipes for common tasks. If you are new to Ona, read Best practices first, then come back here for concrete recipes.

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:
  1. Open a new environment for the repository.
  2. Prompt Ona with the area you want to understand:
  1. Follow up with specific questions:
Context notes:
  • Ona reads your AGENTS.md and codebase automatically.
  • For large monorepos, point Ona at the relevant directory: “Focus on the backend/auth/ directory.”
Verification:
  • 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:
  1. Give Ona a reproduction recipe and the files you suspect:
Context notes:
  • 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.
Verification:
  • 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:
  1. Point Ona at the function or module:
Context notes:
  • 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.”
Verification:
  • 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:
  1. Attach the image by dropping it into the prompt box or pasting from clipboard.
  2. Provide constraints and structure:
Context notes:
  • 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.
Verification:
  • 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:
  1. Encode your PR process in a /create-pr skill (see Skills). Or use a prompt directly:
Context notes:
  • 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.
Verification:
  • 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:
  1. Ask Ona to review your changes:
  1. For PR reviews, point Ona at the PR:
Context notes:
  • Ona reads the diff, existing tests, and AGENTS.md for project conventions.
  • For focused reviews, specify the area: “Focus on the database migration changes.”
Verification:
  • 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:
  1. Make sure your SCM is connected under Organization Settings > Integrations.
  2. Run this meta-prompt, replacing [REVIEWER_NAME] with the person’s name:
  1. Save the generated prompt as a /review-like-[name] skill under Settings > Agents > Skills.
Context notes:
  • 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.
Verification:
  • 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:
  1. Run this prompt at the end of each week (or set it up as an automation):
Context notes:
  • Ona reads git history and PR metadata from your connected SCM.
  • For monorepos, scope the digest: “Focus on the backend/ directory.”
Verification:
  • 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:
  1. Run this prompt:
Context notes:
  • Ona marks itself as a co-author on commits it contributes to. This prompt counts those co-authored commits.
Verification:
  • 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:
  1. Make your changes first, then ask Ona to generate a comparison page:
Context notes:
  • 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.
Verification:
  • Open the preview URL on both desktop and mobile to verify the comparison renders correctly.