Part 2: For modders · 6 sections · page built 2026-12-05 00:35 UTC

Fix what an evaluation found with an agent

Do this by hand

Your agent runs sf-mod-check, explains each finding, and for a mod you build from code, changes the builder and re-runs the same check until it is clean. It can make three narrow fixes with sf-mod-check edit, which writes a checked new file.

Richard is modding

What's new

  • 2026-12-03. The page now has a Richard is modding panel that links to Richard's mods at Creations and Nexus Mods, and to Help Richard Help You.
  • 2026-11-29. This page has a new look, the same as the other Richard Presents pages, with a menu that lights the section you are reading, a short summary at the top and this What's new box.

What to ask

Ask your agent
Run sf-mod-check check on MyMod.esm and explain each finding in plain words. Point to the record each one names.
Ask your agent
Fix the problems in my builder, rebuild, and run the same check again. Tell me the RESULT line each time.
Ask your agent
This mod is by another author. Before you change anything, tell me what permission I need and what to credit.

What the agent runs

The skills evaluate-mod, rebuild-mod and build-mod of starfield-agent cover this task. rebuild-mod handles another author's mod and asks about permission first. Other agents follow sf-mod-check's AGENTS.md and sf-mod-build's AGENTS.md. The commands match the manual page.

Command Prompt
sf-mod-check check MyMod.esm
Command Prompt
sf-mod-check release MyMod-1.0.0.zip
Command Prompt
sf-mod-check triage SomeMod-1.2.0.zip

Since sf-mod-check 0.17.0 (released 2026-11-24), triage lists each changed field of each official record the mod overrides. For a record in a cell or a worldspace it names only the field type, because those records are compared raw. Each record shows at most 200 rows, plus up to 200 more for the two translation kinds, and each value is cut at 2,000 characters. The whole report holds at most 10,000 rows, with real changes first. Each cut says how much it left out. The agent should treat the rows "same entries, other order", "same English text, translations dropped" and its reverse, "same English text, translations added", as often harmless and start with the other rows.

Command Prompt
sf-mod-check gap MyMod.esm
Command Prompt
sf-mod-check diff SomeMod-1.1.0.zip SomeMod-1.2.0.zip
Command Prompt
sf-mod-build build

For a finished plugin, the agent can use edit for three small fixes. Since sf-mod-check 0.25.0 (released 2026-11-26) it can drop a master nothing uses, set the light flag, and replace the text of one dialogue response or message. It writes a new file and never changes the original. It keeps the new file only when three proofs pass: diff shows only the intended changes, gap finds no new loss and check finds no new ERROR. A failed proof deletes the file and exits 1, and a refusal exits 2. It refuses --set-light on a light or medium plugin or one with own records outside 000800 to 000FFF, refuses --drop-master while anything uses the master, and takes one master per run. Since sf-mod-check 0.28.0, --drop-master renumbers only the values Mutagen reads as links and leaves a look-alike number alone (the report says "left N look-alike values alone"), and edit refuses an --out named like one of the new file's masters or whose extension doesn't fit the light flag.

Command Prompt
sf-mod-check edit Demo.esm --out Demo-fixed.esm --set-light --set-text DemoGreeting --text "Welcome aboard, traveler."

A kept run (run in the folder that holds the plugin, here C:\Mods) starts with the header line sf-mod-check 0.25.0 edit: Demo.esm -> Demo-fixed.esm, then one line per edit and one per proof, then kept <path of the new file>, and ends with a line like RESULT: KEPT (3 proofs passed; Demo-fixed.esm; 14.2 s). Since sf-mod-check 0.29.0, a WARNING: line before kept says when the new name loses something the game finds by the plugin's name: a localized plugin's string files or the MyMod - *.ba2 archives beside it. The exit code stays 0, so the agent must quote the warning and tell you to copy or rename those files, or to give the new file the original's name. --set-text edits response 1 of a dialogue line unless the agent adds --response <n>, counted from 1 as find --full shows the responses. Removing or copying records is out by design. Renumbering FormIDs to compact them, which --set-light needs when a record is outside 000800 to 000FFF, stays an xEdit or CK job.

What you check

  • The RESULT line and the exit code. Don't accept "it's fixed" without them. Exit 0 means no errors for check and OK for release.
  • The same command each time. Ask the agent to rerun the exact command that found the problem, not a different one that passes.
  • The finding level. ERROR and PROBLEM must be fixed. WARNING and REVIEW are for you to judge. Since sf-mod-check 0.29.0, a FormID that points past a plugin's master list is one WARNING for the plugin (not an ERROR for each record), and check can exit 0 on it, so the agent must quote that WARNING and not call the plugin clean.
  • Triage. The agent must call it "where to start reading", never a safety verdict, and must not report a bug to an author from triage alone.
  • What changed. For a code build, ask for the diff of the builder, so you see what the agent touched.
  • An edit run. Ask for the three proof lines and the RESULT: line. If the new file is kept, you decide whether to keep a copy of the original and give the new file its name.

What stays your decision

  • Whether to fix someone else's mod at all, and whether the author has agreed. The agent asks, and you keep their reply.
  • Whether to share a fixed version, and how to credit the author.
  • Which findings you accept. The agent can suggest --accept, and you decide.
  • Any edit in xEdit or the Creation Kit, because an agent can't drive those windows. Cleaning ITMs, undeleting, renumbering FormIDs to compact them, and removing or copying records are yours, since edit leaves them out by design.

For CK and xEdit authors

The agent can read the findings, tell you which record to open and what is probably wrong, and run the check again after you save. It can't edit the plugin in those tools, so you make the fix, except for the three small ones edit can write to a new file.

For code builders

The agent can change your builder, rebuild with sf-mod-build build and run check and gap on the result. Review its changes before you keep them, and tell it to match how the game's own records do it.

Read the guardrails before you let an agent act on your files.

Do this by hand