Skip to content

Karl-Horning/karl-style-guides

Repository files navigation

Developer Style Guides

Lint & Spellcheck License: MIT

Concise, practical rules for readable, consistent, and accessible documentation and commits. This repository collects style guides and templates designed to make text-based resources easier to read, navigate, and maintain.

Table of Contents

Overview

A personal collection of living documents defining standards for writing and maintaining:

  • Project READMEs
  • Git commit messages
  • Code comments and JSDoc in JS/TS projects

They follow accessibility and readability principles to reduce cognitive load and improve collaboration.

Quick Start

Clone the repository and explore the guides/ folder:

git clone https://github.com/Karl-Horning/karl-style-guides.git
cd karl-style-guides/guides

Optionally copy templates for your own projects:

cp -r templates/* ~/your-project/

Contents

Guides

  • README Style Guideguides/readme_style_guide.md
  • Git Commit Style Guideguides/git_commit_style_guide.md
  • Comments & Documentation Style (JS/TS)guides/comments_and_documentation_style_js_ts.md (Adapted in part from Google’s TypeScript Style Guide)

Templates

  • templates/README_TEMPLATE.md
  • templates/.gitmessage
  • templates/JSDOC_EXAMPLES.md

Examples

  • examples/before-after-readme.md
  • examples/commit-messages.md

Formatting Rules

  • Headings: One H1 per file; clear emoji for quick scanning.
  • Lists: Use hyphens (-) for unordered lists.
  • Code blocks: Use fenced code with a language tag.
  • Links: Prefer absolute or repo-relative links.
  • Tables: Only when data requires grid layout.

Accessibility & Tone

  • Avoid smart quotes and curly apostrophes — use straight quotes (" and ') for readability. ⚠️ (Does not apply to code in backticks.)
  • Use hyphens (-) for bullet points to make lists easier to scan.
  • Reserve italics for rare cases (e.g. technical terms or examples).
  • Include alt text for all images — describe what’s shown and why it matters; avoid decorative images without purpose.
  • Write short, direct sentences and prefer plain English.
  • Keep examples copy-pasteable and tested.

Maintenance

  • Treat this repository as living — update when new conventions or tools emerge.
  • Keep examples accurate and templates usable.
  • Align terminology with real project usage.
  • Remove or revise outdated rules promptly.

Adoption (teams)

Start small:

  1. Copy the relevant files from guides/ and templates/.
  2. Add the CI from .github/workflows/lint.yml.
  3. Announce the change and link these guides in your team wiki.
  4. Iterate — these are living documents; keep PRs small and focused.

Author

Made with ❤️ by Karl Horning

About

Concise, practical rules for readable, consistent, and accessible documentation and commits. This repository collects style guides and templates designed to make text-based resources easier to read, navigate, and maintain.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors