← knowledge.oriz.in

Check language style guides before writing unfamiliar-language code

rule stylecoding-conventionsbefore-writeagent-behavior

Check language style guides before writing

The rule

Before writing more than ~20 lines of code in a language you haven't already touched this session, fetch the relevant section of awesome-guidelines.

Precedence

  1. Repo's own style guide (.editorconfig, STYLE.md, CONTRIBUTING.md, house AGENTS.md) wins first — per [[match-surrounding-style]].
  2. Fleet convention from the oriz knowledge/decisions/stack/ files (e.g. javascript-typescript.md, python.md) wins second.
  3. Community style guide from awesome-guidelines for the language — third.
  4. Language-default (fmt tool's defaults) — fourth.

When to fetch

When to skip

How

# Once per session per language:
curl -fsSL https://raw.githubusercontent.com/Kristories/awesome-guidelines/main/README.md \
  | awk "/^### $LANGUAGE/,/^###/" | head -50

Or via the fetch MCP tool with the raw README URL, then Ctrl-F the language name in the returned markdown.

Anti-patterns

Cross-refs