/maigo:airflow-awarefrom maigo
Loads Apache Airflow contributor conventions (AGENTS.md) for review, refactoring, or quick-fix tasks in the apache/airflow repo. Covers naming, Breeze/uv, Ruff/Mypy, pytest patterns, and PR hygiene.
Ships in maigo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Loaded by: repo-detect hook (SessionStart) when apache/airflow is detected in git remote or file structure.
Applies to: Any skill execution within an Apache Airflow contributor checkout — review, quick-fix, refactoring, or otherwise.
A knowledge layer, not a review checklist, loaded by the
repo_detect hook when an Apache Airflow repo is detected (or via a memory entry with
triggers: [airflow-aware], see Memory-triggered skill loading).
Once loaded, treat every convention as background — do not re-read each task.
Layering: this skill sits on the Python language layer — read
python-aware first; this skill lists only what is Airflow-specific.
Precedence: the repo's AGENTS.md / CLAUDE.md > this skill > python-aware. A rule that changes a python-aware default is marked Airflow override.
A condensed onramp, not a competing authority. Read AGENTS.md (or CLAUDE.md, identical) first; on conflict the repo file wins.
For review tasks also read .github/instructions/code-review.instructions.md.
DAG (code)In prose, write Dag (title case) — never all-caps DAG unless referring to the Python class, and never expand "Directed Acyclic Graph".
Code tokens stay as-is: class DAG, dag_id, airflow dags list, dag_processing/, DAG_FOLDER. See the "Naming" section of AGENTS.md.
The naming hook is a pure string match and false-positives on legitimate literals — classify each hit before "fixing" it (references/naming.md).
Never rewrite past entries in historical archival files (migrations-ref.rst, RELEASE_NOTES.rst / CHANGELOG.rst, provider changelog.rst); only new entries follow the rule.
Airflow override: do not run pytest, mypy, or pre-commit on the host — use Breeze or uv run --project <sub-project> (the monorepo isolates dependencies per sub-project).
uv run --project airflow-core pytest tests/unit/foo/test_bar.py
uv run --project airflow-core ruff format src/
prek run --all-files # prek, not pre-commit: the runner upstream specifies
--project at the worktree root (full-workspace resolve → jpype1 needs Java); a sub-project name is fine.providers/, to dodge an unrelated lychee failure — references/verification-tooling.md §1). Scratch scripts go in dev/.prek / pytest "Passed", local false reds, verify_completion / jpype1 handling, uv.lock rebase handling: references/verification-tooling.md.uv run tests need a per-worktree UV_PROJECT_ENVIRONMENT and LC_ALL=C.UTF-8 (a non-English locale turns cron-description tests red) — references/verification-tooling.md, "Host uv run tests".uv.lock diff you did not cause is usually drift on main — keep the re-lock out of a feature PR (references/review-checks.md, "uv.lock drift diagnostic").ruff / ruff-format / mypy-<project> by name on your changes first, then --no-verify; on a backport branch run both linters; a uv.lock diff that downgrades a package is a transitive-cap side effect — references/verification-tooling.md.Airflow override: line length 110 (not Ruff's 88 — agents most often miss this). New files need the Apache License header — copy it verbatim from an existing .py. Mypy runs via prek, not directly on the host.
raise AirflowException — use a more specific exception class.session must be keyword-only, and the callee must not call session.commit(); transaction management is the caller's job.references/code-style.md; general Python style (imports, validation, mypy, docstrings): python-aware's code-style.md. attrs eq/hash, serialize/decode, scoped-session gotchas: references/runtime-gotchas.md. General Python rules (no assert, time.monotonic(), import placement): python-aware.requires_typed_xcom) — references/test-cases.md. Reproducing a providers Compat job on an older Airflow locally: the breeze shell --mount-sources providers-and-tests route breaks — references/verification-tooling.md, "Reproducing a providers Compat job locally".providers/common/ai that importorskips openai-agents / strands-agents / google-adk / llama-index): the file must be covered by TEST_PATHS in scripts/in_container/run_agent_framework_tests.sh, or CI is green without it ever running — references/verification-tooling.md, "A new common.ai test file that needs an agent framework".provider.yaml module-section type trips a validator check — read the "New provider.yaml module section" recipe in references/registry-conventions.md first.A user-facing feature (new public class / SDK symbol / scheduling behaviour) ships all three in one PR: (1) implementation + tests; (2) an example Dag folded into an
existing example file, reusing its block style and objects — no new example file or bare new with DAG(...) block; (3) a docs update to the relevant .rst
(prose uses "Dag"; known limits are constraints, not # TODO). Adding or removing a public symbol also updates task-sdk/docs/api.rst and the airflow-core/docs/ autoapi entries
together with __init__.py / __all__ / the lazy-import table — both the removal and the addition. QA-plan and status-doc conventions, and migrating a deprecated provider class's example Dags in the same PR: references/delivery.md.
A PR that changes a per-call scheduler hot path (cron _get_next / _get_prev, next-dagrun computation) also attaches same-machine before/after µs and says whether the new branch runs on ordinary days — references/design-integrity.md.
caplog — see the "Testing" section of AGENTS.md for the prescribed pattern (typically a mock log handler asserted directly).@pytest.mark.db_test.references/test-cases.md.airflow-core/src/airflow/foo/bar.py ↔ airflow-core/tests/unit/foo/test_bar.py.references/test-cases.md.spec=/autospec=True, time-travel library, mock-assertion style: python-aware.airflow-pr-draft-summary skill — it takes precedence over maigo:commit-message (body states the why, subject ≤70 chars, not Conventional Commits, no Co-Authored-By).Generated-by: footer (see the "Pull requests" section of AGENTS.md).airflow-core/, chart/, or dev/mypy/.Docs: (it trips the conventional-commit hook) — references/delivery.md.git commit --fixup=<main commit>, no trailer, no push; the user squashes and pushes, possibly mid-review, so re-read git log -1 first — references/delivery.md.Scheduler does not execute user code. Worker does not write to the metadata DB directly. Providers do not import from airflow core internals. Task SDK is isolated
from scheduler/worker internals. Cross-boundary changes need extra scrutiny — read code-review.instructions.md (its §1) first.
Core ↔ SDK paired classes (same name in airflow-core/ and task-sdk/): drift on a same-named attribute is a bug, not a nit — fix it in the current PR
(compare constructor signature, post-__init__ type, normalization, eager-raise; references/design-integrity.md).
A closed value set (policy, mode, direction) is a str, Enum on each side with a rejecting converter, never str | None plus a tuple of strings (must-fix) — references/design-integrity.md.
Provider public surface (trigger / hook / operator signatures, capability flags, serialized payloads): new parameters get defaults and keep the old call shape, capabilities are explicit class attributes, a serialized-content change is a compatibility change, module-only helpers are _private, factory parameters are keyword-only Protocols (references/design-integrity.md, "Provider public-surface compatibility").
During a review task (🟡 Soyo running strict-review on an Airflow diff), read references/review-checks.md and append its sub-checks as items 10+, with the severity each states.
Its "Contents" list enumerates 10.1–10.42 plus the unnumbered release-tag check and DB portability and concurrency sections. The file also holds the Airflow case studies backing strict-review's recurring must-fix patterns. Outside a review, skip the 10.x sub-checks and the unnumbered release-tag and DB portability sections (also review-only); the file's other sections (e.g. uv.lock drift diagnostic, uv version pin churn, example-Dag policy, migration PR conventions, secrets-masker tests) are read when the task matches them, per the index table below.
datetime bounds, not date (references/design-integrity.md).references/ui-conventions.md.references/docs-conventions.md. A list already owned by another section defers to it — recurring-patterns.md. UI and backport judgment: references/ui-conventions.md, references/delivery.md.| Reference | Read when |
|---|---|
references/code-style.md | Airflow-specific style: optional-extra import guard, naming (action verbs, AIP-21, private modules), provider hooks, maintainer preferences, core-symbol version-floor checks, third-party dependency floors, Dag authoring, example-Dag imports that need an extra of their own |
references/runtime-gotchas.md | attrs eq/hash, (de)serialization field reads, scoped-session lifecycle, embedded-server logging reset |
references/verification-tooling.md | Before trusting a prek / pytest "Passed"; local false reds (incl. baseline-worktree rule); same-process Sphinx test leaks; attribution; relock pin-back to the documented version; docs screenshot procedure; a delegated breeze run's leftover worktree watcher blocking the agent's later hand-backs |
references/review-checks.md | Review tasks: items 10+ (Contents at the top); release-tag check before "released"/"breaking" claims and before a doc's "on Airflow X and later" claim. Any task: uv.lock drift diagnostic, uv pin churn, migration PR conventions, example-Dag policy, secrets-masker tests; 10.39 cross-provider extra vs root [tool.uv] conflicts, 10.40 skip-retry exception for errors retrying cannot fix, 10.41 an agent co-author trailer on someone else's PR is only a non-blocking reminder, 10.42 lazy supervisor comms whose first call lands inside a coroutine |
references/registry-conventions.md | A diff touches dev/registry/ or registry/, or adds a provider.yaml section |
references/design-integrity.md | Hot-loop extension surfaces, Core ↔ SDK symmetry, CLI/REST consistency, range-API granularity, provider public-surface compatibility, adapter config merge vs required settings |
references/docs-conventions.md | Writing or reviewing docs prose, provider docs (incl. third-party class vs declared version floor), docs examples |
references/test-cases.md | Writing or reviewing Airflow tests: Airflow instances and Airflow-specific facts behind the python-aware test-conventions rules (read alongside the rule); DB tests: hard-coded primary keys, three-backend runs |
references/ui-conventions.md | airflow-core/src/airflow/ui changes; zh-TW translation rules |
references/naming.md | The naming hook fires, or editing a historical archival file |
references/delivery.md | Finishing a feature, QA / status docs, docs-page PRs, doc-only commit subjects, backports |
python-aware | Always — the Python language layer this skill builds on |
hook-runner-verification.md | Generic hook-runner false greens (stash, git add -N, rebase --continue, files: regex) |
strict-review/references/design-integrity.md | Generic framework / base-API design rules (type-pairing guards, symmetric naming, sum-types) |
Builds on python-aware (Layering above); pairs with strict-review.
Review scenario — run strict-review's 9-item base checklist, then apply these as Airflow supplements: convention 2 (naming) → base item 4; 4 and 5 (style, correctness) → items 5–6;
6 (delivery completeness) → item 1; 7 (testing) → items 2–3. §10 sub-checks (10.1–10.42) become items 10+, with Block / Request-changes severity inherited from each sub-section.
Quick-fix / refactor scenario — use conventions 3–7 as background. Flag violations you notice, but do not run the full strict-review checklist unless the task calls for it; §10 is review-only.
references/code-style.md (opens in a new tab)references/delivery.md (opens in a new tab)references/design-integrity.md (opens in a new tab)references/docs-conventions.md (opens in a new tab)references/naming.md (opens in a new tab)references/registry-conventions.md (opens in a new tab)references/review-checks.md (opens in a new tab)references/runtime-gotchas.md (opens in a new tab)references/test-cases.md (opens in a new tab)references/ui-conventions.md (opens in a new tab)references/verification-tooling.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
airflow-contributor, repo-conventions, breeze, prek, code-review
26 skills in this plugin
/change-site-enumerationThis skill should be used when about to declare "N sites need changing", "the scope is closed", or "this is already fully shared" — before writing a plan that lists change sites, implementing one, reviewing a diff for lingering per-section branches, or reporting a scope/size number to the user./command-routerCodex pseudo-command router for Maigo. Use when the user sends or discusses any `/maigo:*` or `maigo:*` command (go, team, quick, review, board, remember, retro, doctor, etc.), or asks why Maigo commands do not behave like native Codex slash commands./commitizen-awareThis skill should be used when working in the `commitizen-tools/commitizen` repository as a contributor (not as a downstream `[tool.commitizen]` user). It surfaces the repo's own AGENTS.md conventions — uv + poe, conventional commits, ruff/mypy, pytest, PR guidelines — for any task there.npx claudepluginhub lee-w/maigo --plugin maigoOther plugins' skills for the same job