json-flat-tool
Installation
SKILL.md
JSON Flat Tool
⚠️ MANDATORY: Use jstool instead of read/edit/cat for JSON files!
Before using read/edit on *.json files, ask yourself: "Should I use jstool instead?"
- View:
python3 ~/.agents/skills/json-flat-tool/jstool.py view <file> -s - Edit:
python3 ~/.agents/skills/json-flat-tool/jstool.py set <path> <value> <file> -f - Search:
python3 ~/.agents/skills/json-flat-tool/jstool.py find <pattern> <file>
Note on hooks: This skill previously attempted to use PreToolUse hooks to intercept Read/Edit calls on JSON files. However, Claude Code hooks cannot match on tool arguments (like file extensions). According to the Claude Code Hooks Reference, matchers only support tool name patterns (e.g.,
"Read","Edit"), not argument-based filtering (e.g.,"read(*.json)"). Additionally, therespondhook type does not exist; valid types are:command,http,prompt,agent. For argument-level validation, hooks must use acommandscript that parsestool_inputJSON.
Related skills