agentleFS
MicrosoftKnown publishermicrosoft/P.808/.github/copilot-instructions.md

P.808

Copilot instructions231 starsChanged 6 months agoMITView on GitHub

Every function must include a docstring inside the function body, immediately after the def line. Use the following format: Every function must have a JSDoc comment above the function declaration: Follow PEP 8 conventions: All files in this repository must use CRLF (\r\n) line endings, not LF (\n). Configure your editor and Git accordingly: Or use a .gitattributes file: This repository provides custom agents in .github/agents/. Use /agent in Copilot CLI to browse and select them, or reference them by…

The file

We split this copilot-instructions.md into the rules it gives an agent

10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every function must include a docstring inside the function body, immediately after the def line.

    line 9
  2. Distinctive:

    Every function must have a JSDoc comment above the function declaration:

    line 26
  3. Distinctive:

    Use 4 spaces per indentation level.

    line 45
  4. Very specific:

    Use spaces around operators (=, +=, ==, !=, <, >, in, not in, etc.).

    line 48
  5. Distinctive:

    Place one space after commas in argument lists, collections, and imports.

    line 53
  6. Distinctive:

    Keep lines to a maximum of 120 characters.

    line 55
  7. Very specific:

    Use snake_case for functions and variables, PascalCase for classes, and UPPER_SNAKE_CASE for constants.

    line 56
  8. Very specific:

    All files in this repository must use CRLF (\r\n) line endings, not LF (\n).

    line 64
  9. Distinctive:

    Python and JavaScript source files: use spaces (4 spaces per level).

    line 79
  10. Distinctive:

    Markdown files: use tabs (1 tab per level).

    line 80

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

Copilot Instructions

Code Style and Formatting

Function Documentation

Python

Every function must include a docstring inside the function body, immediately after the def line. Use the following format:

def calculate_mos(ratings, num_subjects):
    """
    Calculate the Mean Opinion Score from a list of ratings.

    :param ratings: List of numeric ratings.
    :param num_subjects: Number of subjects who provided ratings.
    :return: The computed MOS value as a float.
    """
    ...

JavaScript

Every function must have a JSDoc comment above the function declaration:

/**
 * Calculate the Mean Opinion Score from a list of ratings.
 *
 * @param {number[]} ratings - List of numeric ratings.
 * @param {number} numSubjects - Number of subjects who provided ratings.
 * @returns {number} The computed MOS value.
 */
function calculateMos(ratings, numSubjects) {
    ...
}

Python Spacing and Syntax

Follow PEP 8 conventions:

  • Use 4 spaces per indentation level. Do not use tabs.
  • Surround top-level function and class definitions with two blank lines.
  • Surround method definitions inside a class with one blank line.
  • Use spaces around operators (=, +=, ==, !=, <, >, in, not in, etc.).
  • No spaces immediately inside parentheses, brackets, or braces:
    • ✅ func(a, b) — ❌ func( a, b )
    • ✅ data[0] — ❌ data[ 0 ]
    • ✅ {'key': value} — ❌ { 'key' : value }
  • Place one space after commas in argument lists, collections, and imports.
  • No trailing whitespace on any line.
  • Keep lines to a maximum of 120 characters.
  • Use snake_case for functions and variables, PascalCase for classes, and UPPER_SNAKE_CASE for constants.
  • Imports should be grouped in the following order, separated by a blank line:
    1. Standard library imports
    2. Third-party imports
    3. Local / project imports

Line Endings

All files in this repository must use CRLF (\r\n) line endings, not LF (\n). Configure your editor and Git accordingly:

git config core.autocrlf true

Or use a .gitattributes file:

* text=auto eol=crlf

Indentation

  • Python and JavaScript source files: use spaces (4 spaces per level).
  • Markdown files: use tabs (1 tab per level).

Custom Agents

This repository provides custom agents in .github/agents/. Use /agent in Copilot CLI to browse and select them, or reference them by name in a prompt.

AgentPurposeExample prompts
create-studyCreate subjective speech quality tests (ACR, DCR, CCR, P.835, P.804)"create a study", "run a P.804 test", "set up a P.835 study"
analyze-resultsAnalyze crowdsourced test results — data cleaning, MOS aggregation"analyze results", "parse results", "evaluate the study"

See AGENTS.md for full details and trigger phrases.

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.