config-parse

Reviewed at commit 6fcdb4e New version, not yet reviewed

Parses each JSON, YAML, TOML or .env file an Edit or Write touches, notes a parse error at once instead of at the next build, and says so again when a later…

Made by
Kerem Gok
What we checked

After Claude edits or writes a JSON, YAML, TOML or .env file, it checks that the file still parses and tells Claude (and you) the error and position if not. YAML and TOML are checked by running python3 on your machine. An optional deny mode (off by default) blocks git commit, push and merge while a file is broken. Nothing leaves your machine.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (command /config-parse, reads git top-level), command.run (on, off, mode note|deny; settings kept with $.store), tool.call for Edit and Write (after the edit: reads the file with $.fs.read for JSON and .env; runs python3 -c with a fixed built-in program on the file path for YAML and TOML), turn.complete (re-checks open files), prompt.submit (adds a note that files still do not parse) and tool.call for Bash (only in deny mode: denies git commit, push or merge while a finding is open; a commit is narrowed to staged files via git diff --cached --name-only). The Python snippets are fixed strings: YAML uses a SafeLoader subclass whose multi-constructor builds nothing, so no objects or code are constructed; TOML uses tomllib. If python3 or PyYAML is missing the kind is skipped with a log line. Also runs git rev-parse --show-toplevel in the session directory. Findings go to the shared sidebar if installed, otherwise to the transcript. The first 60 characters of a .env line that is not a setting can appear in the note, so a malformed line holding a secret would be echoed to Claude. No network, no env access, no writes. The eslint config and Makefile in the folder are dev tooling, not loaded by the hooks; dev dependencies are not reviewed.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

Parses each JSON, YAML, TOML or .env file an Edit or Write touches, notes a parse error at once instead of at the next build, and says so again when a later edit fixes it.

Made this mod? Add a badge to your README

modsforClaude badge for config-parse

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/config-parse.svg)](https://modsforclaude.com/mods/config-parse/)

← All mods