hassanzohdy/mongez-config/listing

Claude Code and agent skill by hassanzohdy/mongez-config

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Reference for `config.list` — what it returns, the live-reference caveat, how to snapshot the tree safely with `structuredClone`, and patterns like debug dumps and wholesale tree replacement.

Install

npx vskill@latest install hassanzohdy/mongez-config/listing

SKILL.md

Listing — config.list

ts
config.list(): Record<string, any>

Returns the entire data object by reference. Useful for:

  • Debugging at boot (console.log(config.list())).
  • Serializing for a snapshot.
  • Wholesale replacement via Object.assign.

Live reference

The returned object is the same one set mutates. Mutating it mutates the live config:

ts
config.set({ a: 1 });
const tree = config.list();
tree.a = 999;
config.get("a"); // 999

This is fast but easy to misuse. If you want an independent snapshot, clone explicitly:

ts
const snapshot = structuredClone(config.list());
// or
const snapshot = JSON.parse(JSON.stringify(config.list()));

structuredClone handles Date, Map, Set, typed arrays, and circular refs; JSON round-tripping is faster but drops anything non-JSON-serializable.

Empty by default

ts
import config from "@mongez/config";
config.list(); // {}

The config tree starts as a plain empty object on every fresh module load.

Don't remove keys by mutating this object. list() returning the live tree is an implementation detail, not a contract. Use config.unset(key) (or config.set(key, undefined)) — added in 1.2.0 precisely so callers never have to reach in here.

Patterns

Boot-time debug dump
ts
if (process.env.DEBUG_CONFIG) {
console.log("[config]", config.list());
}
Serialize for a CLI tool
ts
import fs from "node:fs";
import config from "@mongez/config";
config.set(myAppConfig);
fs.writeFileSync("config-snapshot.json", JSON.stringify(config.list(), null, 2));
Replace the entire tree wholesale (escape hatch)

There's no config.replace(...) API. If you really need to wipe and reload:

ts
import config from "@mongez/config";
const data = config.list();
for (const key of Object.keys(data)) {
delete (data as any)[key];
}
config.set(newConfig);

This is rarely the right move — prefer additive set calls that overwrite the keys you care about.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hassanzohdy/mongez-config/listing/badge)](https://verified-skill.com/skills/hassanzohdy/mongez-config/listing)

Something wrong with this skill or its page? Tell us.