Skip to main content

Introduction

Consistent naming improves discoverability, maintainability, and collaboration. These conventions apply to all Cowboy documentation, code, and assets.
Rule: When in doubt, use kebab-case for files and snake_case for code

File Naming

Documentation Files (.mdx)

Format: kebab-case.mdx Rules (short):
  • Lowercase; use hyphens between words
  • Be descriptive; avoid overly generic names
Examples:

Diagram Files

Format: category-description.[svg|mmd|excalidraw|drawio] Examples:

Image Files

Format: kebab-case.[png|jpg|svg] Examples:

Directory Naming

Documentation Directories

Format: kebab-case/ (match existing IA) Examples:

Code Naming (Python)

Files

Format: snake_case.py

Classes

Format: PascalCase

Functions/Methods

Format: snake_case

Variables

Format: snake_case (constants use UPPER_SNAKE_CASE)

Terminology Standards

Cowboy-Specific Terms

Always Use (capitalized when referring to Cowboy concepts):

Abbreviations (minimal)

Use common, project-wide forms (see Style Guide): VM, API, SDK, CLI, CBY, PoS, DoS, CIP.

API Endpoints

Format: /api/v1/resource-name

Quick Reference Table

This v0.1 guide focuses on the essentials to keep contributions fast and consistent. We will expand with edge cases in later milestones.