Config Loader Helper
Testing & Qualityconfig-loader-helperConfig Loader Helper is an Agent Skill for testing & quality published in the pilinux/gorest repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Diagnose configuration-related failures, enumerate required env vars, and guide safe local test setup (no secrets).
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/pilinux/gorest/blob/HEAD/.agents/skills/config-loader-helper/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/config-loader-helper, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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.sampleconfig/*.go(feature checks viaos.Getenv)llms.txt(complete env var reference tables)
Workflow
- Enumerate required keys: inspect
setTestEnv.sh,.env.samplefiles, andconfig/*.goforos.Getenvcalls and feature checks. - Group by feature: present keys grouped by feature toggle (JWT, RDBMS, Redis, MongoDB, Email, 2FA, CORS, Firewall, etc.).
- Provide minimal local setup: recommend
source setTestEnv.shand 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.txtfor 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?"
Related Skills
test-runner,source-search,code-navigation