fmt-json
Pretty-print and format JSON files with jq. Use when asked to "format JSON", "pretty-print JSON", "prettify a JSON file", "indent this .json file", or to make minified JSON readable. Prints to stdout and does not modify the file unless the user asks.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- fmt-json
- description
- Pretty-print and format JSON files with jq. Use when asked to "format JSON", "pretty-print JSON", "prettify a JSON file", "indent this .json file", or to make minified JSON readable. Prints to stdout and does not modify the file unless the user asks.
- allowed-tools
- Bash(jq:*)
03 SKILL.md 正文
Format JSON
Format a JSON file for readability with jq ..
Instructions
- Run
jq . <file>and show the output.jq .prints to stdout and leaves the file untouched. - To change the file itself, only do so when the user asks: write to a temp file, then move it over the
original. Do not redirect to the input file directly (
jq . f > ftruncatesfbefore jq reads it). - If
jqreports a parse error, report the line/column it gives and stop. Do not guess a repair.
Gotchas
- Very large integers and some float forms can be altered by other jq builds (checked here: jq printed
100000000000000000001and1.0unchanged, but older builds round to double precision). Tell the user if exact numeric fidelity matters. - A multi-document file (several top-level values) prints each value in turn; that is expected.
Testing & Validation
Verify this skill activates on: "format this JSON file", "pretty-print config.json", "prettify data.json".
Verify it does NOT activate on: "validate this JSON against a schema", "convert JSON to YAML".
Quality gates: jq . sample.json output is indented and the source file is byte-identical afterward.
04 同仓库更多 Skills
demo
Fixture skill used by scripts.marketplace_ci sync tests.
export-demo
Fixture skill used by scripts.marketplace_ci export tests.
work-to-development
Validate an accepted Linear Issue's readiness for implementation (criteria, dependencies, duplicate/existing artifacts) and request governed branch/worktree creation through git-kit:starting-work — recording work-started Git/GitHub evidence and a deliberate Linear Started transition only after Git identity is read back and verified. Use when asked to start work on a Linear issue, begin development for an accepted issue, or prepare an accepted issue for implementation. Never creates a branch directly — always delegates to git-kit.
work-linking
Create and maintain stable cross-system links and authority labels between Notion and Linear records, and detect/repair drift between them. Use when asked to link a Notion record to a Linear record, check for drift between Notion and Linear, or repair a broken/stale link. Repairs only the bounded non-authoritative copy or link — never chooses by newest timestamp, and never creates a reverse-write loop against either system's own authority.
status-and-learning
Produce a dated, explicitly non-live Linear-to-Notion progress summary, or capture an outcome/learning after work completes. Use when asked to summarize progress to Notion, report portfolio status, or capture what was learned from a completed piece of work — not to disposition open follow-up items (see open-item-management for that). Never runs automatically or continuously — every summary is a deliberate, approved snapshot, not a live sync.
repository-gates
Discover, delegate, record, and invalidate this repository's actual Git/GitHub lifecycle gates (pre-commit, pre-push, PR required checks, Codex delta review, review requirements, merge rights) and the repository-policy provider profile that maps governed operations to git-kit. Use when asked what gates apply to this repository, to discover repository policy before starting Wave 2 work, or to check whether prior gate evidence is still valid after new commits. Discovery and delegation only — never executes a gate's own internal logic, and never invents a gate the repository doesn't actually define (in particular, never assumes a "Review Changes" gate exists).