azure-functions-skills
AGENTS.md18 starsChanged 2 months agoMITView on GitHub
These instructions apply to all coding agents working in this repository.
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository2 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- frdSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
19 rules. About 1 is common, 7 are distinctive, and 11 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.
11
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
- Distinctive: line 33
Remove unused imports, variables, and functions before committing.
- Distinctive: line 38
Avoid duplicate code — extract shared logic into helpers.
- Very specific: line 40
Never hand-edit files under .github/plugins/, .plugin/, or .claude-plugin/.
- Distinctive: line 44
TDD: Write tests first. Every new function or module must have tests before implementation.
- Very specific: line 46
Use npm run test:watch during TDD cycles.
- Very specific: line 47
Run npm test before every commit.
- Distinctive: line 49
When the task is not code-related (skills, CI config, documentation), TDD is not required.
- Common: line 53
No secrets in code — use environment variables or secret managers.
- Very specific: line 54
No npm lifecycle scripts except prepack.
- Very specific: line 55
Run npm run lint:security for supply-chain checks.
- Very specific: line 61
Never edit generated files under .github/plugins/, .plugin/, .claude-plugin/.
- Very specific: line 62
Never commit local.settings.json or .env files.
- Very specific: line 63
Do not run template apply from the repo root — use --dir <isolated-workspace> to avoid pollution.
- Very specific: line 64
Do not touch templates/agents/AGENTS.md — that is the user-facing template, not this repo's dev standards.
- Very specific: line 76
Use /rubber-duck for self-review with a different model family.
- Distinctive: line 77
If the current model is Claude (Ops family), switch to a GPT-family top model.
- Distinctive: line 78
If the current model is GPT, switch to a Claude top model.
- Very specific: line 79
Use /model to switch, then /rubber-duck to review.
- Distinctive: line 90
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 16,595 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 |
| Full gate | npm run check |
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/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.
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/. - 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-payloadthennpm run verify:plugin-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.

