azure-functions-skills
AGENTS.md22 starsChanged 9 days agoMITView on GitHub
These instructions apply to all coding agents working in this repository. If npm ci fails with E401 against the Azure Artifacts feed configured in the repository's .npmrc, run the installed credential provider from the repository root, then retry: The user must have access to the configured feed. If the provider requires interactive sign-in, ask the user to complete it. If the command is unavailable or authentication still fails, ask the user to set up the provider or confirm their feed…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository67 other files it gives its agents.
- evals/azure-functions-update/fixtures/AGENTS.mdAGENTS.md
- starter/hosted-skills/agent-files/AGENTS.mdAGENTS.md
- templates/agents/AGENTS.mdAGENTS.md
- templates/starter/agent-files/hosted-skills/AGENTS.mdAGENTS.md
- tests/fixtures/starter/agent-files/AGENTS.mdAGENTS.md
- tests/fixtures/starter/agent-files-unknown/AGENTS.mdAGENTS.md
- starter/hosted-skills/agent-files/CLAUDE.mdCLAUDE.md
- templates/starter/agent-files/hosted-skills/CLAUDE.mdCLAUDE.md
- tests/fixtures/starter/agent-files/CLAUDE.mdCLAUDE.md
- tests/fixtures/starter/agent-files-unknown/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- starter/hosted-skills/agent-files/copilot-instructions.mdCopilot instructions
- templates/starter/agent-files/hosted-skills/copilot-instructions.mdCopilot instructions
- tests/fixtures/starter/agent-files/copilot-instructions.mdCopilot instructions
- tests/fixtures/starter/agent-files-unknown/copilot-instructions.mdCopilot instructions
- azure-functions-best-practicesSkill
- azure-functions-commonSkill
- azure-functions-connector-createSkill
- azure-functions-connector-mcpSkill
- azure-functions-connector-validateSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- azure-functions-health-statusSkill
- azure-functions-helpSkill
- azure-functions-hosted-skills-migrateSkill
- azure-functions-hosted-skillsSkill
- azure-functions-inventorySkill
- azure-functions-setupSkill
- azure-functions-updateSkill
- frdSkill
- azure-functions-best-practicesSkill
- azure-functions-commonSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- azure-functions-health-statusSkill
- azure-functions-helpSkill
- azure-functions-inventorySkill
- azure-functions-setupSkill
- azure-functions-updateSkill
- azure-functions-connector-createSkill
- azure-functions-connector-mcpSkill
- azure-functions-connector-validateSkill
- azure-functions-hosted-skills-migrateSkill
- azure-functions-hosted-skillsSkill
- azure-functions-best-practicesSkill
- azure-functions-commonSkill
- azure-functions-connector-createSkill
- azure-functions-connector-mcpSkill
- azure-functions-connector-validateSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- The first 60 shown.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
21 rules. About 1 is common, 7 are distinctive, and 13 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
13
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
- Very specific: line 31
If npm ci fails with E401 against the Azure Artifacts feed configured in the repository's .npmrc, run the installed credential provider …
- Distinctive: line 53
Remove unused imports, variables, and functions before committing.
- Distinctive: line 58
Avoid duplicate code — extract shared logic into helpers.
- Very specific: line 60
Never hand-edit files under .github/plugins/, .plugin/, or .claude-plugin/.
- Very specific: line 61
Never hand-edit files under starter/.
- Distinctive: line 65
TDD: Write tests first. Every new function or module must have tests before implementation.
- Very specific: line 67
Use npm run test:watch during TDD cycles.
- Very specific: line 68
Run npm test before every commit.
- Distinctive: line 70
When the task is not code-related (skills, CI config, documentation), TDD is not required.
- Common: line 74
No secrets in code — use environment variables or secret managers.
- Very specific: line 75
No npm lifecycle scripts except prepack.
- Very specific: line 76
Run npm run lint:security for supply-chain checks.
- Very specific: line 82
Never edit generated files under .github/plugins/, .plugin/, .claude-plugin/, starter/.
- Very specific: line 83
Never commit local.settings.json or .env files.
- Very specific: line 84
Do not run template apply from the repo root — use --dir <isolated-workspace> to avoid pollution.
- Very specific: line 85
Do not touch templates/agents/AGENTS.md — that is the user-facing template, not this repo's dev standards.
- Very specific: line 97
Use /rubber-duck for self-review with a different model family.
- Distinctive: line 98
If the current model is Claude (Ops family), switch to a GPT-family top model.
- Distinctive: line 99
If the current model is GPT, switch to a Claude top model.
- Very specific: line 100
Use /model to switch, then /rubber-duck to review.
- Distinctive: line 111
If work stalls due to authentication or permission errors, check whether the active account matches the target repository.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md 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.
Files
Azure Functions Skills — Development Standards
These instructions apply to all coding agents working in this repository.
Project Overview
- What: Skills + telemetry plugin that equips coding agents with Azure Functions–specific knowledge, plus a small companion CLI (template apply, telemetry sender, build)
- Stack: TypeScript (strict), Node.js 18+, ESM
- Targets: GitHub Copilot CLI, Claude Code, Codex CLI
- Testing: Vitest for unit tests
Commands
| Task | Command |
| Build | npm run build |
| Compile only | npm run compile |
| Unit tests | npm test |
| Tests (watch) | npm run test:watch |
| Lint | npm run lint |
| Type check | npm run typecheck |
| Security lint | npm run lint:security |
| Skill validation | npm run validate:skills |
| Plugin payload verify | npm run verify:plugin-payload |
| Starter payload build | npm run build:starter |
| Starter payload verify | npm run verify:starter-payload |
| Full gate | npm run check |
Local npm Authentication Failures
If npm ci fails with E401 against the Azure Artifacts feed configured in the
repository's .npmrc, run the installed credential provider from the repository
root, then retry:
artifacts-npm-credprovider
npm ciThe user must have access to the configured feed. If the provider requires
interactive sign-in, ask the user to complete it. If the command is unavailable
or authentication still fails, ask the user to set up the provider or confirm
their feed access. Do not print credentials, change registries, or remove
.npmrc as an authentication workaround. CI deliberately removes the repository
.npmrc to use public npm; that is not the local authentication procedure.
Code Style
- TypeScript strict mode — avoid
anytypes; use proper interfaces and generics. - Named exports; no default exports.
- Prefix intentionally unused parameters with
_. - Conventional commits:
feat:,fix:,test:,docs:,chore:,refactor:. - Remove unused imports, variables, and functions before committing.
Architecture
- Separate concerns by domain:
src/build/,src/starter/,src/telemetry/,src/templates/. - Avoid duplicate code — extract shared logic into helpers.
templates/is the canonical source; generated payloads are derived.- Never hand-edit files under
.github/plugins/,.plugin/, or.claude-plugin/. Changetemplates/, then regenerate withnpm run build:plugin-payload. - Never hand-edit files under
starter/. Changetemplates/orstarter.config.json, then regenerate withnpm run build:starter.
Testing
- TDD: Write tests first. Every new function or module must have tests before implementation.
- Unit tests live in
tests/*.test.ts. - Use
npm run test:watchduring TDD cycles. - Run
npm testbefore every commit. - CLI changes require a manual run:
node bin/azure-functions-skills.js <cmd> --dir <isolated-workspace>. - When the task is not code-related (skills, CI config, documentation), TDD is not required.
Security
- No secrets in code — use environment variables or secret managers.
- No npm lifecycle scripts except
prepack. Addingpostinstall,preinstall, etc. is forbidden. - Run
npm run lint:securityfor supply-chain checks. - Never run LLM-backed skill evaluations in PR-triggered CI or on unreviewed, untrusted contributor code. Skill content can contain prompt injection attacks, and the evaluation agent has file-write and shell-execution permissions. Start such runs only by manual
workflow_dispatchor locally on trusted code in an isolated workspace. - Confirm the target, budget, repetition count, and owned-resource cleanup policy separately before paid experiments.
Boundaries
- Never edit generated files under
.github/plugins/,.plugin/,.claude-plugin/,starter/. - Never commit
local.settings.jsonor.envfiles. - Do not run
template applyfrom the repo root — use--dir <isolated-workspace>to avoid pollution. - Do not touch
templates/agents/AGENTS.md— that is the user-facing template, not this repo's dev standards.
Before Committing
npm run lintnpm run typechecknpm test- CLI changes → run the command manually in an isolated workspace
- Template changes →
npm run build:plugin-payloadandnpm run build:starter, thennpm run verify:plugin-payloadandnpm run verify:starter-payload
After Implementation
- Use
/rubber-duckfor self-review with a different model family.- If the current model is Claude (Ops family), switch to a GPT-family top model.
- If the current model is GPT, switch to a Claude top model.
- Use
/modelto switch, then/rubber-duckto review.
Language Policy
- Respond in the user's language.
- PRs, source code, and documentation included in PRs must be in English unless otherwise specified.
- Temporary files created for user explanation (reports, proposals, etc.) should use the user's language.
Multi-Account (EMU + Public)
- Some contributors use both GitHub EMU (enterprise) and public GitHub accounts.
- If work stalls due to authentication or permission errors, check whether the active account matches the target repository.
- Switch accounts with
/user switchorgh auth loginto match the repo's organization. - EMU orgs require SSO authentication; public repos use personal accounts.
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
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.

