polarity-app-vectorscope-javascript-instructions.ocm.json json Copy{
"ocm": "1",
"id": "polarity-app-vectorscope-javascript-instructions",
"kind": "skill",
"name": "javascript",
"description": "JavaScript Instructions",
"publisher": "polarity",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"JavaScript Instructions"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/polarity/app.vectorscope",
"path": ".github/instructions/javascript.instructions.md",
"ref": "27aeaf4677002820d18a5d4c37ff3cc0a0888e01",
"url": "https://github.com/polarity/app.vectorscope/blob/27aeaf4677002820d18a5d4c37ff3cc0a0888e01/.github/instructions/javascript.instructions.md",
"key": "polarity/app.vectorscope/.github/instructions/javascript.instructions.md"
},
"applies_to": "**/*.js"
},
"instructions": "# JavaScript Instructions\n\n- Follow StandardJS conventions used by the repo: 2-space indentation and no semicolons.\n- Keep UI code in `js/ui.js`, audio setup in `js/audio.js`, canvas drawing in `js/vectorscope.js` and `js/overlay.js`, and shared theme access in `js/theme.js`.\n- Add or maintain JSDoc for exported functions and non-obvious logic.\n- Prefer small, focused functions and avoid duplicating logic across modules.\n- Do not duplicate CSS palette values in JavaScript; read theme tokens through the shared theme helper instead.",
"cost": {
"context_tokens": 134
}
}