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
Who's talking about microsoft/kiota
- A Hacker News story“Kiota: OpenAPI-based HTTP client code generator”Hacker News · Aug 14, 2024 · 72 points
- bitcoin/bitcoin“RFC: Formal description of the RPC API”GitHub · Apr 19, 2024 · 14 reactions
- keycloak/keycloak“@keycloak/keycloak-admin-client fails to install in version 26.6.0”GitHub · Apr 9, 2026 · 5 reactions
- @jdlong.cerebralmastication.com“I've only been beating on this thing in anger on and off for a few weeks, but it's... uh... weird. They …”Bluesky · Dec 28, 2024 · 2 likes
- @hn100.bsky.social“Kiota: OpenAPI-based HTTP client code generator Discussion”Bluesky · Aug 14, 2024 · 1 likes
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repositoryOne other file it gives its agents.
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
- Distinctive: line 14
If guidance conflicts, follow the more specific instruction file for the target paths.
- Distinctive: line 18
Keep changes minimal and targeted.
- Distinctive: line 20
Add or update tests for behavior changes or bug fixes.
- Distinctive: line 21
Before proposing a commit, run relevant tests and ensure they pass.
- Distinctive: line 22
If tests fail, fix issues and re-run tests before considering the work complete.
- Distinctive: line 23
Prefer non-destructive actions and do not revert unrelated local changes.
- Distinctive: line 27
When modifying code generation or writer/refiner logic, treat schema-derived values as untrusted and ensure literal-context sanitization at …
- Very specific: line 29
Use language/literal-appropriate sanitizers from src/Kiota.Builder/Writers/StringExtensions.cs (and Dart convention helpers where …
- Distinctive: line 37
Before finishing implementation work:
- Distinctive: line 40
Run targeted tests first, then broader tests if impact is unclear.
≈ “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.
Files
Kiota Central Copilot Policies
This file defines repository-wide defaults for Copilot behavior. It is always applied.
Scope and precedence
- Apply this file for all work in the repository.
- Also apply any matching files under
.github/instructions/. - If guidance conflicts, follow the more specific instruction file for the target paths.
Required defaults
- Keep changes minimal and targeted. Avoid unrelated refactors.
- Preserve existing style, naming, and public behavior unless the task requires changes.
- Add or update tests for behavior changes or bug fixes.
- Before proposing a commit, run relevant tests and ensure they pass.
- If tests fail, fix issues and re-run tests before considering the work complete.
- 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:
- Build affected projects.
- Run targeted tests first, then broader tests if impact is unclear.
- Confirm no new warnings/errors were introduced by the change.
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.

