<?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: Majid Allahverdi</title>
    <description>The latest articles on DEV Community by Majid Allahverdi (@majid_allahverdi_28cd42f2).</description>
    <link>https://dev.to/majid_allahverdi_28cd42f2</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3653798%2Ff4b23e1f-7cdf-425c-9d02-d361f6ebe66b.png</url>
      <title>DEV Community: Majid Allahverdi</title>
      <link>https://dev.to/majid_allahverdi_28cd42f2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/majid_allahverdi_28cd42f2"/>
    <language>en</language>
    <item>
      <title>The AI Context Engineering Playbook: 15 Ways to Stop Burning Tokens and Get More From Your AI Tools</title>
      <dc:creator>Majid Allahverdi</dc:creator>
      <pubDate>Mon, 22 Jun 2026 17:02:07 +0000</pubDate>
      <link>https://dev.to/majid_allahverdi_28cd42f2/the-ai-context-engineering-playbook-15-ways-to-stop-burning-tokens-and-get-more-from-your-ai-tools-4aa0</link>
      <guid>https://dev.to/majid_allahverdi_28cd42f2/the-ai-context-engineering-playbook-15-ways-to-stop-burning-tokens-and-get-more-from-your-ai-tools-4aa0</guid>
      <description>&lt;p&gt;Last month I hit my GitHub Copilot Plus limit twice in one day.&lt;/p&gt;

&lt;p&gt;I wasn't doing anything extraordinary. I was jumping between three projects, a telehealth platform, an AI voice receptionist product, and client work. Normal sessions. Normal questions. Limit hit by noon.&lt;/p&gt;

&lt;p&gt;My first instinct was to upgrade my plan.&lt;/p&gt;

&lt;p&gt;Then I stopped and asked the real question: &lt;strong&gt;why am I burning through tokens this fast?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The answer wasn't my plan tier. It was how I was feeding context to the AI.&lt;/p&gt;

&lt;p&gt;I've been building software for years, and I've optimized databases, APIs, and cloud infrastructure. But I was treating AI context like an unlimited resource, just dumping everything in and hoping for the best.&lt;/p&gt;

&lt;p&gt;That changes with &lt;strong&gt;Context Engineering&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Is Context Engineering?
&lt;/h2&gt;

&lt;p&gt;Context Engineering is the discipline of controlling &lt;em&gt;what&lt;/em&gt; enters an AI model's context window , and what doesn't.&lt;/p&gt;

&lt;p&gt;Most developers think about &lt;em&gt;what to ask&lt;/em&gt; the AI. Context engineering is about &lt;em&gt;what the AI sees before you ask&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The goal:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Remove irrelevant information&lt;/li&gt;
&lt;li&gt;Prioritize relevant information&lt;/li&gt;
&lt;li&gt;Improve response quality&lt;/li&gt;
&lt;li&gt;Lower token consumption&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Think of it as &lt;strong&gt;memory management for AI&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ws38q7c0tvtw1wl6n50.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ws38q7c0tvtw1wl6n50.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Developers Waste So Many Tokens (Without Realizing It)
&lt;/h2&gt;

&lt;p&gt;Here's what a typical AI coding session actually looks like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fefu1u67m94rzsqqi5eqo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fefu1u67m94rzsqqi5eqo.png" alt=" " width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The AI spends more tokens &lt;em&gt;processing context&lt;/em&gt; than &lt;em&gt;solving your problem&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;I call this &lt;strong&gt;Context Debt&lt;/strong&gt; , the AI equivalent of technical debt. It accumulates quietly until suddenly you're hitting your limit at noon on a Tuesday.&lt;/p&gt;




&lt;h2&gt;
  
  
  The 15 Fixes
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Plan Before You Code
&lt;/h3&gt;

