Agent365-python
Copilot instructions41 starsChanged 9 months agoMITView on GitHub
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
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
- Distinctive: line 7
Action: If "Kairo" is found in any code file:
- Distinctive: line 10
Check if it's a legacy reference that needs to be updated
- Distinctive: line 14
Description: Ensure all Python files have proper Microsoft copyright headers
- Very specific: line 15
Action: If a .py file is missing a copyright header:
- Distinctive: line 16
Add the Microsoft copyright header at the top of the file
- Distinctive: line 30
Search for case-insensitive matches of "Kairo"
- Distinctive: line 39
Verify the first non-empty, non-shebang lines of Python files
- Distinctive: line 40
If missing, prepend the copyright header
- Distinctive: line 41
Ensure there's a blank line after the header before other content
- Distinctive: line 42
Do not add headers to:
- Distinctive: line 60
When Copilot detects violations:
- Very specific: line 65
Test files in tests/ directory may have relaxed header requirements (but headers are still recommended)
≈ “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 Instructions for Agent365-python
Code Review Rules
Rule 1: Check for "Kairo" Keyword
- Description: Scan code for any occurrence of the keyword "Kairo"
- Action: If "Kairo" is found in any code file:
- Flag it for review
- Suggest removal or replacement with appropriate terminology
- Check if it's a legacy reference that needs to be updated
- Files to check: All
.pyfiles in the repository
Rule 2: Verify Copyright Headers
- Description: Ensure all Python files have proper Microsoft copyright headers
- Action: If a
.pyfile is missing a copyright header:- Add the Microsoft copyright header at the top of the file
- The header should be placed before any imports or code
- Maintain proper formatting and spacing
Required Copyright Header Format
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.Implementation Guidelines
When Reviewing Code:
- Kairo Check:
- Search for case-insensitive matches of "Kairo"
- Review context to determine if it's:
- A variable name
- A comment reference
- An import statement
- A string literal
- Suggest appropriate alternatives based on the context
- Header Check:
- Verify the first non-empty, non-shebang lines of Python files
- If missing, prepend the copyright header
- Ensure there's a blank line after the header before other content
- Do not add headers to:
__init__.pyfiles that are intentionally empty- Generated files (if marked as such)
Example of Proper File Structure:
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
"""Module docstring goes here."""
import os
import sys
# Rest of the code...Auto-fix Behavior
When Copilot detects violations:
- Kairo keyword: Suggest inline replacement or flag for manual review
- Missing header: Automatically suggest adding the copyright header
Exclusions
- Test files in
tests/directory may have relaxed header requirements (but headers are still recommended) - Third-party code or vendored dependencies should not be modified
- Configuration files (
.toml,.json,.yaml,.md) do not require Python copyright headers
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.

