home/coding/javascript-instructions-2

Javascript.instructions

GPTClaudeDeepSeek··1,314 copies·updated 2026-07-14
javascript-instructions-2.prompt
---
description: JavaScript standards for Node.js and browsers.
applyTo: "**/*.{js,mjs,cjs}"
---

# JavaScript Instructions

## Style

- Prefer modern syntax (ES2020+).
- Use `const` by default; use `let` only when reassigned.
- Avoid implicit type coercion in critical logic.

## Error Handling

- Prefer explicit error messages.
- Preserve original error causes when rethrowing.

## Testing

- Add tests when behavior changes.
- Cover edge cases and error paths.

fill the variables

This prompt has 1 variable. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{js,mjs,cjs}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo ReactSphere/awesome-copilot-agents (MIT). A "Javascript.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

ReactSphere/awesome-copilot-agents · MIT