&lt;p&gt;The most expensive token pattern is trial-and-error coding with AI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What most developers do:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd1yw14sbbcujdtvhy83l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd1yw14sbbcujdtvhy83l.png" alt=" " width="800" height="271"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;What you should do:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkrylmdvr1lmh3xycc5ss.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkrylmdvr1lmh3xycc5ss.png" alt=" " width="798" height="239"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I now spend 5 minutes writing a plain-English plan first and asking the AI to review it before writing a single line.&lt;/p&gt;

&lt;p&gt;The token savings from avoiding one bad iteration pays for the planning cost ten times over.&lt;/p&gt;


&lt;h3&gt;
  
  
  2. Keep Your &lt;code&gt;claude.md&lt;/code&gt; and &lt;code&gt;AGENTS.md&lt;/code&gt; Small
&lt;/h3&gt;

&lt;p&gt;I've seen developers create instruction files like this:&lt;/p&gt;

&lt;p&gt;Every line of that file gets loaded into context on every request. You're paying for it every time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8lugrp4nid647ww5lyim.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8lugrp4nid647ww5lyim.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your instruction file should point to information, not contain all of it.&lt;/p&gt;


&lt;h3&gt;
  
  
  3. Use CodeGraph Instead of Loading Entire Repos
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;The problem:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You ask about one function
AI reads 500 files to answer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The solution:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;CodeGraph indexes your repository and lets the AI retrieve only semantically relevant files , not everything.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F55nnag7r879hsumbjvzo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F55nnag7r879hsumbjvzo.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Potential reduction: &lt;strong&gt;30–70% less context per request.&lt;/strong&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  4. Use Context7 Instead of Pasting Documentation
&lt;/h3&gt;

&lt;p&gt;Raise your hand if you've done this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Pastes 40 pages of Next.js docs]
"Here's the documentation, now help me fix this routing issue"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Context7 MCP solves this. Instead of pasting entire docs, it fetches only the relevant section at the moment you need it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fac08712nf3d3g8vet7t6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fac08712nf3d3g8vet7t6.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Potential reduction: &lt;strong&gt;50–95% on documentation-heavy sessions.&lt;/strong&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  5. Compress Logs Before Sending Them
&lt;/h3&gt;

&lt;p&gt;Logs are the silent token killer. I learned this the hard way debugging a failed API integration.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8e3olp31sx28a3ftg4o4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8e3olp31sx28a3ftg4o4.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tools like RTK can summarize logs before they hit your context window.&lt;/p&gt;

&lt;p&gt;Potential reduction: &lt;strong&gt;80–99%.&lt;/strong&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  6. Reduce Verbose AI Responses
&lt;/h3&gt;

&lt;p&gt;Every word the AI writes today becomes part of your context tomorrow.&lt;/p&gt;

&lt;p&gt;Long responses → bigger context → slower next response → more tokens used → repeat.&lt;/p&gt;

&lt;p&gt;Ask for concise output explicitly:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fni8gfx6nchef3wkgg0hi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fni8gfx6nchef3wkgg0hi.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
Some tools like Caveman Mode enforce this automatically.&lt;/p&gt;




&lt;h3&gt;
  
  
  7. Use Session Handoffs
&lt;/h3&gt;

&lt;p&gt;Long sessions degrade. Not just in token cost , in quality too. The AI starts losing the thread.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My workflow now:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb0vqbw4926xmesuh1t19.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb0vqbw4926xmesuh1t19.png" alt=" " width="800" height="1200"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A fresh session with a clean summary outperforms a bloated long session every time.&lt;/p&gt;




&lt;h3&gt;
  
  
  8. Understand Prompt Caching (And Use It)
&lt;/h3&gt;

&lt;p&gt;Modern AI systems cache the beginning of your context so they don't reprocess it every time.&lt;/p&gt;

&lt;p&gt;Here's how it works:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftsziksuwxi0jxnnl3wlc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftsziksuwxi0jxnnl3wlc.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The key:&lt;/strong&gt; keep your system prompt and project instructions &lt;em&gt;stable&lt;/em&gt;. Every time you change them, you invalidate the cache and pay full price again.&lt;/p&gt;

