Skip to content
Back to skills

2555 Jsoninstructions 943a0630

ASecurity

JSON and JSONC formatting conventions for configuration and data files

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsgo

Works with

  • vscode
  • cli
  • mcp

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 2555-jsoninstructions_943a0630 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 2555 Jsoninstructions 943a0630?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 2555 Jsoninstructions 943a0630
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-2555-jsoninstructions-943a0630/badge)](https://www.skillsdirectory.com/skills/tools-only-2555-jsoninstructions-943a0630)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
description: 'JSON and JSONC formatting conventions for configuration and data files'
applyTo: '**/*.{json,jsonc}'
---

# JSON Guidelines

Instructions for writing consistent JSON and JSONC files in this repository.

## Formatting

- **Formatter**: Prettier (configured in devcontainer)
- **Indentation**: 2 spaces
- **Trailing commas**: not allowed in `.json` files (invalid JSON)
- **Line endings**: LF (`\n`) — enforced by `.editorconfig` / VS Code settings
- **Final newline**: always include a trailing newline

## JSONC (JSON with Comments)

Files like `.vscode/mcp.json`, `devcontainer.json`, and `.markdownlint-cli2.jsonc`
use JSONC format:

- Use `//` for single-line comments explaining non-obvious configuration
- Group related settings with section comments
- Do not use `/* */` block comments

## Key Ordering

For configuration files, follow a logical grouping:

- **`package.json`**: `name`, `version`, `description`, `private`, `scripts`,
  `devDependencies`, `repository`, `keywords`, `author`, `license`
- **`mcp.json`**: group servers by type (HTTP first, then stdio)
- **`devcontainer.json`**: `name`, `image`, `features`, lifecycle commands,
  `containerEnv`, `customizations`, `mounts`, `remoteUser`

## Governance Constraint Files

Files like `04-governance-constraints.json` in `agent-output/` are generated
by the governance-discovery-subagent:

- Always use an array of policy objects at the root
- Include `displayName`, `policyDefinitionId`, `effect`, and `scope` per policy
- Do not manually edit — regenerate via the governance discovery workflow

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…