agentleFS
Microsoft AzureKnown publisherAzure/azure-functions-skills/templates/skills/azure-functions-connector-create/SKILL.md

azure-functions-connector-create

Skill22 starsChanged 12 days agoMITView on GitHub

Create and authorize a Connector Namespace connection for an Azure Functions Hosted Skill. Use when the user needs to add Outlook, Teams, SharePoint, Azure DevOps, or another managed connector; determine connector authentication requirements; provision connection access policies; or prepare an authorized connection for MCP configuration. Do not use for MCP schema generation alone or ordinary Hosted Skill authoring.

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create the Connector Namespace, connection, and identity boundary that a Hosted Skill needs before an MCP server config can expose …

    line 10
  2. Distinctive:

    Ask only for unresolved decisions.

    line 47
  3. Very specific:

    Inspect the application: Read azure.yaml, infra/, src/mcp.json, agent definitions, and existing Microsoft.Web/connectorGateways resources.

    line 52
  4. Very specific:

    Discover the connector contract: Read the managed API metadata for the target connector and region.

    line 58
  5. Very specific:

    Create stable infrastructure: Prefer Bicep and azd for the Connector Namespace, connection, identities, access policies, non-secret …

    line 67
  6. Distinctive:

    Use least privilege at both the connection-access and operation levels.

    line 84
  7. Distinctive:

    Do not infer authentication schemes or required values from connector display names.

    line 85
  8. Distinctive:

    Do not print connection runtime URLs, tokens, consent artifacts, callback URLs, or secrets.

    line 86
  9. Distinctive:

    Do not automate delegated OAuth sign-in.

    line 87
  10. Distinctive:

    Do not treat a successfully created resource as an authorized connection.

    line 88
  11. Distinctive:

    Do not silently reuse a connection authorized as the wrong downstream user.

    line 89
  12. Distinctive:

    If a connector's required value-based connection shape is not verified, report it as unsupported rather than guessing.

    line 90
  13. Very specific:

    Do not run a deployment collector from this connector skill.

    line 92
  14. Distinctive:

    no MCP operation schema was manually simplified during connection creation,

    line 105

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

Create a Connector for Azure Functions Hosted Skills

Create the Connector Namespace, connection, and identity boundary that a Hosted Skill needs before an MCP server config can expose connector operations. Treat connection creation as privileged control-plane work. A Hosted Skill must not create connections or complete consent during an ordinary runtime invocation.

Ownership

This skill owns:

  • connector catalog and authentication discovery,
  • Connector Namespace and connection planning,
  • connection creation parameters,
  • access policies for the Function App identity and approved deployment principals,
  • the interactive authorization handoff,
  • verification that the intended account is connected.

It does not own:

  • generating or registering connector MCP operation schemas; use azure-functions-connector-mcp,
  • validating the complete deployed MCP contract and side effects; use azure-functions-connector-validate,
  • writing the Hosted Skill's instructions, triggers, or business behavior; use azure-functions-hosted-skills,
  • general Azure deployment execution when Azure Skills should own it.

Required inputs

Establish these facts before creating resources:

  • Hosted Skill goal and the external system it needs.
  • Required reads, writes, triggers, and user-visible side effects.
  • Azure subscription, resource group, Connector Namespace name, and supported region.
  • Function App managed identity principal ID and tenant ID.
  • Account or service identity that should own downstream authorization.
  • Whether the user wants a new connection or to reuse an existing authorized connection.

Ask only for unresolved decisions. Never request secrets in chat. For Teams targets, ask for a Teams link rather than raw team, channel, or chat IDs.

Workflow

  1. Inspect the application. Read azure.yaml, infra/, src/mcp.json, agent definitions, and existing Microsoft.Web/connectorGateways resources. Preserve existing naming and infrastructure patterns.
  2. Translate intent into capabilities. Identify the minimum connector operations and side effects needed. Prefer read, draft, or review capabilities over send, delete, or update when those satisfy the goal.
  3. Discover the connector contract. Read the managed API metadata for the target connector and region. Inspect both connectionParameters and connectionParameterSets; do not assume the Office 365 OAuth pattern applies to another connector.
  4. Choose authentication explicitly. Select a named parameter set only after verifying its required values. Distinguish delegated OAuth, service-principal, certificate, and value-based authentication. Source secrets from an approved secret store.
  5. Plan the identity boundary. Grant connection access only to the Function App identity, approved deployment/local-development principals, and provider identities that the Connector Namespace contract requires.
  6. Create stable infrastructure. Prefer Bicep and azd for the Connector Namespace, connection, identities, access policies, non-secret settings, and outputs. Do not hand-author an MCP operation schema in this phase.
  7. Complete authorization explicitly. Open the Connector Namespace experience at connectors.azure.com for delegated consent. Explain which downstream account will own the connection and what capabilities it grants. OAuth consent remains a human action.
  8. Verify the connection. Require properties.overallStatus == Connected for the intended account and verify the Function App identity has an explicit access policy.
  9. Hand off to MCP publication. Pass the exact connector name, connection resource ID/name, selected operations, authentication result, and safety decisions to azure-functions-connector-mcp.

Load connection-lifecycle.md for discovery rules, authentication cases, recreation behavior, and the handoff record.

Safety rules

  • Use least privilege at both the connection-access and operation levels.
  • Do not infer authentication schemes or required values from connector display names.
  • Do not print connection runtime URLs, tokens, consent artifacts, callback URLs, or secrets.
  • Do not automate delegated OAuth sign-in.
  • Do not treat a successfully created resource as an authorized connection.
  • Do not silently reuse a connection authorized as the wrong downstream user.
  • If a connector's required value-based connection shape is not verified, report it as unsupported rather than guessing.
  • Do not run a deployment collector from this connector skill. The azure-functions-hosted-skills skill owns the internal azure_deployment_observed event after its supported deployment command succeeds. Do not duplicate that event.

Definition of done

The connection phase is complete only when:

  • the selected connector and authentication scheme are recorded,
  • the connection exists in the intended Connector Namespace and region,
  • required access policies include the Hosted Skill's Function App identity,
  • delegated consent or credential configuration is complete,
  • connection status is Connected,
  • no MCP operation schema was manually simplified during connection creation,
  • the MCP publication handoff contains the exact selected operation IDs and safety constraints.

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.