gemini-json-parsing

Parse Gemini CLI JSON and stream-JSON outputs into structured data.

2|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/DTMC-marketplace/governance --skill gemini-json-parsing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-json-parsing
Source: https://github.com/DTMC-marketplace/governance/tree/main/skills/gemini-json-parsing
Command: npx skills add https://github.com/DTMC-marketplace/governance --skill gemini-json-parsing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the parsing of complex JSON and stream-JSON outputs from the Gemini CLI, enabling seamless integration into automated workflows and data analysis pipelines.

Core Features & Use Cases

  • Response Extraction: Easily pull the main AI-generated content from JSON responses.
  • Stats Interpretation: Analyze token usage, model performance, and tool call statistics.
  • Error Handling: Gracefully manage and report errors returned by the Gemini CLI.
  • Stream Processing: Process real-time events from stream-JSON output for live monitoring.
  • Use Case: After running a Gemini CLI command to summarize a document, use this Skill to extract the summary text and log the token usage for cost tracking.

Quick Start

Use the gemini-json-parsing skill to extract the main response text from the output of a Gemini CLI command.

Frequently Asked Questions about gemini-json-parsing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse Gemini CLI JSON output to extract the response content?

To parse Gemini CLI JSON output, you can use this Skill to extract the main AI-generated response content from both standard JSON and stream-JSON formats, providing structured data for programmatic integration. It automates pulling the summary text from headless operations.

Can I process stream-JSON output from Gemini CLI for real-time monitoring?

Yes, you can process stream-JSON output from Gemini CLI for real-time monitoring. This Skill supports stream processing to parse real-time events, enabling live monitoring and seamless integration into automated workflows and data analysis pipelines as events occur.

How do I analyze token usage statistics from Gemini CLI responses?

You can analyze token usage statistics from Gemini CLI responses by using this Skill to interpret stats data. It extracts and analyzes token usage, model performance metrics, and tool call statistics from the JSON and stream-JSON outputs for cost tracking and reporting.

Does this approach handle errors returned by the Gemini CLI?

Yes, this approach handles errors returned by the Gemini CLI. The Skill includes error handling capabilities to gracefully manage and report errors found in the JSON or stream-JSON output, ensuring your automated workflows remain stable when the CLI returns an error state.

What is the best way to integrate headless Gemini CLI operations into a data pipeline?

The best way to integrate headless Gemini CLI operations into a data pipeline is to use a parsing Skill to convert the CLI's JSON and stream-JSON outputs into structured data. This allows you to extract response content and log statistics for automated data analysis.