json-transformer
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Transforms, reshapes, and validates JSON data structures. Use when normalizing API responses, converting nested JSON to flat tables, or validating JSON against a schema.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- nek1987/auto-agent-harnesstheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- nek1987/auto-agent-harness★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository58 other files it gives its agents.
- agent-chain-designerSkill
- api-wrapper-builderSkill
- embeddings-builderSkill
- evaluation-harnessSkill
- fine-tuning-preparerSkill
- llm-router-builderSkill
- ml-model-trainerSkill
- model-benchmarkerSkill
- prompt-engineerSkill
- rag-pipeline-builderSkill
- synthetic-data-generatorSkill
- vector-db-integratorSkill
- csv-processorSkill
- database-schema-designerSkill
- data-pipeline-builderSkill
- etl-workflow-designerSkill
- pandas-data-cleanerSkill
- report-generatorSkill
- sql-query-optimizerSkill
- time-series-analyzerSkill
- visualization-generatorSkill
- backup-strategySkill
- ci-cd-optimizerSkill
- docker-compose-generatorSkill
- github-actions-pipelineSkill
- kubernetes-deploymentSkill
- load-balancer-configSkill
- log-aggregator-setupSkill
- monitoring-dashboardSkill
- nginx-config-generatorSkill
- security-hardeningSkill
- ssl-certificate-managerSkill
- terraform-module-builderSkill
- api-security-auditorSkill
- compliance-checkerSkill
- dependency-checkerSkill
- incident-responderSkill
- jwt-security-auditorSkill
- owasp-checkerSkill
- penetration-test-plannerSkill
- secret-detectorSkill
- threat-model-designerSkill
- vulnerability-scannerSkill
- accessibility-auditorSkill
- api-route-builderSkill
- auth-flow-builderSkill
- css-animation-crafterSkill
- form-validatorSkill
- graphql-schema-designerSkill
- html-component-builderSkill
- nextjs-app-scaffoldSkill
- performance-auditorSkill
- pwa-setupSkill
- react-component-generatorSkill
- responsive-layout-systemSkill
- seo-optimizerSkill
- tailwind-design-systemSkill
- websocket-integrationSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 53
Write a schema (draft 2020-12 or 2019-09).
- Very specific: line 75
Inconsistent nesting: Use errors='ignore' or try/except per record + dead letter.
- Distinctive: line 76
Huge files: Never load the entire thing into memory.
- Distinctive: line 77
Unicode / escaping issues: Ensure UTF-8 throughout.
- Distinctive: line 81
Run the transformation on sample input — output shape matches expectation.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Overview
Transforms and validates JSON data using jq (CLI), Python (json, jsonpath-ng, pandas.json_normalize), and JSON Schema (jsonschema library). Covers common patterns: flattening nested objects/arrays, extracting specific fields, array of objects → table, schema validation, streaming large JSON files, and producing clean output for databases or downstream processing.
When to Use This Skill
- Normalizing complex API responses (nested, inconsistent).
- Converting JSON logs or documents into tabular form for analysis.
- Validating incoming JSON payloads against a contract.
- The user provides JSON files or describes JSON transformation needs.
Prerequisites
jqinstalled for CLI transformations (highly recommended).- Python with
pandas,jsonschema,jsonpath-ng(optional but powerful). - The JSON data (file, API response, or stdin).
Steps
- Inspect the JSON:
jq '.' file.json | head -100or Pythonjson.load.- Identify the shape (object, array of objects, deeply nested).
- Choose tool by use case:
- Simple reshaping / extraction:
jq. - To pandas DataFrame:
pandas.json_normalize. - Validation: JSON Schema +
jsonschema. - Streaming large files:
ijson(Python) orjqwith--stream.
- Simple reshaping / extraction:
- Common jq patterns (provide ready-to-use one-liners):
- Extract array:
.items[] - Flatten nested:
.user | {id, name, "address.city": .address.city} - Filter + map.
- Group by.
- Extract array:
- pandas.json_normalize:
pd.json_normalize(data, record_path=['results'], meta=['query']).errors='ignore'for inconsistent structures.
- JSON Schema validation:
- Write a schema (draft 2020-12 or 2019-09).
- Validate in Python or with
ajv(JS) /check-jsonschema(CLI). - Produce clear error messages with path to the bad field.
- Streaming large JSON:
- For NDJSON (newline-delimited): process line by line.
- For large arrays: use
ijson.items(f, 'item').
- Output:
jqone-liners or script.- Python function
transform_json(input_path) -> pd.DataFrame or list[dict]. - JSON Schema file.
- Example of before/after shape.
Examples
- Normalize a complex GitHub API search response (nested user + repo objects) into a flat table using both
jqandpandas.json_normalize. - Validate incoming webhook payloads against a strict schema and quarantine bad ones.
- Stream-process a 500MB NDJSON log file and extract only error events.
Edge Cases & Error Handling
- Inconsistent nesting: Use
errors='ignore'ortry/exceptper record + dead letter. - Huge files: Never load the entire thing into memory.
- Unicode / escaping issues: Ensure UTF-8 throughout.
Verification
- Run the transformation on sample input — output shape matches expectation.
- Validate a good and a deliberately bad JSON — errors are clear and point to the bad field.
- For large files: memory usage stays reasonable (monitor with
htopor similar). - Re-run produces deterministic output.
- Success: JSON is turned into the exact shape needed for the next step, with validation protecting downstream systems.
References
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.

