Agent365-nodejs
Copilot instructions24 starsChanged 10 months agoMITView on GitHub
Or for multi-line format:
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
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
- 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 JavaScript and TypeScript files have proper Microsoft copyright headers
- Distinctive: line 15
Action: If a source file is missing a copyright header:
- Distinctive: line 16
Add the Microsoft copyright header at the top of the file
- Distinctive: line 38
Search for case-insensitive matches of "Kairo"
- Distinctive: line 48
Verify the first non-empty, non-shebang lines of source files
- Distinctive: line 49
If missing, prepend the copyright header
- Distinctive: line 50
Ensure there's a blank line after the header before other content
- Distinctive: line 51
Do not add headers to:
- Distinctive: line 88
When Copilot detects violations:
- Very specific: line 93
Test files in tests/, test/, __tests__/, or *.test.ts, *.spec.ts files may have relaxed header requirements (but headers are still …
≈ “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-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,.tsxfiles 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:
- 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
- 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.jsorindex.tsfiles 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.tsfiles 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
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.