&lt;p&gt;If you're building on the Anthropic API directly, prompt caching can reduce costs by up to 90% on repeated calls with the same context.&lt;/p&gt;




&lt;h3&gt;
  
  
  9. Learn Prefix Matching
&lt;/h3&gt;

&lt;p&gt;This is the mechanism behind prompt caching that most developers don't know about.&lt;/p&gt;

&lt;p&gt;AI systems cache context based on &lt;em&gt;matching prefixes&lt;/em&gt; , meaning the beginning of your prompt must be identical between requests to get cache benefits.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frwi36w9cv1p108j5ehdh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frwi36w9cv1p108j5ehdh.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Small edits to the top of your prompt destroy your cache. Put dynamic content &lt;em&gt;at the end&lt;/em&gt;, not the beginning.&lt;/p&gt;




&lt;h3&gt;
  
  
  10. Monitor Context Usage Like Infrastructure
&lt;/h3&gt;

&lt;p&gt;You monitor CPU. You monitor memory. You monitor database query times.&lt;/p&gt;

&lt;p&gt;Do you monitor token consumption? Most developers don't , until they hit a limit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9g5oduputnqouf2vt506.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9g5oduputnqouf2vt506.png" alt=" " width="800" height="640"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tools like Token Dashboard give you visibility into where tokens are actually going. You cannot optimize what you do not measure.&lt;/p&gt;




&lt;h3&gt;
  
  
  11. Audit Your MCP Servers
&lt;/h3&gt;

&lt;p&gt;MCP servers are powerful , they connect your AI to GitHub, Slack, Google Calendar, internal APIs, and more.&lt;/p&gt;

&lt;p&gt;But every connected tool adds to your context overhead, whether you use it in that session or not.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2v0f19uknx2g7eeg00fn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2v0f19uknx2g7eeg00fn.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
Do a quarterly audit. Remove what you don't use regularly. The tools you connect "just in case" are costing you on every request.&lt;/p&gt;




&lt;h3&gt;
  
  
  12. Stop Documentation Inflation
&lt;/h3&gt;

&lt;p&gt;This one is sneaky because it feels productive.&lt;/p&gt;

&lt;p&gt;You create &lt;code&gt;claude.md&lt;/code&gt;. Then you add more. Then &lt;code&gt;AGENTS.md&lt;/code&gt;. Then &lt;code&gt;project-rules.md&lt;/code&gt;. Each one grows over time because adding feels safer than removing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9gkf64fpbc4kecbx7vm1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9gkf64fpbc4kecbx7vm1.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The best instruction files are short, focused, structured, and easy to cache. Review them monthly and cut ruthlessly.&lt;/p&gt;




&lt;h3&gt;
  
  
  13. Use Model Tiering
&lt;/h3&gt;

&lt;p&gt;Not every task needs your most powerful (and expensive) model. I use a simple rule:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnvw476wr58ze3fi0scjw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnvw476wr58ze3fi0scjw.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Using a high-reasoning model to write a README is like hiring a senior architect to sweep the floor. Technically works. Expensive mistake.&lt;/p&gt;




&lt;h3&gt;
  
  
  14. Retrieve Context, Don't Dump It
&lt;/h3&gt;

&lt;p&gt;This is the mindset shift that matters most.&lt;/p&gt;

&lt;p&gt;Most developers think: &lt;em&gt;"I'll give the AI everything so it doesn't miss anything."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Context engineering says: &lt;em&gt;"I'll give the AI exactly what it needs for this specific task."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftsv4nuq9hzra33efrcch.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftsv4nuq9hzra33efrcch.png" alt=" " width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tools like CodeGraph, Context7, and RAG systems are built around this principle. The shift from dumping to retrieving is where most of your gains will come from.&lt;/p&gt;




&lt;h3&gt;
  
  
  15. Treat Token Consumption as an Infrastructure Cost
&lt;/h3&gt;

