fmt-json
Pretty-prints and formats JSON files with jq. Use when asked to format, pretty-print, prettify or re-indent a JSON file.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- fmt-json
- description
- Pretty-prints and formats JSON files with jq. Use when asked to format, pretty-print, prettify or re-indent a JSON file.
- allowed-tools
- Bash(jq:*) Read
03 SKILL.md 正文
Format JSON
Pretty-print a JSON file by running jq . on it.
Instructions
- Confirm the target path points at a JSON file. Read it only if the path is unclear.
- Run
jq . <file>and show the output. Write it back to the file only when the user asks for an in-place change (write to a temp file first, then replace, becausejq . f > ftruncates the input). - If
jqreports a parse error, show the error (it includes line and column) and stop. Do not guess a repair.
Gotchas
jq . file > fileempties the file before jq reads it; always go through a temp file.jq .preserves key order but re-indents with 2 spaces; use--indent Nor--tabonly if the user asks.
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).