Copilot Content Exclusions Guide

A practical guide to keeping generated output, secrets, dependencies, large media, and 3D assets out of AI context by default.

CopilotCursorKilo
AuthorNeexoCore
Updated
content-exclusionsecurityguardrails

Recommended Exclusions

Configure common exclusions at organization level when possible:

- "/**/node_modules/**"
- "/**/.next/**"
- "/**/dist/**"
- "/**/build/**"
- "/**/coverage/**"
- "*.log"
- "*.lock"
- "*.glb"
- "*.gltf"
- "*.bin"
- "*.hdr"
- "*.exr"
- "/**/.env"
- "/**/.env.*"

Limitations

Content exclusions do not replace repository hygiene. Keep secrets out of repositories, keep generated assets out of routine agent workflows, and keep instructions explicit about what not to read.

Raw content

Copy into your project — e.g. .instructions.md, .agent.md, or SKILL.md

## Recommended Exclusions

Configure common exclusions at organization level when possible:

```yaml
- "/**/node_modules/**"
- "/**/.next/**"
- "/**/dist/**"
- "/**/build/**"
- "/**/coverage/**"
- "*.log"
- "*.lock"
- "*.glb"
- "*.gltf"
- "*.bin"
- "*.hdr"
- "*.exr"
- "/**/.env"
- "/**/.env.*"
```

## Limitations

Content exclusions do not replace repository hygiene. Keep secrets out of repositories, keep generated assets out of routine agent workflows, and keep instructions explicit about what not to read.

Next steps

Matched by shared tags and category. Browse all plugins