update-integrations
Skill196 starsChanged 6 months agoMITView on GitHub
Update integration documentation links and API reference data by synchronizing NuGet package names with their documentation URLs and generating per-package API schemas. Use when adding new integrations, refreshing package data, ensuring integration-docs.json stays in sync with aspire-integrations.json, or regenerating API reference JSON files.
In this repository12 other files it gives its agents.
- aspireSkill
- code-reviewSkill
- container-imagesSkill
- doc-pr-reviewerSkill
- doc-testerSkill
- doc-writerSkill
- hex1bSkill
- playwright-cliSkill
- twoslash-validatorSkill
- update-samplesSkill
- whatsnewSkill
- getting-started-with-aspireSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 12 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 52
If the Aspire release branch is not publicly reachable yet, set one of the override environment variables above.
- Very specific: line 54
When the commit-specific feed is unavailable but a shared feed contains the required build, set ASPIRE_RELEASE_FEED_URL and …
- Very specific: line 99
Check if a matching entry exists in integration-docs.json (where match equals the package name)
- Very specific: line 100
If an entry exists, verify the href is correct
- Distinctive: line 101
If no entry exists, determine the appropriate documentation URL
- Distinctive: line 109
When a package has no existing mapping, determine the URL based on:
- Distinctive: line 146
If no valid documentation page can be found, flag the package for manual review
- Very specific: line 150
After updating the integration catalog, regenerate the per-package API reference JSON files.
- Distinctive: line 221
No DLLs found for the preferred TFM
- Distinctive: line 226
If an official release feed is required but not yet publicly reachable, rerun with one of the release feed override environment variables …
- Very specific: line 230
After updating aspire-integrations.json, regenerate the TypeScript API reference JSON files for the hosting packages that expose ATS …
- Distinctive: line 255
When independent packages export the same enum short name, the shared bundle combines their literals.
- Distinctive: line 257
Use the package-specific SDK to validate behavior that depends on those differences.
- Very specific: line 261
When a TypeScript module is regenerated for a new package version, stale ts-modules JSON files for older versions of that same package are …
- Very specific: line 273
Site-relative links: must end with a trailing /
- Distinctive: line 277
Do not assume a page exists without verification.
- Very specific: line 281
Write the updated integration-docs.json maintaining consistent formatting (2-space indentation, trailing newline).
- Distinctive: line 283
Run the structured-data tests after changing the catalog or documentation map:
- Distinctive: line 305
When a package name has no clear documentation mapping:
- Distinctive: line 313
After running this skill, the agent should report:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Update Integration Documentation Links & API Reference Data
This skill synchronizes the integration package catalog with documentation URL mappings and generates per-package API reference schemas. It ensures every NuGet package listed in the integrations data file has a corresponding documentation link and an up-to-date API reference JSON file.
Automation note: The scheduled
update-integration-dataworkflow (.github/workflows/update-integration-data.yml) runs this update deterministically — no agent/LLM. It executessrc/frontend/scripts/update-integration-data.ps1, which runspnpm update:all, detects"version":changes insrc/frontend/src/data/aspire-integrations.json, and — only when a version actually moves — runs the C# and TypeScript API regeneration (and the twoslash bundle) before opening a PR via the Aspire bot GitHub App. You can reproduce the full flow locally withpwsh src/frontend/scripts/update-integration-data.ps1(add-SkipRegenfor a fast data-only run). Use this skill for manual or one-off runs that need judgment — for example: adding a new integration, reconcilingintegration-docs.json, validating release-branch feed resolution, troubleshooting a regen failure flagged by the workflow's PR, or regenerating data outside the scheduled cadence.
Overview
The automated flow also reconciles documentation mappings and runs pnpm test:unit:structured-data before API regeneration or PR creation. This uses a data-only Vitest configuration so validation does not rewrite Astro's generated assets. Mapping changes are included in the generated PR.
The aspire.dev site maintains three key data locations:
src/frontend/src/data/aspire-integrations.json— Package metadata fetched from the configured package feeds (titles, descriptions, icons, versions, download counts).src/frontend/src/data/integration-docs.json— Mappings from package names to site-relative documentation URLs.src/frontend/src/data/pkgs/— Per-package API reference JSON files (e.g.Aspire.Hosting.Redis.13.1.2.json) generated by thePackageJsonGeneratortool. These feed the auto-generated API reference pages at/reference/api/.src/frontend/src/data/ts-modules/— Per-package TypeScript API reference JSON files (e.g.Aspire.Hosting.Redis.13.2.0.json) generated by theAtsJsonGeneratortool. These feed the auto-generated TypeScript API reference pages at/reference/api/typescript/.src/frontend/src/data/twoslash/aspire.d.ts— A single consolidated TypeScript declaration bundle generated from thets-modulesJSON byscripts/generate-twoslash-types.ts. Consumed byexpressive-code-twoslashto provide hover tooltips for TypeScript code samples in the docs. Source-controlled — commit the diff wheneverts-moduleschanges.
This skill keeps the documentation mappings in sync with the package catalog and regenerates both the C# and TypeScript API reference data.
Prerequisites
- Node.js installed and available on
PATH - .NET SDK installed and available on
PATH(required for thePackageJsonGeneratortool) - PowerShell (pwsh) available on
PATH(for running the generation script) - Working directory is the repository root
- The frontend project dependencies are installed (
pnpm installinsrc/frontend/)
Release branch package source behavior
- On
mainand all non-release/*branches, official Aspire packages resolve fromhttps://api.nuget.org/v3/index.json - On
release/*branches, official packages (Aspire.*) must resolve from the branch-specific public Azure Artifacts feed instead of nuget.org - Community Toolkit packages (
CommunityToolkit.Aspire.*) always resolve from nuget.org - The branch name in this repo is expected to match the corresponding branch in
microsoft/aspire(for examplerelease/13.2) - The release feed name follows
darc-pub-microsoft-aspire-{shortSha}where{shortSha}is the first 8 characters of the head commit SHA for the matching Aspire release branch - The automation derives the NuGet service index from that feed name as
https://pkgs.dev.azure.com/dnceng/public/_packaging/{feed-name}/nuget/v3/index.json
Release feed resolution
The scripts use this precedence on release/* branches:
ASPIRE_RELEASE_FEED_URL— accepts the full NuGet service index URL, the Azure DevOps feed page URL, or the raw feed nameASPIRE_RELEASE_FEED_NAME— explicit feed name such asdarc-pub-microsoft-aspire-aad16017ASPIRE_RELEASE_COMMIT/ASPIRE_RELEASE_COMMIT_SHA— derives the feed name from the commit SHA prefix- Automatic lookup of the matching branch head via
git ls-remoteagainsthttps://github.com/microsoft/aspire
If the Aspire release branch is not publicly reachable yet, set one of the override environment variables above. The scripts intentionally fail on release/* if the official release feed cannot be resolved, to avoid accidentally ingesting stale nuget.org packages.
When the commit-specific feed is unavailable but a shared feed contains the required
build, set ASPIRE_RELEASE_FEED_URL and ASPIRE_RELEASE_VERSION together. The
version must be an exact package version matching the release branch, not a range.
Official packages select only that version; Toolkit packages keep their normal
nuget.org selection. Packages absent from that build retain an existing catalog
entry, if any, rather than importing a different release. An unavailable pin for
the entire integration set, an unlisted/deprecated pinned version, or a pinned
registration lookup failure stops the update before the catalog is written.
Selected-version registration metadata supplies release descriptions and tags.
Where no published nuget.org icon metadata exists, the updater reports use of the
public Aspire site icon instead of embedding an unpublished or authenticated-feed
image URL.
For an app-managed worktree whose branch name is not release/*, set
BUILD_SOURCEBRANCH=refs/heads/release/N.N in the update process alongside those
overrides. This supplies the existing branch-resolution context without renaming
or switching the worktree. Do not set these variables globally. Review the
resolved source and version before regeneration; C# and TypeScript generators
consume the resulting catalog's exact versions.
Step-by-Step Process
1. Run the update script
Fetch the latest package data from the configured package feeds:
pnpm --dir ./src/frontend update:integrationsThis writes updated package metadata to src/frontend/src/data/aspire-integrations.json. The script queries the NuGet v3 API for packages matching owner:aspire, Aspire.Hosting., and CommunityToolkit.Aspire, then filters out deprecated, unlisted, and excluded packages.
It also removes documentation mappings for Aspire and Community Toolkit packages absent from the updated catalog. Manually curated third-party mappings are preserved, and new documentation URLs still require manual resolution.
On release/* branches, the script queries the branch-specific official Aspire feed for Aspire.* packages and continues to query nuget.org for CommunityToolkit.Aspire.* packages.
2. Read the updated package data
Load src/frontend/src/data/aspire-integrations.json and extract all package names from the title field of each entry in the JSON array.
3. Update integration documentation mappings
Load src/frontend/src/data/integration-docs.json and reconcile it with the package list:
- For each package name (from
titlefield) inaspire-integrations.json:- Check if a matching entry exists in
integration-docs.json(wherematchequals the package name) - If an entry exists, verify the
hrefis correct - If no entry exists, determine the appropriate documentation URL
- Check if a matching entry exists in
- Remove stale entries for catalog-managed Aspire and Community Toolkit packages no longer in
aspire-integrations.json. Preserve mappings for third-party packages outside the catalog's sources. - Preserve existing correct mappings — do not change entries that are already accurate
4. Determining documentation URLs
When a package has no existing mapping, determine the URL based on:
Package name patterns
| Package prefix | Documentation path pattern |
Aspire.Hosting.Azure.* | /integrations/cloud/azure/{service-name}/ |
Aspire.Azure.* | /integrations/cloud/azure/{service-name}/ |
Aspire.Hosting.{Tech} | /integrations/{category}/{tech}/ |
Aspire.{Client}.{Driver} | /integrations/{category}/{tech}/ |
CommunityToolkit.Aspire.Hosting.* | /integrations/{category}/{tech}/ |
CommunityToolkit.Aspire.* | /integrations/{category}/{tech}/ |
Technology categories
The documentation site organizes integrations into these categories:
| Category path | Technologies |
/integrations/ai/ | OpenAI, Ollama, Milvus, Qdrant |
/integrations/caching/ | Redis, Valkey, Garnet, Memcached |
/integrations/cloud/azure/ | All Azure services |
/integrations/compute/ | Orleans, Dapr |
/integrations/databases/ | PostgreSQL, SQL Server, MySQL, MongoDB, Cosmos DB, Oracle, Elasticsearch, Milvus, Qdrant |
/integrations/databases/efcore/ | EF Core variants of database integrations |
/integrations/devtools/ | Developer tools and utilities |
/integrations/frameworks/ | Framework integrations |
/integrations/messaging/ | Kafka, RabbitMQ, NATS, Azure Service Bus, Event Hubs |
/integrations/observability/ | OpenTelemetry, Seq, logging |
/integrations/reverse-proxies/ | YARP |
/integrations/security/ | Keycloak, Key Vault |
URL resolution strategy
- Match against existing similar package mappings in
integration-docs.json - Infer from the package name and technology category
- Verify the page exists — check the file system under
src/frontend/src/content/docs/, then use Playwright CLI to confirm the route renders - If no valid documentation page can be found, flag the package for manual review
5. Generate API reference data
After updating the integration catalog, regenerate the per-package API reference JSON files. The generate-package-json.ps1 script automates this:
cd src/tools/PackageJsonGenerator && pwsh ./generate-package-json.ps1The script performs the following for every package listed in aspire-integrations.json:
- Resolves the correct package source per package: official Aspire packages use the branch-specific release feed on
release/*, while Community Toolkit packages continue to use nuget.org. - Queries that package source for the latest stable version (falls back to latest preview if no stable exists).
- Downloads the package into the local NuGet cache via
dotnet restoreif not already cached. Provisioning SDK overlays restore with the same-versionAspire.Hostingreference to model their AppHost context; other packages retain standalone per-package restore graphs. Dependency errors remain fatal. - Selects the best-matching target framework folder (prefers
net10.0, thennet9.0, etc.). - Uses Roslyn to analyze the assembly and extract all public types, members, XML docs, and attributes.
- Writes a
{Package}.{Version}.jsonfile tosrc/frontend/src/data/pkgs/.
An assembly that opts into an AspireExportProvider can expose generated ATS
APIs without public C# types. For those assemblies, the generator retains package
identity and provenance with types: [] and package.hasGeneratedExports: true.
This record feeds TypeScript generation and requires a corresponding TypeScript
module at semantic validation. It does not add an empty C# package to API navigation.
Build-only packages without public types or generated-export opt-ins remain explicit skips.
The generated JSON follows this schema:
{
"package": {
"name": "Aspire.Hosting.Redis",
"version": "13.1.2",
"targetFramework": "net10.0"
},
"types": [
{
"name": "TypeName",
"fullName": "Namespace.TypeName",
"namespace": "Namespace",
"kind": "class",
"accessibility": "public",
"members": [ ... ],
"docs": { ... }
}
]
}These files are consumed by the packages content collection defined in src/frontend/src/content.config.ts and used to render API reference pages at /reference/api/{package}/{type}/.
Selective regeneration
To regenerate API data for specific packages only:
pwsh ./generate-package-json.ps1 -Packages @("Aspire.Hosting.Redis", "Aspire.Hosting.PostgreSQL")Targeting a different framework
To use a different target framework (e.g. net10.0):
pwsh ./generate-package-json.ps1 -Framework "net10.0"Handling failures
The script reports a summary of successes, failures, and skipped packages. Common reasons for skips or failures:
- Package has no
lib/folder (meta-packages, build-only packages) - No DLLs found for the preferred TFM
- NuGet API resolution failure
Packages that fail should be investigated individually — they may need a different framework target or may not ship a public API surface.
If an official release feed is required but not yet publicly reachable, rerun with one of the release feed override environment variables set.
5a. Generate TypeScript API reference data
After updating aspire-integrations.json, regenerate the TypeScript API reference JSON files for the hosting packages that expose ATS capabilities:
pnpm --filter ./src/frontend run update:ts-apiThe companion generate-ts-api-json.ps1 script reads the generated C# package JSON files in src/frontend/src/data/pkgs/, selects Aspire.Hosting, Aspire.Hosting.*, and CommunityToolkit.Aspire.Hosting.* packages, and passes each package/version through to aspire sdk dump. This keeps src/frontend/src/data/ts-modules/ aligned with the same package set and versions that already flowed through C# API generation.
Radius versions exporting the generic IDotnetProgramResource overload are
scanned with Aspire.Hosting.Dotnet as supporting context. Its exact version
comes from the generated C# metadata, so the scanner can retain the export on
DotnetProjectResource while the concrete overload serves legacy project
resources. Generate the Dotnet module first when regenerating Radius selectively.
The transformer excludes core and supporting APIs using their generated modules;
it preserves Radius's real capability IDs and expanded receiver targets.
A scanner collision that removes the generic export must be fixed upstream,
not hidden by changing the C# metadata or weakening API-reference validation.
For generated-export overlays, the script also obtains the matching
aspire sdk export --language typescript document. Referenced SDK enum definitions
missing from the raw dump are taken from that canonical export, with package identity
and unambiguous ownership checks. Union members are preserved during transformation;
missing or unsupported enum definitions fail generation rather than becoming empty
interface stubs. Semantic validation checks enum members in the final Twoslash bundle.
The bundle represents enums as string unions with companion constant objects.
When independent packages export the same enum short name, the shared bundle
combines their literals; each package's API JSON retains its exact enum surface.
Use the package-specific SDK to validate behavior that depends on those differences.
The generator rejects nonzero SDK dump exits and error diagnostics even when a JSON
file was produced. An incomplete dump isn't a successful API-generation result.
When a TypeScript module is regenerated for a new package version, stale ts-modules JSON files for older versions of that same package are deleted automatically. Regenerated modules with no functions or types are omitted from src/frontend/src/data/ts-modules/.
After the JSON is refreshed, update-ts-api automatically chains generate-twoslash-types.ts to rebuild src/frontend/src/data/twoslash/aspire.d.ts. This bundle is source-controlled and its diff must be committed alongside the ts-modules JSON changes — without it, docs hover tooltips fall back to any. If you only need to refresh the bundle (e.g. after a generator script change) without running the full SDK dump, use:
cd src/frontend && pnpm twoslash-types6. Verify all links
For every entry in the updated integration-docs.json:
- Site-relative links must end with a trailing
/ - External links (e.g., AWS docs) are allowed and should use full URLs
- All site-relative links must point to existing documentation pages — check by verifying a corresponding
.mdxfile exists undersrc/frontend/src/content/docs/
Do not assume a page exists without verification.
7. Save the result
Write the updated integration-docs.json maintaining consistent formatting (2-space indentation, trailing newline). The API reference JSON files in src/frontend/src/data/pkgs/ are written directly by the generation script and require no additional save step.
Run the structured-data tests after changing the catalog or documentation map:
pnpm --dir ./src/frontend test:unit:structured-dataEntry format
Each entry in integration-docs.json follows this structure:
{
"match": "Aspire.Hosting.Redis",
"href": "/integrations/caching/redis/redis-get-started/"
}match— The exact NuGet package name (from thetitlefield inaspire-integrations.json)href— A site-relative path (with trailing/) or an external URL
Handling unmapped packages
When a package name has no clear documentation mapping:
- Do not invent a URL — only use paths that correspond to real pages
- List the package for manual review with a note explaining why no mapping was found
- These packages likely need new documentation pages written (hand off to the
doc-writerskill)
Example output
After running this skill, the agent should report:
- Number of packages in
aspire-integrations.json - Number of mapped entries in
integration-docs.json - Any new mappings added
- Any stale mappings removed
- Any packages that could not be mapped (flagged for manual review)
- Number of API reference JSON files generated (success / failed / skipped)
- Any packages that failed API generation, with reasons
- Confirmation that
src/frontend/src/data/twoslash/aspire.d.tswas refreshed (and that the diff will be committed)
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
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.

