agentleFS
Microsoft AzureKnown publisherAzure/azure-functions-skills/AGENTS.md

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

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
  1. Very specific:

    If npm ci fails with E401 against the Azure Artifacts feed configured in the repository's .npmrc, run the installed credential provider …

    line 31
  2. Distinctive:

    Remove unused imports, variables, and functions before committing.

    line 53
  3. Distinctive:

    Avoid duplicate code — extract shared logic into helpers.

    line 58
  4. Very specific:

    Never hand-edit files under .github/plugins/, .plugin/, or .claude-plugin/.

    line 60
  5. Very specific:

    Never hand-edit files under starter/.

    line 61
  6. Distinctive:

    TDD: Write tests first. Every new function or module must have tests before implementation.

    line 65
  7. Very specific:

    Use npm run test:watch during TDD cycles.

    line 67
  8. Very specific:

    Run npm test before every commit.

    line 68
  9. Distinctive:

    When the task is not code-related (skills, CI config, documentation), TDD is not required.

    line 70
  10. Common:

    No secrets in code — use environment variables or secret managers.

    line 74
  11. Very specific:

    No npm lifecycle scripts except prepack.

    line 75
  12. Very specific:

    Run npm run lint:security for supply-chain checks.

    line 76
  13. Very specific:

    Never edit generated files under .github/plugins/, .plugin/, .claude-plugin/, starter/.

    line 82
  14. Very specific:

    Never commit local.settings.json or .env files.

    line 83
  15. Very specific:

    Do not run template apply from the repo root — use --dir <isolated-workspace> to avoid pollution.

    line 84
  16. Very specific:

    Do not touch templates/agents/AGENTS.md — that is the user-facing template, not this repo's dev standards.

    line 85
  17. Very specific:

    Use /rubber-duck for self-review with a different model family.

    line 97
  18. Distinctive:

    If the current model is Claude (Ops family), switch to a GPT-family top model.

    line 98
  19. Distinctive:

    If the current model is GPT, switch to a Claude top model.

    line 99
  20. Very specific:

    Use /model to switch, then /rubber-duck to review.

    line 100
  21. Distinctive:

    If work stalls due to authentication or permission errors, check whether the active account matches the target repository.

    line 111

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

TaskCommand
Buildnpm run build
Compile onlynpm run compile
Unit testsnpm test
Tests (watch)npm run test:watch
Lintnpm run lint
Type checknpm run typecheck
Security lintnpm run lint:security
Skill validationnpm run validate:skills
Plugin payload verifynpm run verify:plugin-payload
Starter payload buildnpm run build:starter
Starter payload verifynpm run verify:starter-payload
Full gatenpm 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 ci

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 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 any types; 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/. Change templates/, then regenerate with npm run build:plugin-payload.
  • Never hand-edit files under starter/. Change templates/ or starter.config.json, then regenerate with npm 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:watch during TDD cycles.
  • Run npm test before 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. Adding postinstall, preinstall, etc. is forbidden.
  • Run npm run lint:security for 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_dispatch or 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.json or .env files.
  • Do not run template apply from 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

  1. npm run lint
  2. npm run typecheck
  3. npm test
  4. CLI changes → run the command manually in an isolated workspace
  5. Template changes → npm run build:plugin-payload and npm run build:starter, then npm run verify:plugin-payload and npm run verify:starter-payload

After Implementation

  • Use /rubber-duck for 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 /model to switch, then /rubber-duck to 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 switch or gh auth login to match the repo's organization.
  • EMU orgs require SSO authentication; public repos use personal accounts.

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.