<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sanskar Jain</title>
    <description>The latest articles on DEV Community by Sanskar Jain (@sanskar_jain_e7c2b40b78d8).</description>
    <link>https://dev.to/sanskar_jain_e7c2b40b78d8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3948706%2F2b76b10d-b231-4e39-bb75-f9627205f664.jpg</url>
      <title>DEV Community: Sanskar Jain</title>
      <link>https://dev.to/sanskar_jain_e7c2b40b78d8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sanskar_jain_e7c2b40b78d8"/>
    <language>en</language>
    <item>
      <title>Your AI Agent Is Loading Too Much — SKILL.mk Fixes That</title>
      <dc:creator>Sanskar Jain</dc:creator>
      <pubDate>Sun, 24 May 2026 09:34:14 +0000</pubDate>
      <link>https://dev.to/sanskar_jain_e7c2b40b78d8/your-ai-agent-is-loading-too-much-skillmk-fixes-that-4j72</link>
      <guid>https://dev.to/sanskar_jain_e7c2b40b78d8/your-ai-agent-is-loading-too-much-skillmk-fixes-that-4j72</guid>
      <description>&lt;h2&gt;
  
  
  The Problem Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;If you're building with AI coding agents — think Claude Code, Copilot, or custom agent frameworks — you've probably written a SKILL file. These are instruction documents that teach your agent &lt;em&gt;how&lt;/em&gt; to do things: search the web, triage GitHub issues, scaffold a project.&lt;/p&gt;

&lt;p&gt;Most of these are written in Markdown (&lt;code&gt;.md&lt;/code&gt;). And they work fine... until you realize your agent is loading &lt;strong&gt;thousands of tokens&lt;/strong&gt; of instructions it doesn't even need for the current task.&lt;/p&gt;

&lt;p&gt;That's like reading an entire cookbook when you just want to boil an egg.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enter SKILL.mk
&lt;/h2&gt;

&lt;p&gt;A developer named Zhou Chang recently open-sourced a clever idea: &lt;a href="https://github.com/Teaonly/SKILL.mk" rel="noopener noreferrer"&gt;SKILL.mk&lt;/a&gt; — writing agent skill documents in &lt;strong&gt;Makefile format&lt;/strong&gt; instead of Markdown.&lt;/p&gt;

&lt;p&gt;Yes, &lt;em&gt;that&lt;/em&gt; Makefile. The same format developers have used for decades to build software.&lt;/p&gt;

&lt;p&gt;But why?&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core Idea in 30 Seconds
&lt;/h2&gt;

&lt;p&gt;A regular SKILL.md file is a flat wall of text. The agent loads &lt;em&gt;all of it&lt;/em&gt; every time, even if it only needs one section.&lt;/p&gt;

&lt;p&gt;A SKILL.mk file breaks the skill into &lt;strong&gt;targets&lt;/strong&gt; (think: named sections) with &lt;strong&gt;dependencies&lt;/strong&gt; between them — just like a Makefile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight make"&gt;&lt;code&gt;&lt;span class="nl"&gt;when-to-use&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; Searching &lt;span class="k"&gt;for &lt;/span&gt;documentation
    &lt;span class="p"&gt;-&lt;/span&gt; Looking up facts or current information

&lt;span class="nl"&gt;setup&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;when-to-use&lt;/span&gt;
    1. Create an API account
    2. Get your API key

&lt;span class="nl"&gt;query&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;when-to-use setup&lt;/span&gt;
    &lt;span class="p"&gt;@&lt;/span&gt;search.js &lt;span class="s2"&gt;"your query"&lt;/span&gt; &lt;span class="nt"&gt;-n&lt;/span&gt; 10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each target knows what it depends on. The agent only loads what it needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Should You Care? Three Real Benefits
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Dramatically Fewer Tokens
&lt;/h3&gt;