&lt;p&gt;I track cloud costs, API costs, and infrastructure expenses across my projects. AI token consumption belongs in that same category.&lt;/p&gt;

&lt;p&gt;Engineering teams that treat tokens like infrastructure will:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Spend less on AI subscriptions&lt;/li&gt;
&lt;li&gt;Get better and more consistent outputs&lt;/li&gt;
&lt;li&gt;Scale their AI usage without linear cost growth&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The teams that don't will keep hitting limits and blaming their plan tier.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Full Picture
&lt;/h2&gt;

&lt;p&gt;Here's how all 15 techniques map to the problem they solve:&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff82n478jxgj4jlt7g5jn.png" alt=" " width="800" height="1200"&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Recommended Tool Stack
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Repository search&lt;/td&gt;
&lt;td&gt;CodeGraph&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Documentation retrieval&lt;/td&gt;
&lt;td&gt;Context7 MCP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Log compression&lt;/td&gt;
&lt;td&gt;RTK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Concise responses&lt;/td&gt;
&lt;td&gt;Caveman Mode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Token monitoring&lt;/td&gt;
&lt;td&gt;Token Dashboard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Context management&lt;/td&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Planning&lt;/td&gt;
&lt;td&gt;Plan Mode&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Session optimization&lt;/td&gt;
&lt;td&gt;Session Handoff&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Final Thought
&lt;/h2&gt;

&lt;p&gt;Most developers focus on prompt engineering , &lt;em&gt;how to ask&lt;/em&gt; the AI better questions.&lt;/p&gt;

&lt;p&gt;The next competitive advantage is context engineering , &lt;em&gt;what the AI sees&lt;/em&gt; before you ask.&lt;/p&gt;

&lt;p&gt;I hit my Copilot limit twice in one day because I was treating a limited resource like it was unlimited. Once I started managing context deliberately, my sessions got longer, my answers got better, and I stopped upgrading plans as the solution to a problem that wasn't about the plan.&lt;/p&gt;

&lt;p&gt;The goal isn't to use more AI. It's to get more value from every token.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm MJ , Cofounder and Full-Stack Engineer at BeepLife, building healthcare technology in Toronto. I write about what I'm actually learning building with AI.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Found this useful? Follow me here or connect on &lt;a href="https://www.linkedin.com/in/majid-av/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt; and &lt;a href="https://x.com/devwithmj" rel="noopener noreferrer"&gt;X&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Skills.sh Is the npm Moment for AI Agents (And Most Developers Haven't Noticed)</title>
      <dc:creator>Majid Allahverdi</dc:creator>
      <pubDate>Tue, 16 Jun 2026 15:40:40 +0000</pubDate>
      <link>https://dev.to/majid_allahverdi_28cd42f2/skillssh-is-the-npm-moment-for-ai-agents-and-most-developers-havent-noticed-1aae</link>
      <guid>https://dev.to/majid_allahverdi_28cd42f2/skillssh-is-the-npm-moment-for-ai-agents-and-most-developers-havent-noticed-1aae</guid>
      <description>&lt;p&gt;I started building AI agents about two years ago. Not toy demos, actual production features inside a health-tech product. And every single project started the same way.&lt;/p&gt;

&lt;p&gt;Write the tool-calling wrapper. Handle the edge cases in structured output. Figure out how the agent should read a PDF without hallucinating page numbers. Build the retry logic. Wire up the logging.&lt;/p&gt;

&lt;p&gt;Same boilerplate. Every time. From scratch.&lt;/p&gt;

&lt;p&gt;The frustrating part is that every developer building agents is doing this too. Quietly. In their own repo. And nobody shares it.&lt;/p&gt;

&lt;p&gt;That is the real infrastructure problem in the agent space right now. Not the model. The model is fine. The problem is everything in between the model and a working agent.&lt;/p&gt;

&lt;p&gt;Skills.sh is trying to solve that. And after spending time with it, I think it has a real shot.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is the "agent infrastructure gap"?
&lt;/h2&gt;

