<?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>Forem: Leonardo Sampaio</title>
    <description>The latest articles on Forem by Leonardo Sampaio (@leosamp).</description>
    <link>https://forem.com/leosamp</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%2F3691397%2F3bfefa92-a1f4-42f1-bdf9-fc45805fbb83.png</url>
      <title>Forem: Leonardo Sampaio</title>
      <link>https://forem.com/leosamp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/leosamp"/>
    <language>en</language>
    <item>
      <title>Stop Rework: Spec-Driven Development Framework for AI Agents</title>
      <dc:creator>Leonardo Sampaio</dc:creator>
      <pubDate>Sat, 03 Jan 2026 14:34:26 +0000</pubDate>
      <link>https://forem.com/leosamp/ai-sdd-transform-ai-agents-into-spec-driven-developers-gmf</link>
      <guid>https://forem.com/leosamp/ai-sdd-transform-ai-agents-into-spec-driven-developers-gmf</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/mux-2025-12-03"&gt;DEV's Worldwide Show and Tell Challenge Presented by Mux&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;

&lt;iframe src="https://player.mux.com/sl9pUa2Q66hqckQI02QNfEQdppo4UaWS7Ty7tU02Fb9NE" width="710" height="399"&gt;
&lt;/iframe&gt;



&lt;/p&gt;

&lt;h2&gt;
  
  
  From Chat-Based Chaos to Spec-Driven Development
&lt;/h2&gt;

&lt;p&gt;AI agents generate code fast—but without structure, you get vague requirements, repeated mistakes, and costly rework. &lt;strong&gt;ai-sdd&lt;/strong&gt; brings engineering discipline to AI development.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;ai-sdd&lt;/strong&gt; transforms AI coding agents into spec-driven developers with one command.&lt;/p&gt;

&lt;p&gt;Install slash commands (&lt;code&gt;/sdd:spec-init&lt;/code&gt;, &lt;code&gt;/sdd:spec-requirements&lt;/code&gt;, &lt;code&gt;/sdd:spec-design&lt;/code&gt;, &lt;code&gt;/sdd:spec-impl&lt;/code&gt;) that enforce a proven four-phase workflow: &lt;strong&gt;Requirements → Design → Tasks → Implementation&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Works across 7 major AI platforms: Claude Code, Cursor, Gemini CLI, Codex CLI, GitHub Copilot, Qwen Code, and Windsurf.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The problems it solves&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;❌ &lt;strong&gt;Vague requirements&lt;/strong&gt; → AI generates wrong features&lt;/li&gt;
&lt;li&gt;❌ &lt;strong&gt;No approval gates&lt;/strong&gt; → Costly rework after implementation&lt;/li&gt;
&lt;li&gt;❌ &lt;strong&gt;Lost context&lt;/strong&gt; → Re-explaining architecture every session&lt;/li&gt;
&lt;li&gt;❌ &lt;strong&gt;Sequential execution&lt;/strong&gt; → Slow development cycles&lt;/li&gt;
&lt;li&gt;❌ &lt;strong&gt;Scattered specs&lt;/strong&gt; → No version control or traceability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The solution&lt;/strong&gt;: Structured specifications in &lt;code&gt;.sdd/&lt;/code&gt; directories. AI agents follow approval checkpoints, generate EARS-format requirements, and execute tasks in parallel—all with Git-friendly version control.&lt;/p&gt;




&lt;h3&gt;
  
  
  🔗 Links
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NPM&lt;/strong&gt;: &lt;a href="https://www.npmjs.com/package/ai-sdd" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/ai-sdd&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Book&lt;/strong&gt;: &lt;a href="https://www.amazon.com/AI-Assisted-SDD-Spec-Driven-Development-Gemini-ebook/dp/B0CW19YX9R" rel="noopener noreferrer"&gt;AI-Assisted SDD on Amazon&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🚀 Quick Start
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx ai-sdd  &lt;span class="c"&gt;# Choose your platform&lt;/span&gt;

&lt;span class="c"&gt;# Then in your AI agent:&lt;/span&gt;
/sdd:spec-init &lt;span class="s2"&gt;"user authentication with OAuth2"&lt;/span&gt;
/sdd:spec-requirements user-auth
/sdd:spec-design user-auth
/sdd:spec-tasks user-auth
/sdd:spec-impl user-auth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Zero configuration. No credentials required.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Story Behind It
&lt;/h2&gt;

