Json Wrangler
Skill0 starsChanged 29 days agoApache-2.0View on GitHub
Transform JSON files with a bundled stdlib tool — flatten nested objects to dot-keys, convert an array of objects to CSV, or filter array items by a field value.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- Contact DeduperSkill
- Csv CleanerSkill
- Expense CategorizerSkill
- Invoice ProcessorSkill
- Log AnalyzerSkill
- Pdf ExtractorSkill
- Report Chart BuilderSkill
- Spreadsheet AnalyzerSkill
- Survey SummarizerSkill
- delegate-agentSkill
- Approval Request TriageSkill
- Backup RunnerSkill
- Channel BroadcastSkill
- Dependency AuditorSkill
- Memory KeeperSkill
- Repo OnboarderSkill
- Scheduled Job DoctorSkill
- Web Form FillerSkill
- Web ScraperSkill
- Website MonitorSkill
- Brain Dump To TasksSkill
- Calendar Day PlannerSkill
- Daily BriefingSkill
- Email TriageSkill
- Follow Up TrackerSkill
- Meeting MinutesSkill
- Recurring Digest SetupSkill
- Standup ReporterSkill
- Task Board GroomerSkill
- Weekly ReviewSkill
- Arxiv Paper ScannerSkill
- Comparison MatrixSkill
- Competitor WatchSkill
- Deep Research BriefSkill
- Fact CheckerSkill
- News DigestSkill
- People Company BriefSkill
- Product Price ScoutSkill
- Stock Price CheckerSkill
- Trending Topic DigestSkill
- Senior Software EngineerSkill
- Skill CreatorSkill
- Social CommentsSkill
- Social CoreSkill
- Social DMSkill
- Social EngageSkill
- Social HealthSkill
- Social InsightSkill
- Social ProspectSkill
- Social WatchSkill
- Blog Post WriterSkill
- Documentation WriterSkill
- Email DrafterSkill
- Executive SummarySkill
- Press Release WriterSkill
- Proposal WriterSkill
- Release Notes WriterSkill
- Social Media RepurposerSkill
- Tone RewriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Run it via shell, e.g.:
- Very specific: line 46
Verify: read_file the first lines of the output.
- Very specific: line 64
If shell is unavailable: for small files (< ~100 items) do the transform manually and write_file the result, stating it was done by hand.
- Very specific: line 67
Never reorder or rewrite values beyond the transform.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Json Wrangler
You transform JSON files in the working folder with scripts/json_tool.py,
choosing the right subcommand for the user's ask.
Inputs
- Path to a
.jsonfile in the working folder (if unnamed,globfor*.jsonand confirm). - The transformation the user wants; output filename (defaults:
out.json/out.csv).
Choosing the subcommand
flatten— the user wants nested structure collapsed:{"user":{"name":"Ana"}}becomes{"user.name":"Ana"}; list items get numeric keys (tags.0). Right for "make this flat / diffable / one key per line".tocsv— the input is an ARRAY of objects and the user wants a table/spreadsheet/Excel-openable file. Each object becomes a row (nested keys are flattened into dot-named columns; the column set is the union across rows).filter --path a.b --equals X— keep only array items whose field at the dot-path equals X (string compare, so--equals 42matches the number 42). Right for "only the active ones", "just the rows where region is ID".- Combinations run as a pipeline: e.g. filter first to
filtered.json, thentocsvon that output.
Steps
- Inspect the input with
read_file(ordocument_infoif very large) to see the shape: object vs array, nesting depth, the field to filter on. - Pick the subcommand(s) per the guide above; tell the user your plan in one line.
- Fetch the tool:
load_skill_resource({"slug": "json-wrangler", "path": "scripts/json_tool.py"}), save it into the working folder withwrite_fileasjson_tool.py. - Run it via shell, e.g.:
shell("python3 json_tool.py flatten data.json -o data.flat.json")shell("python3 json_tool.py tocsv data.json -o data.csv")shell("python3 json_tool.py filter data.json --path status --equals active -o active.json")
- Verify:
read_filethe first lines of the output; fortocsvconfirm the header columns; forfilterconfirm the kept-count printed by the tool is plausible against step 1. - Report what was produced and the counts.
Output format
<subcommand> on <in.json> → <out file>
- items in / out (filter) or rows x columns (tocsv) or keys produced (flatten)
- note anything lossy (e.g. empty cells for objects missing a column)Rules
- The tool errors (exit non-zero) if the shape does not fit — e.g.
tocsvon a non-array. Relay the error and suggest the fix (often: flatten or filter first, or the array lives under a top-level key — extract it first). - If
shellis unavailable: for small files (< ~100 items) do the transform manually andwrite_filethe result, stating it was done by hand; for large files tell the user to enable shell. - Never reorder or rewrite values beyond the transform;
filterkeeps items byte-equivalent,tocsvwrites values as-is. - The original file is never modified; always write to a new output path.
- Deep filtering beyond exact equality (ranges, contains) is out of scope — offer to do it manually on small data instead of inventing flags.
- Local-first: no network; inputs and outputs stay in the working folder.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

