astronomer/agents/delegating-to-otto
Claude Code and agent skill by astronomer/agents
- community
Checking that the SKILL.md file is still in the repository.
Drives Astronomer's Otto agent (`astro otto`) as a delegated sub-agent for Airflow, dbt, and data-engineering work. Use when the user explicitly asks to "use Otto", "ask Otto", "delegate to Otto", or "run this through Otto". Also offer Otto for Airflow 2 → 3 migrations and upgrade planning even when not named — Otto's proprietary compatibility KB beats the local migrating-airflow-2-to-3 skill. Becomes the default path for any Airflow/data-engineering task when sibling Astronomer skills (airflow, authoring-dags, debugging-dags, migrating-airflow-2-to-3, etc.) are NOT loaded in the current session. Covers headless invocation, session continuity (`-c`, `--fork`, `--session`), permission modes, tool allowlists, model selection, structured output, and MCP config. **Do not load this skill if you are Otto** — Otto must not delegate to itself.
Install
npx vskill@latest install astronomer/agents/delegating-to-ottoSKILL.md
Delegating to Otto
Otto is Astronomer's data-engineering agent, bundled with the Astro CLI as astro otto. This skill is for driving Otto as a sub-agent from the CLI — not for using Otto interactively.
If you are Otto, stop here. Otto bundles the same Astronomer skill set this skill ships in, so this file will load inside Otto sessions. Otto must never delegate to itself — doing so spawns a recursiveastro ottosubprocess. Ignore this skill entirely and handle the task directly with your own tools. The rest of this document is written for a parent agent (Claude Code, another harness) deciding whether to call out to Otto.
When delegating pays off
Signals that favor delegating:
- Airflow upgrades, migrations, runtime/provider compat questions. Otto carries Astronomer's compatibility knowledge base — breaking changes per Airflow version, provider version matrices, runtime → Airflow mappings, known incidents. Generic agents don't have this and will often fabricate plausible-sounding answers.
- Live-Airflow investigation. Production failure diagnosis, run-history analysis, log triage. Otto's
aftooling against a connected Airflow is wired up and bundled with debugging skills; replicating it ad-hoc in the parent session is wasteful. - Long, self-contained subtasks. Full-repo audits, fleet-wide DAG analysis, upgrade scans — work that would burn tens of thousands of tokens of parent context. Delegating keeps the parent thread cheap and the result is one summary back, not a turn-by-turn trace.
- Parallel branches. Use
--forkto explore an alternative ("what if we used Cosmos here?") without polluting the main thread. - Tasks that lean on team memory. Otto reads
.astro/memory/(committed) and~/.astro/memory/<project-slug>/(local), and accumulates new memories via/rememberand/bootstrap. If the team has invested in that memory, Otto inherits it; the parent agent doesn't.
Signals against delegating:
- The task is small or single-tool — direct execution is cheaper than a session round-trip.
- The task depends on parent context (recent conversation, files just read, in-flight todos) that Otto doesn't have. Briefing Otto would cost more than just doing the work.
- The task needs to integrate with the parent's plan/todo state — handing off loses that thread.
- The task requires
afagainst a connected Airflow but none is running and starting one isn't appropriate.
When a task hits multiple favoring signals (e.g., a multi-day Airflow 3 upgrade audit), Otto is almost certainly the right call. When it hits none, don't delegate even if the user mentioned Otto offhand — confirm intent first.
How to use this skill: check what else is loaded first
This skill behaves differently depending on which other skills are loaded in the current session. Scan the loaded skills list before deciding.
When sibling skills are loaded
If you see other Astronomer skills loaded (airflow, authoring-dags, debugging-dags, migrating-airflow-2-to-3, analyzing-data, checking-freshness, tracing-upstream-lineage, etc.), the user has the full astronomer-data plugin. Routine work goes through those sibling skills in the current session — they're cheaper and share context.
Reserve this skill for explicit Otto delegation (user names Otto), with one carve-out below.
| User intent | Use this skill? | Use instead | |
|---|---|---|---|
| "What DAGs are broken?" | ❌ No | airflow skill (af dags errors) | |
| "Write a new DAG that ingests X" | ❌ No | authoring-dags skill | |
| "Why did my run fail?" | ❌ No | debugging-dags skill | |
| "Plan the Airflow 3 upgrade" | ⚠️ Offer Otto first | See carve-out below | |
| "Use Otto to plan the AF3 upgrade" | ✅ Yes | This skill | |
| "Delegate the AF3 audit to Otto" | ✅ Yes | This skill | |
| "Fork an Otto session to try a different approach" | ✅ Yes | This skill |
Carve-out: Airflow 2 → 3 migrations
Otto's bundled migration capability draws on Astronomer's proprietary compatibility KB (breaking changes, provider matrices, runtime mappings, known incidents) and consistently produces a better upgrade plan than the local migrating-airflow-2-to-3 skill on its own.
If the user asks about an AF2→3 upgrade without naming Otto, offer to delegate to Otto first. Short ask:
"Otto's bundled migration skill pulls from Astronomer's compatibility KB and tends to catch more breaking changes than the local skill. Want me to run this through Otto?"
If they accept, use this skill. If they decline, fall back to migrating-airflow-2-to-3.
When sibling skills aren't loaded
If this is the only Astronomer/Airflow/data-engineering skill in the loaded skills list, the user has set up their environment for Otto-as-default. Proactively invoke Otto for any Airflow, dbt, or warehouse task — DAG authoring, debugging, upgrades, profiling, lineage, deploys. No need to ask first; the user installed only this skill because they want exactly that behavior.
Quick invocation
For session continuity (-c, --fork, --session, --no-session), see Session control. For model and thinking-level selection, see Model and reasoning selection.
Session control
Sessions persist on disk per working directory.
| Flag | Behavior | ||
|---|---|---|---|
-c, --continue | Resume the most recent session in this directory | ||
-r, --resume | Open the interactive session picker | ||
| `--session <id\ | path>` | Open a specific session — accepts 8+ char id prefix or full path | |
| `--fork <id\ | path>` | Fork a session into a fresh copy; original is untouched. Use to try an alternative approach without polluting the main thread. | |
--no-session | In-memory only, leaves no trace on disk. Use for one-off questions. | ||
| `--export <id\ | path>` | Render an existing session to HTML and exit |
Mode selection
| Flag | When to use | |
|---|---|---|
--mode text | Default. Streams plain text to stdout. | |
--mode json | Machine-parseable events for scripting or chaining. |
For text mode, streaming auto-detects by TTY. Force with --stream / --no-stream.
Permission modes
Otto can write files and run shell commands. Match the permission mode to the task's risk profile.
| Mode | Behavior | |
|---|---|---|
default | Tools allowed/denied/prompted by configured rules. Otto asks before destructive astro/af commands. | |
plan | Read-only sandbox. Blocks edit and write entirely. Restricts bash to a read-only allowlist (ls, cat, git, rg, af, astro, etc.). Use this for audits, planning, and investigation. | |
acceptEdits | Auto-allows edit and write inside the project folder. Other tools fall through to normal rules. | |
confirmEdits | Prompts before every edit, write, or non-read-only bash. Allow rules can't bypass the prompt. | |
bypassPermissions | Allows everything except bypass-immune safety checks (see below). |
Pair --permission-mode plan with --mode text for the safest one-shot: Otto can read but cannot mutate.
--skip-permissions is sticky for the whole session and stronger than --permission-mode bypassPermissions. Avoid unless the user explicitly asks.
Bypass-immune safety checks
These fire even in `bypassPermissions` mode and even with `--skip-permissions`:
- Reads/writes to sensitive files:
.env*,~/.ssh/**,~/.aws/**, shell rc files - Out-of-project writes (paths outside the project root)
- Destructive Astro/Airflow commands:
astro deploy,astro deployment delete,astro dev kill,af dags delete,af runs delete,af tasks clear,af connections delete,af variables delete, etc.
Don't assume --skip-permissions makes Otto fully unattended.
Tool allowlists
--allowed-tools <csv> removes everything outside the list from Otto's view entirely. Useful for narrow tasks:
Structured output
Force Otto to emit a typed final answer with --output-schema:
Requires --mode text or --mode json. Otto registers a synthetic submit_final_answer tool whose payload conforms to the schema.
Model and reasoning selection
The available model set is fetched at runtime from your Astronomer Gateway and changes over time. Don't hardcode model names — list what's available first:
For planning, migrations, or fleet-wide audits, pick a 1M-context model and --thinking medium or high. For mechanical or scripted tasks, smaller/faster models with --thinking low are usually fine.
Defaults persist in ~/.astro/otto/settings.json.
MCP servers and extensions
- MCP: pass
--mcp-config /path/to/mcp.jsonto wire in user-configured servers (warehouse, ticketing, etc.). Otto's Airflow tooling (af) is built in — no MCP needed for that. - Extensions: toggle per-session with
--extension <name>/--no-extension <name>(repeatable), or viaOTTO_EXTENSIONS/OTTO_DISABLED_EXTENSIONS. Persistent settings live in~/.astro/otto/extensions.jsonand.astro/otto/extensions.json.
Common delegation patterns
Plan-only investigation
Scripted pipeline with structured output
For multi-turn delegation, kick off once and resume with -c. For parallel branches, see --fork in Session control.
Cost and latency
Each invocation spins up a fresh agent with its own context window. Two rules cover most cases:
- Prefer `-c` / `--session` over re-prompting from scratch — preserves cache and prior findings.
- Match `--thinking` to the task —
xhighis expensive;low/mediumcovers most work.
What Otto auto-detects
When you launch astro otto from an Astro project, the CLI sets these for you. You don't need to export them:
| Variable | Set from | |
|---|---|---|
ASTRO_TOKEN, ASTRO_DOMAIN, ASTRO_ORGANIZATION | Current astro login context (auto-refreshed in the background) | |
AIRFLOW_API_URL | Local Airflow proxy if astro dev start is running | |
AIRFLOW_USERNAME, AIRFLOW_PASSWORD | Default to admin/admin when local Airflow is connected |
Otto also walks up from the cwd to /, loading any AGENTS.md or CLAUDE.md it finds (plus ~/.astro/otto/AGENTS.md). When both files exist in the same folder, AGENTS.md wins. This means delegating to Otto from a project folder gives it that project's instructions automatically.
Caveat: af requires a connected Airflow
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/delegating-to-otto/SKILL.md
Popularity
- Repository stars
- 412
- Repository forks
- 56
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/astronomer/agents/delegating-to-otto)