configuration-management
Skill1 starsChanged 3 months agoMITView on GitHub
Use when configuring the framework, setting environment variables, managing YAML config files, or using config profiles in Lexigram
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- jhutchison0/tacsoptheir own version, first seen Oct 15, 2026
- saitarrun/Devforge-aitheir own version, first seen Jun 20, 2026
- ffsshhttiikk/opencode-agents-skillstheir own version, first seen Feb 28, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- saitarrun/Devforge-ai★ 4same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- jhutchison0/tacsop★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- ai-subsystem-quickstartSkill
- auth-and-securitySkill
- caching-patternsSkill
- cli-code-generationSkill
- cli-config-and-inspectSkill
- cli-database-operationsSkill
- cli-project-scaffoldingSkill
- creating-providers-and-modulesSkill
- database-repository-patternSkill
- events-and-messagingSkill
- lexigram-uiSkill
- multimedia-generationSkill
- real-time-webSkill
- resilience-patternsSkill
- testing-with-lexigramSkill
- using-result-and-error-codesSkill
- web-controllers-and-routingSkill
The file
Files
Configuration Management
Overview
Lexigram uses hierarchical YAML configuration with LEX_ environment variable overrides and profile-based overlays. Config is discovered automatically from application.yaml in the project root.
Config Precedence
Lowest: Code defaults in config dataclasses
Base YAML (application.yaml)
Profile YAML (application.{profile}.yaml)
LEX_ env-var overrides
Highest: LEX_ env-var overrides with __ nestingYAML Structure
# application.yaml
app_name: my-app # root fields on LexigramConfig
env: production # development | staging | production | test
debug: false
db: # lexigram-sql section (config_key "db")
backend:
url: postgresql+asyncpg://user:pass@localhost:5432/mydb
pool:
max_size: 10
cache:
service:
default_backend: null
default_serializer: json
backends:
- name: memory
type: memory # memory | redis | memcached
default: trueSecrets use "${ENV_VAR}" interpolation, e.g. url: "${DATABASE_URL}". See application.example.yaml in the repo root for the full annotated reference.
Environment Variable Overrides
# LEX_<PACKAGE>__<FIELD> syntax — each extension declares its own prefix
LEX_SQL__BACKEND__URL=postgresql+asyncpg://prod:pass@host:5432/db
LEX_CACHE__ENABLED=true
LEX_DEBUG=trueNested sections use double underscore:
LEX_SQL__POOL__MAX_SIZE=20
LEX_AI_LLM__PROVIDER=anthropicProfile Overlays
export LEX_PROFILE=development
# Loads application.yaml + application.development.yaml# application.development.yaml — overrides base values
debug: true
db:
backend:
url: sqlite+aiosqlite:///dev.dbConfig in Providers
Providers don't resolve their own config — the boot pipeline injects it before register() runs:
class MyProvider(Provider):
name = "my_service"
config_key = "my_service" # section in application.yaml
config_model = MyServiceConfig # both required together
async def register(self, container: ContainerRegistrarProtocol) -> None:
# self.config already populated via LexigramConfig.get_section()
container.singleton(MyServiceProtocol, MyService(self.config))Injection resolves LexigramConfig from the container and calls get_section(config_key, config_model) into provider.config. Raises ConfigurationError if config_model is missing or LexigramConfig isn't registered. Setting provider.config directly before boot skips injection.
Quick Reference
lexigram config show # Resolved config (secrets masked)
lexigram config show --reveal-secrets # Unmasked
lexigram config validate # Validate against schemas
lexigram config doctor --env production # Diagnose config issues
lexigram config env # Show env vars used
lexigram config diff --baseline a.yaml --compare b.yaml
lexigram config env-example # Generate .env.exampleCommon Mistakes
- Assuming env vars override YAML — they do, but the
LEX_prefix is required - Using wrong separator — double underscore
__for nesting, not. - Confusing
env:(deployment environment in YAML) withLEX_ENV/APP_ENV(the env var read byEnvironment.from_env()) - Embedding secrets in
application.yaml— use${VAR}interpolation or a secrets backend
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

