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

Agent365-nodejs

Copilot instructions24 starsChanged 10 months agoMITView on GitHub

Or for multi-line format:

  • In this repositoryOne other file 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, 11 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    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
  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 JavaScript and TypeScript files have proper Microsoft copyright headers

    line 14
  4. Distinctive:

    Action: If a source 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 38
  7. Distinctive:

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

    line 48
  8. Distinctive:

    If missing, prepend the copyright header

    line 49
  9. Distinctive:

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

    line 50
  10. Distinctive:

    Do not add headers to:

    line 51
  11. Distinctive:

    When Copilot detects violations:

    line 88
  12. Very specific:

    Test files in tests/, test/, __tests__/, or *.test.ts, *.spec.ts files may have relaxed header requirements (but headers are still …

    line 93

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

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 .js, .ts, .jsx, .tsx files in the repository

Rule 2: Verify Copyright Headers

  • Description: Ensure all JavaScript and TypeScript files have proper Microsoft copyright headers
  • Action: If a source 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.

Or for multi-line 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
      • A type definition
    • Suggest appropriate alternatives based on the context
  2. Header Check:
    • Verify the first non-empty, non-shebang lines of source files
    • If missing, prepend the copyright header
    • Ensure there's a blank line after the header before other content
    • Do not add headers to:
      • index.js or index.ts files that are intentionally empty barrel exports
      • Generated files (if marked as such)
      • Declaration files (.d.ts) that are auto-generated

Example of Proper File Structure (JavaScript/TypeScript):

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { Something } from './something';
import * as fs from 'fs';

/**
 * Class documentation
 */
export class MyClass {
  // Rest of the code...
}

Example with JSDoc:

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

/**
 * @fileoverview Module description
 * @module MyModule
 */

const express = require('express');

// 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/, test/, __tests__/, or *.test.ts, *.spec.ts files may have relaxed header requirements (but headers are still recommended)
  • Third-party code or vendored dependencies should not be modified
  • Configuration files (.json, .yaml, .yml, .md) do not require copyright headers
  • Build output or dist/ directories
  • node_modules/ directory

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.