Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add echoVic/blade-code --skill layered-configuration-and-runtime-settingsgit clone --depth 1 https://github.com/echoVic/blade-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/echovic/blade-code/layered-configuration-and-runtime-settings)<a href="https://agentmods.dev/skills/echovic/blade-code/layered-configuration-and-runtime-settings"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/layered-configuration-and-runtime-settings.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00143 | $0.02434 |
| Opus 5 | $0.00072 | $0.01217 |
| Sonnet 5 | $0.00029 | $0.00487 |
| Haiku 4.5 | $0.00014 | $0.00243 |
Grade A, and why
knowledge-layered-configuration-and-runtime-settings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Module Structure
配置系统将启动读盘、内存投影和磁盘持久化拆成三个边界,并为非启动 workspace 提供按 source project 重建执行配置的专用入口。
Directory Layout
packages/cli/src/config/ConfigManager.ts— 多层读取、信任过滤、归一化、验证和 workspace 定向解析packages/cli/src/config/ConfigService.ts— 字段/作用域路由、防抖、原子写和并发协调packages/cli/src/config/defaults.ts— 完整默认配置与默认权限packages/cli/src/config/types.ts—BladeConfig、RuntimeConfig和 Provider/权限类型packages/cli/src/config/runtimeEnvironment.ts— Session 环境变量名称和值校验packages/cli/src/store/slices/configSlice.ts— 启动进程内存配置投影packages/cli/src/store/vanilla.ts— 面向 TUI、Server 和命令的配置动作packages/cli/src/server/routes/config.ts— Web 公开配置投影与更新 APIpackages/cli/web/src/store/ConfigStore.ts— workspace 模型选择与权限模式状态packages/cli/web/src/store/SettingsStore.ts— 通用设置的乐观更新与失败回滚
Key Entry Points
ConfigManager.initialize()— 合并默认、用户、可信项目、local 和调用级设置ConfigManager.loadWorkspaceModelConfig()— 为目标 source project 重建模型与 Provider 配置ConfigManager.loadWorkspaceRuntimeSettings()— 为目标 source project 解析 env、Hook 开关、轮次和权限模式ConfigService.save()— 按字段元数据选择文件、scope 和合并策略configActions().updateConfig()— 先更新 Store,再持久化,失败时回滚内存
API Surface
ConfigManager
initialize(additionalSettings?)— 生成启动进程的完整RuntimeConfigreload()— 使用上次显式运行时覆盖重新读取配置loadWorkspacePermissions(workspaceRoot, base)— 去除启动项目私有规则并叠加目标 workspace 规则loadWorkspaceModelConfig(workspaceRoot, base)— 重建目标 workspace 的模型、Provider 与准入配置loadWorkspaceRuntimeSettings(workspaceRoot, base)— 重建目标 workspace 的执行环境和行为设置loadWorkspaceMcpServers()/loadWorkspaceLspServers()— 按目标 workspace 隔离可执行服务配置
ConfigService
save(updates, options)— 校验可持久化字段并路由到目标文件flush()— 立即提交所有防抖写入appendLocalPermissionRule()/appendLocalPermissionDenyRule()— 对目标 workspace 做原子追加去重removePluginSetting()— 从指定 scope 删除插件覆盖而非写入相反值
Store Actions
configActions().updateConfig()— 内存先行并在持久化失败时恢复快照configActions().setPermissionMode()— 仅更新本次运行状态configActions().addModelWithProvider()— 原子更新 catalog、模型和 Provider 配置
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 107 lines · 143 tokens per session scan A 9e0d9e63370f
knowledge-layered-configuration-and-runtime-settings is a skill published in the GitHub repository echoVic/blade-code (178 stars, last pushed 2d ago), licensed MIT. It adds 143 tokens to every session and 2,434 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
linearis
Manage Linear.app work from the command line with the linearis CLI (bins linearis / linear), which outputs JSON: issues/tickets, projects, cycles (sprints), milestones, initiatives (roadmap), documents, labels, teams, users, and issue discussions/comments. Use when the user mentions Linear, a ticket identifier like…
autogpt-agents
Autonomous AI agent platform for building and deploying continuous agents. Use when creating visual workflow agents, deploying persistent autonomous agents, or building complex multi-step AI automation systems.
linear
Linear: manage issues, projects, teams via GraphQL + curl.
github-issues
Create, triage, label, assign GitHub issues via gh or REST.
stale-sweep
Sweep the googleapis/mcp-toolbox repo for issues and PRs with no real activity in N days (default 60), sort each by whose silence it is (the author's, ours, or nobody's), and draft the nudge or close comment. Use whenever a maintainer asks for a stale sweep, backlog cleanup, or an SLO check, e.g. "stale sweep", "find…
clinical-reports
Write comprehensive clinical reports including case reports (CARE guidelines), diagnostic reports (radiology/pathology/lab), clinical trial reports (ICH-E3, SAE, CSR), and patient documentation (SOAP, H&P, discharge summaries). Full support with templates, regulatory compliance (HIPAA, FDA, ICH-GCP), and validation…