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
- Distinctive: line 13
Ensure all unit tests pass by running:
- Distinctive: line 24
Follow standard TypeScript and JavaScript coding conventions and best practices
- Distinctive: line 27
Document changes clearly and thoroughly, including updates to existing comments when appropriate
- Distinctive: line 29
Do not include basic, unnecessary comments that simply restate what the code is doing (focus on explaining _why_, not _what_)
- Distinctive: line 31
Use consistent error handling patterns throughout the codebase
- Distinctive: line 32
Use TypeScript's type system to ensure type safety and clarity
- Distinctive: line 33
Keep functions focused and manageable
- Distinctive: line 34
Use descriptive variable and function names that clearly convey their purpose
- Distinctive: line 35
Use JSDoc comments to document functions, classes, and complex logic
- Very specific: line 36
After doing any refactoring, ensure to run npm run test to ensure that all tests still pass and coverage requirements are met
- Distinctive: line 38
When suggesting code changes, always opt for the most maintainable approach.
- Distinctive: line 41
Avoid unnecessary complexity and always consider the long-term maintainability of the code
- Distinctive: line 43
When writing unit tests, try to consider edge cases as well as the main path of success.
- Distinctive: line 56
When creating a pull request (PR), please ensure that:
- Distinctive: line 58
Keep changes focused and minimal (avoid large changes, or consider breaking them into separate, smaller PRs)
- Distinctive: line 63
If necessary, the README.md file is updated to reflect any changes in functionality or usage
- Distinctive: line 75
When performing a code review, please follow these guidelines:
- Distinctive: line 77
If there are changes that modify the functionality/usage of the action, validate that there are changes in the README.md file that document …
≈ “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
Copilot Instructions
Environment Setup
Install dependencies by running:
npm installTesting
Ensure all unit tests pass by running:
npm run testUnit 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 testto 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.mdfile 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.mdfile that document the new or modified functionality
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.

