coding-standards
Coding style and structural conventions for this codebase.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Coding Standards
General Principles
Structure
- Prefer small, focused functions.
- Avoid deeply nested conditionals; use early returns.
- Extract reusable logic into shared modules.
Comments & Documentation
- Write comments to explain why, not what.
- Keep docstrings in sync with behavior; avoid outdated comments.
Error & Logging
- Use structured logging with consistent fields:
-
requestId,userId,component,severity
-
- Never log secrets, tokens, or sensitive PII.
Misc
- Avoid long parameter lists; group related values into objects.
- Prefer pure functions where practical.
- Add TODOs with owner and context, e.g.:
-
// TODO [owner]: [short description] ([ticket link])
-
Language-Specific Standards
For detailed language-specific conventions, see:
- Python - Includes modularization guidelines (500-800 lines ideal, 1000 max), black/ruff usage, PEP 8, type hints, and testing conventions
- Swift - iOS/macOS development standards, optionals, protocol-oriented programming, SwiftUI, and memory management
- Kotlin - Android development standards, coroutines, idiomatic Kotlin, null safety, and Jetpack Compose patterns
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-02-04
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!