# Code Style Guide

> Project coding standards and style guidelines. Always follow these conventions when writing or reviewing code.

- Skill: `openhands-software-agent-sdk/code-style-guide` (Agent Skill)
- Install (CLI): `npx skillmds@latest add openhands-software-agent-sdk/code-style-guide`
- Raw SKILL.md: https://api.skillmd.com/api/skills/openhands-software-agent-sdk/code-style-guide/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: OpenHands (https://skillmd.com/u/openhands-software-agent-sdk)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/openhands-software-agent-sdk/code-style-guide

---


# Code Style Guide

Follow these conventions for all code in this project.

## Python

- Use 4 spaces for indentation
- Maximum line length: 88 characters (Black default)
- Use type hints for function signatures
- Prefer f-strings over `.format()` or `%` formatting

## Naming Conventions

- Classes: `PascalCase`
- Functions/variables: `snake_case`
- Constants: `UPPER_SNAKE_CASE`
- Private members: `_leading_underscore`

## Documentation

- All public functions must have docstrings
- Use Google-style docstrings
- Include type information in docstrings when not using type hints

