AGENT SKILL
lang-json
JSON RFC 8259 compliance, JSON Schema contract validation, safe numeric bounds, canonical serialization, and zero comments.
- License 许可
- MIT
- 所属仓库
- poppyTM/oride
- 最近更新
- 2026-09-30
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- lang-json
- description
- JSON RFC 8259 compliance, JSON Schema contract validation, safe numeric bounds, canonical serialization, and zero comments.
02 资源文件 6
- 参考文档checks/json-rules.md303 B
- 参考文档examples/canonical_payload.json178 B
- 参考文档manifest.json1.6 KB
- 参考文档references/json-schema-contracts.md212 B
- 脚本scripts/verify.sh370 B
- 参考文档templates/json-validation-report.md148 B
03 SKILL.md 正文
JSON Engineering & Schema Contract
1. RFC 8259 Compliance & Syntax Discipline
- Strict compliance with RFC 8259: zero comments (`//` or `/* */`), zero trailing commas, and double quotes for all strings and keys.
- Strictly reject duplicate object keys.
2. Schema-First Validation
- Machine contracts must be governed by a canonical JSON Schema (`schemas/*.schema.json`) referencing draft 2020-12 or draft 7.
- Schemas must declare `additionalProperties: false` on closed object models to prevent schema poisoning.
3. Numeric Precision & Security Limits
- Large integers exceeding 2^53 - 1 (JavaScript safe integer limit) must be represented as strings to prevent truncation.
- Enforce nesting depth limits (max 32 levels) and maximum payload byte sizes to prevent stack exhaustion attacks.
- Utilize deterministic / canonical key sorting when computing SHA-256 digests or signing payloads.\n
04 同仓库更多 Skills
zoom-reflow
暂无简介
★ 1
wireframe-styleguide
暂无简介
★ 1
visual-regression
Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates
★ 1
ui-implementation
Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.
★ 1
tui-editor-engine
Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.
★ 1
tree-sitter-context-indexing
暂无简介
★ 1