AGENT SKILL

code-style-guide

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

适用职业开发工程师
License 许可
MIT
最近更新
2026-11-11
Stars
★ 1.4k
Forks
767

01 前言 Front Matter

name
code-style-guide
license
MIT
description
Project coding standards and style guidelines. Always follow these conventions when writing or reviewing code.

03 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

04 同仓库更多 Skills