Code Style
Code Style
Section titled “Code Style”Python
Section titled “Python”- Python 3.11+
- Type hints required
- Line length: 100 characters
- Formatter: Ruff
- Linter: Ruff + MyPy
Imports
Section titled “Imports”# Standard library firstimport asynciofrom pathlib import Path
# Third-partyimport yamlimport aiosqlite
# Localfrom kazma_core.hub.manifest_schema import SkillManifestType hints
Section titled “Type hints”async def process(message: str, agent_id: str | None = None) -> dict: ...
def parse_skill_id(skill_id: str) -> tuple[str, str, str]: ...- 2-space indentation
- kebab-case for keys
- No trailing whitespace
TypeScript/React
Section titled “TypeScript/React”- Functional components
- TypeScript strict mode
- CSS modules for styling