PurviewIntegrations
Copilot instructions8 starsChanged 5 months agoMITView on GitHub
These instructions apply to any AI agent (Copilot CLI, Copilot Chat, Claude, Cursor, etc.) contributing to this repository. Start from AGENTS.md for the full router of context, conventions, and the build/test loop. - This is a TypeScript GitHub Action (src/index.ts → bundled to dist/ via ncc). - Code style, structure, and test patterns: docs/conventions.md. - GitHub Actions conventions (action.yml, inputs/outputs, secrets, workflow security): docs/github-actions.md. - Test framework and @actions/* mocking pattern: docs/testing-patterns.md. - Build/test loop: npm run build, npm run…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this copilot-instructions.md into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Test framework and @actions/* mocking pattern: docs/testing-patterns.md.
- Distinctive: line 40
Keep pull requests reasonably sized and focused on a single logical change.
- Distinctive: line 42
If a task naturally grows large, split it into independent PRs (e.g., refactor first, then behavior change) and note the sequencing.
- Distinctive: line 44
Avoid mixing unrelated concerns (a feature + a broad reformat) in one PR.
- Very specific: line 50
Every PR (and ADO work item) must be tagged per .github/instructions/telemetry.instructions.md: two required labels plus the pr-telemetry …
≈ “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
GitHub Copilot / AI Agent Instructions
These instructions apply to any AI agent (Copilot CLI, Copilot Chat, Claude, Cursor, etc.)
contributing to this repository. Start from AGENTS.md for the full router
of context, conventions, and the build/test loop.
Quick orientation
- This is a TypeScript GitHub Action (
src/index.ts→ bundled todist/viancc). - Code style, structure, and test patterns:
docs/conventions.md. - GitHub Actions conventions (action.yml, inputs/outputs, secrets, workflow security):
docs/github-actions.md. - Test framework and
@actions/*mocking pattern:docs/testing-patterns.md. - Build/test loop:
npm run build,npm run package,npm run test,npm run lint(documented in the README Development section). - A
.husky/pre-commithook runs tests, rebuilds, and re-stagesdist/on every commit — never hand-editdist/; regenerate it withnpm run build && npm run package.
GitHub Actions guardrails
Because the runner executes the committed dist/index.js bundle (not the source), these
rules are mandatory. Full detail in docs/github-actions.md:
- Fail via
core.setFailed(message)— neverthrowto the runner and neverprocess.exit. Usecore.warning/core.error/core.info/core.debuginstead ofconsole.log. - Never log secrets. Route logging through
src/utils/logger.ts(it redacts sensitive fields); callcore.setSecret(value)for any secret derived at runtime. - Read inputs via
@actions/core(getInput/getBooleanInput) and validate them insrc/validation/inputValidator.ts. Set declared outputs viacore.setOutput. - Keep
action.yml, the reader/writer code, and the docs in sync when adding an input or output. Inputs/outputs use kebab-case. - Keep
dist/in sync withsrc/—npm run build && npm run package. CI'scheck-distjob fails the PR if they diverge. - In workflows: pin third-party actions to a full commit SHA (with a
# vX.Y.Zcomment), set least-privilegepermissions, and usenpm ci.
PR-size guardrails
- Keep pull requests reasonably sized and focused on a single logical change. Prefer several small, reviewable PRs over one large mixed PR.
- If a task naturally grows large, split it into independent PRs (e.g., refactor first, then behavior change) and note the sequencing.
- Avoid mixing unrelated concerns (a feature + a broad reformat) in one PR.
- Regenerated
dist/bundle changes are expected alongside source changes — that is not a reason to split, but do not bundle unrelated source edits to inflate the diff.
Mandatory telemetry tagging
Every PR (and ADO work item) must be tagged per
.github/instructions/telemetry.instructions.md:
two required labels plus the pr-telemetry description footer. Do not skip it, and never
downgrade an agentic-* tag to manual.
Definition of Done
A change is done when npm run build && npm run package && npm run test all pass, dist/
is regenerated, and the telemetry tags/footer are applied. See the
Verification / Definition of Done section in AGENTS.md.
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.

