agentleFS
Microsoft AzureKnown publisherAzure/azure-functions-extension-bundles/.github/skills/extension-bundle-dependency-review/SKILL.md

extension-bundle-dependency-review

Skill84 starsChanged 20 months agoMITView on GitHub

Run extension-bundle unit and emulator tests, investigate dependency baseline failures against Azure DevOps builds, assess shared and host runtime risks, and update approved dependency baselines. Use when bundle dependency validation or emulator tests fail, an assembly major version changes, or someone asks to review, accept, or pin a dependency bump.

The file

Show its rules and text

We split this skill into the rules it gives an agent

37 rules. About 0 are common, 30 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈30

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use this skill only in the Azure/azure-functions-extension-bundles repository.

    line 8
  2. Distinctive:

    Use the branch supplied by the user.

    line 12
  3. Distinctive:

    If no branch is supplied, use the current Git branch when it has an upstream Azure DevOps build history.

    line 13
  4. Distinctive:

    Do not update dependency baselines merely to make tests pass.

    line 23
  5. Distinctive:

    If multiple extensions consume the dependency and the major upgrade can break compatibility, stop before editing.

    line 26
  6. Distinctive:

    If the host carries or overrides the assembly at another major version, stop before editing unless compatibility with the host resolution …

    line 27
  7. Distinctive:

    Do not treat a host source change as available until the pipeline's Core Tools or host artifact contains it.

    line 28
  8. Distinctive:

    Do not claim a transitive dependency path without evidence from a deps file, assets file, NuGet metadata, or package contents.

    line 30
  9. Distinctive:

    Do not classify a type-resolution error as independent when a missing assembly appears in the type's signature or generated state machine.

    line 31
  10. Distinctive:

    Do not assume a newer dependency requires a newer .NET SDK.

    line 32
  11. Distinctive:

    Create a dedicated working branch from the branch being investigated before editing baselines.

    line 38
  12. Distinctive:

    If the working branch already contains prior dependency-review edits, ask the user whether to reset, amend, or continue before proceeding.

    line 42
  13. Very specific:

    If the failure is caused by missing restored assets, run the repository's existing restore command from …

    line 53
  14. Distinctive:

    If tests pass, report that no dependency review or baseline update is needed and stop.

    line 64
  15. Distinctive:

    If failures are unrelated to dependency validation, report them and stop this workflow.

    line 65
  16. Distinctive:

    If Azure DevOps queries fail due to authentication, network errors, or rate limiting, report the exact error and stop.

    line 81
  17. Distinctive:

    Follow continuation tokens if the first page does not contain the transition.

    line 84
  18. Distinctive:

    Do not compare a non-adjacent success and failure, because that can combine several extension updates.

    line 90
  19. Distinctive:

    verify that the new extension package was published between the two build timestamps using package metadata.

    line 113
  20. Very specific:

    Read NuGet.config and honor both <packageSources> and <packageSourceMapping> when selecting the source for the package.

    line 115
  21. Very specific:

    use the catalog entry's packageContent URL to download the .nupkg when package inspection is needed.

    line 123
  22. Very specific:

    Use dotnet restore --configfile NuGet.config when restoring a project so package source mapping and configured credentials are applied …

    line 127
  23. Distinctive:

    If multiple extension packages changed, use the failing assembly's dependency graph to identify every responsible package rather than …

    line 132
  24. Very specific:

    Use the targets and libraries sections to:

    line 140
  25. Distinctive:

    Treat two extensions as consumers even if they reach the assembly through different transitive paths.

    line 155
  26. Distinctive:

    verify the project TFM and selected NuGet asset TFM before recommending an SDK upgrade.

    line 171
  27. Distinctive:

    If a proposed host fix changes assembly resolution, wait until that host commit is present in the Core Tools or host artifact used by the …

    line 173
  28. Distinctive:

    If more than one extension consumes the assembly:

    line 179
  29. Distinctive:

    read official release notes, changelogs, and migration guidance for the library versions spanning the major bump.

    line 181
  30. Distinctive:

    Prefer first-party project and NuGet sources.

    line 186
  31. Distinctive:

    Search case-insensitively for the failing assembly.

    line 196
  32. Distinctive:

    If pinning is requested, verify the pin changes the resolved shared graph as intended.

    line 220
  33. Distinctive:

    Update only configurations reported by the test unless the generated files prove the same reviewed change applies to another tracked …

    line 234
  34. Distinctive:

    When the user requests a commit and pull request:

    line 256
  35. Distinctive:

    commit on the dedicated working branch.

    line 259
  36. Very specific:

    read and preserve .github/pull_request_template.md.

    line 261
  37. Distinctive:

    Do not leave template placeholders or claim unrelated test coverage.

    line 267

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Extension bundle dependency review

