Agent skill

Go JSON File Reading

by sandgardenhq in sandgardenhq/sgai

A skill your agent uses when reading JSON files in Go applications, especially for configuration files, data files, or any JSON parsing that requires comprehensive error handling for missing files…

Custom licenceAuto-check passedDevelopment

Install Go JSON File Reading

skills CLI
$ npx skills add sandgardenhq/sgai --skill go-json-file-reading -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sandgardenhq/sgai go-json-file-reading --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sandgardenhq/sgai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cmd/sgai/skel/.sgai/skills/coding-practices/go-json-file-reading .claude/skills/go-json-file-reading && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
go-json-file-reading
GitHub stars
137
Token cost
~2.2k tokens
SKILL.md length
603 words
Files
1
Skills in repo
53
Repo updated
First seen
Licence
Custom licence

At a glance

A skill your agent uses when reading JSON files in Go applications, especially for configuration files, data files, or any JSON parsing that requires comprehensive error handling for missing files…

  • Works in 4 steps: Define the Target Struct → Implement File Reading with Error Handling → Parse JSON with Validation → …
  • Reading JSON files in Go applications
  • SKILL.md covers Overview, When to Use, Process and Rules, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Go JSON File Reading is an agent skill from sandgardenhq/sgai. Use when reading JSON files in Go applications, especially for configuration files, data files, or any JSON parsing that requires comprehensive error handling for missing files, invalid JSON, and permission errors

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Error handling. The repository describes itself as: Sandgarden AI Software Factory.

When your agent uses it

  • Reading JSON files in Go applications
  • Especially for configuration files
  • Any JSON parsing that requires comprehensive error handling for missing files
  • Permission errors

Example prompts

  • “/go-json-file-reading”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Define the Target Struct
  2. Implement File Reading with Error Handling
  3. Parse JSON with Validation
  4. Add Context and Logging

What it can do on your machine

Read from SKILL.md and the folder at commit 9efbb7b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are go).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • pkg.go.dev
    • go.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Go JSON File Reading loads about 2.2k tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 603 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~59
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 603 words (~2,234 tokens).

“This skill provides comprehensive patterns for reading JSON files in Go with proper error handling, context wrapping, and best practices. It addresses common failure modes like missing files, invalid JSON syntax, permission errors, and provides structured error messages for debugging.”

— opening of SKILL.md by sandgardenhq, Custom licence
name
go-json-file-reading

Read the full SKILL.md on GitHub

Files

Just SKILL.md in cmd/sgai/skel/.sgai/skills/coding-practices/go-json-file-reading of sandgardenhq/sgai.

Open the folder on GitHubat commit 9efbb7b

Compare with similar skills

Go JSON File Reading next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Go JSON File Reading compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Go JSON File Reading this skillsandgardenhq/sgai137—~2.2kAutomated safety check: PassCustom licence
Mole Bug Patternstw93/Mole70k—~2kAutomated safety check: PassGPL-3.0
Native Data FetchingCherryHQ/cherry-studio-app4k6 repos~2.9kAutomated safety check: NotesMIT
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
R Function Input Validationtidyverse/dplyr5.1k1 repos~2.3kAutomated safety check: PassCustom licence
Next Best Practicesvercel-labs/openreview1.7k18 repos~1kAutomated safety check: PassNone

Similar skills

  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    70k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Native Data Fetching

    CherryHQ/cherry-studio-app

    A skill your agent uses when implementing or debugging ANY network request, API call, or data fetching.

    4k GitHub starsUsed in 6 repos~2.9k tokens
    DevelopmentAuto-check: notes
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Validates arguments of exported R functions with the standalone check_* type checkers from rlang, in tidyverse style with clear error messages.

    5.1k GitHub starsUsed in 1 repo~2.3k tokens
    DevelopmentAuto-check passed
  • Next Best Practices

    vercel-labs/openreview

    Official

    Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

    1.7k GitHub starsUsed in 18 repos~1k tokens
    DevelopmentAuto-check passed
  • Error Handling

    microsoft/data-formulator

    Official

    统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用. An agent skill from microsoft/data-formulator.

    18k GitHub stars~3.8k tokensUpdated 3 days ago
    DevelopmentAuto-check passed

