agentleFS
testdino-hqtestdino-hq/google-styleguides-skills/json/SKILL.md

json

Skill15 starsChanged 9 months agoMITView on GitHub

Google's official JSON style guide. Covers formatting, naming conventions, structure, and JSON best practices for APIs and configuration.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Google JSON Style Guide

Official Google JSON formatting standards for consistent API responses and configuration.

Quick Reference

Golden Rules

  1. Use camelCase — for property names
  2. Consistent structure — predictable response format
  3. Include metadata — version, timestamps when relevant
  4. Use arrays for collections — even single items
  5. Null vs omission — be consistent
  6. ISO 8601 for dates — standard format
  7. Pretty print in development — minify in production

Property Naming (Preview)

{
  "userId": 123,
  "firstName": "Alice",
  "createdAt": "2024-01-15T10:30:00Z",
  "isActive": true
}

Response Structure (Preview)

{
  "data": {
    "users": [
      {"id": 1, "name": "Alice"},
      {"id": 2, "name": "Bob"}
    ]
  },
  "meta": {
    "total": 2,
    "page": 1
  }
}

When to Use This Guide

  • Designing REST APIs
  • Writing configuration files
  • Data interchange formats
  • Code reviews
  • API documentation

Install

npx skills add testdino-hq/google-styleguides-skills/json

Full Guide

See json.md for complete details, examples, and edge cases.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.