Skip to content
Back to skills

Json Config Loader

ASecurity

Configuration file parsing patterns for bash scripts (INI, key=value,

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
businesspythongobashnodegitdocumentation

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill json-config-loader --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Json Config Loader?

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

Security grade badge for Json Config Loader
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-json-config-loader/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-json-config-loader)

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

Download with Pro
SKILL.md
---
name: json-config-loader
version: 1.0.0
description: Configuration file parsing patterns for bash scripts (INI, key=value,
  JSON)
author: workspace-hub
category: _core
tags:
- bash
- config
- json
- yaml
- parsing
- jq
- configuration
platforms:
- linux
- macos
see_also:
- json-config-loader-1-keyvalue-configuration-parsing
- json-config-loader-3-json-report-generation
- json-config-loader-4-multi-section-ini-parsing
- json-config-loader-5-environment-variable-configuration
- json-config-loader-6-yaml-configuration-via-yq
- json-config-loader-1-always-provide-defaults
---

# Json Config Loader

## When to Use This Skill

✅ **Use when:**
- Loading configuration from files into bash scripts
- Parsing key=value or INI-style configuration files
- Working with JSON data using jq
- Generating JSON reports from bash
- Managing configuration with associative arrays

❌ **Avoid when:**
- Complex nested configuration (consider Python instead)
- Real-time configuration changes (use a daemon)
- Configuration with complex validation rules

## Complete Example: Config Manager

Full configuration management with multiple formats:

```bash
#!/bin/bash
# ABOUTME: Universal configuration manager
# ABOUTME: Supports key=value, JSON, and environment overrides

set -e

# ─────────────────────────────────────────────────────────────────
# Configuration Storage
# ─────────────────────────────────────────────────────────────────

declare -A CONFIG
CONFIG_FILE=""
CONFIG_FORMAT=""

# ─────────────────────────────────────────────────────────────────
# Format Detection
# ─────────────────────────────────────────────────────────────────

detect_format() {
    local file="$1"

    case "${file##*.}" in

*See sub-skills for full details.*

## Resources

- [jq Manual](https://stedolan.github.io/jq/manual/)
- [yq Documentation](https://mikefarah.gitbook.io/yq/)
- [Bash Associative Arrays](https://www.gnu.org/software/bash/manual/html_node/Arrays.html)

---

## Version History

- **1.0.0** (2026-01-14): Initial release - extracted from workspace-hub configuration scripts

## Sub-Skills

- [1. Key=Value Configuration Parsing (+1)](1-keyvalue-configuration-parsing/SKILL.md)
- [3. JSON Report Generation](3-json-report-generation/SKILL.md)
- [4. Multi-Section INI Parsing](4-multi-section-ini-parsing/SKILL.md)
- [5. Environment Variable Configuration](5-environment-variable-configuration/SKILL.md)
- [6. YAML Configuration (via yq)](6-yaml-configuration-via-yq/SKILL.md)
- [1. Always Provide Defaults (+4)](1-always-provide-defaults/SKILL.md)

Files in this skill

  • 1-always-provide-defaults/SKILL.md858 B
  • 1-keyvalue-configuration-parsing/SKILL.md3.9 KB
  • 3-json-report-generation/SKILL.md2.2 KB
  • 4-multi-section-ini-parsing/SKILL.md2.5 KB
  • 5-environment-variable-configuration/SKILL.md2.8 KB
  • 6-yaml-configuration-via-yq/SKILL.md2.1 KB
  • SKILL.md3 KB

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.