---
name: openhands-code-style-guide
description: "Project coding standards and style guidelines. Always follow these conventions when writing or reviewing code."
license: "MIT"
metadata:
  decimalai-skill-id: "685be576-17e8-4616-af59-3d1a16dd4173"
  decimalai-version-id: "0c5e394e-88b7-4c5b-87be-500c299ad382"
  decimalai-version: "1"
  decimalai-body-sha256: "6f6e987c915637ffd833eec214f4a785cc53d19db659ff2244058cb38caa4806"
  decimalai-name: "openhands/code-style-guide"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-source: "https://app.decimal.ai/s/openhands-code-style-guide@1/SKILL.md"
---
# 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
