<?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: Patrick Sardinha</title>
    <description>The latest articles on DEV Community by Patrick Sardinha (@patrick_sardinha).</description>
    <link>https://dev.to/patrick_sardinha</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%2F3955214%2F8b11980d-4225-4e64-bc64-c3543715488a.jpg</url>
      <title>DEV Community: Patrick Sardinha</title>
      <link>https://dev.to/patrick_sardinha</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/patrick_sardinha"/>
    <language>en</language>
    <item>
      <title>I built a CLI that scaffolds agentic workflows for Claude Code</title>
      <dc:creator>Patrick Sardinha</dc:creator>
      <pubDate>Wed, 27 May 2026 22:08:11 +0000</pubDate>
      <link>https://dev.to/patrick_sardinha/i-built-a-cli-that-scaffolds-agentic-workflows-for-claude-code-328c</link>
      <guid>https://dev.to/patrick_sardinha/i-built-a-cli-that-scaffolds-agentic-workflows-for-claude-code-328c</guid>
      <description>&lt;p&gt;Most developers using Claude Code work the same way: one long conversation, manual prompting between tasks, context that grows until the model loses track of what it was doing. It works — but it doesn't scale.&lt;/p&gt;

&lt;p&gt;I built AgentKit to fix this. It's a CLI that generates the orchestration layer for any project: the files that tell Claude Code who to be, what to build, and how to hand off work between specialized agents — automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;You write a plain-language blueprint describing what you want to build:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Todo App — Blueprint&lt;/span&gt;

&lt;span class="gu"&gt;## Goal&lt;/span&gt;
A simple web todo app with task creation, completion, and filtering.

&lt;span class="gu"&gt;## Tech constraints&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Next.js 14 + TypeScript + Tailwind
&lt;span class="p"&gt;-&lt;/span&gt; localStorage for persistence, no backend
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;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 @patricksardinha/agentkit-cli init &lt;span class="nt"&gt;--blueprint&lt;/span&gt; PROJECT_BLUEPRINT.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;AgentKit generates four files:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CLAUDE.md&lt;/strong&gt; — the standing brief every agent reads before starting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AGENT_WORKFLOW.md&lt;/strong&gt; — a placeholder Claude Code fills during Phase 0&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PLAYBOOK.md&lt;/strong&gt; — the autonomous execution engine&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;README.md&lt;/strong&gt; — project documentation extracted from your blueprint&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then you open Claude Code and type one instruction:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Read PLAYBOOK.md and execute the procedure.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What happens next
&lt;/h2&gt;

&lt;p&gt;Claude Code runs in three phases automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phase 0 — Decomposition&lt;/strong&gt;: it reads your blueprint and proposes a list of specialized agents. You validate before anything gets built.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Skills enrichment pause&lt;/strong&gt;: Claude Code creates the agent folders and waits. You can drop API docs, schemas, or any context files into the relevant agent folder before execution starts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phase 1 — Execution&lt;/strong&gt;: each agent runs in sequence, validates its success criterion, retries on failure, and escalates to you only when genuinely blocked.&lt;/p&gt;

&lt;h2&gt;
  
  
  A real example
&lt;/h2&gt;

&lt;p&gt;I used AgentKit to build DevLog Desktop — a Tauri v2 app with local RAG via Ollama.&lt;/p&gt;

&lt;p&gt;Result after one Claude Code session:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;6 agents executed autonomously&lt;/li&gt;
&lt;li&gt;68 tests passing&lt;/li&gt;
&lt;li&gt;Windows installer produced (MSI + NSIS)&lt;/li&gt;
&lt;li&gt;Full EN/FR i18n, dark mode, semantic search&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Design choices
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;No AI inside the tool.&lt;/strong&gt; AgentKit is purely structural — it generates markdown files. The intelligence lives in Claude Code, not in AgentKit. This means no API key, no costs, no vendor lock-in.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Phase 0 always runs.&lt;/strong&gt; Most developers don't know how to optimally split work into agents. AgentKit delegates that decision to Claude Code every time, whether or not you provide a blueprint. You describe intent, Claude Code designs the structure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stack detection first, interactive fallback.&lt;/strong&gt; AgentKit reads your project directory to detect the stack. If nothing is found (new empty project), it asks you interactively from a list of supported stacks: React, Next.js, Tauri, FastAPI, Express, Node.js.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# On any project (empty or existing)&lt;/span&gt;
npx @patricksardinha/agentkit-cli init

&lt;span class="c"&gt;# With a blueprint&lt;/span&gt;
npx @patricksardinha/agentkit-cli init &lt;span class="nt"&gt;--blueprint&lt;/span&gt; PROJECT_BLUEPRINT.md

&lt;span class="c"&gt;# Add a feature to an existing project&lt;/span&gt;
npx @patricksardinha/agentkit-cli add &lt;span class="nt"&gt;--feature&lt;/span&gt; &lt;span class="s2"&gt;"add dark mode"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub: &lt;a href="https://github.com/patricksardinha/agentkit-cli" rel="noopener noreferrer"&gt;https://github.com/patricksardinha/agentkit-cli&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;npm: &lt;a href="https://www.npmjs.com/package/@patricksardinha/agentkit-cli" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@patricksardinha/agentkit-cli&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>cli</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
