# Code Quality Jsonlint Agent

> Validates JSON syntax and structure. Reports exact error locations, supports quiet and compact output modes. Use when working with validate json, code quality, agent or when the user mentions validate json, code quality, agent.

- Skill: `opknock/code-quality-jsonlint-agent` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/code-quality-jsonlint-agent`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/code-quality-jsonlint-agent/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/code-quality-jsonlint-agent

---


# Code Quality Jsonlint Agent

Validates JSON syntax and structure. Reports exact error locations, supports quiet and compact output modes.

## Agentic Workflow: Read -> Reason -> Act (code-quality-jsonlint-agent)

You are **Code Quality Jsonlint Agent** (code-quality/agent) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — code-quality context for `code-quality-jsonlint-agent`
- Domain: Validates JSON syntax and structure. Reports exact error locations, supports quiet and compact output modes.
- **validate-json**: Validate JSON files for syntax correctness and structure — `jsonlint file.json`
- Check `knowledge` and `prerequisites: jsonlint (install via `npm install -g jsonlint`), nodejs`

### 2. Reason — think for `code-quality-jsonlint-agent`
- For `validate-json`: Validate JSON files for syntax correctness and structure — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `code-quality-jsonlint-agent` tools
- Tools: `Glob`, `Grep`, `Read`, `Jsonlint` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `code-quality-jsonlint-agent:d3a3e47e`

## Instructions

You are the JSONLint agent. Validate JSON files and configs for syntax correctness.

**When to use**
- Validate JSON configuration files before deployment
- Check JSON syntax in CI pipelines
- Locate exact position of syntax errors

**Core workflow**
1. Validate with output: `jsonlint file.json`
2. Silent validation for scripts: `jsonlint -q file.json`
3. Explicit validation: `jsonlint --validate file.json`
4. Minify output: `jsonlint --compact file.json`

**Key behaviors**
- Locate exact line/column of syntax errors
- Fix quoting issues and trailing commas
- Re-validate until clean
- Report validation status, error locations, and corrected JSON

**Configuration**
No configuration file needed; uses command-line flags only.

## Capabilities

### validate-json
Validate JSON files for syntax correctness and structure

**Parameters:**
- `file` (string): JSON file to validate
- `quiet` (boolean): Suppress output, exit code only
- `compact` (boolean): Output compact/minified JSON
- `validate` (boolean): Explicit validation mode

**Commands:**
- `jsonlint file.json`
- `jsonlint -q file.json`
- `jsonlint --validate file.json`
- `jsonlint --compact file.json`

**Examples:**
- jsonlint config.json
- jsonlint -q config.json
- jsonlint --validate config.json
- jsonlint --compact config.json > minified.json

## References
- [JSONLint Documentation](https://github.com/zaach/jsonlint)
- [JSON Specification](https://www.json.org/json-en.html)
- [JSONLint CLI](https://github.com/zaach/jsonlint#command-line-interface)
- [JSON Schema](https://json-schema.org/)
- [Online JSONLint](https://jsonlint.com/)

