bug-ops-fast-yaml-nodejs-instructions.ocm.json json Copy{
"ocm": "1",
"id": "bug-ops-fast-yaml-nodejs-instructions",
"kind": "skill",
"name": "nodejs",
"description": "Node.js Bindings Instructions",
"publisher": "bug-ops",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Node.js Bindings Instructions"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/bug-ops/fast-yaml",
"path": ".github/instructions/nodejs.instructions.md",
"ref": "f9d0385aa7611915e0a69b3ab1c355fe1b918fb7",
"url": "https://github.com/bug-ops/fast-yaml/blob/f9d0385aa7611915e0a69b3ab1c355fe1b918fb7/.github/instructions/nodejs.instructions.md",
"key": "bug-ops/fast-yaml/.github/instructions/nodejs.instructions.md"
},
"applies_to": [
"nodejs/**/*.rs",
"nodejs/**/*.ts",
"nodejs/**/*.js"
]
},
"instructions": "# Node.js Bindings Instructions\n\n## NAPI-RS Rules\n- Export TypeScript definitions for all public functions\n- Use `#[napi(ts_return_type = \"Promise<T>\")]` for async\n- Zero-copy buffer handling where possible\n- Don't block event loop with sync operations\n\n## API Design\n- camelCase for function names\n- Return Promises for async operations\n- Error messages should be actionable\n\n## Testing\n- Use vitest for tests\n- Test error paths, not just happy paths",
"cost": {
"context_tokens": 112
}
}