MCP HubMCP Hub
スキル一覧に戻る

json-config-loader-1-always-provide-defaults

vamseeachanta
更新日 Today
6 閲覧
3
2
3
GitHubで表示
その他general

について

このサスキルは、シェルスクリプトにおける堅牢なJSON設定読み込みのベストプラクティスを提供し、安全なデフォルト設定と適切な障害処理を重視しています。必須値の検証、機密情報のための環境変数による上書き、JSON構文検証のパターンを実演します。異なるデプロイ環境において信頼性と保守性が求められる設定システムを構築する際にご活用ください。

クイックインストール

Claude Code

推奨
メイン
npx skills add vamseeachanta/workspace-hub
プラグインコマンド代替
/plugin add https://github.com/vamseeachanta/workspace-hub
Git クローン代替
git clone https://github.com/vamseeachanta/workspace-hub.git ~/.claude/skills/json-config-loader-1-always-provide-defaults

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

1. Always Provide Defaults (+4)

1. Always Provide Defaults

value=$(config_get "key" "default_value")

2. Validate Early

config_require "api_key" "database_url" || exit 1

3. Use Environment Overrides for Secrets

# Don't store secrets in files
API_KEY="${API_KEY:-$(config_get 'api_key')}"

4. Validate JSON with jq

if ! jq empty "$file" 2>/dev/null; then
    echo "Invalid JSON" >&2
    exit 1
fi

5. Handle Missing Files Gracefully

if [[ -f "$config_file" ]]; then
    load_config "$config_file"
else
    echo "Warning: Config not found, using defaults" >&2
fi

GitHub リポジトリ

vamseeachanta/workspace-hub
パス: .claude/skills/_core/bash/json-config-loader/1-always-provide-defaults

関連スキル

algorithmic-art

メタ

This Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.

スキルを見る

subagent-driven-development

開発

This skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.

スキルを見る

executing-plans

デザイン

Use the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.

スキルを見る

cost-optimization

その他

This Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.

スキルを見る