agentleFS
MicrosoftKnown publishermicrosoft/azure-dev-tools/canvases/azure-functions/skills/azure-functions-diagnostics/SKILL.md

azure-functions-diagnostics

Skill11 starsChanged 14 days agoMITView on GitHub

Use when diagnosing or resolving standard Azure Functions issues: deployment failures, runtime errors, trigger/binding failures, language worker issues, telemetry/log analysis, known issue research, source investigation, and remediation. Acts as a facade that routes to focused Azure Functions skills and small language/extension references. Do not use for Azure Functions Hosted Skills (conversations creating, running, or deploying a Hosted Skill, or the selected Functions app has agents.config.yaml, depends on azurefunctions-agents-runtime, or imports create_function_app() from that runtime). App-local *.agent.md files count only when they belong to that runtime app; ignore repository-level .github/agents/*.agent.md coding-agent configuration. Even when the user only reports an error, use azure-functions-hosted-skills and its troubleshooting reference instead.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 8 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

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

    Use this skill to diagnose and resolve Azure Functions issues by orchestrating focused skills and loading only the references needed for …

    line 8
  2. Distinctive:

    Write final answers in the user's language.

    line 10
  3. Very specific:

    Before collecting inputs or inventory, check the conversation and project context.

    line 14
  4. Very specific:

    Do not load all diagnostic references up front.

    line 25
  5. Distinctive:

    Ask only for missing inputs needed to start:

    line 31
  6. Very specific:

    If the user has a local workspace issue without a deployed app, skip Azure resource collection and start from local project/runtime/trigger …

    line 38
  7. Very specific:

    Follow workflow.md. Use the shared routing.md reference of the azure-functions-common skill only after inventory/health data identifies the …

    line 42
  8. Very specific:

    Use azure-functions-inventory to collect static app specifications.

    line 46
  9. Very specific:

    Use azure-functions-health-status to collect current health, metrics, telemetry, and Activity Log.

    line 47
  10. Very specific:

    Use the routing.md reference of the azure-functions-common skill to select only the required language and extension references.

    line 48
  11. Distinctive:

    Use evidence-checklist.md before stating root cause or recommended fixes.

    line 49
  12. Distinctive:

    Prefer official documentation, official repositories, official samples, and package/container registries before broader web sources.

    line 50
  13. Very specific:

    Use azure-functions-common for shared runtime, language, and trigger/binding references.

    line 54
  14. Distinctive:

    Do not load migration provenance during normal diagnostics.

    line 59
  15. Distinctive:

    Ask before cloning large repositories, using sparse checkout, deploying to Azure, restarting apps, changing configuration, or running …

    line 65
  16. Distinctive:

    Use this concise structure unless the user asks for a different format:

    line 76

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

Azure Functions Diagnostics

Use this skill to diagnose and resolve Azure Functions issues by orchestrating focused skills and loading only the references needed for the current app.

Write final answers in the user's language.

Hosted Skills exclusion

Before collecting inputs or inventory, check the conversation and project context. If the issue is about an Azure Functions Hosted Skills app, invoke azure-functions-hosted-skills instead and stop this workflow. Treat it as a Hosted Skills app when any of these apply:

  • The conversation is creating, extending, running, testing, or deploying a Hosted Skill.
  • The selected Functions app contains agents.config.yaml (commonly src/agents.config.yaml).
  • Its requirements.txt depends on azurefunctions-agents-runtime, or its function_app.py imports create_function_app() from that runtime.
  • App-local *.agent.md files count only when they belong to that runtime app. Do not treat repository-level .github/agents/*.agent.md coding-agent configuration as a Hosted Skills marker.

Hosted Skills failures (agent loading, model provider, MCP and connectors, dynamic sessions, Dynamic Workflows, and Hosted Skills deployment) are covered by that skill's troubleshooting reference. Do not run this skill in parallel for the same issue.

Core principle

Do not load all diagnostic references up front. First collect the app inventory, infer runtime/language and trigger/binding/extension shape, then load only the matching language and extension reference files.

For multi-step reviews, source investigations, or remediation work, create a short checklist plan file or todo list and update it after each completed step. Do not require a checklist for quick read-only diagnosis because it adds token overhead.

Required inputs

Ask only for missing inputs needed to start:

  • Function App name, unless already provided.
  • Subscription ID/name and resource group, if needed to disambiguate.
  • Symptom, error message, command output, or portal/deployment failure context.
  • Time window, default 24h for current or recent production issues.

If the user has a local workspace issue without a deployed app, skip Azure resource collection and start from local project/runtime/trigger discovery.

Diagnostic workflow

Follow workflow.md. Use the shared routing.md reference of the azure-functions-common skill only after inventory/health data identifies the relevant runtime, trigger, binding, or symptom.

Fast path:

  1. Use azure-functions-inventory to collect static app specifications.
  2. Use azure-functions-health-status to collect current health, metrics, telemetry, and Activity Log.
  3. Use the routing.md reference of the azure-functions-common skill to select only the required language and extension references.
  4. Use evidence-checklist.md before stating root cause or recommended fixes.
  5. Prefer official documentation, official repositories, official samples, and package/container registries before broader web sources.

Reference loading rules

Use azure-functions-common for shared runtime, language, and trigger/binding references.

  • Load exactly one language reference when the runtime is known, plus Durable only when Durable is involved.
  • Load only extension references matching the app's triggers/bindings or the symptom.
  • Load Extension Bundles only for non-.NET apps or extension-version/binding-resolution symptoms.
  • Do not load migration provenance during normal diagnostics.

Guardrails

  • Redact secrets, connection strings, keys, tokens, SAS URLs, and storage credentials.
  • Report setting names and whether values exist; do not reveal values.
  • Ask before cloning large repositories, using sparse checkout, deploying to Azure, restarting apps, changing configuration, or running disruptive commands.
  • Distinguish confirmed evidence from hypotheses.
  • For transient issues, state whether the current app is healthy and identify the historical evidence used.

Next steps

  • On success, suggest azure-functions-inventory if the app shape or configuration changed during remediation.
  • On failure, suggest azure-functions-health-status to re-check current health and telemetry before continuing diagnosis.

Output shape

Use this concise structure unless the user asks for a different format:

Target: <app/resource/local project>
Symptom: <summary>
Inventory: <runtime/plan/network/triggers summary>
Health: <current state/metrics/log findings summary>
Relevant references loaded: <language refs>, <extension refs>
Findings: <evidence-backed bullets>
Likely cause: <confirmed or suspected>
Recommended actions: <ordered steps>
Validation plan: <local/E2E/Azure validation steps>
Gaps: <missing permissions/telemetry/context>

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.