Skip to content

Code Style Guide

Documentation In Progress

This page is under development. Check back soon for comprehensive style guidelines.

Overview

Ralph Orchestrator follows Rust community conventions with project-specific additions.

Rust Style

Pre-commit Hooks

# Install hooks
./scripts/setup-hooks.sh

# Hooks run automatically on commit (CI parity):
# - ./scripts/sync-embedded-files.sh check
# - cargo fmt --all -- --check
# - cargo clippy --all-targets --all-features -- -D warnings
# - cargo test

Documentation Style

  • Use present tense ("adds" not "added")
  • Keep lines under 100 characters
  • Include examples for public APIs
  • Keep plugins.llmstxt.sections in mkdocs.yml in sync with docs IA changes
  • Validate llms map changes with mkdocs build --strict and python scripts/validate_llms_txt.py site/llms.txt

See Also