mbangas-tmf-service-layer-python-instructions.ocm.json json Copy{
"ocm": "1",
"id": "mbangas-tmf-service-layer-python-instructions",
"kind": "skill",
"name": "python",
"description": "Python Coding Conventions",
"publisher": "mbangas",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Python Coding Conventions"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/mbangas/TMF-Service-Layer",
"path": ".github/instructions/python.instructions.md",
"ref": "97c3d1258dc99ef18b0c32f9c36f871550269670",
"url": "https://github.com/mbangas/TMF-Service-Layer/blob/97c3d1258dc99ef18b0c32f9c36f871550269670/.github/instructions/python.instructions.md",
"key": "mbangas/TMF-Service-Layer/.github/instructions/python.instructions.md"
},
"applies_to": "**/*.py"
},
"instructions": "# Python Coding Conventions\n\n## Naming Conventions\n\n- Use snake_case for variables and functions\n- Use PascalCase for class names\n- Use UPPERCASE for constants\n\n## Code Style\n\n- Follow PEP 8 style guidelines\n- Limit line length to 88 characters (Black formatter standard)\n- Use type hints for function signatures\n\n## Best Practices\n\n- Use list comprehensions for simple transformations\n- Prefer f-strings for string formatting\n- Use context managers (with statements) for resource management\n\n```python\n# Avoid\nfile = open('data.txt')\ncontent = file.read()\nfile.close()\n\n# Prefer\nwith open('data.txt'",
"cost": {
"context_tokens": 160
}
}