Back to list
cuioss

tools-json-ops

by cuioss

An orchestration layer for AI coding assistants (currently Claude Code) that enforces consistency, reliability, and more predictable outputs.

0🍴 0📅 Jan 17, 2026

SKILL.md


name: tools-json-ops description: Generic JSON file CRUD operations with path notation support allowed-tools: Read, Write, Edit, Bash

JSON File Operations Skill

Generic JSON file operations with JSON path notation support for field-level access.

What This Skill Provides

  • Read, write, and update any JSON file
  • Field-level access using JSON path notation
  • Array and object manipulation
  • Atomic writes with validation
  • Works with any JSON file (including configuration directories)

When to Activate This Skill

Activate this skill when:

  • Reading or writing JSON files
  • Performing structured updates to JSON content
  • Accessing specific fields within JSON files
  • Adding or removing entries from JSON arrays/objects

Workflow: JSON File Operations

Pattern: Command Chain Execution

Perform read, write, and update operations on JSON files.

Parameters

  • file_path (required): Path to JSON file
  • operation (required): One of read, read-field, write, update-field, add-entry, remove-entry
  • field (optional): JSON path for field operations (e.g., parent.child.field)
  • value (optional): Value for write/update operations (JSON string)

Step 1: Execute Operation

python3 .plan/execute-script.py plan-marshall:tools-json-ops:{operation} {file_path} [--field {field}] [--value '{value}']

Step 2: Process Result

Parse JSON output:

  • success: true - Return result value
  • success: false - Report error message

Operations Reference

OperationDescriptionRequired Params
readRead entire filefile_path
read-fieldRead specific fieldfile_path, field
writeWrite entire contentfile_path, value
update-fieldUpdate specific fieldfile_path, field, value
add-entryAdd to array/objectfile_path, field, value
remove-entryRemove from array/objectfile_path, field, value

Example Usage

# Read entire file
python3 .plan/execute-script.py plan-marshall:tools-json-ops:manage-json-file read config.json

# Read specific field
python3 .plan/execute-script.py plan-marshall:tools-json-ops:manage-json-file read-field config.json --field "database.host"

# Update field
python3 .plan/execute-script.py plan-marshall:tools-json-ops:manage-json-file update-field config.json --field "database.port" --value '5432'

# Add to array
python3 .plan/execute-script.py plan-marshall:tools-json-ops:manage-json-file add-entry config.json --field "servers" --value '"new-server"'

# Remove from array
python3 .plan/execute-script.py plan-marshall:tools-json-ops:manage-json-file remove-entry config.json --field "servers" --value '"old-server"'

JSON Path Notation

Use dot notation for JSON paths:

PathDescription
fieldTop-level field
parent.childNested object
parent.child.grandchildDeep nested field
array[0]First array element
array[-1]Last array element

Special Characters

  • Use quotes for keys with special characters: parent."my-key".field
  • Array indices use bracket notation: [0], [-1]

Scripts

ScriptNotation
manage-json-fileplan-marshall:tools-json-ops

Script characteristics:

  • Uses Python stdlib only (json, argparse, pathlib)
  • Outputs JSON to stdout
  • Exit code 0 for success, 1 for errors
  • Supports --help flag

Integration Points

With Scripts Library

  • Scripts are discovered via scripts-library.toon
  • Use portable notation from Scripts table above

With manage-memories Skill

  • Provides low-level JSON operations used by memory layer

With manage-run-configuration Skill

  • Provides low-level JSON operations for run configuration

Score

Total Score

70/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon