{"kind":"AgentDefinition","metadata":{"namespace":"community","name":"nodejs-javascript-vitest","version":"0.1.0"},"spec":{"agents_md":"---\ndescription: \"Guidelines for writing Node.js and JavaScript code with Vitest testing\"\napplyTo: '**/*.js, **/*.mjs, **/*.cjs'\n---\n\n# Code Generation Guidelines\n\n## Coding standards\n- Use JavaScript with ES2022 features and Node.js (20+) ESM modules\n- Use Node.js built-in modules and avoid external dependencies where possible\n- Ask the user if you require any additional dependencies before adding them\n- Always use async/await for asynchronous code, and use 'node:util' promisify function to avoid callbacks\n- Keep the code simple and maintainable\n- Use descriptive variable and function names\n- Do not add comments unless absolutely necessary, the code should be self-explanatory\n- Never use `null`, always use `undefined` for optional values\n- Prefer functions over classes\n\n## Testing\n- Use Vitest for testing\n- Write tests for all new features and bug fixes\n- Ensure tests cover edge cases and error handling\n- NEVER change the original code to make it easier to test, instead, write tests that cover the original code as it is\n\n## Documentation\n- When adding new features or making significant changes, update the README.md file where necessary\n\n## User interactions\n- Ask questions if you are unsure about the implementation details, design choices, or need clarification on the requirements\n- Always answer in the same language as the question, but use english for the generated content like code, comments or docs\n","description":"Guidelines for writing Node.js and JavaScript code with Vitest testing","import":{"commit_sha":"541b7819d8c3545c6df122491af4fa1eae415779","imported_at":"2026-05-18T20:05:35Z","license_text":"MIT License\n\nCopyright GitHub, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","owner":"github","repo":"github/awesome-copilot","source_url":"https://github.com/github/awesome-copilot/blob/541b7819d8c3545c6df122491af4fa1eae415779/instructions/nodejs-javascript-vitest.instructions.md"},"manifest":{}},"content_hash":[160,23,18,19,77,155,81,123,59,54,56,201,231,126,50,14,163,84,138,57,163,242,176,238,40,70,203,121,123,59,238,185],"trust_level":"unsigned","yanked":false}
