agentleFS
CommunityToolkitCommunityToolkit/Aspire/.agents/skills/client-integration-authoring/SKILL.md

client-integration-authoring

Skill632 starsChanged 4 days agoMITView on GitHub

Guides authoring and reviewing CommunityToolkit Aspire client integrations, including registration shape, configuration, keyed services, health checks, telemetry, READMEs, examples, and tests.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    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 when creating, modifying, or reviewing CommunityToolkit.Aspire.* client integration packages whose extension methods …

    line 8
  2. Distinctive:

    Registration shape: default service, keyed service, custom service key, or a fluent builder.

    line 16
  3. Distinctive:

    Do not force every integration into one template.

    line 19
  4. Distinctive:

    Add default and keyed registration only when both are useful and can behave consistently.

    line 26
  5. Distinctive:

    Add health checks and telemetry only when the integration can implement them reliably.

    line 27
  6. Distinctive:

    Add focused tests and documentation using testing and documentation.

    line 28
  7. Very specific:

    Add source, test, and example projects to CommunityToolkit.Aspire.slnx when new projects are created.

    line 29
  8. Very specific:

    Do not create or manually edit generated */api/*.cs files.

    line 38
  9. Distinctive:

    Keep health checks lightweight and cancellation-aware.

    line 40
  10. Distinctive:

    Avoid adding health-check, telemetry, or HTTP dependencies when the integration does not use them.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Aspire client integration authoring

Use this skill when creating, modifying, or reviewing CommunityToolkit.Aspire.* client integration packages whose extension methods register consuming-application services.

First step: classify the integration

Inspect nearby client integrations and classify the requested work:

  1. Client lifetime: singleton, scoped, transient, SDK-managed, or HttpClient-backed.
  2. Configuration source: connection string, configuration section, explicit settings, or a combination.
  3. Registration shape: default service, keyed service, custom service key, or a fluent builder.
  4. Optional concerns: health checks, tracing/metrics, Microsoft.Extensions.AI adapters, Native AOT, or multiple logical clients.

Do not force every integration into one template. Read patterns and apply only the capabilities supported by the underlying client library and demonstrated by nearby integrations.

Authoring workflow

  1. Inspect two existing client integrations with the closest registration and configuration shape.
  2. Define the smallest public API that follows the underlying SDK and repository conventions.
  3. Implement settings binding, connection-string override, and the configuration callback in a predictable order.
  4. Add default and keyed registration only when both are useful and can behave consistently.
  5. Add health checks and telemetry only when the integration can implement them reliably.
  6. Add focused tests and documentation using testing and documentation.
  7. Add source, test, and example projects to CommunityToolkit.Aspire.slnx when new projects are created.
  8. Validate with the narrowest relevant build and test commands.

Non-negotiable conventions

  • Client extension methods use the Microsoft.Extensions.Hosting namespace.
  • Client packages use CommunityToolkit.Aspire.[IntegrationName] naming and include the client package tag.
  • Public APIs require XML documentation.
  • Validate public inputs with the throw helpers used by nearby integrations.
  • Do not create or manually edit generated */api/*.cs files.
  • Fail with a clear configuration error when a client cannot be constructed unless an established integration pattern intentionally defers missing-configuration handling; do not silently create an invalid client.
  • Keep health checks lightweight and cancellation-aware.
  • Avoid adding health-check, telemetry, or HTTP dependencies when the integration does not use them.

Review workflow

Review for behavioral correctness rather than template conformity:

  • configuration precedence and missing-configuration behavior;
  • service lifetime and keyed/default symmetry;
  • duplicated registrations or health checks;
  • disposal and HttpClient usage;
  • telemetry opt-out behavior;
  • health-check names, timeouts, and failure handling;
  • README examples that match the actual API; and
  • tests that cover the supported registration shapes.

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.