agentleFS
MicrosoftKnown publishermicrosoft/Agent365-python/.github/copilot-instructions.md

Agent365-python

Copilot instructions41 starsChanged 9 months agoMITView on GitHub

  • In this repository2 other files it gives its agents.

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

    Action: If "Kairo" is found in any code file:

    line 7
  2. Distinctive:

    Check if it's a legacy reference that needs to be updated

    line 10
  3. Distinctive:

    Description: Ensure all Python files have proper Microsoft copyright headers

    line 14
  4. Very specific:

    Action: If a .py file is missing a copyright header:

    line 15
  5. Distinctive:

    Add the Microsoft copyright header at the top of the file

    line 16
  6. Distinctive:

    Search for case-insensitive matches of "Kairo"

    line 30
  7. Distinctive:

    Verify the first non-empty, non-shebang lines of Python files

    line 39
  8. Distinctive:

    If missing, prepend the copyright header

    line 40
  9. Distinctive:

    Ensure there's a blank line after the header before other content

    line 41
  10. Distinctive:

    Do not add headers to:

    line 42
  11. Distinctive:

    When Copilot detects violations:

    line 60
  12. Very specific:

    Test files in tests/ directory may have relaxed header requirements (but headers are still recommended)

    line 65

≈ “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

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 .py files in the repository

Rule 2: Verify Copyright Headers

  • Description: Ensure all Python files have proper Microsoft copyright headers
  • Action: If a .py file 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:

  1. 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
  2. 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__.py files 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

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.