python-layered-config SKILL.md skillB

python-layered-config from bitranox/lib_layered_config is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add bitranox/lib_layered_config/python-layered-config@git:20261030.4a80e83

Pins git:20261030.4a80e83 in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
bitranox/lib_layered_config
Path
skills/python-layered-config/SKILL.md
Versions recorded
11
Latest version
git:20261030.4a80e83, committed Oct 30, 2026
First version recorded
Oct 12, 2026
Size
34,704 bytes
Repository stars
3
License
MIT

Use when building or designing configuration for a Python app or CLI with lib_layered_config - deciding where config files live on Linux, macOS, or Windows, choosing the environment-variable override names, adding environment profiles (test/staging/production), loading config in code or from the shell, redacting secrets, or working out which layer and file a setting actually came from (provenance).

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

# lib_layered_config

Load one immutable configuration object by deep-merging six layers, and be able to say
where every value came from. `lib_layered_config` is a cross-platform config loader for
Python 3.10+ with a matching CLI. It is designed to be driven by an LLM/agent as well as a
human - this skill is that agent guide.

## The core model

Six layers are merged in a fixed precedence, **lowest to highest**:

```
defaults -> app -> host -> user -> dotenv -> env
```

Later layers override earlier ones key-by-key (unrelated keys are kept, not dropped). The
result is a frozen `Config`. Every value records the layer and file that produced it.

Do not forget `defaults` (the lowest layer, seeded from an explicit `default_file`) or that
`env` (process environment variables) wins over everything.

## Install

```bash
pip install lib_layered_config                  # TOML + JSON (rtoml/orjson below 3.14, else stdlib)
pip install "lib_layered_config[yaml]"          # add optional YAML support
pip install "lib_layered_config[rtoml,orjson]"  # Python 3.14+ with the GIL only: the Rust parsers
```

Requires Python 3.10+, free-threaded 3.14t and 3.15t included. Below Python 3.14, `rtoml` and
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add bitranox/lib_layered_config/python-layered-config@sha256:033aa771dca650f7

The line at the top of this page pins the label git:20261030.4a80e83, 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_tvdp2fssvjkn5j6r.svg)](https://markdownregistry.com/a/art_tvdp2fssvjkn5j6r)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 11 versions of this file, between Oct 12, 2026 and Oct 30, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261030.4a80e83 latest2026-10-30 4a80e83 34,704 BB view · diff
git:20261029.399e06e2026-10-29 399e06e 31,678 BB view · diff
git:20261029.c06d06e2026-10-29 c06d06e 31,519 BB view · diff
git:20261029.516c9dc2026-10-29 516c9dc 30,153 BB view · diff
git:20261026.8bd7b2b2026-10-26 8bd7b2b 28,214 BB view · diff
git:20261026.328c63c2026-10-26 328c63c 27,294 BB view · diff
git:20261024.68cc9722026-10-24 68cc972 26,594 BB view · diff
git:20261024.119d7062026-10-24 119d706 25,919 BB view · diff
git:20261019.51ea3d22026-10-19 51ea3d2 22,716 BB view · diff
git:20261019.331bb382026-10-19 331bb38 22,459 BB view · diff
git:20261012.7eadb742026-10-12 7eadb74 20,671 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No instruction to read or print local credentials (matched: read includes `.env)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (34704 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 base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

bitranox/lib_layered_config · 3 stars · license MIT · pushed 2026-11-01 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_tvdp2fssvjkn5j6r
GET https://markdownregistry.com/api/v1/resolve?ref=bitranox/lib_layered_config/python-layered-config
GET https://markdownregistry.com/api/v1/blob/033aa771dca650f75161c2a8ede1ad383406889f08421188b022e7cb13b95329

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.

Browse by kind, by grade B, or by owner.