agentleFS
GitHubKnown publishergithub/local-action/.github/copilot-instructions.md

local-action

Copilot instructions454 starsChanged 17 months agoMITView on GitHub

Install dependencies by running: Ensure all unit tests pass by running: Unit tests should exist in the __tests__ directory. They are powered by jest. Fixtures should be placed in the __fixtures__ directory. - Follow standard TypeScript and JavaScript coding conventions and best practices - Changes should maintain consistency with existing patterns and style - Document changes clearly and thoroughly, including updates to existing comments when appropriate - Do not include basic, unnecessary comments that simply restate what the code is…

  • Installs packages

The file

Show its rules and text

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

18 rules. About 0 are common, 17 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    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:

    Ensure all unit tests pass by running:

    line 13
  2. Distinctive:

    Follow standard TypeScript and JavaScript coding conventions and best practices

    line 24
  3. Distinctive:

    Document changes clearly and thoroughly, including updates to existing comments when appropriate

    line 27
  4. Distinctive:

    Do not include basic, unnecessary comments that simply restate what the code is doing (focus on explaining _why_, not _what_)

    line 29
  5. Distinctive:

    Use consistent error handling patterns throughout the codebase

    line 31
  6. Distinctive:

    Use TypeScript's type system to ensure type safety and clarity

    line 32
  7. Distinctive:

    Keep functions focused and manageable

    line 33
  8. Distinctive:

    Use descriptive variable and function names that clearly convey their purpose

    line 34
  9. Distinctive:

    Use JSDoc comments to document functions, classes, and complex logic

    line 35
  10. Very specific:

    After doing any refactoring, ensure to run npm run test to ensure that all tests still pass and coverage requirements are met

    line 36
  11. Distinctive:

    When suggesting code changes, always opt for the most maintainable approach.

    line 38
  12. Distinctive:

    Avoid unnecessary complexity and always consider the long-term maintainability of the code

    line 41
  13. Distinctive:

    When writing unit tests, try to consider edge cases as well as the main path of success.

    line 43
  14. Distinctive:

    When creating a pull request (PR), please ensure that:

    line 56
  15. Distinctive:

    Keep changes focused and minimal (avoid large changes, or consider breaking them into separate, smaller PRs)

    line 58
  16. Distinctive:

    If necessary, the README.md file is updated to reflect any changes in functionality or usage

    line 63
  17. Distinctive:

    When performing a code review, please follow these guidelines:

    line 75
  18. Distinctive:

    If there are changes that modify the functionality/usage of the action, validate that there are changes in the README.md file that document …

    line 77

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

Environment Setup

Install dependencies by running:

npm install

Testing

Ensure all unit tests pass by running:

npm run test

Unit tests should exist in the __tests__ directory. They are powered by jest. Fixtures should be placed in the __fixtures__ directory.

General Coding Guidelines

  • Follow standard TypeScript and JavaScript coding conventions and best practices
  • Changes should maintain consistency with existing patterns and style
  • Document changes clearly and thoroughly, including updates to existing comments when appropriate
  • Do not include basic, unnecessary comments that simply restate what the code is doing (focus on explaining why, not what)
  • Use consistent error handling patterns throughout the codebase
  • Use TypeScript's type system to ensure type safety and clarity
  • Keep functions focused and manageable
  • Use descriptive variable and function names that clearly convey their purpose
  • Use JSDoc comments to document functions, classes, and complex logic
  • After doing any refactoring, ensure to run npm run test to ensure that all tests still pass and coverage requirements are met
  • When suggesting code changes, always opt for the most maintainable approach. Try your best to keep the code clean and follow "Don't Repeat Yourself" (DRY) principles
  • Avoid unnecessary complexity and always consider the long-term maintainability of the code
  • When writing unit tests, try to consider edge cases as well as the main path of success. This will help ensure that the code is robust and can handle unexpected inputs or situations

Versioning

GitHub Actions are versioned using branch and tag names. Please ensure the version in the project's package.json is updated to reflect the changes made in the codebase. The version should follow Semantic Versioning principles.

Pull Request Guidelines

When creating a pull request (PR), please ensure that:

  • Keep changes focused and minimal (avoid large changes, or consider breaking them into separate, smaller PRs)
  • Formatting checks pass
  • Linting checks pass
  • Unit tests pass and coverage requirements are met
  • If necessary, the README.md file is updated to reflect any changes in functionality or usage

The body of the PR should include:

  • A summary of the changes
  • A special note of any changes to dependencies
  • A link to any relevant issues or discussions
  • Any additional context that may be helpful for reviewers

Code Review Guidelines

When performing a code review, please follow these guidelines:

  • If there are changes that modify the functionality/usage of the action, validate that there are changes in the README.md file that document the new or modified functionality

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.