Custom modes for better planning and executing software development tasks with AI agents.
# Spec-driven AI Coding Workflow This project provides a set of prompts for AI coding agents to implement a structured, two-step Plan & Execute workflow, inspired by the principles of [Kiro](https://kiro.dev/docs/specs/concepts/). The primary motivation behind this methodology is to minimize the time and prompt iterations required to generate working code, improve overall code quality, and enable seamless switching between AI coding agents within the same project. Inspired by [Kiro-style Prompts for Spec-Driven Development](https://github.com/andreskull/spec-driven-ai-coding), this implementation significantly simplifies documentation-driven workflow. Feature specifications are captured in a dedicated `prd.md` file, creating a shared source of truth that persists beyond individual chat sessions. This enables team collaboration and work resumption while utilizing Planner and Executor operational modes. ## The Core Workflow: Plan & Execute The methodology is split into two distinct phases, each handled by a dedicated custom AI agent mode. 1. **Planning phase (Planner mode):** The AI acts as a senior architect. You provide a high-level feature description, and the AI guides you through an interactive process to create a complete technical specification. 1. **Execution phase (Executor mode):** The AI acts as a meticulous engineer. It reads the approved specification and implements the feature, ensuring strict adherence to the plan. ## Setting Up the Workflow This workflow uses two distinct AI personas, each with a specific role. The setup process varies between different AI coding tools. ### Cursor (custom modes) **1. Planner mode** - **Name:** "☂ Planner" - **Model:** Cursor 2.5 Pro or OpenAI GPT-5 (powerful models for complex planning) - **Keybinding:** Cmd+Shift+1 - **Prompt:** Copy the entire content from `prompts/planner.md` - **Context:** Enable "Full folder context" - **Tools:** Enable "Search" section and "Edit" → "Edit & Reapply" (to generate a featu
Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.