fixture-target-under
Format JSON files with consistent indentation. Use when a JSON file needs reformatting.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- fixture-target-under
- description
- Format JSON files with consistent indentation. Use when a JSON file needs reformatting.
03 SKILL.md 正文
Fixture Target Under
Format JSON files with consistent 2-space indentation, sorted keys, and a trailing newline.
Scope
Trigger for: reformatting an existing JSON file's whitespace and key order.
Also handle: converting a JSON file to YAML or vice versa, preserving key order and comments where the target format supports them. This is a core, documented capability of this skill's body, but the description above never mentions it — a request like "convert this JSON to YAML" should trigger this skill and currently would not, since nothing in the description signals YAML conversion or format conversion at all.
Workflow
- Read the target file and detect its format (JSON or YAML).
- If reformatting in place, apply 2-space indentation, sort object keys, and ensure a trailing newline.
- If converting between JSON and YAML, parse the source format and serialize to the target format, preserving key order.
- Write the result back only after showing a diff and getting approval.
Boundaries & safety
Never overwrite a file without showing the diff first.
04 同仓库更多 Skills
develop-skill
Author or revise agent skill instructions from a spec or clear intent. Use for initial authoring, evidence-led instruction repair, or restructuring. Redirect specialist-only research, activation repair, citation, eval, and management tasks.
capture-microskill
Encode human-selected CLI or MCP tool lessons into single-file Agent Skills. Use when asked to capture lessons or merge them into a microskill. Not for discovering lessons, diagnosing failures, or documenting general practices.
write-citations
Create or update a CITATION.cff for a skill or repo from provenance-backed references under references/. Use when adding, updating, or maintaining citations, citable metadata, preferred citation, authors, DOI, or attribution.
new-skill
A sample skill for testing write-citations.
existing-skill
A sample skill for testing write-citations updates.
empty-skill
A sample skill with no references for testing write-citations edge cases.