Use this skill only in the Azure/azure-functions-extension-bundles repository.

Inputs

  • Use the branch supplied by the user.
  • If no branch is supplied, use the current Git branch when it has an upstream Azure DevOps build history. Otherwise, ask which branch to inspect.
  • The public Azure DevOps pipeline is definition 939: https://dev.azure.com/azfunc/public/_build?definitionId=939
  • The internal Azure DevOps pipeline used for Linux release artifacts is definition 922: https://dev.azure.com/azfunc/internal/_build?definitionId=922
  • A build used to establish an automatic dependency transition must be a scheduled build for the selected branch.
  • A user-supplied manual build may be used to diagnose or retest that exact branch and commit. Record its reason instead of rejecting it for not being scheduled.

Safety rules

  • Do not update dependency baselines merely to make tests pass.
  • Establish the extension responsible for the bump, all extension consumers of the assembly, and Azure Functions host resolution behavior first.
  • A single-extension dependency that is not shared with the host can normally be accepted when the responsible extension has already validated the upgrade.
  • If multiple extensions consume the dependency and the major upgrade can break compatibility, stop before editing. Report the affected extensions and the coordination/testing required.
  • If the host carries or overrides the assembly at another major version, stop before editing unless compatibility with the host resolution policy is established.
  • Do not treat a host source change as available until the pipeline's Core Tools or host artifact contains it.
  • Preserve unrelated worktree changes. Do not commit unless explicitly requested.
  • Do not claim a transitive dependency path without evidence from a deps file, assets file, NuGet metadata, or package contents.
  • Do not classify a type-resolution error as independent when a missing assembly appears in the type's signature or generated state machine. Establish the causal relationship first.
  • Do not assume a newer dependency requires a newer .NET SDK. Check the selected target-framework assets and build errors.

Workflow

0. Prepare a working branch

Create a dedicated working branch from the branch being investigated before editing baselines. Fetch the remote first. If the requested working branch already exists remotely, switch to its tracking branch and pull it with fast-forward only instead of recreating it. Preserve unrelated worktree changes and do not include them in the dependency-review commit. If the working branch already contains prior dependency-review edits, ask the user whether to reset, amend, or continue before proceeding.

1. Run the same unit tests as CI

