CtrlK
BlogDocsLog inGet started
Tessl Logo

config-loading-precedence

How Xberg resolves configuration — CLI-mode and server/MCP-mode precedence orders, project config walk-up, user config fallback, field-level inline JSON merge (merge_json_into_config), the ExtractionOverrides CLI layer, and the two mechanisms that make a config change silently do nothing. Load when adding a config flag or env var, changing config precedence, or debugging why a setting is or isn't taking effect.

72

Quality

87%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

75%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A strong, information-dense reference body: every section carries project-specific facts (paths, function names, gotchas) with concrete verification guidance, and no time-sensitive or generic-filler content. The main improvements are making the merge snippet complete, trimming the Critical Rules recap, and structuring the no-op guidance as explicit pre-change validation steps.

Suggestions

Replace the elided merge_json_into_config snippet with the complete function body (or mark the elision as intentional), since the current form is pseudocode with an undefined `merged` variable (actionability).

Drop or compress the Critical Rules section — rules 1-4 restate the precedence list, the field-level merge note, the discovery order, and the base64 flag already covered above (conciseness).

Turn the silent no-op guidance into explicit numbered pre-change validation steps (grep bare type name → check for second Default → write wire-name fixture → assert differs-from-default) so the verification loop is a stepped workflow (workflow_clarity).

DimensionReasoningScore

Conciseness

The body is dense with non-obvious, project-specific facts (precedence orders, file paths, the duplicate-Default and serde-wire-name gotchas) with no filler explaining concepts Claude already knows. However, the "Critical Rules" section largely recapitulates earlier sections ("JSON merge is field-level, not whole-object" restates "Field-level merge (not whole-object replacement)"; rule 1 restates the precedence list), which is a minor trim candidate — efficient but not literally every-token-earns-its-place.

4 / 5

Actionability

Mostly concrete and executable: exact paths (crates/xberg-cli/src/commands/overrides.rs, core/config/extraction/loaders.rs), commands (--config-json-base64, XBERG_HOST), a copy-paste TOML example, and specific verification steps ("grep the bare type name... and check for a second definition", "assert the parsed config differs from the default"). The one gap is the merge_json_into_config snippet, which is elided ("// Merge fields from json into config_json", undefined `merged` variable), so it is not executable as written.

4 / 5

Workflow Clarity

Sequences are clearly ordered (numbered precedence lists 1-5 and 1-4, discovery walk-up order) and there is explicit pre-change validation guidance ("Before changing any config default, grep the bare type name... and check for a second definition") plus a numbered Critical Rules checklist. It falls short of the anchor-5 feedback-loop pattern because there is no end-to-end procedure with validate-fix-retry recovery; as a reference skill its guidance is embedded in prose rather than a stepped workflow.

4 / 5

Progressive Disclosure

The body is well-sectioned with clear headers, needs no external references at its current size, and is easy to navigate. At ~90 lines with deep-dive internals (the two silent no-op mechanisms, the duplicate-Default explanation), it is appropriately placed but sits above the simple-skill threshold where perfect organization alone would carry it — good structure with minor organization headroom rather than a clear overview pointing to one-level-deep materials.

4 / 5

Total

16

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An exemplary description: it states exactly what the skill covers with named functions and structs, and gives explicit, natural load-when triggers including the debugging phrasing users would actually say. Third person, concise, no buzzwords or over-claims.

DimensionReasoningScore

Specificity

The description names the domain and enumerates multiple concrete, specific mechanisms: "CLI-mode and server/MCP-mode precedence orders", "project config walk-up, user config fallback", "field-level inline JSON merge (merge_json_into_config)", "the ExtractionOverrides CLI layer", and "the two mechanisms that make a config change silently do nothing". Coverage spans precedence, discovery, merge, overrides, and failure modes, leaving no notable gaps — it clearly matches the comprehensive-coverage anchor rather than the anchor-4 example with minor gaps.

5 / 5

Completeness

The "what" is explicit ("How Xberg resolves configuration — ...precedence orders... merge... ExtractionOverrides CLI layer...") and the "when" is an explicit trigger clause ("Load when adding a config flag or env var, changing config precedence, or debugging why a setting is or isn't taking effect") with concrete trigger phrases, exactly matching the anchor-5 pattern.

5 / 5

Trigger Term Quality

Natural phrases a user would actually say include "adding a config flag or env var", "changing config precedence", and "debugging why a setting is or isn't taking effect". Synonyms are covered (config/setting, flag/env var, "taking effect"/"silently do nothing"), matching the comprehensive-synonyms anchor; file extensions do not apply to this code-internal domain.

5 / 5

Distinctiveness Conflict Risk

It occupies a clear niche (Xberg's configuration resolution) with triggers scoped to config work ("config flag", "env var", "setting... taking effect"), so it is unlikely to fire for unrelated skills — matching the clear-niche/minimal-conflict anchor. Voice is third person, so no specificity penalty applies.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
xberg-io/xberg
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.