node-config-state SKILL.md skillA
node-config-state from tanq16/claudex is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add tanq16/claudex/node-config-state@git:20260818.236909bPins git:20260818.236909b in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- tanq16/claudex
- Path
internal/embedded/presets/private/skills/node-config-state/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260818.236909b, committed Aug 18, 2026
- Size
- 5,021 bytes
- Repository stars
- 3
- License
- none declared
Config layering and durable state for a Node Web Only server - defaults deep-merged with config.json, the ephemeral session secret, and atomic state.json writes. Use when loading config, adding a config key, deciding what may be persisted, or writing a state file. Triggers on config.json, config.example.json, deepMerge, loadConfig, state.json, randomBytes session secrets, mode 0600, and write-then-rename.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Node Config and State
**Built-in defaults are the source of truth, a user's `config.json` is merged over them, and only durable facts are ever written back to disk.**
## Config
Resolution runs in three layers, lowest first:
1. A built-in default object, which defines both the shape and the fallback for every key.
2. A user `config.json` deep-merged over the defaults, its path passed with `--config`.
3. Environment variables and flags overriding individual values on top.
Defaults sit lowest so an omitted key still has a value, which is what lets a user's config file name only what they want to change.
The file ships as `config.example.json` rather than as `config.json`, so a user copying it never has their edits overwritten by an update, and a missing file falls back to defaults instead of erroring.
```js
import { readFile } from 'node:fs/promises';
const DEFAULTS = {
host: '127.0.0.1',
port: 8080,
usersFile: 'users.json',
stateFile: 'state.json',
auth: { enabled: false },
};
const isObj = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
function deepMerge(base, override) {
const out = structuredClone(base);
…Read the whole file at its exact version.
How to install
mdr add tanq16/claudex/node-config-state@sha256:85a64bcc347469d5The line at the top of this page pins the label git:20260818.236909b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_v4pg32vjln7bcdiz)
7 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Aug 18, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5021 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
tanq16/claudex · 3 stars · license none declared · pushed 2026-10-12 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_v4pg32vjln7bcdiz GET https://markdownregistry.com/api/v1/resolve?ref=tanq16/claudex/node-config-state GET https://markdownregistry.com/api/v1/blob/85a64bcc347469d5336dfd9e8ec147375072411922454936d4ecd685ad12748f
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.