[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BTHKTB6SB3JEY6667PXKYP":3,"skill-same:01M6BTHKTB6SB3JEY6667PXKYP":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":17,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6BTHKTB6SB3JEY6667PXKYP","shannon","Neovim 代码标注与导航","Interact with Neovim via RPC to annotate code, navigate files, and do walkthroughs","通过 RPC 与 Neovim 交互，为代码添加标注、在文件间导航并进行代码走查讲解。","ahmedelgabri\u002Fdotfiles","ahmedelgabri","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F63876?v=4","01M6BTGT61KWRDXN595X7Q8ZRY","Ahmed El Gabri","01M6BTGTAFSBR3A7ZFXK5QDHVZ",291,"Unlicense",null,"https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fshannon\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[5,31,32,33,34,35,36,37,38,39,40,41,42],"code","rpc","neovim","Bash","grep","read","files","do","annotate","via","with","navigate","2026-11-10 10:12:30",false,"---\nname: upgrade-fab-provider\ndescription: >\n  Upgrade the pinned Flask-AppBuilder (FAB) dependency in the Apache Airflow\n  FAB provider (`providers\u002Ffab\u002F`). Bumps the exact `flask-appbuilder==` pin and\n  its mirror constant, regenerates `uv.lock`, drives the `test_fab_alignment.py`\n  drift tripwire, reviews the vendored security-manager `override.py` against the\n  new upstream FAB, and conditionally re-vendors static assets \u002F DB migrations.\n  Use when asked to \"upgrade FAB\", \"bump flask-appbuilder\", or move the FAB\n  provider to a newer Flask-AppBuilder release.\nlicense: Apache-2.0\n---\n\n\u003C!-- SPDX-License-Identifier: Apache-2.0\n     https:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0 -->\n\n# upgrade-fab-provider\n\nAirflow's FAB provider is **tightly coupled** to a specific Flask-AppBuilder\nrelease because it vendors-in and subclasses large parts of FAB's security\nmanager. A version bump is therefore never \"just change the pin\" — it must be\nreconciled against the vendored code, and that reconciliation is enforced by a\npytest **alignment test**, not a prek hook.\n\nThe canonical reference for a real bump is PR **#66841** (\"Bump flask-appbuilder\nto 5.2.1 and mirror new auth event hooks\") — commit `c72b6613fd`. Read its diff\nfirst when in doubt: `git show c72b6613fd`.\n\n## The coupling — why this is not a one-line change\n\n- `providers\u002Ffab\u002Fpyproject.toml:75-80` explains it: Airflow vendored FAB's\n  security-manager code into\n  `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Foverride.py`\n  (~2700 lines) as `FabAirflowSecurityManagerOverride`. Every bump must review\n  that class against upstream FAB for new \u002F changed \u002F removed methods.\n- `test_fab_alignment.py` mechanically detects drift between the **installed**\n  FAB package and the vendored override, and **fails CI** until the developer\n  reconciles it.\n\n## Inputs\n\n- **Target version** — the FAB version to move to. If not given, use the latest\n  release on PyPI (`https:\u002F\u002Fpypi.org\u002Fpypi\u002Fflask-appbuilder\u002Fjson` → `info.version`).\n  Confirm the target with the user if it is a **major or minor** bump (higher\n  reconciliation risk); a **patch** bump can proceed.\n\n## The files a bump touches\n\n**Always:**\n\n1. `providers\u002Ffab\u002Fpyproject.toml` — line ~80, the `flask-appbuilder==X.Y.Z` pin\n   (the **only** real dependency pin in the repo).\n2. `providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Ftest_fab_alignment.py`\n   — `EXPECTED_FAB_VERSION = \"X.Y.Z\"` (line ~43). Must move in lockstep with the pin.\n3. `providers\u002Ffab\u002Fdocs\u002Findex.rst` — the dependency table row\n   ``` ``flask-appbuilder``   ``==X.Y.Z`` ``` (line ~114).\n4. `providers\u002Ffab\u002FREADME.rst` — the Requirements table row (line ~60). **Do\n   not hand-edit** — it is auto-generated. Regenerate it from the bumped\n   `pyproject.toml` with the `sync-provider-readme` prek hook (Step 8); the hook\n   re-renders the table whenever `pyproject.toml` changes. (Pre-existing bumps\n   that predate this hook left it to release-time regeneration; today the hook is\n   per-commit, so CI flags the drift — run it.)\n5. `uv.lock` — regenerated (see Step 4 for the pinned-uv caveat).\n\n**Conditionally:**\n\n6. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Foverride.py`\n   — transplant any relevant upstream FAB changes (new auth hooks, changed\n   signatures, ported fixes). The reference bump added +37 lines here. **Note:**\n   a green alignment test does not prove the transplant is unnecessary — a\n   security fix may live inside a method Airflow vendors (see the 5.2.2 worked\n   example below).\n7. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fwww\u002F**` + `providers\u002Ffab\u002Fwww-hash.txt`\n   — only if the new FAB ships changed static assets \u002F templates that are\n   re-vendored (see Step 6).\n8. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fmigrations\u002Fversions\u002F**` — only if the\n   new FAB version ships DB migrations (see Step 7).\n\n**Never:** no newsfragment, and do **not** hand-edit `providers\u002Ffab\u002Fdocs\u002Fchangelog.rst`\n— providers are released from `main` and the release manager regenerates the\nchangelog from `git log` (per `providers\u002FAGENTS.md`). The commit subject is the\nchangelog entry.\n\n## Procedure\n\n### Step 1 — Determine the target version and current state\n\n- Read the current pin: `grep flask-appbuilder== providers\u002Ffab\u002Fpyproject.toml`.\n- Resolve the target (PyPI latest, or the user's requested version).\n- Classify the jump: patch \u002F minor \u002F major. For minor\u002Fmajor, skim the FAB\n  release notes (`https:\u002F\u002Fgithub.com\u002Fdpgaspar\u002FFlask-AppBuilder\u002Freleases`) for\n  security-manager \u002F model \u002F template changes before editing.\n\n### Step 2 — Bump the three source pins\n\nEdit in lockstep:\n\n- `providers\u002Ffab\u002Fpyproject.toml` — the `flask-appbuilder==X.Y.Z` line (keep the\n  trailing `# Whenever updating the version, run test_fab_alignment.py to verify.`\n  comment).\n- `test_fab_alignment.py` — `EXPECTED_FAB_VERSION = \"X.Y.Z\"`. It is the tripwire;\n  editing it now is fine — you will keep re-running the test until it and the\n  other three tests pass.\n- `providers\u002Ffab\u002Fdocs\u002Findex.rst` — the dependency-table `==X.Y.Z` row.\n\n### Step 3 — Install the new FAB into the provider venv\n\n`uv --project providers\u002Ffab sync` installs the new pin. Confirm the installed\nversion:\n\n```bash\nuv run --project providers\u002Ffab python -c \\\n  \"import importlib.metadata as m; print(m.version('flask-appbuilder'))\"\n```\n\n### Step 4 — Regenerate uv.lock (pinned uv!)\n\nThe lock **must** be regenerated with the repo's pinned uv version, or it drifts\nhundreds of unrelated marker lines:\n\n```bash\nAIRFLOW_UV_VERSION=$(grep -oE 'AIRFLOW_UV_VERSION=[0-9.]+' Dockerfile.ci | head -1 | cut -d= -f2)\nuvx --from uv==$AIRFLOW_UV_VERSION uv lock\n```\n\nIf a conflict is irrecoverable, delete `uv.lock` and re-run `uv lock` with the\npinned version. Confirm the diff is limited to the FAB bump, not a wholesale\nmarker rewrite.\n\n### Step 5 — Run the alignment test and reconcile override.py\n\n```bash\nuv run --project providers\u002Ffab pytest \\\n  providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Ftest_fab_alignment.py -xvs\n```\n\nUnder the host sandbox the test needs a writable `AIRFLOW_HOME` and the\nrerun-failures socket disabled — if it errors on a socket `bind` or on\n`~\u002Fairflow`, run it as:\n\n```bash\nAIRFLOW_HOME=\"$TMPDIR\u002Ffab_home\" uv run --project providers\u002Ffab pytest \\\n  providers\u002Ffab\u002Ftests\u002F...\u002Ftest_fab_alignment.py -q -p no:rerunfailures\n```\n\nThe four tests and how to fix each:\n\n1. **`test_fab_version_matches_expected`** — trips on the version mismatch. It\n   passes once `EXPECTED_FAB_VERSION` == installed version, but only after you\n   have done the review below.\n2. **`test_no_unaudited_fab_methods`** — a new FAB public method exists that is\n   neither implemented in `override.py` nor listed in `AUDITED_EXCLUSIONS`.\n   Fix: either implement\u002Foverride it in `override.py`, or add it to\n   `AUDITED_EXCLUSIONS` **with a justification comment**.\n3. **`test_no_stale_exclusions`** — `AUDITED_EXCLUSIONS` lists a method the new\n   FAB no longer has. Fix: remove that entry.\n4. **`test_shared_method_signatures_compatible`** — FAB changed a method\n   signature (new required param). Fix: update the `override.py` signature, or\n   add to `KNOWN_SIGNATURE_DEVIATIONS` if the divergence is intentional.\n\n**The manual review that the test cannot fully automate:** diff the vendored\n`override.py` against the new FAB's `flask_appbuilder\u002Fsecurity\u002Fsqla\u002Fmanager.py`\nand `BaseSecurityManager` and **transplant behavioural changes** (bug fixes, new\nauth event hooks), not just signatures — the test only checks method *presence*\nand *required params*. Locate the installed source:\n\n```bash\nuv run --project providers\u002Ffab python -c \\\n  \"import flask_appbuilder.security.sqla.manager as m; print(m.__file__)\"\n```\n\n### Step 6 — Re-vendor static assets \u002F templates (only if changed)\n\nIf the new FAB changed frontend assets that Airflow vendors under\n`providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fwww\u002F` (templates in\n`templates\u002Fappbuilder\u002F`, static JS\u002FCSS), re-vendor them, then regenerate the\nfingerprint:\n\n```bash\nprek run compile-fab-assets --all-files\n```\n\nThis runs `scripts\u002Fci\u002Fprek\u002Fcompile_provider_assets.py fab` (pnpm build over\n`www\u002F`) and rewrites `providers\u002Ffab\u002Fwww-hash.txt`. A patch bump usually does\n**not** touch assets — skip this step unless FAB's templates\u002Fstatic changed.\nCommit the regenerated `www-hash.txt` if it changed.\n\n### Step 7 — DB migrations (only if FAB ships them)\n\nIf the new FAB adds\u002Fchanges security-model tables, add the corresponding\nmigration under `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fmigrations\u002Fversions\u002F`\nand run:\n\n```bash\nprek run update-migration-references-fab check-revision-heads-map-fab --all-files\n```\n\nPatch bumps normally have no migrations — skip unless the release notes mention\nschema changes.\n\n### Step 8 — Static checks + tests\n\n```bash\nprek run --from-ref main --stage pre-commit\nuv run --project providers\u002Ffab pytest providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager -xvs\n```\n\nThe pre-commit stage runs `sync-provider-readme` (regenerating `README.rst`) and\nother FAB hooks. Re-run the alignment test until all four tests pass. The full\nprovider suite is `breeze testing providers-tests --test-type \"Providers[fab]\"`.\n\n### Step 9 — Self-review and commit\n\n- `git diff main...HEAD` — verify only the intended files changed, and `uv.lock`\n  is a clean FAB-scoped diff.\n- Commit subject in imperative mood, plain prose, **no** Conventional-Commits\n  prefix, e.g. `Bump flask-appbuilder to X.Y.Z in FAB provider`. Body explains\n  *why* (what upstream changes were mirrored), not what.\n- No newsfragment, no changelog edit (provider release manager regenerates from\n  git log).\n- Prepend your PR to the history list in `providers\u002Ffab\u002FCONTRIBUTING.rst` so the\n  FAB-upgrade record stays current.\n- Push to `origin` and open the PR per the repo's PR conventions.\n\n## Gotchas\n\n- **`EXPECTED_FAB_VERSION` is a second pin.** Forgetting it makes\n  `test_fab_alignment.py` fail even when everything else is correct.\n- **`uv.lock` marker drift.** Always use the pinned uv (Step 4) — a bare\n  `uv lock` rewrites hundreds of environment-marker lines and buries the real diff.\n- **The alignment test uses AST, not import**, to read FAB's `SecurityManager`\n  (to avoid SQLAlchemy model-registry collisions with Airflow's vendored models).\n  A green test proves *structural* alignment; it does **not** prove behavioural\n  parity — Step 5's manual transplant review is still required.\n- **`docs\u002Findex.rst` dependency table** may look auto-generated but the reference\n  PR edited it by hand; if a docs-regen prek hook rewrites it, let the hook win.\n- **`README.rst` is generated, but the sync hook is per-commit.** Don't hand-edit\n  it; run `prek run sync-provider-readme` (or the full pre-commit stage) after\n  bumping `pyproject.toml` — CI fails on the drift otherwise.\n- **Don't touch `providers\u002Ffab\u002Fdocs\u002Fupgrading.rst`** — that is end-user guidance\n  for upgrading the *provider package* in a deployment, not the developer bump\n  workflow.\n\n## Worked example — 5.2.1 to 5.2.2 (patch)\n\nA patch bump that needed **no `override.py` change**, but only after a real\nbehavioural review — the green alignment test alone was not sufficient evidence:\n\n- FAB 5.2.2 shipped three security-manager fixes: LDAP search-filter escaping,\n  OAuth email-allowlist regex anchoring (`email + \"$\"`), and API-login provider\n  validation.\n- All three touch methods Airflow *vendors* (`_search_ldap`, `auth_user_ldap`,\n  `auth_user_oauth`) — so the alignment test passing did **not** mean \"nothing to\n  do\". Each had to be checked by hand:\n  - **LDAP escaping** — Airflow's vendored `_search_ldap` **already** escapes via\n    `ldap.filter.escape_filter_chars` (and adds filter-parenthesis validation); it\n    was ahead of FAB. No transplant.\n  - **OAuth allowlist anchoring** — the match lives in FAB's `AuthOAuthView`\n    (`views.py`), and Airflow's `CustomAuthOAuthView.oauth_authorized` delegates\n    via `super().oauth_authorized()`, so the fix is inherited from the installed\n    FAB 5.2.2. No transplant.\n  - **API-login validation \u002F Azure-JWT warning \u002F uuid4** — in FAB core Airflow\n    doesn't vendor. Inherited.\n- Net change set: `pyproject.toml`, `test_fab_alignment.py`, `docs\u002Findex.rst`,\n  `README.rst` (via hook), `uv.lock`. Commit: `Bump flask-appbuilder to 5.2.2 in\n  FAB provider`.\n\nThe lesson the skill encodes: **for every security\u002Fbehavioural fix in the FAB\nrelease notes, locate the method and check whether Airflow vendors it** — the\nalignment test guards structure, you guard behaviour.\n","\u003C!-- SPDX-License-Identifier: Apache-2.0\n     https:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0 -->\n\n# upgrade-fab-provider\n\nAirflow's FAB provider is **tightly coupled** to a specific Flask-AppBuilder\nrelease because it vendors-in and subclasses large parts of FAB's security\nmanager. A version bump is therefore never \"just change the pin\" — it must be\nreconciled against the vendored code, and that reconciliation is enforced by a\npytest **alignment test**, not a prek hook.\n\nThe canonical reference for a real bump is PR **#66841** (\"Bump flask-appbuilder\nto 5.2.1 and mirror new auth event hooks\") — commit `c72b6613fd`. Read its diff\nfirst when in doubt: `git show c72b6613fd`.\n\n## The coupling — why this is not a one-line change\n\n- `providers\u002Ffab\u002Fpyproject.toml:75-80` explains it: Airflow vendored FAB's\n  security-manager code into\n  `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Foverride.py`\n  (~2700 lines) as `FabAirflowSecurityManagerOverride`. Every bump must review\n  that class against upstream FAB for new \u002F changed \u002F removed methods.\n- `test_fab_alignment.py` mechanically detects drift between the **installed**\n  FAB package and the vendored override, and **fails CI** until the developer\n  reconciles it.\n\n## Inputs\n\n- **Target version** — the FAB version to move to. If not given, use the latest\n  release on PyPI (`https:\u002F\u002Fpypi.org\u002Fpypi\u002Fflask-appbuilder\u002Fjson` → `info.version`).\n  Confirm the target with the user if it is a **major or minor** bump (higher\n  reconciliation risk); a **patch** bump can proceed.\n\n## The files a bump touches\n\n**Always:**\n\n1. `providers\u002Ffab\u002Fpyproject.toml` — line ~80, the `flask-appbuilder==X.Y.Z` pin\n   (the **only** real dependency pin in the repo).\n2. `providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Ftest_fab_alignment.py`\n   — `EXPECTED_FAB_VERSION = \"X.Y.Z\"` (line ~43). Must move in lockstep with the pin.\n3. `providers\u002Ffab\u002Fdocs\u002Findex.rst` — the dependency table row\n   ``` ``flask-appbuilder``   ``==X.Y.Z`` ``` (line ~114).\n4. `providers\u002Ffab\u002FREADME.rst` — the Requirements table row (line ~60). **Do\n   not hand-edit** — it is auto-generated. Regenerate it from the bumped\n   `pyproject.toml` with the `sync-provider-readme` prek hook (Step 8); the hook\n   re-renders the table whenever `pyproject.toml` changes. (Pre-existing bumps\n   that predate this hook left it to release-time regeneration; today the hook is\n   per-commit, so CI flags the drift — run it.)\n5. `uv.lock` — regenerated (see Step 4 for the pinned-uv caveat).\n\n**Conditionally:**\n\n6. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Foverride.py`\n   — transplant any relevant upstream FAB changes (new auth hooks, changed\n   signatures, ported fixes). The reference bump added +37 lines here. **Note:**\n   a green alignment test does not prove the transplant is unnecessary — a\n   security fix may live inside a method Airflow vendors (see the 5.2.2 worked\n   example below).\n7. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fwww\u002F**` + `providers\u002Ffab\u002Fwww-hash.txt`\n   — only if the new FAB ships changed static assets \u002F templates that are\n   re-vendored (see Step 6).\n8. `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fmigrations\u002Fversions\u002F**` — only if the\n   new FAB version ships DB migrations (see Step 7).\n\n**Never:** no newsfragment, and do **not** hand-edit `providers\u002Ffab\u002Fdocs\u002Fchangelog.rst`\n— providers are released from `main` and the release manager regenerates the\nchangelog from `git log` (per `providers\u002FAGENTS.md`). The commit subject is the\nchangelog entry.\n\n## Procedure\n\n### Step 1 — Determine the target version and current state\n\n- Read the current pin: `grep flask-appbuilder== providers\u002Ffab\u002Fpyproject.toml`.\n- Resolve the target (PyPI latest, or the user's requested version).\n- Classify the jump: patch \u002F minor \u002F major. For minor\u002Fmajor, skim the FAB\n  release notes (`https:\u002F\u002Fgithub.com\u002Fdpgaspar\u002FFlask-AppBuilder\u002Freleases`) for\n  security-manager \u002F model \u002F template changes before editing.\n\n### Step 2 — Bump the three source pins\n\nEdit in lockstep:\n\n- `providers\u002Ffab\u002Fpyproject.toml` — the `flask-appbuilder==X.Y.Z` line (keep the\n  trailing `# Whenever updating the version, run test_fab_alignment.py to verify.`\n  comment).\n- `test_fab_alignment.py` — `EXPECTED_FAB_VERSION = \"X.Y.Z\"`. It is the tripwire;\n  editing it now is fine — you will keep re-running the test until it and the\n  other three tests pass.\n- `providers\u002Ffab\u002Fdocs\u002Findex.rst` — the dependency-table `==X.Y.Z` row.\n\n### Step 3 — Install the new FAB into the provider venv\n\n`uv --project providers\u002Ffab sync` installs the new pin. Confirm the installed\nversion:\n\n```bash\nuv run --project providers\u002Ffab python -c \\\n  \"import importlib.metadata as m; print(m.version('flask-appbuilder'))\"\n```\n\n### Step 4 — Regenerate uv.lock (pinned uv!)\n\nThe lock **must** be regenerated with the repo's pinned uv version, or it drifts\nhundreds of unrelated marker lines:\n\n```bash\nAIRFLOW_UV_VERSION=$(grep -oE 'AIRFLOW_UV_VERSION=[0-9.]+' Dockerfile.ci | head -1 | cut -d= -f2)\nuvx --from uv==$AIRFLOW_UV_VERSION uv lock\n```\n\nIf a conflict is irrecoverable, delete `uv.lock` and re-run `uv lock` with the\npinned version. Confirm the diff is limited to the FAB bump, not a wholesale\nmarker rewrite.\n\n### Step 5 — Run the alignment test and reconcile override.py\n\n```bash\nuv run --project providers\u002Ffab pytest \\\n  providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager\u002Fsecurity_manager\u002Ftest_fab_alignment.py -xvs\n```\n\nUnder the host sandbox the test needs a writable `AIRFLOW_HOME` and the\nrerun-failures socket disabled — if it errors on a socket `bind` or on\n`~\u002Fairflow`, run it as:\n\n```bash\nAIRFLOW_HOME=\"$TMPDIR\u002Ffab_home\" uv run --project providers\u002Ffab pytest \\\n  providers\u002Ffab\u002Ftests\u002F...\u002Ftest_fab_alignment.py -q -p no:rerunfailures\n```\n\nThe four tests and how to fix each:\n\n1. **`test_fab_version_matches_expected`** — trips on the version mismatch. It\n   passes once `EXPECTED_FAB_VERSION` == installed version, but only after you\n   have done the review below.\n2. **`test_no_unaudited_fab_methods`** — a new FAB public method exists that is\n   neither implemented in `override.py` nor listed in `AUDITED_EXCLUSIONS`.\n   Fix: either implement\u002Foverride it in `override.py`, or add it to\n   `AUDITED_EXCLUSIONS` **with a justification comment**.\n3. **`test_no_stale_exclusions`** — `AUDITED_EXCLUSIONS` lists a method the new\n   FAB no longer has. Fix: remove that entry.\n4. **`test_shared_method_signatures_compatible`** — FAB changed a method\n   signature (new required param). Fix: update the `override.py` signature, or\n   add to `KNOWN_SIGNATURE_DEVIATIONS` if the divergence is intentional.\n\n**The manual review that the test cannot fully automate:** diff the vendored\n`override.py` against the new FAB's `flask_appbuilder\u002Fsecurity\u002Fsqla\u002Fmanager.py`\nand `BaseSecurityManager` and **transplant behavioural changes** (bug fixes, new\nauth event hooks), not just signatures — the test only checks method *presence*\nand *required params*. Locate the installed source:\n\n```bash\nuv run --project providers\u002Ffab python -c \\\n  \"import flask_appbuilder.security.sqla.manager as m; print(m.__file__)\"\n```\n\n### Step 6 — Re-vendor static assets \u002F templates (only if changed)\n\nIf the new FAB changed frontend assets that Airflow vendors under\n`providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fwww\u002F` (templates in\n`templates\u002Fappbuilder\u002F`, static JS\u002FCSS), re-vendor them, then regenerate the\nfingerprint:\n\n```bash\nprek run compile-fab-assets --all-files\n```\n\nThis runs `scripts\u002Fci\u002Fprek\u002Fcompile_provider_assets.py fab` (pnpm build over\n`www\u002F`) and rewrites `providers\u002Ffab\u002Fwww-hash.txt`. A patch bump usually does\n**not** touch assets — skip this step unless FAB's templates\u002Fstatic changed.\nCommit the regenerated `www-hash.txt` if it changed.\n\n### Step 7 — DB migrations (only if FAB ships them)\n\nIf the new FAB adds\u002Fchanges security-model tables, add the corresponding\nmigration under `providers\u002Ffab\u002Fsrc\u002Fairflow\u002Fproviders\u002Ffab\u002Fmigrations\u002Fversions\u002F`\nand run:\n\n```bash\nprek run update-migration-references-fab check-revision-heads-map-fab --all-files\n```\n\nPatch bumps normally have no migrations — skip unless the release notes mention\nschema changes.\n\n### Step 8 — Static checks + tests\n\n```bash\nprek run --from-ref main --stage pre-commit\nuv run --project providers\u002Ffab pytest providers\u002Ffab\u002Ftests\u002Funit\u002Ffab\u002Fauth_manager -xvs\n```\n\nThe pre-commit stage runs `sync-provider-readme` (regenerating `README.rst`) and\nother FAB hooks. Re-run the alignment test until all four tests pass. The full\nprovider suite is `breeze testing providers-tests --test-type \"Providers[fab]\"`.\n\n### Step 9 — Self-review and commit\n\n- `git diff main...HEAD` — verify only the intended files changed, and `uv.lock`\n  is a clean FAB-scoped diff.\n- Commit subject in imperative mood, plain prose, **no** Conventional-Commits\n  prefix, e.g. `Bump flask-appbuilder to X.Y.Z in FAB provider`. Body explains\n  *why* (what upstream changes were mirrored), not what.\n- No newsfragment, no changelog edit (provider release manager regenerates from\n  git log).\n- Prepend your PR to the history list in `providers\u002Ffab\u002FCONTRIBUTING.rst` so the\n  FAB-upgrade record stays current.\n- Push to `origin` and open the PR per the repo's PR conventions.\n\n## Gotchas\n\n- **`EXPECTED_FAB_VERSION` is a second pin.** Forgetting it makes\n  `test_fab_alignment.py` fail even when everything else is correct.\n- **`uv.lock` marker drift.** Always use the pinned uv (Step 4) — a bare\n  `uv lock` rewrites hundreds of environment-marker lines and buries the real diff.\n- **The alignment test uses AST, not import**, to read FAB's `SecurityManager`\n  (to avoid SQLAlchemy model-registry collisions with Airflow's vendored models).\n  A green test proves *structural* alignment; it does **not** prove behavioural\n  parity — Step 5's manual transplant review is still required.\n- **`docs\u002Findex.rst` dependency table** may look auto-generated but the reference\n  PR edited it by hand; if a docs-regen prek hook rewrites it, let the hook win.\n- **`README.rst` is generated, but the sync hook is per-commit.** Don't hand-edit\n  it; run `prek run sync-provider-readme` (or the full pre-commit stage) after\n  bumping `pyproject.toml` — CI fails on the drift otherwise.\n- **Don't touch `providers\u002Ffab\u002Fdocs\u002Fupgrading.rst`** — that is end-user guidance\n  for upgrading the *provider package* in a deployment, not the developer bump\n  workflow.\n\n## Worked example — 5.2.1 to 5.2.2 (patch)\n\nA patch bump that needed **no `override.py` change**, but only after a real\nbehavioural review — the green alignment test alone was not sufficient evidence:\n\n- FAB 5.2.2 shipped three security-manager fixes: LDAP search-filter escaping,\n  OAuth email-allowlist regex anchoring (`email + \"$\"`), and API-login provider\n  validation.\n- All three touch methods Airflow *vendors* (`_search_ldap`, `auth_user_ldap`,\n  `auth_user_oauth`) — so the alignment test passing did **not** mean \"nothing to\n  do\". Each had to be checked by hand:\n  - **LDAP escaping** — Airflow's vendored `_search_ldap` **already** escapes via\n    `ldap.filter.escape_filter_chars` (and adds filter-parenthesis validation); it\n    was ahead of FAB. No transplant.\n  - **OAuth allowlist anchoring** — the match lives in FAB's `AuthOAuthView`\n    (`views.py`), and Airflow's `CustomAuthOAuthView.oauth_authorized` delegates\n    via `super().oauth_authorized()`, so the fix is inherited from the installed\n    FAB 5.2.2. No transplant.\n  - **API-login validation \u002F Azure-JWT warning \u002F uuid4** — in FAB core Airflow\n    doesn't vendor. Inherited.\n- Net change set: `pyproject.toml`, `test_fab_alignment.py`, `docs\u002Findex.rst`,\n  `README.rst` (via hook), `uv.lock`. Commit: `Bump flask-appbuilder to 5.2.2 in\n  FAB provider`.\n\nThe lesson the skill encodes: **for every security\u002Fbehavioural fix in the FAB\nrelease notes, locate the method and check whether Airflow vendors it** — the\nalignment test guards structure, you guard behaviour.\n",{"name":48,"license":49,"description":50},"upgrade-fab-provider","Apache-2.0","Upgrade the pinned Flask-AppBuilder (FAB) dependency in the Apache Airflow FAB provider (`providers\u002Ffab\u002F`). Bumps the exact `flask-appbuilder==` pin and its mirror constant, regenerates `uv.lock`, drives the `test_fab_alignment.py` drift tripwire, reviews the vendored security-manager `override.py` against the new upstream FAB, and conditionally re-vendors static assets \u002F DB migrations. Use when asked to \"upgrade FAB\", \"bump flask-appbuilder\", or move the FAB provider to a newer Flask-AppBuilder release.\n","main","f7e28eec7309f5700ca69ec226df41a5c58d5213","config\u002Fagents\u002Fskills\u002Fshannon",19,"https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fahmedelgabri","https:\u002F\u002Fgabri.me","…","2026-11-09 00:32:17",{"source":9,"skillName":48,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add ahmedelgabri\u002Fdotfiles --skill upgrade-fab-provider",{"tool":66,"command":67},"bunx","bunx skills add ahmedelgabri\u002Fdotfiles --skill upgrade-fab-provider",{"tool":69,"command":70},"pnpm","pnpm dlx skills add ahmedelgabri\u002Fdotfiles --skill upgrade-fab-provider","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fshannon\u002FSKILL.md",true,[74],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fshannon-find-nvim.sh","SCRIPT","脚本",631,"https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fshannon\u002Fscripts\u002Fshannon-find-nvim.sh",[81,114,147,165,186,211],{"skillNo":82,"name":83,"nameZh":84,"description":85,"descriptionZh":86,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":87,"categories":88,"keywords":95,"publishedAt":43},"01M6BTHV9M65YMX558C22H638A","pi-loop","Pi 周期性任务管理","Set up and manage recurring Pi tasks that run as background Pi processes. Use for recurring prompts, scheduled reports, or \u002Floop requests.","设置并管理作为后台 Pi 进程运行的周期性 Pi 任务。用于重复性提示、定时报告或 \u002Floop 请求。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fpi\u002Fagent\u002Fextensions\u002Floop\u002Fskills\u002Fpi-loop\u002FSKILL.md",[89,92],{"categoryNo":90,"categoryName":91,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":93,"categoryName":94,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSFHC0DJXKNN0QBZDDS4K9","定时任务与自动化编排",[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],"pi loop","loop","pi","scheduled","for","background","SET","up","use","recurring","reports","manage","as","processes","requests","prompts","run","tasks",{"skillNo":115,"name":116,"nameZh":117,"description":118,"descriptionZh":119,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":120,"categories":121,"keywords":128,"publishedAt":43},"01M6BTHRPVBTX8Y3EHQYP5464N","youtube-transcript","YouTube 视频字幕转录获取","Retrieve a YouTube video transcript with yt-dlp using human or automatic captions. Save timestamped text locally. Use when asked for a YouTube transcript, subtitles, captions, or spoken text from a YouTube link.","使用 yt-dlp 通过人工或自动字幕获取 YouTube 视频的转录文本，并在本地保存带时间戳的文本。当用户要求获取 YouTube 视频的转录稿、字幕、说明文字或来自 YouTube 链接的口述内容时使用。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[122,125],{"categoryNo":123,"categoryName":124,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRP9HTCQJVTBV9WC1A6N5B","多媒体素材检索与处理",{"categoryNo":126,"categoryName":127,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[129,130,131,132,133,134,135,104,136,137,138,139,140,141,142,143,100,144,145,41,146],"transcript","youtube transcript","youtube","Captions","id","human","yt-dlp","text","save","link","Video","dlp","file","subtitles","when","video transcript","URL","output",{"skillNo":148,"name":149,"nameZh":150,"description":151,"descriptionZh":152,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":153,"categories":154,"keywords":161,"publishedAt":43},"01M6BTHPAGHJ9KK6MB8HDC97Q8","unslop","非代码文本去 AI 痕迹","Cut AI tells from any writing NOT code. Must always apply.","从任何非代码文字中去除 AI 痕迹。必须始终应用。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Funslop\u002FSKILL.md",[155,158],{"categoryNo":156,"categoryName":157,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者",{"categoryNo":159,"categoryName":160,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C1YEW2680C003GGBD6QCKB","回复风格与输出控制",[149,162,163,164,31],"apply","cut","writing",{"skillNo":166,"name":167,"nameZh":168,"description":169,"descriptionZh":170,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":171,"categories":172,"keywords":175,"publishedAt":43},"01M6BTHHFSD5H7XR3ZRBSVFVPK","rex","Rex 终端会话管理","Use the rex CLI to manage Rex sessions, open tabs, arrange panes, run commands, inspect terminal output, and control connected Rex apps.","使用 rex CLI 管理 Rex 会话、打开标签页、排列窗格、运行命令、查看终端输出，并控制已连接的 Rex 应用。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Frex\u002FSKILL.md",[173,174],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[167,176,177,146,178,179,180,181,107,104,182,112,183,184,185],"panes","inspect","apps","control","commands","arrange","open","sessions","terminal","cli",{"skillNo":187,"name":188,"nameZh":189,"description":190,"descriptionZh":191,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":192,"categories":193,"keywords":198,"publishedAt":43},"01M6BTHF5G2K3Q990PFD7BEMZ9","pr-review","GitHub PR 审查","Review a GitHub pull request, examining the summary, linked resources, and diff","审查 GitHub 拉取请求（PR），检查其摘要、关联资源和代码差异（diff）。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fpr-review\u002FSKILL.md",[194,195],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":196,"categoryName":197,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[199,200,201,202,203,36,35,34,204,205,206,207,208,209,145,210],"pr","pr review","review","diff","webfetch","pull","pull request","github","summary","request","number","resources",{"skillNo":212,"name":213,"nameZh":214,"description":215,"descriptionZh":216,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":217,"categories":218,"keywords":221,"publishedAt":43},"01M6BTHC9YP08V0S9HXH78R9FT","pr-create","GitHub PR 草稿创建","Create a GitHub pull request as a draft, auto-generating title and body from commits","创建 GitHub 拉取请求（PR）草稿，根据提交记录自动生成标题和正文。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fpr-create\u002FSKILL.md",[219,220],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":196,"categoryName":197,"taxonomyType":28,"taxonomyTypeDesc":29},[199,222,223,206,208,224,225,108,226,227,36,35,34,228,204,205],"pr create","create","body","title","draft","auto","commits"]