agentleFS
lordmaculordmacu/nexo-rs/skills/update-config/SKILL.md

Update Config

Skill8 starsChanged 7 months agoApache-2.0View on GitHub

Safely update Nexo config files with read-before-write merges, schema-aware mapping, and reload/restart awareness.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Update Nexo configuration intentionally and safely.

    line 11
  2. Distinctive:

    Prefer this mapping order:

    line 39
  3. Distinctive:

    If the request cannot be mapped unambiguously, ask the user before writing.

    line 51
  4. Very specific:

    if hot-reloadable: recommend agent reload (or rely on watcher),

    line 62
  5. Distinctive:

    Write only the required keys/values.

    line 77
  6. Very specific:

    Check YAML/shape consistency (for example agent --check-config).

    line 79
  7. Distinctive:

    Never replace whole config files when a minimal patch is possible.

    line 85
  8. Very specific:

    Never inline secrets in YAML when ${file:...} or env refs are expected.

    line 86
  9. Distinctive:

    Never drop existing array entries unless user asked for replacement.

    line 87
  10. Distinctive:

    Never claim live effect without stating hot-reload vs restart requirement.

    line 88
  11. Distinctive:

    If validation fails, stop and report corrective action before proceeding.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Update Config

Update Nexo configuration intentionally and safely. Prefer minimal, reversible patches that preserve existing structure and comments.

Use when

  • User asks to change runtime behavior through config instead of code.
  • You need to edit files under config/ or config/plugins/.
  • You must wire skills/tools/models/bindings with explicit YAML changes.

Do not use when

  • The request is a source-code behavior change (edit Rust/TS files instead).
  • The target setting cannot be mapped confidently to a known config file.
  • The user asks only for one-off runtime commands with no config change needed.

Input contract

  • request (required): desired behavior change.
  • target_scope (optional): agent | llm | runtime | plugin | mcp | memory | tool_policy | explicit_file.
  • target_file (optional): required when target_scope=explicit_file.
  • merge_mode (optional): append_idempotent (default) or replace.
  • confirm_before_write (optional): default true for ambiguous or high-impact edits.
  • trigger_reload (optional): default true for hot-reloadable files.

Mapping rules

Prefer this mapping order:

  1. Agent-level behavior (skills, allowed_tools, system_prompt, inbound_bindings, model.model, web_search, link_understanding) -> config/agents.yaml or config/agents.d/<agent>.yaml
  2. Provider/auth/retry defaults -> config/llm.yaml
  3. Reload watcher/migration/runtime knobs -> config/runtime.yaml
  4. MCP client servers -> config/mcp.yaml
  5. Plugin instance config -> config/plugins/<plugin>.yaml
  6. Memory backend/vector knobs -> config/memory.yaml
  7. Tool policy / gate rules -> config/tool_policy.yaml

If the request cannot be mapped unambiguously, ask the user before writing.

Hot-reload vs restart

  • Usually hot-reloadable: config/agents.yaml, config/agents.d/**, config/llm.yaml, config/runtime.yaml.
  • Usually restart-required: config/plugins/*.yaml, config/mcp.yaml, config/memory.yaml, config/broker.yaml, config/extensions.yaml, plus structural agent changes (id, plugins, workspace, skills_dir).

After writing:

  • if hot-reloadable: recommend agent reload (or rely on watcher),
  • else: state explicitly that daemon restart is required.

Canonical workflow

  1. Clarify intent
    • Restate the requested behavior in concrete config terms.
  2. Resolve target file(s)
    • Map request -> file path(s) using rules above.
  3. Read before write
    • Load current file content first; never blind-overwrite.
  4. Prepare minimal merge patch
    • Preserve unrelated keys and comments.
    • For arrays, default to idempotent append unless user requested replace.
  5. Apply edit
    • Write only the required keys/values.
  6. Validate
    • Check YAML/shape consistency (for example agent --check-config).
  7. Finalize
    • Report exact file changes + reload/restart action required.

Guardrails

  • Never replace whole config files when a minimal patch is possible.
  • Never inline secrets in YAML when ${file:...} or env refs are expected.
  • Never drop existing array entries unless user asked for replacement.
  • Never claim live effect without stating hot-reload vs restart requirement.
  • If validation fails, stop and report corrective action before proceeding.

Output format

Always return:

  • status: applied | proposed | needs_user_input | validation_failed
  • mapped_targets: list of file paths with rationale
  • changes: concrete key-level mutations
  • validation: checks executed and result
  • activation: hot_reload or restart_required
  • next_action: required unless status=applied

Examples

  • request="attach verify + stuck skills to agent ana"
  • request="enable web_search tavily for ana binding"
  • request="increase llm retry backoff" target_scope="llm"
  • request="add whatsapp instance for sales bot" target_scope="plugin"

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.