More from sandgardenhq/sgai

All 53 skills in this repo
  • Root Cause Tracing

    sandgardenhq/sgai

    A skill your agent uses when errors occur deep in execution and you need to trace back to find the original trigger - systematically traces bugs backward through call stack, adding instrumentation…

    137 GitHub starsUsed in 4 repos~1.4k tokens
    Auto-check passed
  • Condition Based Waiting

    sandgardenhq/sgai

    A skill your agent uses when tests have race conditions, timing dependencies, or inconsistent pass/fail behavior - replaces arbitrary timeouts with condition polling to wait for actual state…

    137 GitHub starsUsed in 3 repos~933 tokens
    Auto-check passed
  • Defense In Depth

    sandgardenhq/sgai

    A skill your agent uses when invalid data causes failures deep in execution, requiring validation at multiple system layers - validates at every layer data passes through to make bugs structurally…

    137 GitHub starsUsed in 3 repos~970 tokens
    Auto-check passed
  • Agent Native Architecture

    sandgardenhq/sgai

    Build AI agents using prompt-native architecture where features are defined in prompts, not code.

    137 GitHub stars~2k tokensUpdated 20 days ago
    Auto-check passed
  • Adhoc

    sandgardenhq/sgai

    Run and manage ad-hoc AI prompts in sgai workspaces without starting a full agentic session.

    137 GitHub stars~1.2k tokensUpdated 20 days ago
    Auto-check passed
  • You must use this skill when debugging web UI bugs or testing interactive components that require multi-step browser interactions.

    137 GitHub stars~3.7k tokensUpdated 20 days ago
    Auto-check passed

Categories

Questions about Go JSON File Reading

What does Go JSON File Reading do?

A skill your agent uses when reading JSON files in Go applications, especially for configuration files, data files, or any JSON parsing that requires comprehensive error handling for missing files…. Go JSON File Reading is an agent skill from sandgardenhq/sgai.

When should I use Go JSON File Reading?

Go JSON File Reading fits situations like: reading JSON files in Go applications; especially for configuration files; any JSON parsing that requires comprehensive error handling for missing files; permission errors.

How do I install Go JSON File Reading in Claude Code?

Run `npx skills add sandgardenhq/sgai --skill go-json-file-reading -a claude-code`. Or copy the skill folder (cmd/sgai/skel/.sgai/skills/coding-practices/go-json-file-reading in sandgardenhq/sgai) into .claude/skills/go-json-file-reading in your project. Claude Code loads it when a task matches its description.

How do I install Go JSON File Reading in Codex?

Run `npx skills add sandgardenhq/sgai --skill go-json-file-reading -a codex`. Or copy the skill folder (cmd/sgai/skel/.sgai/skills/coding-practices/go-json-file-reading in sandgardenhq/sgai) into .agents/skills/go-json-file-reading in your project. Codex loads it when a task matches its description.

Can I use Go JSON File Reading in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sandgardenhq/sgai --skill go-json-file-reading -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/go-json-file-reading, .gemini/skills/go-json-file-reading, .github/skills/go-json-file-reading and .opencode/skills/go-json-file-reading in your project.

What does Go JSON File Reading need to run?

SKILL.md names no scripts, command-line tools or credentials: Go JSON File Reading is instructions for the agent only.

Does Go JSON File Reading access the network?

SKILL.md names 2 domains. As links in the text: pkg.go.dev and go.dev. This is read from the text; nothing was executed.

Is Go JSON File Reading safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Go JSON File Reading use?

Go JSON File Reading has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Go JSON File Reading use?

About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Go JSON File Reading?

Skills that share tags, products or a category with Go JSON File Reading: Mole Bug Patterns (tw93/Mole, 70k stars), Native Data Fetching (CherryHQ/cherry-studio-app, 4k stars), Rust Best Practices (farm-fe/farm, 5.6k stars) and R Function Input Validation (tidyverse/dplyr, 5.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Go JSON File Reading?

sandgardenhq (a GitHub organization) maintains it in sandgardenhq/sgai, which has 137 GitHub stars. The repository holds 53 skills in this directory. The repository was last updated on September 21, 2026.

Source: sandgardenhq/sgai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.