agentleFS
Microsoft AzureKnown publisherAzure/azure-functions-skills/.github/plugins/azure-functions-skills/skills/azure-functions-doctor/SKILL.md

azure-functions-doctor

Skill22 starsChanged 13 days agoMITView on GitHub

Analyze local Azure Functions workspace code and configuration for common issues, then report prioritized findings with evidence and fixes. Use when the user asks to check, review, audit, or diagnose a local Azure Functions project before running or deploying it. Do not use for Azure Functions Hosted Skills (conversations creating, extending, running, testing, 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. Use azure-functions-hosted-skills and its troubleshooting reference instead. This skill targets standard local Azure Functions workspaces only — use azure-functions-diagnostics for deployed Azure resources.

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

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before analyzing the workspace, check the conversation and project context.

    line 13
  2. Very specific:

    Read references/routing.md.

    line 22
  3. Very specific:

    Do the source-only checks first (references/source-only-checks.md).

    line 23
  4. Distinctive:

    Use the routed checklist files to evaluate Durable, Service Bus, Event Hubs, storage, HTTP, timer, and language-specific risks.

    line 40
  5. Distinctive:

    Prefer findings with concrete evidence from a file path and line number.

    line 41
  6. Distinctive:

    If the user asks for a machine-readable report, write a JSON array to the file path that the user gives.

    line 59
  7. Distinctive:

    Only report actual problems.

    line 77
  8. Distinctive:

    If you find no issues, tell the user which checks you did and that they found no issues.

    line 80
  9. Distinctive:

    Do not modify project files during the analysis.

    line 81
  10. Distinctive:

    Do not run project code, install scripts, or package-manager install commands to do a check.

    line 82
  11. Distinctive:

    If a check needs data that you cannot get (for example, Azure runtime metadata without Azure CLI), tell the user that you did not do the …

    line 83

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

Analyze the local Azure Functions workspace for code, configuration, packaging, and supply-chain issues. Do the complete analysis yourself: read the project files, run the checks in the reference checklists, and report the findings to the user.

Instructions

Before analyzing the workspace, check the conversation and project context. If the task 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.
  1. Identify the project root. Look for host.json. If the workspace has more than one Functions app, ask the user which app to analyze, or analyze each app separately.
  2. Detect the language, the programming model, the triggers and bindings, the dependency manifests, and the IaC files.
  3. Read references/routing.md. Then load only the checklist reference files that match the project and the scope that the user requested. Do not load every checklist by default.
  4. Do the source-only checks first (references/source-only-checks.md). Then do the semantic, language, and supply-chain checks.
  5. Report the findings in the format below.

Analysis scope

Configuration and packaging

  • Load references/source-only-checks.md for host.json, app settings, bindings, dependencies, secrets, and deploy-artifact checks.
  • Load references/iac-azure-resource-checks.md only when IaC files or Azure resource context are present.

Code quality

  • Load references/ai-semantic-checks.md for semantic code-quality checks.
  • Load references/language-checks.md for language-specific patterns.

Security and supply chain

  • Load references/supply-chain-checks.md when the project has a dependency manifest.

Azure Functions-specific patterns

  • Use the routed checklist files to evaluate Durable, Service Bus, Event Hubs, storage, HTTP, timer, and language-specific risks.
  • Prefer findings with concrete evidence from a file path and line number.

Output

Give the user a short summary first: the project language and model, the number of findings for each severity, and the most important issue.

Then list each finding, from the highest severity to the lowest:

FieldContent
IDChecklist ID, for example CF-003 or SC-101
Severitycritical, high, medium, low, or info
Statusfail or warn
TitleShort description of the issue
LocationRelative file path and line number, when known
EvidenceWhat you found and why it is an issue
FixA specific step or code change that fixes the issue

If the user asks for a machine-readable report, write a JSON array to the file path that the user gives. Use this schema for each finding:

{
  "id": "string — checklist ID or short kebab-case identifier",
  "category": "string — configuration | code | pattern | security | supply-chain",
  "severity": "critical | high | medium | low | info",
  "status": "fail | warn",
  "title": "string — short human-readable title",
  "message": "string — detailed description",
  "file": "string — relative file path (optional)",
  "line": "number — line number (optional)",
  "recommendation": "string — how to fix (optional)"
}

Rules

  1. Only report actual problems. Do not suggest improvements unless they fix an issue.
  2. Be specific. Include file paths and line numbers when possible.
  3. Report each issue one time, even if more than one checklist covers it.
  4. If you find no issues, tell the user which checks you did and that they found no issues.
  5. Do not modify project files during the analysis. Apply fixes only after the user asks you to.
  6. Do not run project code, install scripts, or package-manager install commands to do a check. Read the files instead.
  7. If a check needs data that you cannot get (for example, Azure runtime metadata without Azure CLI), tell the user that you did not do the check and why.

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.