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.
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.
Clone the repository and explore the guides/ folder:
git clone https://github.com/Karl-Horning/karl-style-guides.git
cd karl-style-guides/guidesOptionally copy templates for your own projects:
cp -r templates/* ~/your-project/- README Style Guide —
guides/readme_style_guide.md - Git Commit Style Guide —
guides/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/README_TEMPLATE.mdtemplates/.gitmessagetemplates/JSDOC_EXAMPLES.md
examples/before-after-readme.mdexamples/commit-messages.md
- 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.
- 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.
- 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.
Start small:
- Copy the relevant files from
guides/andtemplates/. - Add the CI from
.github/workflows/lint.yml. - Announce the change and link these guides in your team wiki.
- Iterate — these are living documents; keep PRs small and focused.
Made with ❤️ by Karl Horning