knowledge-layered-configuration-and-runtime-settings

knowledge-layered-configuration-and-runtime-settings is a skill for Claude Code, Codex from echoVic/blade-code. It costs 143 tokens per session (2,434 once invoked), scanned A, original, MIT.

A configuration system that combines user, project, local, and per-call settings, then saves each field to the correct scope and file. It can rebuild settings for a particular source project.

In plain words
What is it for?
Use it when adding configuration fields, changing override order, managing model, provider, MCP, LSP, or plugin settings, or debugging web settings updates.
Why use it?
It prevents settings from one project or workspace leaking into another and keeps changes consistent when they are saved or rolled back after an error.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding configuration fields, changing override order, managing model, provider, MCP, LSP, or plugin settings, or debugging web settings updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/echovic/blade-code/layered-configuration-and-runtime-settings
Install

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.

Any agent
npx skills add echoVic/blade-code --skill layered-configuration-and-runtime-settings
Clone the repo
git clone --depth 1 https://github.com/echoVic/blade-code

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for knowledge-layered-configuration-and-runtime-settings

README.md
[![agentmods](https://agentmods.dev/badge/skills/echovic/blade-code/layered-configuration-and-runtime-settings.svg)](https://agentmods.dev/skills/echovic/blade-code/layered-configuration-and-runtime-settings)
Your own site
<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>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,434 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 9e0d9e63370f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

.trae/knowledges/workspace-policy-and-shared-foundations/layered-configuration-and-runtime-settings/SKILL.md · 107 lines

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.tsBladeConfigRuntimeConfig 和 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 公开配置投影与更新 API
  • packages/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?) — 生成启动进程的完整 RuntimeConfig
  • reload() — 使用上次显式运行时覆盖重新读取配置
  • 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 配置

Read the full file on GitHub · 107 lines

Changes

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.

  1. 4d ago First seen · 107 lines · 143 tokens per session scan A 9e0d9e63370f

Subscribe to this mod's changes

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.

Related

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…

linearis-oss/linearis · 111 tokens

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.

synthetic-sciences/openscience · 39 tokens

linear

Linear: manage issues, projects, teams via GraphQL + curl.

StarryCod/cogitum · 16 tokens

github-issues

Create, triage, label, assign GitHub issues via gh or REST.

StarryCod/cogitum · 20 tokens

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…

googleapis/mcp-toolbox · 159 tokens

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…

synthetic-sciences/openscience · 71 tokens