agentleFS
MicrosoftKnown publishermicrosoft/kiota/.github/copilot-instructions.md

kiota

Copilot instructions3.8k starsChanged 6 months agoMITView on GitHub

This file defines repository-wide defaults for Copilot behavior. It is always applied. When modifying code generation or writer/refiner logic, treat schema-derived values as untrusted and ensure literal-context sanitization at the emission site. Use language/literal-appropriate sanitizers from src/Kiota.Builder/Writers/StringExtensions.cs (and Dart convention helpers where applicable). For writer changes that emit schema-derived text into generated code, ensure hostile content is escaped and covered by regression tests in tests/Kiota.Builder.Tests/Writers/. Before finishing implementation work:

Trending

Quiet since April.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/kiota repository that our weekly crawl found: only 5 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

We split this copilot-instructions.md into the rules it gives an agent

10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

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

    If guidance conflicts, follow the more specific instruction file for the target paths.

    line 14
  2. Distinctive:

    Keep changes minimal and targeted.

    line 18
  3. Distinctive:

    Add or update tests for behavior changes or bug fixes.

    line 20
  4. Distinctive:

    Before proposing a commit, run relevant tests and ensure they pass.

    line 21
  5. Distinctive:

    If tests fail, fix issues and re-run tests before considering the work complete.

    line 22
  6. Distinctive:

    Prefer non-destructive actions and do not revert unrelated local changes.

    line 23
  7. Distinctive:

    When modifying code generation or writer/refiner logic, treat schema-derived values as untrusted and ensure literal-context sanitization at …

    line 27
  8. Very specific:

    Use language/literal-appropriate sanitizers from src/Kiota.Builder/Writers/StringExtensions.cs (and Dart convention helpers where …

    line 29
  9. Distinctive:

    Before finishing implementation work:

    line 37
  10. Distinctive:

    Run targeted tests first, then broader tests if impact is unclear.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
copilot-instructions.md

Kiota Central Copilot Policies

This file defines repository-wide defaults for Copilot behavior. It is always applied.

Scope and precedence

  1. Apply this file for all work in the repository.
  2. Also apply any matching files under .github/instructions/.
  3. If guidance conflicts, follow the more specific instruction file for the target paths.

Required defaults

  1. Keep changes minimal and targeted. Avoid unrelated refactors.
  2. Preserve existing style, naming, and public behavior unless the task requires changes.
  3. Add or update tests for behavior changes or bug fixes.
  4. Before proposing a commit, run relevant tests and ensure they pass.
  5. If tests fail, fix issues and re-run tests before considering the work complete.
  6. Prefer non-destructive actions and do not revert unrelated local changes.

Security review defaults

When modifying code generation or writer/refiner logic, treat schema-derived values as untrusted and ensure literal-context sanitization at the emission site.

Use language/literal-appropriate sanitizers from src/Kiota.Builder/Writers/StringExtensions.cs (and Dart convention helpers where applicable).

Writer hardening reminder

For writer changes that emit schema-derived text into generated code, ensure hostile content is escaped and covered by regression tests in tests/Kiota.Builder.Tests/Writers/.

Validation checklist

Before finishing implementation work:

  1. Build affected projects.
  2. Run targeted tests first, then broader tests if impact is unclear.
  3. Confirm no new warnings/errors were introduced by the change.

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.