&lt;p&gt;When npm launched, developers were already writing JavaScript. The language was not the bottleneck. The bottleneck was that every team was reinventing the same utilities and then never sharing them. npm gave the ecosystem a way to publish, discover, and install reusable logic.&lt;/p&gt;

&lt;p&gt;Agent development is in that same phase right now. The LLMs are capable enough. Claude, GPT-4, Gemini, they can all do the work. But the procedural knowledge layer, the "how to actually do this specific thing correctly," lives inside private codebases, personal notes, and Slack messages.&lt;/p&gt;

&lt;p&gt;How do you reliably parse a multi-page PDF inside an agent? How do you get consistent structured output from a chain of tool calls? How do you write a SKILL.md that actually teaches the agent something useful instead of being ignored?&lt;/p&gt;

&lt;p&gt;Everyone figures this out on their own. Nobody publishes it in a way other agents can consume.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Skills.sh actually is
&lt;/h2&gt;

&lt;p&gt;Skills.sh is an open ecosystem from Vercel for discovering, installing, and sharing reusable capabilities for AI agents.&lt;/p&gt;

&lt;p&gt;A skill is a &lt;code&gt;SKILL.md&lt;/code&gt; file. It is a markdown document with a small YAML frontmatter block at the top:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;my-skill&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;What this skill does and when to use it&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

&lt;span class="c1"&gt;# My Skill&lt;/span&gt;

&lt;span class="s"&gt;Instructions for the agent to follow when this skill is activated.&lt;/span&gt;

&lt;span class="c1"&gt;## When to use&lt;/span&gt;
&lt;span class="s"&gt;Describe the scenarios clearly.&lt;/span&gt;

&lt;span class="c1"&gt;## Steps&lt;/span&gt;
&lt;span class="s"&gt;1. First, do this&lt;/span&gt;
&lt;span class="s"&gt;2. Then, do that&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is it. Plain text. Version controlled. Shareable.&lt;/p&gt;

&lt;p&gt;To install a skill into your agent, you run one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx skills add anthropics/skills
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The CLI detects which coding agent you are using, and places the skill where that agent can find it. Claude Code, Cursor, GitHub Copilot, Windsurf, Codex, Gemini, VS Code, Cline. Over 38 agents supported. One skill works across all of them.&lt;/p&gt;

&lt;p&gt;The project is open source (MIT license) on GitHub at &lt;code&gt;vercel-labs/skills&lt;/code&gt;. The underlying specification was originally developed by Anthropic and released as an open standard in late 2025. Skills.sh is the directory and leaderboard built on top of that spec.&lt;/p&gt;




&lt;h2&gt;
  
  
  The numbers tell you this is already real
&lt;/h2&gt;

&lt;p&gt;I always check adoption numbers before deciding whether something is worth writing about. Early-adopter hype without traction is noise.&lt;/p&gt;

&lt;p&gt;Skills.sh currently shows over 91,000 total installs on the leaderboard. The top skill, &lt;code&gt;find-skills&lt;/code&gt; from Vercel Labs, has 1.4 million installs. Anthropic's &lt;code&gt;frontend-design&lt;/code&gt; skill has 391,000. Microsoft published a full suite of Azure skills that together have over 4.5 million installs.&lt;/p&gt;

&lt;p&gt;Look at who is publishing: Vercel, Anthropic, Microsoft, Supabase, Firebase, shadcn, Expo, Better Auth, Convex, Sentry, Firecrawl. These are production teams shipping and maintaining skills. Not weekend projects.&lt;/p&gt;

&lt;p&gt;The community side is growing too. Matt Pocock published TypeScript skills. Independent developers have published skills for debugging workflows, code review, TDD, and marketing automation. The long tail is filling in fast.&lt;/p&gt;

&lt;p&gt;This is not early-adopter hype. This is an ecosystem that has already moved past the "will it survive?" question.&lt;/p&gt;




