<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bharath on Medium]]></title>
        <description><![CDATA[Stories by Bharath on Medium]]></description>
        <link>https://medium.com/@bharath97?source=rss-fd7338a120a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jIwAYw9ku7CjXY5amg5jOA.jpeg</url>
            <title>Stories by Bharath on Medium</title>
            <link>https://medium.com/@bharath97?source=rss-fd7338a120a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:58:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bharath97/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Use AI for Project Planning (Not Just Code) with Spec Kit]]></title>
            <link>https://medium.com/@bharath97/how-to-use-ai-for-project-planning-not-just-code-with-spec-kit-6b4cd2336f5f?source=rss-fd7338a120a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b4cd2336f5f</guid>
            <category><![CDATA[github-spec-kit]]></category>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[spec-driven-development]]></category>
            <category><![CDATA[spec-kit]]></category>
            <category><![CDATA[project-planning]]></category>
            <dc:creator><![CDATA[Bharath]]></dc:creator>
            <pubDate>Mon, 04 May 2026 08:15:21 GMT</pubDate>
            <atom:updated>2026-05-04T08:15:21.590Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Writing Code to Writing Prompts</h3><p>Think about how we used to build software.</p><p>Ten years ago, you opened a file and typed every line yourself. Five years ago, autocomplete got smart enough to finish your sentences. Two years ago, you could describe a function in English and get working code back.</p><p>Now? The shift goes even further. We’re not just writing prompts that generate code. We’re writing prompts that generate <em>plans</em>. Prompts that generate <em>specifications</em>. Prompts that talk to your GitHub repos, pull data from your Jira board, and check your design files — all through connected tools the AI can use on its own.</p><p>The job is changing. It’s less about typing syntax and more about clearly describing <em>what you want</em>. The developers who benefit the most from AI aren’t the ones who ask it to write functions. They’re the ones who use it to organize their thinking before they start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*tyD-owTtWIAUxWE0iwWgww.jpeg" /></figure><p>That’s what this article is about. Not AI-generated code. AI-assisted <em>planning</em> — and how connected tools make it way more useful than you’d expect.</p><h3>Planning Is the Part We All Skip</h3><p>Be honest. When was the last time you planned a project properly before jumping into code?</p><p>Most of us start with a vague idea, open the IDE, and figure it out as we go. It works fine for small things. But on bigger projects, that approach has a way of punching you in the face around week three — when you realize your “plan” was just a list of hopes, and half of them contradict each other.</p><p>I had a project like that. I work on an Android design system — a shared library of UI components, design tokens (colors, fonts, spacing), and visual assets (icons, flags, logos) that multiple apps depend on. Think of it as a toolkit that keeps all of a company’s apps looking and behaving consistently.</p><p>The problem: this toolkit was split across three separate codebases. One repo for the design tokens, one for the visual assets, one for the UI components. Over a thousand files total. Multiple app teams already depending on all three. If I broke an import path or changed how a token was named, their builds would fail.</p><p>So instead of winging it, I tried planning — but with AI doing the heavy lifting. Not writing code. Just helping me <em>think through the mess</em> before touching anything.</p><p>This article walks through that process step by step. No jargon. No magic. Just a method that worked, and the parts you can use on your own projects.</p><h3>The Idea: Let AI Poke Holes in Your Plan</h3><p>The tool is called SpecKit. Let me explain what it actually is, because it’s not a chatbot — it’s a system of specialized AI agents that live inside your IDE.</p><h3>What SpecKit Is</h3><p>SpecKit is a set of AI agents that run inside your IDE (via GitHub Copilot’s agent mode). Each agent has a single job, and they pass context to each other through markdown files in your repo. There’s no external service, no cloud dashboard. Everything lives in your codebase.</p><p>The agents:</p><ul><li>/speckit.specify — Takes a plain-language description of what you want to build. Produces a structured spec.md with user stories, acceptance criteria, edge cases, and requirements. Each user story is prioritized (P1, P2, P3...) and designed to be independently testable — so even if you only build Story 1, you have a working, shippable thing.</li><li>/speckit.plan — Reads the spec. Produces a plan.md with architecture decisions, phase ordering, dependency graph, file structure, and technical constraints. Before it starts, it runs a constitution check — validating that every decision aligns with your project&#39;s core principles (more on that later).</li><li>/speckit.tasks — Reads the spec and plan. Produces a tasks.md with ordered, tagged tasks. Each task says which user story it belongs to, whether it can run in parallel with other tasks ([P] tag), which files it touches, and what Jira ticket it maps to.</li><li>/speckit.analyze — This is the auditor. It reads all three documents and cross-checks them: requirements with no tasks, tasks with no requirements, vague terms without measurable criteria, constitution violations. It produces a report but <em>doesn&#39;t change anything</em> — it&#39;s read-only by design.</li><li>/speckit.clarify — Reads the spec and asks you up to 5 targeted questions about underspecified areas. Your answers get written back into the spec. Think of it as the agent saying &quot;you left these parts vague — let&#39;s fix that.&quot;</li><li>/speckit.implement — Reads the task list and executes tasks one by one, marking them done as it goes. This is the only agent that actually writes code.</li><li>/speckit.constitution — Creates or updates the project constitution — the set of rules every other agent checks against.</li><li>/speckit.checklist — Generates custom checklists (QA, security, launch readiness — whatever you ask for) based on the feature context.</li></ul><h3>How Context Flows Between Agents</h3><p>This is the part that makes it work. Each agent doesn’t start from scratch — it reads the output of the agents before it.</p><pre>You (one sentence) <br>  → /speckit.specify → spec.md<br>    → /speckit.plan → plan.md (checks constitution.md)  <br>      → /speckit.tasks → tasks.md (reads spec.md + plan.md)<br>        → /speckit.analyze → report (reads all three, changes nothing)<br>          → /speckit.implement → actual code (follows tasks.md)</pre><p>All of this lives in a specs/ folder inside your repo:</p><pre>specs/001-my-feature/<br>├── spec.md          # What to build (user stories, requirements)<br>├── plan.md          # How to build it (architecture, phases)<br>├── tasks.md         # Step-by-step execution plan<br>├── research.md      # Technical research and decisions<br>├── diary.md         # Implementation log<br>└── checklists/      # Generated checklists</pre><p>The .specify/ folder at the repo root holds the templates, scripts, and the constitution:</p><pre>.specify/<br>├── memory/<br>│   └── constitution.md    # Project principles (shared across features)<br>├── templates/             # Templates each agent uses<br>│   ├── spec-template.md<br>│   ├── plan-template.md<br>│   └── tasks-template.md<br>└── scripts/               # Shell scripts for validation</pre><p>Because everything is markdown files in your repo, you get version control for free. You can diff your spec. You can see what changed in the plan between commits. You can PR a task list. It’s just files.</p><h3>The Agents Use Real Tools, Not Just Text</h3><p>Here’s the part that separates this from “paste your plan into ChatGPT.”</p><p>SpecKit agents connect to external services through MCP — Model Context Protocol. MCP is an open standard that lets AI agents call tools — the same way a developer would open GitHub or check Jira, but programmatically, mid-conversation.</p><p>GitHub MCP: During my project, the agents needed to understand the structure of three source repositories before generating the migration plan. Instead of me describing the repos from memory, the agent called mcp_github_get_file_contents to browse directories, read build files, list source code, and check commit history — directly from the source repos. When it generated a task like &quot;extract token generation plugins from the source repo,&quot; it had already read the actual plugin files. It knew what was there.</p><p>Jira/Atlassian MCP: Every phase in the task list mapped to a Jira ticket. The agents could read existing tickets, create new ones, update statuses, and add comments — without me switching to the Jira browser tab. The spec even has a table at the top mapping each user story to its Jira ticket, and those links were populated through the MCP connection.</p><p>Figma MCP: There’s also a Figma server for pulling design specs and component metadata directly into your planning context — useful when your spec needs to reference specific design tokens or component APIs from the design source.</p><p>Why this changes things:</p><p>Without MCP, AI planning is based on what you <em>tell</em> it. You describe your repo from memory, summarize your ticket board, paraphrase the design file. Every time you summarize, you lose detail and forget things.</p><p>With MCP, the agent works from the source. It reads the actual build file, not your description of it. Plans built on real data have fewer surprises during implementation.</p><p>A simple way to think about it: MCP turns the AI from someone you’re briefing over the phone into someone sitting at the next desk with the same tools open.</p><p>Now that you know what SpecKit is and how it works, let me walk through the five steps using my actual project.</p><h3>Step 1: Describe What You Want. Get Back What You Missed.</h3><p>I wrote one sentence describing my project. Something like “merge three Android design system repositories into one, with selective dependencies, automated publishing, and CI.”</p><p>The AI came back with 10 user stories, each with specific acceptance criteria. But the useful part wasn’t what it wrote — it was the questions it raised that I hadn’t thought about:</p><ul><li>What if an app only needs icons but not flags or logos? Does the architecture let them pick just what they need, so they’re not shipping unused assets?</li><li>When you move code into the new repo, will existing apps break because the import paths changed?</li><li>How do you test migrating the tokens without waiting for the components to be migrated too?</li></ul><p>These are all things I would have figured out eventually. The difference is <em>when</em>. Finding them in a spec document costs you five minutes. Finding them three weeks into implementation costs you days.</p><p>If you take one thing from this article: Don’t accept the first spec the AI generates. Push back. Say “this isn’t specific enough” or “what about the case where X happens.” The AI gets better when you argue with it.</p><h3>Step 2: A Plan With Guardrails</h3><p>The spec feeds into a plan. Architecture choices, phase ordering, what depends on what.</p><p>But here’s the part I didn’t expect to be useful: the project constitution.</p><p>It’s just a short list of rules that the project can’t break. For a design system migration, mine were:</p><ul><li>Don’t change how any component looks or behaves — apps using the current library shouldn’t see any visual difference</li><li>Every module (tokens, icons, components, etc.) has to work on its own, so apps can depend on just what they need</li><li>Shared design tokens must actually work across all components</li><li>Accessibility standards (screen reader support, touch targets, contrast) can’t regress — this is a design system, so every app inherits what we ship</li><li>The developer experience has to get better, not worse — consuming these libraries should be simpler after the migration</li></ul><p>Simple stuff, right? But here’s what happens without them: you make a decision in Phase 3 that quietly breaks a rule you set in Phase 1. Nobody notices because the person making the Phase 3 decision (you, three weeks later) has forgotten why the Phase 1 rule existed.</p><p>The constitution is a checklist that runs automatically. Every time the plan changes, it gets checked. A proposal that makes the developer setup harder? Flagged. A phase ordering that creates a circular dependency? Caught.</p><p>Tip: Keep it short. 3–7 rules max. If a rule isn’t something you’d block a PR over, it doesn’t belong here.</p><h3>Step 3: Tasks That Actually Tell You What to Do</h3><p>This is where things clicked for me.</p><p>The plan breaks down into tasks. Not “migrate the tokens module” — that’s a project, not a task. Real tasks. Like:</p><ul><li>“Create build plugin for library modules”</li><li>“Split visual assets into three separate modules: icons, flags, logos” (so apps can ship only what they use)</li><li>“Configure preflight job for branch validation”</li></ul><p>Each task has metadata: which user story it belongs to, whether it can run in parallel with other tasks, which files it touches, and what needs to be done before it.</p><p>My project had about 300 of these, across 11 phases.</p><p>You know that feeling where you sit down to work and spend 30 minutes just figuring out <em>what</em> to do next? That went away. I’d open the task list, pick the next one, and start. No context-switching tax.</p><p>Tip: If a task doesn’t tell you which file to open, it’s too vague. Make the AI be more specific.</p><h3>Step 4: The Part Most People Skip (Don’t)</h3><p>Before you write any code, run a cross-check across everything you’ve produced. The analysis looks for:</p><ul><li>Requirements that don’t have any tasks assigned to them</li><li>Tasks that contradict other tasks</li><li>Vague words like “fast” or “scalable” that don’t have a number attached</li><li>Anything that violates your constitution</li></ul><p>This is the cheapest stage in the whole process. Fixing a gap in a document takes seconds. Fixing that same gap during implementation takes hours — or worse, you don’t find it until something breaks in production.</p><p>In my project, the analysis caught that CI/CD requirements had almost no task coverage. All the functional stuff was covered. The infrastructure? Barely mentioned. Without this step, I would have been building the release pipeline at 11 PM the night before deadline.</p><p>Tip: Non-functional requirements (performance, security, CI/CD) are the ones most likely to fall through the cracks. Check those first.</p><h3>Step 5: Build With a Map</h3><p>Now you actually code. But the experience is completely different.</p><p>You’re not making architectural decisions while coding. Those are done. You’re not wondering if this task will conflict with something three phases away. That was already checked. You’re just… executing. Clearly.</p><p>And when something goes wrong (it will), you know exactly what the plan expected, so you can see where reality diverged and decide what to adjust.</p><h3>The Part Everyone Gets Wrong: CI/CD</h3><p>Let me zoom in on one example that shows why this method matters.</p><p>Most teams build the product first, then bolt on CI and release automation at the end. You know how that goes — the pipeline is a mess of copied YAML files, the release process is tribal knowledge, and nobody is quite sure what triggers what.</p><p>For a design system this matters even more: every release gets pulled into multiple apps. A bad publish doesn’t just break your project — it breaks everyone else’s. So the CI and release workflow had to be solid from day one.</p><p>Because I specced everything together, CI and release requirements sat in the same task list as the actual code migration. They had user stories. They had acceptance criteria. They were planned.</p><p>What the spec defined for CI:</p><ul><li>A quick first job that just checks if the branch name is valid and detects what changed</li><li>A heavy second job that does the actual building, linting, testing, and security scanning</li><li>A final job that rolls up all the results for branch protection</li></ul><p>What the spec defined for releases:</p><ul><li>One artifact (called a BOM — Bill of Materials) that locks all module versions together, so an app team never gets a mismatch between their tokens version and their components version</li><li>Automatic detection: release from main = stable, release from any other branch = snapshot</li><li>Only modules that actually changed get built and published (if someone only updates an icon, the tokens module isn’t rebuilt)</li><li>UI components get visual regression tests (screenshot comparisons) before release — because in a design system, a pixel shift is a bug</li></ul><p>What actually happened:</p><p>The pipeline crashed. A lot. The runners ran out of memory because linting was analyzing every dependency of every dependency — on a project with thousands of generated files.</p><p>But because the pipeline was designed in pieces (from the spec), the fix was clean. Turn off transitive linting. Upgrade the runner. Move security scanning to only run on merges. Each fix was isolated. Nothing else broke.</p><p>If I’d designed the pipeline ad hoc, those failures would have been a tangled mess. Because it came from a structured plan, each piece had boundaries.</p><h3>Keep a Diary (Seriously)</h3><p>This sounds old-school, but it’s one of the most useful practices in the whole method.</p><p>After each phase, write down:</p><ul><li>What you did</li><li>Why you did it that way</li><li>What went wrong</li><li>What you learned</li></ul><p>That’s it. A few paragraphs per phase.</p><p>Here’s why it matters: three months from now, someone (maybe you) will ask “why did we split the assets into three modules (icons, flags, logos) instead of keeping them together?” or “why does security scanning only run on merges?”</p><p>Commit messages won’t tell you. PR descriptions might, if you wrote good ones. The diary will, because that’s literally what it’s for.</p><p>Tip: Write it right after you finish each phase. Not a week later. The details you think you’ll remember? You won’t.</p><h3>When to Use This (and When Not To)</h3><p>Use it when:</p><ul><li>The project has multiple phases with dependencies between them</li><li>Wrong decisions early will be expensive to fix later</li><li>Multiple people need to understand the plan</li><li>There’s significant infrastructure work (CI/CD, deployment, release processes)</li></ul><p>Skip it when:</p><ul><li>It’s a bug fix or a small feature</li><li>You’re prototyping and the goal is to learn, not ship</li><li>The spec would be longer than the code</li></ul><p>This method has overhead. It’s worth it when discovering a problem late is expensive. For a 300-task project, the planning time was trivial compared to the rework it prevented. For a 5-line change, it would be silly.</p><h3>Further Reading</h3><ul><li><a href="https://github.com/speckit">SpecKit</a> — The tool I used</li><li>MCP’s I used — <a href="https://github.com/github/github-mcp-server">Github</a>, <a href="https://github.com/atlassian/atlassian-mcp-server">Atlassian</a>, <a href="https://help.figma.com/hc/en-us/articles/39216419318551-Get-started-with-the-Figma-MCP-server">Figma</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b4cd2336f5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>