Md language check

From event4u-app/agent-config · View interactive version

Md language check is an AI agent skill from the GitHub repository event4u-app/agent-config. Use BEFORE saving any .md under .augment/, dist/agent-src*/, or agents/ — scans umlauts, German function words, and German phrases outside DE:/EN: anchor blocks. Hard gate per language-and-tone.

How to use this skill

Skill file

md-language-check

When to use

Fire this skill before writing or saving any .md file under:

Per CODE0 § ".md files

are ALWAYS English" and § Detection heuristic, every .md file in those

trees must be English. Bilingual content lives only in labeled

DE: … · EN: … anchor blocks.

Do NOT use when:

consumer projects, application docs that follow a different policy)

Procedure

1. Identify the file(s) about to be saved

Collect the absolute or repo-relative path of every .md file the

agent is about to create or modify in this turn. Multiple files in

one turn → pass them all to a single invocation.

2. Run the checker

./scripts-run src/scripts/check_md_language <path> [<path> …] [--format json]

Exit codes:

or explicitly suppressed

3. Resolve findings

For every violation:

| Kind | Likely cause | Fix |

|---|---|---|

| umlaut | German prose leaked into body text | Translate the sentence to English |

| de_word | German function word in unquoted prose | Translate; or move into a DE: … · EN: … block if intentional bilingual anchor |

If the line is meta-documentation that must quote German tokens

(e.g. the detection heuristic in language-and-tone.md itself),

append <!-- md-language-check: ignore --> at the end of that single

line — never as a wholesale silencer.

4. Re-run and confirm

After every fix, re-run the checker on the same paths. Save only

proceeds on exit 0.

Allowed escape hatches

* DE: (and the same for EN:) are skipped automatically. Use this

for intent-based opt-in / opt-out anchors.

shell snippets, JSON fixtures, and quoted user input in code

blocks pass through untouched.

identifiers like für_test inside backticks do not flag.

to a line that genuinely needs to quote a German token in body

prose (rare; reserved for the rules that document the heuristic).

Output format

  1. One-line summary: clean or N violation(s) found
  2. Per violation: file:line — kind \match\`` plus the offending line
  3. Next action: translate, move into a DE:/EN: block, add the

per-line ignore marker, or revert the change

Gotchas

warning and skips it

a clean run is necessary but not sufficient; the agent still

owns the final language judgement

YAML keys can use international characters where the schema allows

Do NOT

src/scripts/check_md_language.ts; extend the allow-list (anchor

blocks, ignore marker) instead

through; the marker is for meta-documentation that quotes tokens,

not a generic mute

§ Detection heuristic applies to every save under the four trees

Cloud Behavior

On cloud surfaces (Claude.ai Web, Skills API) the checker script is

not shipped, so this skill is inert — the agent applies the

heuristic from CODE0

manually before emitting the file.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.