&lt;h2&gt;
  
  
  What actually changes architecturally
&lt;/h2&gt;

&lt;p&gt;Here is the shift that I think matters most, and it is not about the tooling.&lt;/p&gt;

&lt;p&gt;The traditional approach to building agents is monolithic. You decide upfront what your agent can do, you build all of that in, and you ship it. If it needs a new capability, you go back into the codebase.&lt;/p&gt;

&lt;p&gt;Skills push you toward a composable model. Your agent starts minimal. It has a core set of instructions. Then it picks up capabilities based on what the project actually needs.&lt;/p&gt;

&lt;p&gt;Working on a Next.js project? Add &lt;code&gt;vercel-labs/next-skills&lt;/code&gt;. Need the agent to understand your Azure infrastructure? Add &lt;code&gt;microsoft/azure-skills&lt;/code&gt;. Want consistent TDD practices across your codebase? Add &lt;code&gt;mattpocock/skills&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The agent does not know about these capabilities until you install them. And when you switch projects, you install different skills. The agent adapts.&lt;/p&gt;

&lt;p&gt;I have been using Claude Code in my own projects, and this model changes how I think about agent setup. Instead of a long system prompt trying to encode everything, I have a small core instruction set and a set of skills that load in for specific contexts. It is cleaner. It is easier to maintain. And it is shareable, so the next project I start does not begin from zero.&lt;/p&gt;

&lt;p&gt;There is also a security dimension worth noting. Skills.sh runs routine audits on published skills and flags anything suspicious. The audits page shows ratings for every skill. In an ecosystem where anyone can publish, that matters.&lt;/p&gt;




&lt;h2&gt;
  
  
  A practical example: reading documents inside an agent
&lt;/h2&gt;

&lt;p&gt;One of the most painful things in early agent work is document handling. You want the agent to read a PDF and extract specific information. Sounds simple. In practice, agents hallucinate page numbers, misread tables, and lose track of multi-page structures constantly.&lt;/p&gt;

&lt;p&gt;Anthropic published a &lt;code&gt;pdf&lt;/code&gt; skill with 99,000 installs. It gives the agent a structured approach for reading and extracting from PDF documents. Install it once, and every project where you use that agent gets consistent document handling.&lt;/p&gt;

&lt;p&gt;Same thing for frontend work. The &lt;code&gt;frontend-design&lt;/code&gt; skill from Anthropic's team encodes design system constraints, typography rules, and component patterns. Instead of writing a long prompt that says "please use 14px font and no gradients," the skill handles it. And it is versioned, so when the guidelines update, you pull the latest version.&lt;/p&gt;

&lt;p&gt;This is what I mean by procedural knowledge. Not what the agent can do in theory. How it actually does specific things in practice.&lt;/p&gt;




&lt;h2&gt;
  
  
  How to try it right now
&lt;/h2&gt;

&lt;p&gt;If you are already using Claude Code, Cursor, Copilot, or any of the other supported agents, you can try this in under two minutes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx skills add anthropics/skills
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That installs Anthropic's official skill collection including &lt;code&gt;frontend-design&lt;/code&gt;, &lt;code&gt;pdf&lt;/code&gt;, &lt;code&gt;skill-creator&lt;/code&gt;, and others. The CLI will detect your agent and place them correctly.&lt;/p&gt;

&lt;p&gt;If you want to browse first, go to skills.sh and filter by topic or agent. The leaderboard shows install counts so you can see what the community actually uses rather than just what gets promoted.&lt;/p&gt;

&lt;p&gt;One more thing: if you build something useful and want to share it, publishing a skill is as simple as pushing a &lt;code&gt;SKILL.md&lt;/code&gt; file to a public GitHub repo. The ecosystem is open. The spec is public. You do not need permission to contribute.&lt;/p&gt;

&lt;p&gt;The npm moment for agent behaviour happened quietly. I would rather know about it earlier than later.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