Resolve every **/*Tests.csproj under the repository. Run each with:

dotnet test <project> --configuration Release --no-restore

If the failure is caused by missing restored assets, run the repository's existing restore command from eng/ci/templates/jobs/run-unit-test.yml, then rerun the test. Do not restore automatically for other failures.

Capture every dependency-validation change, including:

  • baseline and generated deps file paths
  • assembly name
  • old and new assembly versions
  • old and new file versions
  • affected runtime configurations

If tests pass, report that no dependency review or baseline update is needed and stop. If failures are unrelated to dependency validation, report them and stop this workflow.

2. Select the build transition

Query Azure DevOps for scheduled builds of definition 939 on the exact branch ref (refs/heads/<branch>). The public REST API is:

https://dev.azure.com/azfunc/public/_apis/build/builds
  ?definitions=939
  &branchName=refs/heads/<branch>
  &reasonFilter=schedule
  &queryOrder=queueTimeDescending
  &api-version=7.1

If Azure DevOps queries fail due to authentication, network errors, or rate limiting, report the exact error and stop; do not proceed with baseline updates using local evidence alone.

Follow continuation tokens if the first page does not contain the transition. Sort the returned runs chronologically and select the most recent adjacent transition where:

  1. the earlier scheduled build completed successfully, and
  2. the immediately following scheduled build failed.

Do not compare a non-adjacent success and failure, because that can combine several extension updates. Record both build IDs, timestamps, source commits, results, and links. If no adjacent transition exists, report that the build pair could not be established. A user-requested branch build can still be analyzed as diagnostic evidence, but it does not establish package publication timing.

3. Download and compare any_any artifacts

For both builds, enumerate artifacts with:

https://dev.azure.com/azfunc/public/_apis/build/builds/<buildId>/artifacts?api-version=7.1

Download bundle_artifact. If that exact name is absent, inspect the artifact list and select the artifact that actually contains the any_any bundle; report the observed artifact name rather than silently assuming one. Extract both builds into a temporary directory outside the repository and remove it when finished.

Within each artifact:

  1. locate the any_any bundle content;
  2. locate and compare its generated .csproj files;
  3. compare PackageReference IDs and resolved versions structurally, not only as raw text;
  4. identify which extension NuGet changed between the builds; and
  5. verify that the new extension package was published between the two build timestamps using package metadata.

Read NuGet.config and honor both <packageSources> and <packageSourceMapping> when selecting the source for the package. Do not call api.nuget.org directly; it may be blocked in the development environment.

From the selected source's NuGet v3 service index:

  1. resolve its RegistrationsBaseUrl/3.6.0 resource;
  2. query <registration-base>/<lower-case-package-id>/index.json;
  3. select the exact version's catalog entry and record its published, dependency groups, and packageContent;
  4. use the catalog entry's packageContent URL to download the .nupkg when package inspection is needed; or
  5. resolve PackageBaseAddress/3.0.0 and download <package-base>/<lower-case-id>/<lower-case-version>/<lower-case-id>.<lower-case-version>.nupkg.

Use dotnet restore --configfile NuGet.config when restoring a project so package source mapping and configured credentials are applied consistently. Public feeds require no added credentials. For authenticated feeds, use the environment's existing Azure Artifacts credential provider or access token without printing or persisting the credential. Never add a source, token, or credential to the repository.

If multiple extension packages changed, use the failing assembly's dependency graph to identify every responsible package rather than guessing from timestamps or attributing a shared dependency to the first changed extension.

4. Trace the failing library to extension consumers

Open the failing build artifact's functions.deps.json. If the artifact uses a differently named generated deps file, use the equivalent file containing the full bundle dependency graph and report its actual path.

Use the targets and libraries sections to:

  1. find packages whose runtime assets contain the failing assembly;
  2. walk dependency edges backward through transitive packages; and
  3. identify every top-level extension package that reaches that assembly.

Report each complete evidence-backed chain using this shape:

top-level extension
  -> transitive package
  -> package containing or depending on the assembly
  -> failing assembly

Treat two extensions as consumers even if they reach the assembly through different transitive paths. Remember that the bundle has one shared dependency graph: an incompatible assembly selected by one upgraded extension can break unchanged extensions at startup.

5. Diagnose emulator failures

For a branch or validation build, inspect the failed stage, job, and task logs rather than relying only on the overall result. Separate expected dependency-baseline failures from emulator/runtime failures.

For emulator failures:

  1. inventory passing and failing emulator suites to identify a shared startup failure;
  2. compare the generated function.deps.json dependency and runtime entries with DLLs physically present in the bundle;
  3. record the requested assembly version, the packaged version or absence, and the host-provided version;
  4. trace secondary type-load failures through method signatures, generated async state machines, package assets, and source diffs before declaring a separate extension regression; and
  5. verify the project TFM and selected NuGet asset TFM before recommending an SDK upgrade.

If a proposed host fix changes assembly resolution, wait until that host commit is present in the Core Tools or host artifact used by the emulator pipeline, then rerun the emulator tests. A merged host PR alone is insufficient validation.

6. Assess cross-extension breaking-change risk

If more than one extension consumes the assembly:

  1. read official release notes, changelogs, and migration guidance for the library versions spanning the major bump;
  2. identify binary, API, serialization, or behavioral breaking changes relevant to the discovered paths;
  3. determine whether all consuming extensions support the same loaded major version; and
  4. require coordinated validation when compatibility is not clearly established.

Prefer first-party project and NuGet sources. Include links and distinguish documented facts from inference.

7. Check Azure Functions host resolution

Inspect the current dev version of:

https://github.com/Azure/azure-functions-host/blob/dev/src/WebJobs.Script/runtimeassemblies.json

Search case-insensitively for the failing assembly. When present:

  1. record the host package and assembly versions and resolutionPolicy;
  2. find the implementation and tests for that policy in Azure/azure-functions-host;
  3. explain whether the host unifies, overrides, rejects, or otherwise constrains the extension assembly;
  4. compare the policy's accepted version range with the extension's new major version; and
  5. inspect pending host changes when relevant, but distinguish source-branch compatibility from the host version actually used by the emulator build.

Also inspect directly related host runtime-assembly manifests when the referenced policy requires them. Absence from runtimeassemblies.json must be reported explicitly; do not infer host sharing solely from absence.

8. Decide whether to accept or pin

Apply the first matching decision in this table:

ConditionDecision
Host policy conflicts with the new assembly major, or a required host-side change is absent from the host artifact used by emulator testshost conflict risk
Multiple extensions consume the assembly and compatibility across all consumers is not establishedcoordination required
The responsible package, complete consumer set, or responsible extension's validation is missinginconclusive
An automatic dependency-transition review lacks matching publication timing from an adjacent scheduled build pairinconclusive
Host compatibility, consumer compatibility, responsible package, release evidence when required, and extension validation are all establishedsafe to update

If pinning is requested, verify the pin changes the resolved shared graph as intended. Pinning one extension may not remove the conflicting assembly when another extension independently requires the same major version.

9. Update baselines

For an acceptable bump, copy each locally generated extensions.deps.json over only its corresponding baseline:

Runtime configurationBaseline
any_anytests/ExtensionBundle.Tests/TestData/any_any_extensions.deps.json
win_x64tests/ExtensionBundle.Tests/TestData/win_x64_extensions.deps.json
win_x86tests/ExtensionBundle.Tests/TestData/win_x86_extensions.deps.json
linux_x64tests/ExtensionBundle.Tests/TestData/linux_x64_extensions.deps.json

Update only configurations reported by the test unless the generated files prove the same reviewed change applies to another tracked configuration.

On Windows, obtain the Linux baseline from internal pipeline definition 922:

  1. filter runs to the exact concerned branch;
  2. select the latest failed run whose Build stage succeeded;
  3. confirm the run's source commit and generated extension versions match the change under review;
  4. enumerate that run's artifacts and use the zip artifact;
  5. download only /Microsoft.Azure.Functions.ExtensionBundle.<version>_linux-x64.zip from the artifact rather than downloading the complete multi-gigabyte artifact;
  6. extract bin_v3/linux-x64/function.deps.json;
  7. confirm it contains the complete reviewed dependency graph, not merely one of several requested bumps; and
  8. copy it to tests/ExtensionBundle.Tests/TestData/linux_x64_extensions.deps.json.

The pipeline artifact single-file REST request uses its resource.downloadUrl with format=file and a URL-encoded, leading-slash subPath. Authenticate internal Azure DevOps requests without printing access tokens.

Rerun the CI-equivalent test command after editing.

10. Commit and open the pull request

When the user requests a commit and pull request:

  1. stage only the reviewed dependency baselines and this skill when it changed;
  2. commit on the dedicated working branch;
  3. push the branch without force;
  4. read and preserve .github/pull_request_template.md;
  5. open the PR against the investigated base branch; and
  6. fill the template with brief evidence-based justification from this review: the build transition, responsible extension release, dependency chain and consumer count, emulator result, host resolution result, updated configurations, and final test result.

Do not leave template placeholders or claim unrelated test coverage. When queueing Azure DevOps against a specific commit, pass the full 40-character source SHA.

Required result

Lead with one decision: safe to update, coordination required, host conflict risk, or inconclusive. Then provide:

  • local test summary and exact assembly bump
  • selected successful/failing build pair, or why no scheduled pair was available
  • changed extension NuGet and publication evidence
  • complete dependency chain(s) and all consumers
  • emulator test diagnosis, when applicable
  • breaking-change assessment when shared
  • host manifest/policy result and the host version actually tested
  • baseline or pin files changed, if any
  • final test result

Include source URLs and file paths. State missing evidence plainly and never convert an inconclusive review into an automatic baseline update.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.