robkelle-gadget-template-raspberry-pi-instructions.ocm.json json Copy{
"ocm": "1",
"id": "robkelle-gadget-template-raspberry-pi-instructions",
"kind": "skill",
"name": "raspberry-pi",
"description": "Raspberry Pi Python conventions",
"publisher": "robkelle",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Raspberry Pi Python conventions"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/robkelle/gadget-template",
"path": ".github/instructions/raspberry-pi.instructions.md",
"ref": "93cb35c9cc20c257ae1b20d2852ead32ca3626ae",
"url": "https://github.com/robkelle/gadget-template/blob/93cb35c9cc20c257ae1b20d2852ead32ca3626ae/.github/instructions/raspberry-pi.instructions.md",
"key": "robkelle/gadget-template/.github/instructions/raspberry-pi.instructions.md"
},
"applies_to": "pi/**/*.py,raspberry_pi/**/*.py"
},
"instructions": "- Use gpiozero library over RPi.GPIO when possible (safer, simpler API)\n- Always clean up GPIO on exit — use `signal` handlers or `atexit`\n- Include a wiring comment block at the top of every file that touches GPIO\n- Use `python3` explicitly, never assume `python` is Python 3\n- For I2C/SPI, document bus address and expected device in comments\n- Never run GPIO scripts as root unless absolutely necessary — configure udev rules instead",
"cost": {
"context_tokens": 109
}
}