金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

code-style-guide

code-style-guide 是面向测试与安全的 Agent Skill,来自 OpenHands/software-agent-sdk。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

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

SKILL.md

下载 MD ↓
namecode-style-guide
descriptionProject coding standards and style guidelines. Always follow these conventions when writing or reviewing code.
licenseMIT

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

来源:OpenHands/software-agent-sdk · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本