<?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: Alexandru Cioc</title>
    <description>The latest articles on DEV Community by Alexandru Cioc (@whitehatd).</description>
    <link>https://dev.to/whitehatd</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%2F3862914%2F68aa569c-60f7-454a-83b4-4aba0eab6f06.png</url>
      <title>DEV Community: Alexandru Cioc</title>
      <link>https://dev.to/whitehatd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/whitehatd"/>
    <language>en</language>
    <item>
      <title>I stopped copy-pasting my lint rules into 12 different config files</title>
      <dc:creator>Alexandru Cioc</dc:creator>
      <pubDate>Mon, 06 Apr 2026 00:29:44 +0000</pubDate>
      <link>https://dev.to/whitehatd/i-stopped-copy-pasting-my-lint-rules-into-12-different-config-files-13b2</link>
      <guid>https://dev.to/whitehatd/i-stopped-copy-pasting-my-lint-rules-into-12-different-config-files-13b2</guid>
      <description>&lt;p&gt;Every project I work on has the same problem: my lint/test/build rules exist in my CI workflow, my pre-commit hook, my &lt;code&gt;.cursorrules&lt;/code&gt;, my &lt;code&gt;AGENTS.md&lt;/code&gt;, my &lt;code&gt;GEMINI.md&lt;/code&gt;, and 7 more files. When I change a rule in one place, the others drift.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://github.com/WhitehatD/crag" rel="noopener noreferrer"&gt;crag&lt;/a&gt; to fix this.&lt;/p&gt;

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

&lt;p&gt;You write one ~20-line &lt;code&gt;governance.md&lt;/code&gt;. crag compiles it to 12 downstream files atomically:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.github/workflows/gates.yml&lt;/code&gt; (GitHub Actions)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.husky/pre-commit&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.pre-commit-config.yaml&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AGENTS.md&lt;/code&gt; (Codex, Aider, Factory)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.cursor/rules/governance.mdc&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;GEMINI.md&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.github/copilot-instructions.md&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.clinerules&lt;/code&gt;, &lt;code&gt;.continuerules&lt;/code&gt;, &lt;code&gt;.windsurfrules&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.zed/rules.md&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;.sourcegraph/cody-instructions.md&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Change one line, regenerate everything.&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @whitehatd/crag demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No install. No config. No network. No LLM. ~500ms to a verified&lt;br&gt;
12-target pipeline with a determinism SHA printed inline.&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.amazonaws.com%2Fuploads%2Farticles%2Frdb7vopnwrda3lxcnc3p.gif" 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.amazonaws.com%2Fuploads%2Farticles%2Frdb7vopnwrda3lxcnc3p.gif" alt="npx @whitehatd/crag demo Usage" width="960" height="540"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What backs it up
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;512 tests passing across Ubuntu + macOS + Windows × Node 18/20/22&lt;/li&gt;
&lt;li&gt;Stress-tested on 101 OSS repos (4,400 invocations, 0 crashes)&lt;/li&gt;
&lt;li&gt;Reference benchmark: 40/40 Grade A on ship-ready governance&lt;/li&gt;
&lt;li&gt;Deterministic: same input → byte-identical output, SHA-verified on every CI push across 9 runners&lt;/li&gt;
&lt;li&gt;Zero runtime dependencies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/WhitehatD/crag" rel="noopener noreferrer"&gt;https://github.com/WhitehatD/crag&lt;/a&gt;&lt;br&gt;
npm: &lt;a href="https://www.npmjs.com/package/@whitehatd/crag" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@whitehatd/crag&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;MIT licensed. If you use more than one AI coding tool alongside CI,&lt;br&gt;
this is for you.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;code&gt;devtools&lt;/code&gt;, &lt;code&gt;opensource&lt;/code&gt;, &lt;code&gt;javascript&lt;/code&gt;, &lt;code&gt;ai&lt;/code&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>productivity</category>
      <category>showdev</category>
      <category>tooling</category>
    </item>
  </channel>
</rss>
