{"id":3120,"date":"2026-06-24T05:10:46","date_gmt":"2026-06-24T05:10:46","guid":{"rendered":"https:\/\/tucumandevelopers.com\/index.php\/2026\/06\/24\/why-your-agent-ignores-its-skill-body-but-obeys-the-system-prompt\/"},"modified":"2026-06-24T05:10:46","modified_gmt":"2026-06-24T05:10:46","slug":"why-your-agent-ignores-its-skill-body-but-obeys-the-system-prompt","status":"publish","type":"post","link":"https:\/\/tucumandevelopers.com\/index.php\/2026\/06\/24\/why-your-agent-ignores-its-skill-body-but-obeys-the-system-prompt\/","title":{"rendered":"Why your agent ignores its skill body but obeys the system prompt"},"content":{"rendered":"<div>\n<div><\/div>\n<p>Correct name, correct file, correct path. Restart. Then ask it a plain question: <\/p>\n<div>\n<pre><code>&gt; how's our depth? Aboard s\/v Wrongboat, depth is 8.2 metres below the keel, Captain. <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>Still the old name. The file the runtime loads says the right thing. The agent says the wrong thing. Editing the skill body again \u2014 any number of times \u2014 changed nothing for this query.<\/p>\n<h2> <a name=\"diagnosis\" href=\"#diagnosis\"> <\/a> Diagnosis <\/h2>\n<p>Stop theorising about what the model &#8220;should&#8221; see and look at what it <em>actually<\/em> received. Hermes writes a full request dump per call; most frameworks have an equivalent (a debug log, <code>--print-prompt<\/code>, a proxy capture). Dump the request and grep it: <\/p>\n<div>\n<pre><code><span>$ <\/span><span>ls<\/span> <span>-t<\/span> ~\/.hermes\/sessions\/request_dump_<span>*<\/span>.json | <span>head<\/span> <span>-1<\/span> \/Users\/me\/.hermes\/sessions\/request_dump_1733270400.json <span>$ <\/span><span>grep<\/span> <span>-o<\/span> <span>\"ship's computer\"<\/span> ~\/.hermes\/sessions\/request_dump_<span>*<\/span>.json | <span>tail<\/span> <span>-1<\/span> ship<span>'s computer # &lt;-- base persona text IS present $ grep -o \"Navigator agent aboard\" ~\/.hermes\/sessions\/request_dump_*.json | tail -1 # &lt;-- nothing. the skill body is NOT in the prompt <\/span><\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>There it is. For a plain <code>\"how's our depth?\"<\/code>, the <strong>base persona was in the prompt and the Navigator skill body was not.<\/strong> The query didn&#8217;t activate the Navigator skill, so its <code>SKILL.md<\/code> body never got loaded \u2014 and the vessel name we&#8217;d been so carefully editing lived only in that body.<\/p>\n<p>This is exactly the <a href=\"https:\/\/platform.claude.com\/docs\/en\/agents-and-tools\/agent-skills\/overview\" target=\"_blank\" rel=\"noopener noreferrer\">progressive disclosure<\/a> model these frameworks are built on, stated plainly in Anthropic&#8217;s own Agent Skills docs:<\/p>\n<blockquote>\n<p><strong>Level 1: Metadata (always loaded)<\/strong> &#8230; Claude loads this metadata at startup and includes it in the system prompt.<br \/> <strong>Level 2: Instructions (loaded when triggered)<\/strong> &#8230; When you request something that matches a Skill&#8217;s description, Claude reads SKILL.md from the filesystem. Only then does this content enter the context window.<\/p>\n<\/blockquote>\n<p>So a skill&#8217;s <code>name<\/code>\/<code>description<\/code> is always in context (that&#8217;s how the model knows the skill exists), but the <strong>body<\/strong> \u2014 your actual instructions \u2014 only loads when that skill fires. The base system prompt, by contrast, is on every single request. If an instruction must always apply, it belongs in the always-on layer. Vessel identity is an always-apply rule. It was in the wrong layer.<\/p>\n<p>The wrong name was the <em>symptom<\/em> that exposed this, but the principle generalises to every always-on invariant: identity, time\/units discipline, and anti-fabrication rules all silently fail to apply on any query that doesn&#8217;t trigger the skill that contained them.<\/p>\n<h2> <a name=\"what-we-tried-and-why-it-failed\" href=\"#what-we-tried-and-why-it-failed\"> <\/a> What we tried (and why it failed) <\/h2>\n<h3> <a name=\"attempt-1-edit-the-skill-body-and-redeploy\" href=\"#attempt-1-edit-the-skill-body-and-redeploy\"> <\/a> Attempt 1 \u2014 edit the skill body and redeploy <\/h3>\n<div>\n<pre><code><span># fixed the name in the skill source, redeployed<\/span> <span>$ <\/span>scripts\/deploy-navigator.sh deploy-navigator: wrote ~\/.hermes\/skills\/naturali\/navigator\/SKILL.md <span>(<\/span>vessel: Naturali<span>)<\/span> <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<pre><code>&gt; how's our depth? Aboard s\/v Wrongboat, depth is 8.2 metres below the keel, Captain. <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>No change. The file is right; the query just never loads it. You can edit a conditionally-loaded body forever and it will never affect a query that doesn&#8217;t trigger the skill.<\/p>\n<h3> <a name=\"attempt-2-assume-the-file-didnt-deploy-and-recheck-the-disk\" href=\"#attempt-2-assume-the-file-didnt-deploy-and-recheck-the-disk\"> <\/a> Attempt 2 \u2014 assume the file didn&#8217;t deploy and re-check the disk <\/h3>\n<div>\n<pre><code><span>$ <\/span><span>cat<\/span> ~\/.hermes\/skills\/naturali\/navigator\/SKILL.md | <span>head<\/span> <span>-1<\/span> Navigator agent aboard s\/v Naturali. <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>The runtime file was correct the whole time. This rules out a deploy failure and is the moment that <em>should<\/em> have redirected us to &#8220;is this file even being loaded?&#8221; instead of &#8220;is this file correct?&#8221; \u2014 two very different questions. We&#8217;d been answering the wrong one.<\/p>\n<h3> <a name=\"attempt-3-add-the-identity-rule-to-the-skill-body-harder\" href=\"#attempt-3-add-the-identity-rule-to-the-skill-body-harder\"> <\/a> Attempt 3 \u2014 add the identity rule to the skill body harder <\/h3>\n<p>We considered duplicating the name\/identity statement into every skill body so at least the loaded skill would carry it. That &#8220;works&#8221; only for queries that trigger <em>a<\/em> skill, leaves bare\/social\/ambiguous queries (which trigger none) still wrong, and creates N copies of an invariant to keep in sync \u2014 the classic drift trap. It treats the symptom. The rule isn&#8217;t per-skill; it&#8217;s always-on. It belongs in the one prompt that&#8217;s always-on.<\/p>\n<h2> <a name=\"the-fix\" href=\"#the-fix\"> <\/a> The fix <\/h2>\n<p>Move always-on invariants into the always-on layer (the base persona), and template the vessel name so nothing is hardcoded: <\/p>\n<div>\n<pre><code><span>&lt;!-- SOUL.md \u2014 the base persona, loaded on EVERY request --&gt;<\/span> You are the ship's computer aboard s\/v {{VESSEL_NAME}}. You address the user as \"Captain.\" Never speak a raw UTC timestamp in conversation. Report a reading and its source path; never narrate whether data is \"live,\" from a \"mock,\" or whether the vessel is \"ashore\" \u2014 you aren't given that and must not guess it. <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>Then give that file a real deploy step \u2014 substituting the name from one source of truth \u2014 instead of hand-placing it once: <\/p>\n<div>\n<pre><code><span># scripts\/deploy-soul.sh<\/span> <span>vessel_name<\/span><span>=<\/span><span>\"<\/span><span>$(<\/span>resolve_vessel_name <span>\"<\/span><span>$repo_root<\/span><span>\"<\/span><span>)<\/span><span>\"<\/span> <span># reads the active vessel profile<\/span> <span>sed<\/span> <span>\"s|{{VESSEL_NAME}}|<\/span><span>$vessel_name<\/span><span>|g\"<\/span> <span>\"<\/span><span>$repo_root<\/span><span>\/SOUL.md\"<\/span> <span>&gt;<\/span> <span>\"<\/span><span>$HERMES_HOME<\/span><span>\/SOUL.md\"<\/span> <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<div>\n<pre><code>&gt; how's our depth? Aboard s\/v Naturali, depth is 8.2 metres below the keel, Captain. <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>Right name, on a query that triggers no skill \u2014 because the identity now rides on the always-on persona, not a conditional body.<\/p>\n<p>The skill body keeps only what&#8217;s genuinely conditional \u2014 operational hints that are <em>fine<\/em> to load only when the skill fires: <\/p>\n<div>\n<pre><code><span>&lt;!-- skills\/navigator\/body.md \u2014 loaded only when Navigator triggers --&gt;<\/span> For \"how's our depth?\", read environment.depth.belowKeel, not belowTransducer. <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<h2> <a name=\"why-it-matters-gotchas\" href=\"#why-it-matters-gotchas\"> <\/a> Why it matters \/ gotchas <\/h2>\n<p><strong>Sort every prompt rule into always-on vs conditional, and place it accordingly.<\/strong> Ask one question of each rule: <em>does this need to hold on a query that triggers no skill?<\/em> If yes, it goes in the base prompt (or, for data-shape rules, the deterministic tool layer \u2014 but that&#8217;s <a href=\"https:\/\/engineering.sailingnaturali.com\/ha-2026.5-hassil-3-wildcard-voice-routing-missinglisterror\/\" target=\"_blank\" rel=\"noopener noreferrer\">another post<\/a>). If it&#8217;s only relevant inside a task, the skill body is the right, token-cheap home. Identity, safety, units, and anti-fabrication rules are almost always the former.<\/p>\n<p><strong>Dump the request before you touch a prompt.<\/strong> &#8220;The prompt says X but the agent does Y&#8221; has two failure modes that look identical from the outside: the prompt is wrong, or the prompt isn&#8217;t loaded. Only the request dump tells them apart. We burned two debug cycles editing a file that was never in the request. One <code>grep<\/code> of the dumped prompt would have caught it immediately.<\/p>\n<p><strong>Every runtime prompt artifact needs a deploy step, or it rots.<\/strong> The second half of this bug: our <code>~\/.hermes\/SOUL.md<\/code> had been hand-placed once, months earlier, and named a since-renamed boat. Only the <em>skill<\/em> had a deploy script, so only the skill tracked the repo. A prompt file you copy into place by hand has no mechanism to tell you it diverged \u2014 it silently runs stale. We fixed it by giving <code>SOUL.md<\/code> the same treatment the skill already had: <\/p>\n<div>\n<pre><code><span># .git\/hooks\/pre-commit \u2014 redeploy whatever source changed<\/span> <span>if <\/span><span>echo<\/span> <span>\"<\/span><span>$changed<\/span><span>\"<\/span> | <span>grep<\/span> <span>-Eq<\/span> <span>'^(SOUL\\.md$|scripts\/(deploy-soul|vessel-name)\\.sh$)'<\/span><span>;<\/span> <span>then <\/span>scripts\/deploy-soul.sh <span># base persona redeployed on every relevant commit<\/span> <span>fi if <\/span><span>echo<\/span> <span>\"<\/span><span>$changed<\/span><span>\"<\/span> | <span>grep<\/span> <span>-Eq<\/span> <span>'^skills\/navigator\/'<\/span><span>;<\/span> <span>then <\/span>scripts\/deploy-navigator.sh <span>fi<\/span> <\/code><\/pre>\n<div>\n<\/p><\/div>\n<\/p><\/div>\n<p>Now a commit that edits either source redeploys it. The runtime can&#8217;t drift from the repo without a commit saying so.<\/p>\n<p><strong>One source of truth for shared values.<\/strong> The vessel name resolves from the active vessel profile \u2014 the same profile that seeds the data-layer base values \u2014 so the boat is named identically in the data model and in the persona, and switching boats needs zero prompt edits. Don&#8217;t hardcode a value that appears in two layers; template both from one resolver. A hardcoded value in two places is a drift waiting to happen.<\/p>\n<h2> <a name=\"close\" href=\"#close\"> <\/a> Close <\/h2>\n<p>This came out of building an AI ops layer for an all-electric charter catamaran \u2014 a local LLM with a shared persona and per-job skills over a marine data bus \u2014 where the agent had better call the boat by its actual name, on every query, not just navigation ones. The agent skills and deploy scripts are open source: <a href=\"https:\/\/github.com\/sailingnaturali\/naturali-agents\" target=\"_blank\" rel=\"noopener noreferrer\">github.com\/sailingnaturali\/naturali-agents<\/a>.<\/p>\n<\/p><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>Fuente: <a href=\"https:\/\/dev.to\/clarkbw--\/why-your-agent-ignores-its-skill-body-but-obeys-the-system-prompt-2a3b\">Art\u00edculo original<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Correct name, correct file, correct path. Restart. Then ask it a plain question: &gt; how&#8217;s our depth? Aboard s\/v Wrongboat, depth is 8.2 metres below the keel, Captain. Still the old name. The file the runtime loads says the right thing. The agent says the wrong thing. Editing the skill body again \u2014 any number [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3119,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[41],"tags":[],"class_list":["post-3120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devto"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/posts\/3120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/comments?post=3120"}],"version-history":[{"count":0,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/posts\/3120\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/media\/3119"}],"wp:attachment":[{"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/media?parent=3120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/categories?post=3120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tucumandevelopers.com\/index.php\/wp-json\/wp\/v2\/tags?post=3120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}