Distills all markdown style rules (project + personal) into one place. Use BEFORE creating or editing any .md file. Post-write: run reflow_md.py --quiet --check and lint fixes before considering the task done. Enforced by AGENTS.md § Markdown prose.
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Distills all markdown style rules (project + personal) into one place. Use BEFORE creating or editing any .md file. Post-write: run reflow_md.py --quiet --check and lint fixes before considering the task done. Enforced by AGENTS.md § Markdown prose.
Markdown style enforcer
When to load me
LOAD BEFORE:
creating a new .md file (authored doc, README, etc.)
modifying an existing .md file (any non-trivial prose change)
suggesting prose changes during a review
LOAD AFTER (when relevant):
the user asks "is this markdown compliant?"
after a batch of markdown edits, before declaring the batch done
SKIP:
reading markdown files (no need)
running scripts that only emit non-markdown output
1. One paragraph = one physical line (THE rule I keep breaking)
NEVER wrap prose at any column width. Long sentences are ONE LINE, even if they exceed 200 characters. The project uses "book style" paragraphs - every prose paragraph collapsed to a single physical line.
# CORRECT (one paragraph = one line, however long):
This is a paragraph that goes on one single line regardless of its length and even when it contains multiple sentences, because soft wrapping is explicitly forbidden by the project rules.
# WRONG (this is the violation the user keeps seeing):
This is a paragraph that goes
on multiple physical lines
because that breaks the reflow_md invariant.
Tables, code fences, headings, lists, blockquotes, frontmatter are preserved verbatim by reflow_md.py.
Em-dash, en-dash, curly quotes, and ellipsis are almost exclusively used by AI assistants in prose, not by humans in their daily writing. Their presence in a tracked file is a strong signal of AI-generated content. Replace them with their ASCII equivalents:
Wrong
Right
Notes
em-dash
-
U+2014 → U+002D
en-dash
-
U+2013 → U+002D
'' (curly quotes)
'
U+2019 / U+2018 → U+0027
"" (curly double quotes)
"
U+201C / U+201D → U+0022
… (ellipsis)
...
U+2026 → three dots
Accented letters are NOT in scope of this rule: French typography (é, è, ê, à, â, ç, ô, ù, û, î, ï, ë, ÿ) and other European diacritics are normal human text. Keep them as-is.
Box-drawing characters (─, │, ╭, ╮, ...) and arrow symbols (→, ⇒, ←) are OK for diagrams and table separators.
3. English only for PUBLIC docs (AGENTS.md)
Public buckets (English mandatory): top-level, _Helpers/, odin-knowledge-base/, code/.
Private buckets (any language OK): _Private/, **/raw/**, personal logs / planning / dailies.
Rationale: the public branch is pushed to github.com, an international public repo. Consistency for search, AI tooling (subagent prompts expect English keywords), and international contributors.
4. Frontmatter for authored docs
Required in _Helpers/docs/, _Private/docs/, etc. Frontmatter schema in _Helpers/docs/003_yaml_frontmatter_conventions.md (load on demand).
Exit 1 → reflow needed (paths printed one per line). I wrapped when I shouldn't have → fix my source. Reflow (--apply) is MANUAL recovery controlled by the user; I do NOT invoke it without explicit GO.
Exit 2 → tool error (root not found, etc.).
Run markdownlint-cli2 (catches MD024, MD025, etc.):
npx markdownlint-cli2 <file>
Loop until both exit 0.
Tools reference
Tool
Use
When
reflow_md.py --quiet --check --path <file>
Detect wrapped paragraphs (rule 1)
every write
reflow_md.py --apply --path <file>
Auto-fix rule 1
MANUAL only, never automated, requires explicit user GO
npx markdownlint-cli2 <file>
Catch other MD rules
every write
Never-automated list (read-and-respect)
The following actions MUST NOT happen without an explicit user request in the same conversation turn:
reflow_md.py --apply (any path)
npx markdownlint-cli2 --fix (if used)
These exist for the user's manual recovery. I surface them as options when relevant; I do not invoke them.
References
AGENTS.md § Markdown prose + Language + Markdown structure
_Helpers/docs/004_markdown_style.md - full markdown style with examples