&lt;p&gt;In the Brave Search skill example from the repo, on-demand loading cuts token usage by &lt;strong&gt;85%&lt;/strong&gt;. Across a full collection of 20+ skills, the average reduction was &lt;strong&gt;14%&lt;/strong&gt; — with some skills shrinking by over &lt;strong&gt;50%&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Fewer tokens = faster responses, lower costs, and less chance of the agent getting confused.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Built-in Logic (It's a DAG!)
&lt;/h3&gt;

&lt;p&gt;Makefile targets naturally form a &lt;strong&gt;directed acyclic graph&lt;/strong&gt; — a fancy way of saying "steps in order, with no loops." Your agent doesn't have to &lt;em&gt;figure out&lt;/em&gt; the right sequence. It's already baked into the file structure.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;query&lt;/code&gt; depends on &lt;code&gt;setup&lt;/code&gt;, which depends on &lt;code&gt;when-to-use&lt;/code&gt;. The agent follows the chain automatically. Less guessing means fewer errors.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. You Can Track and Improve Individual Steps
&lt;/h3&gt;

&lt;p&gt;Since each recipe is a separate, named target, you can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Git-track&lt;/strong&gt; changes to individual steps&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure&lt;/strong&gt; which recipes succeed or fail&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Optimize&lt;/strong&gt; one recipe without touching the rest&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is what the project calls "Evolution Engineering" — letting your skills improve piece by piece over time.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Quick Before &amp;amp; After
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;SKILL.md&lt;/th&gt;
&lt;th&gt;SKILL.mk&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Full load&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;2,165 characters&lt;/td&gt;
&lt;td&gt;2,014 characters (-7%)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;On-demand load&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Not possible&lt;/td&gt;
&lt;td&gt;313 characters (&lt;strong&gt;-85%&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Auditability&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Whole file only&lt;/td&gt;
&lt;td&gt;Per-recipe tracking&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How to Try It
&lt;/h2&gt;

&lt;p&gt;Creating your first &lt;code&gt;.mk&lt;/code&gt; skill file takes under 5 minutes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a file&lt;/strong&gt; named &lt;code&gt;your-skill.mk&lt;/code&gt; in your agent's skills directory&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Define your targets&lt;/strong&gt; — start simple with &lt;code&gt;when-to-use&lt;/code&gt;, &lt;code&gt;setup&lt;/code&gt;, and a main action:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight make"&gt;&lt;code&gt;&lt;span class="nl"&gt;when-to-use&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; Use this skill when you need to &lt;span class="o"&gt;[&lt;/span&gt;describe use &lt;span class="k"&gt;case&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;

&lt;span class="nl"&gt;setup&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;when-to-use&lt;/span&gt;
    1. &lt;span class="o"&gt;[&lt;/span&gt;First setup step]
    2. &lt;span class="o"&gt;[&lt;/span&gt;Second setup step]

&lt;span class="nl"&gt;run&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;when-to-use setup&lt;/span&gt;
    &lt;span class="p"&gt;@&lt;/span&gt;your-command-here
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Register it&lt;/strong&gt; with your agent framework exactly as you would a &lt;code&gt;.md&lt;/code&gt; file&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Even without a compatible loader, the structure alone makes your skills easier to read, maintain, and version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is It Ready for Production?
&lt;/h2&gt;

&lt;p&gt;Not quite. SKILL.mk is currently a &lt;strong&gt;proof-of-concept&lt;/strong&gt;. It requires a compatible loader tool in your agent framework to unlock on-demand loading. Without that tooling, it still works as a drop-in replacement for &lt;code&gt;.md&lt;/code&gt; files — just with better structure.&lt;/p&gt;

&lt;p&gt;The spec is intentionally minimal (only 4 rules), which makes it easy to implement in any agent harness.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;SKILL.mk takes an old, battle-tested format and applies it to a very modern problem: making AI agents more efficient. It's a small, elegant idea — structure your agent's knowledge like a build system, and only load what you need.&lt;/p&gt;

&lt;p&gt;I'm experimenting with this in my own agent setups and the structure benefits alone are already worth it, even before any loader tooling is in place.&lt;/p&gt;

&lt;p&gt;If you're building agents and tired of bloated context windows, it's worth a look.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check it out:&lt;/strong&gt; &lt;a href="https://github.com/Teaonly/SKILL.mk" rel="noopener noreferrer"&gt;github.com/Teaonly/SKILL.mk&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Have you run into the token bloat problem with your own skill files? Are you using a different approach? Drop a comment — I'd love to hear how others are handling this.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devtools</category>
      <category>llm</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
