跳到正文
FunCoding

config-loader-helper

Diagnose configuration-related failures, enumerate required env vars, and guide safe local test setup (no secrets).

Star
507
许可证
MIT
最近提交
2026年12月1日

.agents/skills/config-loader-helper/SKILL.md

在 GitHub 上查看

Config Loader Helper

When to Use

  • Tests or local runs fail due to missing or mis-set environment variables or toggles.

Rules

  • Never ask for or print real secrets.
  • Use the authoritative sources listed below for env var discovery.

Authoritative Sources

  • setTestEnv.sh (test environment)
  • .env.sample (root), example/.env.sample, example2/cmd/app/.env.sample
  • config/*.go (feature checks via os.Getenv)
  • llms.txt (complete env var reference tables)

Workflow

  1. Enumerate required keys: inspect setTestEnv.sh, .env.sample files, and config/*.go for os.Getenv calls and feature checks.
  2. Group by feature: present keys grouped by feature toggle (JWT, RDBMS, Redis, MongoDB, Email, 2FA, CORS, Firewall, etc.).
  3. Provide minimal local setup: recommend source setTestEnv.sh and any per-test overrides.

Key Feature Toggles

  • gconfig.IsRDBMS(), gconfig.IsRedis(), gconfig.IsMongo()
  • gconfig.IsJWT(), gconfig.Is2FA(), gconfig.IsCORS(), gconfig.IsWAF()
  • gconfig.IsEmailService(), gconfig.IsEmailVerificationService()
  • gconfig.IsHashPass(), gconfig.IsCipher()
  • See llms.txt for the complete list.

Output

  • Required keys (grouped by feature).
  • Quick checklist of toggles that enable/disable features.
  • Minimal commands to get tests running locally.

Examples

  • "Which env vars are needed to run password-recovery tests?"
  • "Why is the JWT middleware not activating?"
  • test-runner, source-search, code-navigation

相似的 Skill

reverse-engineer-anything

MOmorluto/rea486k近 7 天新增 8,943 个 star

reverse-engineer-anything

MOmorluto/rea486k近 7 天新增 8,943 个 star

test-driven-development

OBobra/superpowers331k近 7 天新增 4,772 个 star

精选

accessibility

审计 Web、iOS、Android 的无障碍合规,支持键盘导航与屏幕阅读器。

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

ai-regression-testing

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

agent-runtime-gateway-smoke-test

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star