<?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: Pedro Castanheira Costa</title>
    <description>The latest articles on DEV Community by Pedro Castanheira Costa (@pedrocastanha).</description>
    <link>https://dev.to/pedrocastanha</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%2F4028687%2Fb3d94e45-a9c9-4d44-acc3-0330cdc32e25.jpg</url>
      <title>DEV Community: Pedro Castanheira Costa</title>
      <link>https://dev.to/pedrocastanha</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pedrocastanha"/>
    <language>en</language>
    <item>
      <title>Stop re-explaining your codebase to every AI agent — `cast-skills`</title>
      <dc:creator>Pedro Castanheira Costa</dc:creator>
      <pubDate>Wed, 15 Jul 2026 01:12:25 +0000</pubDate>
      <link>https://dev.to/pedrocastanha/stop-re-explaining-your-codebase-to-every-ai-agent-cast-skills-3dac</link>
      <guid>https://dev.to/pedrocastanha/stop-re-explaining-your-codebase-to-every-ai-agent-cast-skills-3dac</guid>
      <description>&lt;h1&gt;
  
  
  The annoying part of AI coding tools
&lt;/h1&gt;

&lt;p&gt;Every session, the agent forgets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;your module boundaries
&lt;/li&gt;
&lt;li&gt;the “every user belongs to an org” rule that lives in nobody’s file
&lt;/li&gt;
&lt;li&gt;which service emits which event
&lt;/li&gt;
&lt;li&gt;how &lt;em&gt;you&lt;/em&gt; want features built (tests first? spec first? conventions?)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So you re-explain. It rewrites. Context drifts. Tokens burn.&lt;/p&gt;

&lt;p&gt;Dumping a 40k-token &lt;code&gt;AGENTS.md&lt;/code&gt; into every prompt is not a strategy. It’s a tax.&lt;/p&gt;

&lt;p&gt;I wanted something simpler: &lt;strong&gt;write project knowledge once&lt;/strong&gt;, in a format agents already understand, and install it into &lt;strong&gt;every tool I actually use&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That’s &lt;a href="https://github.com/pedrocastanha/cast-skills" rel="noopener noreferrer"&gt;&lt;code&gt;cast-skills&lt;/code&gt;&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;






&lt;h2&gt;
  
  
  What it is
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;cast-skills&lt;/code&gt; is a small CLI that bootstraps &lt;strong&gt;cross-tool AI skills&lt;/strong&gt; for your machine (or project):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Skill&lt;/th&gt;
&lt;th&gt;Job&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;using-project-skills&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Always-on router. When you start a feature/fix/refactor, it loads project context and routes work through the right module + workflow.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;creating-project-skills&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Bootstrapper (&lt;code&gt;/skill-creator&lt;/code&gt;). Reads the repo, asks sharp questions, generates a project skill tree.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;&lt;code&gt;explaining-changes&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;After non-trivial work, offers a beginner-friendly explanation (ELI5 → runtime) as Markdown/HTML.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Skills use the open &lt;a href="https://agentskills.io" rel="noopener noreferrer"&gt;&lt;code&gt;SKILL.md&lt;/code&gt;&lt;/a&gt; format — progressive disclosure: the agent loads what it needs, not your entire wiki every turn.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;cast-skills is built around Anthropic's Agent Skills approach: instead of loading one massive prompt every session, the agent progressively loads only the knowledge it needs.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  One install. Six tools.
&lt;/h2&gt;

&lt;p&gt;The wizard auto-detects what you have and drops skills in the right place:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Where it goes&lt;/th&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;native &lt;code&gt;SKILL.md&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub Copilot&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.copilot/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;native&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini CLI&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.gemini/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;native&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.agents/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;native&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.cursor/skills/&lt;/code&gt; (project)&lt;/td&gt;
&lt;td&gt;converted &lt;code&gt;.mdc&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windsurf&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.windsurf/rules/&lt;/code&gt; (project)&lt;/td&gt;
&lt;td&gt;converted rules&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Native tools get &lt;code&gt;SKILL.md&lt;/code&gt; as-is. Cursor/Windsurf get an auto-converted format so you’re not maintaining six copies by hand.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx cast-skills
&lt;span class="c"&gt;# or&lt;/span&gt;
npm i &lt;span class="nt"&gt;-g&lt;/span&gt; cast-skills &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; cast-skills
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Requires Node ≥ 18.&lt;/p&gt;




&lt;h2&gt;
  
  
  How a normal feature run feels
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;You say: “add X / fix Y / refactor Z”
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;using-project-skills&lt;/code&gt;&lt;/strong&gt; loads domain + stack + conventions
&lt;/li&gt;
&lt;li&gt;It pulls the &lt;strong&gt;module-level&lt;/strong&gt; skill for the code you’re touching
&lt;/li&gt;
&lt;li&gt;Work is steered through a &lt;strong&gt;spec-driven&lt;/strong&gt; path (spec → failing tests → implement) when that workflow exists
&lt;/li&gt;
&lt;li&gt;After a real change, &lt;strong&gt;&lt;code&gt;explaining-changes&lt;/code&gt;&lt;/strong&gt; can leave a human-readable write-up&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The point isn’t another chatbot persona. It’s &lt;strong&gt;stable project memory&lt;/strong&gt; that survives sessions and tools.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why I didn’t make this Claude-only
&lt;/h2&gt;

&lt;p&gt;Most of us don’t live in one harness.&lt;/p&gt;

&lt;p&gt;Monday: Claude Code.&lt;br&gt;&lt;br&gt;
Tuesday: Cursor on a design-heavy UI.&lt;br&gt;&lt;br&gt;
Wednesday: Copilot in a boring enterprise repo.&lt;/p&gt;

&lt;p&gt;If “project brain” only works in one tool, you still re-explain on Tuesday.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cast-skills&lt;/code&gt; optimizes for &lt;strong&gt;write once → run everywhere that speaks skills/rules&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What this is &lt;em&gt;not&lt;/em&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Not a full coding agent (that’s a different product surface)
&lt;/li&gt;
&lt;li&gt;Not magic RAG over your monorepo (skills are curated knowledge, not automatic embeddings)
&lt;/li&gt;
&lt;li&gt;Not a replacement for good architecture — garbage conventions in → garbage guidance out
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your team has no conventions, the bootstrapper will still force a few useful questions. That’s a feature.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try it in 30 seconds
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;your-repo
npx cast-skills
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pick the tools you use → let it install the three skills → start a real task and see if the agent stops inventing your architecture from scratch.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/pedrocastanha/cast-skills" rel="noopener noreferrer"&gt;github.com/pedrocastanha/cast-skills&lt;/a&gt;&lt;br&gt;&lt;br&gt;
npm: &lt;a href="https://www.npmjs.com/package/cast-skills" rel="noopener noreferrer"&gt;npmjs.com/package/cast-skills&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Feedback I actually want
&lt;/h2&gt;

&lt;p&gt;If you try it, tell me:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Which tool combo you use (e.g. Claude + Cursor)
&lt;/li&gt;
&lt;li&gt;Whether the wizard put files in the right paths
&lt;/li&gt;
&lt;li&gt;One rule your team has that &lt;em&gt;should&lt;/em&gt; be a skill but isn’t obvious
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Issues and PRs welcome — especially path fixes for tool updates (these CLIs move the goalposts often).&lt;/p&gt;




</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>agentskills</category>
    </item>
  </channel>
</rss>
