Install
$ agentstack add skill-maksimzayats-specx-specx-settings ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
specx Settings
Use this skill whenever runtime configuration is needed. Read references/settings.md before adding settings code.
Rules
- Model runtime config with classes that inherit
BaseRuntimeSettings. - Give each settings class a docstring that explains the configuration scope
and includes a concrete Example:.
- Place settings near the class that consumes them unless the setting is truly
application-wide.
- Logging settings are application-wide and live beside
infrastructure/logging/configurator.py and its LoggingConfigurator.
- Use
BaseStrEnumfor finite configuration values such as logging levels. - Inject settings objects only into delivery, infrastructure, and composition
classes. Do not inject BaseRuntimeSettings subclasses into core use cases, services, capabilities, entities, repositories, or gateway ports.
- When configuration represents a genuine business policy, map it at the
composition root into a typed core value or capability that has no dependency on Pydantic or BaseRuntimeSettings.
- Let
diwireauto-register settings as root-scoped singletons. Register a
settings instance explicitly only for an intentional override.
- At operational entrypoints, load required runtime values with
SettingsClass.from_environment(). Build explicit test or composition overrides with SettingsClass.model_validate({...}) so strict type checking does not mistake raw input strings for already-validated field types.
- Do not read
os.environoutside settings classes or composition code. - Use clear environment variable names and safe defaults only when safe.
- Type secret fields with
SecretStr, keep secrets out of examples, and unwrap
them only at the adapter call that needs the raw value.
- Update
.env.examplewhen adding user-provided environment variables. - Isolate settings-source tests from a developer's
.envby changing to
tmp_path, then override environment values with monkeypatch.
- Do not inherit raw
BaseSettings; inherit
specx.infrastructure.foundation.settings.BaseRuntimeSettings.
Code Style
Use blank lines as logical separators in all code. Keep related statements together, but separate independent setup, action, assertion, response, branch, and transformation groups so long blocks stay readable.
References
references/settings.md- settings placement, examples, env naming, and test
overrides.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: maksimzayats
- Source: maksimzayats/specx
- License: MIT
- Homepage: https://specx.dev
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.