agentleFS
Microsoft AzureKnown publisherAzure/azure-dev/.github/skills/azd-grpc-contracts/SKILL.md

azd-grpc-contracts

Skill573 starsChanged 8 months agoMITView on GitHub

**WORKFLOW SKILL** - Inspects and evolves azd extension protobuf contracts across the stable v1 and preview v1beta channels. Reports the current channel state and delta, validates v1beta additions, implements beta-only services or focused overrides, and safely graduates compatible functionality from v1beta to v1.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    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. Distinctive:

    Use this workflow as the safest and easiest path for changing the extension protobuf API.

    line 25
  2. Distinctive:

    Before changing these files, read:

    line 35
  3. Distinctive:

    Never edit generated protobuf, facade, or adapter files directly.

    line 41
  4. Very specific:

    Every stable symbol and method shape must have a compatible counterpart in v1beta.

    line 61

≈ “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

azd gRPC contract lifecycle

Use this workflow as the safest and easiest path for changing the extension protobuf API. It owns the relationship between:

  • Stable source: cli/azd/grpc/proto/azd/extensions/v1
  • Preview source: cli/azd/grpc/proto/azd/extensions/v1beta
  • Generated contracts: cli/azd/pkg/azdext/contracts/{v1,v1beta}
  • Stable SDK facade: cli/azd/pkg/azdext
  • Generated beta adapters: cli/azd/internal/grpcserver/versioned_services_generated.go

Before changing these files, read:

  1. cli/azd/AGENTS.md
  2. cli/azd/docs/extensions/contract-versioning.md
  3. cli/azd/grpc/README.md

Never edit generated protobuf, facade, or adapter files directly.

Choose the workflow

RequestWorkflow
Explain the current channels or their differencesInspect state and delta
Add a preview field, enum value, method, message, or serviceAdd to v1beta
Move a validated preview capability into stableGraduate to v1
Review a protobuf changeValidate the change

{{ references/inspect-and-validate.md }}

{{ references/add-to-v1beta.md }}

{{ references/graduate-to-v1.md }}

Required invariants

  • v1 is compatibility protected and changes only additively.
  • Every stable symbol and method shape must have a compatible counterpart in v1beta; equivalently, v1 must remain a subset of v1beta.
  • A v1beta addition must not accidentally alter or remove an existing stable field, enum value, oneof, message, service, method, or streaming shape.
  • Beta-only behavior on a shared service needs a focused generated override. Unary adaptation discards beta request fields unknown to v1. Bidirectional stream adaptation preserves unknown wire fields for compatibility, but does not expose them as typed stable fields.
  • A beta-only service uses its native v1beta implementation rather than a stable adapter.
  • Graduation adds a compatible shape to v1; it does not remove the beta route.
  • Changing an existing public Go accessor from a v1beta return type to v1 is source-breaking. Stop and get an explicit API migration decision before making that change.

Exit criteria

  • The requested contract shape exists in the correct channel.
  • Stable-to-beta compatibility passes with an actionable result: make proto-version-compatibility.
  • Historical compatibility and lint checks pass.
  • Generated files are current.
  • Runtime registration and any required focused overrides are covered by tests.
  • SDK documentation and requiredAzdVersion are updated when consumers need a newer host.

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.