agodianel-firmware-replay-lab-python-instructions.ocm.json json Copy{
"ocm": "1",
"id": "agodianel-firmware-replay-lab-python-instructions",
"kind": "skill",
"name": "python",
"description": "Python Code Guidelines",
"publisher": "agodianel",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Python Code Guidelines"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/agodianel/Firmware-Replay-Lab",
"path": ".github/instructions/python.instructions.md",
"ref": "f5a0e9a4e2e42f95af874ebfec04b6ae4a1f7b5b",
"url": "https://github.com/agodianel/Firmware-Replay-Lab/blob/f5a0e9a4e2e42f95af874ebfec04b6ae4a1f7b5b/.github/instructions/python.instructions.md",
"key": "agodianel/Firmware-Replay-Lab/.github/instructions/python.instructions.md"
},
"applies_to": "**/*.py"
},
"instructions": "# Python Code Guidelines\n\n- Target Python 3.10+. Use `from __future__ import annotations` for forward references.\n- Use `dataclasses` for data structures. Avoid Pydantic unless explicitly approved.\n- Type-hint all public function signatures.\n- Keep dependencies minimal; the core package must work with zero third-party imports.\n- Use `pathlib.Path` instead of `os.path`.\n- Prefer `json` from stdlib for bundle I/O.\n- Use `uv run pytest` to execute tests; never rely on a globally installed pytest.\n- Follow existing code style in `src/firmware_replay_lab/` for naming and structure.",
"cost": {
"context_tokens": 145
}
}