agentleFS
codingjoecodingjoe/esupgrade/.github/copilot-instructions.md

esupgrade

Copilot instructions15 starsChanged 6 months agoBSD-2-ClauseView on GitHub

YOUR PRIORITY IS TO ENSURE THE SAFETY OF ALL TRANSFORMATIONS. When writing code, you MUST ALWAYS follow the naming guidelines. All code must be fully tested with a 100% coverage. Unreachable code must be removed. Follow the CONTRIBUTING.md guidelines for testing and linting. All transformers must be documented in the README.md. Use class syntax for all object-oriented code. Use named functions instead of anonymous functions whenever possible. Use # for private methods. Avoid overly complex functions. Break them into smaller…

The file

Show its rules and text

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

14 rules. About 0 are common, 11 are distinctive, and 3 are 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.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When writing code, you MUST ALWAYS follow the naming guidelines.

    line 3
  2. Distinctive:

    All code must be fully tested with a 100% coverage.

    line 11
  3. Distinctive:

    Follow the CONTRIBUTING.md guidelines for testing and linting.

    line 12
  4. Distinctive:

    All transformers must be documented in the README.md.

    line 14
  5. Very specific:

    Use class syntax for all object-oriented code.

    line 16
  6. Very specific:

    Use named functions instead of anonymous functions whenever possible.

    line 17
  7. Very specific:

    Use # for private methods.

    line 18
  8. Distinctive:

    Avoid overly complex functions.

    line 20
  9. Distinctive:

    Write docstrings with jsdoc type annotations for all functions, classes, and methods.

    line 22
  10. Distinctive:

    Avoid code comments unless they describe behavior of 3rd party code or complex algorithms.

    line 28
  11. Distinctive:

    Avoid loops in favor of recursive functions or generator functions.

    line 29
  12. Distinctive:

    Avoid functions or other code inside functions.

    line 30
  13. Distinctive:

    Avoid if-statements in favor of switch-statements or polymorphism.

    line 31
  14. Distinctive:

    Do not assign names to objects which are returned in the next line.

    line 32

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

YOUR PRIORITY IS TO ENSURE THE SAFETY OF ALL TRANSFORMATIONS.

When writing code, you MUST ALWAYS follow the naming guidelines.

Usage:

curl -sL https://raw.githubusercontent.com/codingjoe/naming-things/refs/heads/main/README.md | head -n 500

All code must be fully tested with a 100% coverage. Unreachable code must be removed. Follow the CONTRIBUTING.md guidelines for testing and linting.

All transformers must be documented in the README.md.

Use class syntax for all object-oriented code. Use named functions instead of anonymous functions whenever possible. Use # for private methods.

Avoid overly complex functions. Break them into smaller functions if necessary.

Write docstrings with jsdoc type annotations for all functions, classes, and methods. Docstrings should be written in present tense imperative mood. They must start with a capital letter and end with a period. Docstrings must describe the external behavior of the function, class, or method. Docstrings should avoid redundant phrases like "This function" or "This method". Class docstrings must not repeat the class name or start with a verb since they don't do anything themselves. Avoid code comments unless they describe behavior of 3rd party code or complex algorithms. Avoid loops in favor of recursive functions or generator functions. Avoid functions or other code inside functions. Avoid if-statements in favor of switch-statements or polymorphism. Do not assign names to objects which are returned in the next line.

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.