&lt;p&gt;As a &lt;strong&gt;Principal Architect/Developer&lt;/strong&gt;, I watched teams waste weeks on features that should take hours—not from lack of AI capability, but from lack of &lt;strong&gt;structure&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;AI agents would generate code without understanding requirements. Teams would discover misalignments after implementation. Architecture decisions got lost between sessions. No approval gates meant costly rework.&lt;/p&gt;

&lt;p&gt;I realized AI agents needed what engineering teams use every day: &lt;strong&gt;spec-first development with approval checkpoints&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So I built two things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The methodology&lt;/strong&gt;: Published &lt;a href="https://www.amazon.com/AI-Assisted-SDD-Spec-Driven-Development-Gemini-ebook/dp/B0CW19YX9R" rel="noopener noreferrer"&gt;"AI-Assisted SDD"&lt;/a&gt;—adapting traditional software engineering practices for AI agents.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The framework&lt;/strong&gt;: Built &lt;strong&gt;ai-sdd&lt;/strong&gt; to implement this across all major platforms, giving teams immediate adoption.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now features that took weeks take hours—with higher quality and full traceability.&lt;/p&gt;




&lt;h2&gt;
  
  
  Technical Highlights
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Stack&lt;/strong&gt;: Node.js/TypeScript CLI with custom template engine (7 platforms × 12 languages = 84 configurations).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key Innovations&lt;/strong&gt;:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. EARS-Format Requirements
&lt;/h3&gt;

&lt;p&gt;Unambiguous specifications AI agents understand perfectly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WHEN [trigger]
THEN the system SHALL [action]
WHERE [constraints]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No vague requirements. No misaligned implementations.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Approval Checkpoints
&lt;/h3&gt;

&lt;p&gt;Three-phase gates: Requirements → Design → Tasks. AI cannot implement until you approve. &lt;strong&gt;Prevents costly rework.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Project Memory
&lt;/h3&gt;

&lt;p&gt;Architecture, patterns, and decisions persist in &lt;code&gt;.sdd/steering/&lt;/code&gt; files. AI loads context automatically—no re-explaining needed.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Parallel Execution
&lt;/h3&gt;

&lt;p&gt;Tasks marked &lt;code&gt;(P)&lt;/code&gt; with automatic dependency tracking. Maximum efficiency.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Git-Friendly Specs
&lt;/h3&gt;

&lt;p&gt;Markdown files in &lt;code&gt;.sdd/specs/&lt;/code&gt;. Version control, code review, collaboration—just like your code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why It's Unique&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;First unified SDD tool across 7 AI platforms&lt;/li&gt;
&lt;li&gt;Methodology-backed by published book&lt;/li&gt;
&lt;li&gt;Zero configuration, local-first&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Use of Mux
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Mux Features Used&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Video Hosting&lt;/strong&gt;: Uploaded 1920x1080 video with automatic adaptive bitrate streaming + CDN&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Captioning&lt;/strong&gt;: One-click generation (~95% accuracy), manual corrections for technical terms&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI Transcript&lt;/strong&gt;: SEO-friendly content reused in this post and social media&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Seamless Embed&lt;/strong&gt;: HTML iframe worked perfectly on DEV.to&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Developer Experience&lt;/strong&gt;: Sign up (free) → Upload → Enable AI features (one click) → Copy playback ID. Done in 5 minutes.&lt;/p&gt;




&lt;h2&gt;
  
  
  Key Benefits
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Traditional AI Dev&lt;/th&gt;
&lt;th&gt;With ai-sdd&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;❌ Vague requirements&lt;/td&gt;
&lt;td&gt;✅ EARS-format precision&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;❌ No approval gates&lt;/td&gt;
&lt;td&gt;✅ Validate before implementation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;❌ Lost context&lt;/td&gt;
&lt;td&gt;✅ Persistent project memory&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;❌ Scattered specs&lt;/td&gt;
&lt;td&gt;✅ Git-friendly version control&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;❌ Sequential execution&lt;/td&gt;
&lt;td&gt;✅ Parallel task execution&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  Try ai-sdd Today
&lt;/h2&gt;

&lt;p&gt;Stop wasting weeks on rework. Start with specs, end with quality code.&lt;br&gt;
&lt;/p&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-project-directory
npx ai-sdd
/sdd:spec-init &lt;span class="s2"&gt;"your feature description"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;&lt;strong&gt;What's your biggest AI development challenge?&lt;/strong&gt; Share below! 👇&lt;/p&gt;




</description>
      <category>devchallenge</category>
      <category>muxchallenge</category>
      <category>showandtell</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
