A structured set of prompt commands for feature development in AI-powered IDEs.
Battle-tested commands that guide you through the full development lifecycle: from capturing issues to post-deployment reflection.
Works with: Cursor, Claude Code, Windsurf, VS Code (+ AI extensions), and other AI IDEs.
Most AI-assisted coding is ad-hoc. You ask for code, get code, move on. This works for small tasks but falls apart for larger features:
- Requirements get lost
- Design decisions aren't documented
- Code reviews are inconsistent
- Lessons learned vanish
These commands provide structure without bureaucracy. Each command is a prompt template that guides the AI (and you) through a specific phase of development.
┌─────────────────────────────────────────────────────────────┐
│ PHASE 1: PLANNING │
├─────────────────────────────────────────────────────────────┤
│ /capture_issue → /explore → /create_plan → /design_decisions│
│ ↓ │
│ /pre_implementation_checklist │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ PHASE 2: IMPLEMENTATION │
├─────────────────────────────────────────────────────────────┤
│ /execute_plan │
│ ↓ │
│ /tdd (optional, for complex logic) │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ PHASE 3: QUALITY ASSURANCE │
├─────────────────────────────────────────────────────────────┤
│ /code_review → /security_scan (opt) → /qa_checklist │
│ /peer_review (opt) │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ PHASE 4: REFLECTION │
├─────────────────────────────────────────────────────────────┤
│ /postmortem → /project_wrap_up (handover) │
└─────────────────────────────────────────────────────────────┘
First, clone this repo:
git clone https://github.com/Leftyshields/cursor-workflow-commands.git
cd cursor-workflow-commandsThen follow the instructions for your IDE:
Cursor natively supports slash commands via .cursor/commands/ directory.
Per-project installation:
# Copy to your project
cp -r commands/ /path/to/your/project/.cursor/commands/
# Create context directory
mkdir -p /path/to/your/project/.ai/context/Global installation (all projects):
cp -r commands/ ~/.cursor/commands/Usage: Type /capture_issue in the chat panel.
Claude Code uses .claude/commands/ for slash commands.
Per-project installation:
# Copy to your project
cp -r commands/ /path/to/your/project/.claude/commands/
# Create context directory
mkdir -p /path/to/your/project/.ai/context/Global installation:
cp -r commands/ ~/.claude/commands/Usage: Type /capture_issue in Claude Code.
Windsurf uses .windsurf/commands/ for custom commands.
Per-project installation:
# Copy to your project
cp -r commands/ /path/to/your/project/.windsurf/commands/
# Create context directory
mkdir -p /path/to/your/project/.ai/context/Global installation:
cp -r commands/ ~/.windsurf/commands/Usage: Type /capture_issue in Windsurf chat.
VS Code AI extensions typically don't have native slash command support, but you can use these commands as prompt templates.
Option A: Manual prompt files
# Create a prompts directory in your project
mkdir -p /path/to/your/project/.prompts/
cp -r commands/ /path/to/your/project/.prompts/
# Create context directory
mkdir -p /path/to/your/project/.ai/context/Then copy/paste the prompt content when needed, or reference with @.prompts/capture_issue.md.
Option B: Continue extension (recommended)
If using Continue, add commands to your ~/.continue/config.json:
{
"slashCommands": [
{
"name": "capture_issue",
"description": "Document the problem",
"prompt": "... (paste content from capture_issue.md)"
}
]
}Or use the file-based approach:
cp -r commands/ ~/.continue/commands/Option C: GitHub Copilot Chat
For Copilot Chat, use commands as reference files:
- Open the command file (e.g.,
capture_issue.md) - In Copilot Chat, type:
@workspace #file:capture_issue.md Follow these instructions
Most AI IDEs follow similar patterns. Look for:
- Commands directory:
.{ide-name}/commands/or~/.{ide-name}/commands/ - Custom prompts: Check IDE documentation for prompt template support
- Fallback: Use as reference files and copy/paste when needed
Common locations:
| IDE | Commands Directory |
|---|---|
| Cursor | .cursor/commands/ |
| Claude Code | .claude/commands/ |
| Windsurf | .windsurf/commands/ |
| Zed | .zed/prompts/ |
| Continue | ~/.continue/commands/ |
All installations should include the context directory for persistence:
mkdir -p /path/to/your/project/.ai/context/Add to .gitignore if you don't want to commit context files:
echo ".ai/context/" >> .gitignoreStandard steps are recommended every time; optional steps when scope, risk, or handover justifies them.
| Command | Purpose |
|---|---|
/capture_issue |
Document the problem, current/desired behavior, priority; get issue ID |
/explore |
Deep-dive requirements, constraints, risks; persist exploration snapshot |
/create_plan |
Generate atomic implementation steps from exploration |
/design_decisions |
Document design choices, field mappings, integration points before coding |
/pre_implementation_checklist |
Verify readiness (plan + design complete) before implementation |
| Command | Purpose |
|---|---|
/execute_plan |
Follow the plan step-by-step; reference design decisions |
/tdd |
Optional. Test-driven development (Red–Green–Refactor) for complex logic |
| Command | Purpose |
|---|---|
/code_review |
Automated review: security, correctness, architecture, quality, performance |
/security_scan |
Optional. Dedicated security pass: secrets, deps, auth, data at rest, encryption, proprietary/IP |
/qa_checklist |
Manual testing checklist: happy path, edge cases, error handling, UX |
/peer_review |
Optional. Human code review; accept/reject feedback with rationale |
| Command | Purpose |
|---|---|
/postmortem |
Analyze friction and rework; document lessons learned; improve process and docs |
/project_wrap_up |
Optional. Final handover: security audit, context synthesis, onboarding docs, next-op briefing |
/learning_opportunity |
Optional. Capture insights anytime |
| Command | Purpose |
|---|---|
/show_context |
Display current context files |
/workflow |
Show the complete workflow |
Commands persist context to .ai/context/ for continuity across sessions:
your-project/
├── .cursor/ # Cursor IDE
│ └── commands/
├── .claude/ # Claude Code
│ └── commands/
├── .windsurf/ # Windsurf
│ └── commands/
├── .ai/
│ └── context/ # ← Context persists here (shared across IDEs)
│ ├── last_capture.md
│ ├── last_explore.md
│ ├── execution_plan.md
│ └── design_decisions.md
└── src/
Why this matters:
/explorecan reference what/capture_issuedocumented/execute_planknows what/create_plandecided/postmortemcan analyze the full journey/project_wrap_upsynthesizes context, runs a security audit, and produces handover docs for the next contributor or AI agent- Context works across IDE switches (same
.ai/context/directory)
/capture_issue # Document problem, get issue ID
/explore # Requirements, constraints, risks
/create_plan # Atomic implementation steps
/design_decisions # Design choices before coding
/execute_plan # Build step by step
/code_review # Automated security + quality review
/security_scan # Optional: dedicated security pass (secrets, deps, auth, data at rest)
/qa_checklist # Manual testing guide
/postmortem # What did we learn?
/project_wrap_up # Optional: handover, security audit, next-op briefing
/capture_issue # Document the bug
/execute_plan # Fix it
/code_review # Review the fix
/execute_plan # Start implementation
/tdd # Switch to TDD for the algorithm
# ... Red-Green-Refactor cycles ...
/code_review # Review when done
These are markdown files. Edit them to fit your workflow:
- Add project-specific patterns: Your tech stack, conventions
- Modify checklists: Add/remove items in
/code_review - Change context paths: Use different directories
- Add new commands: Copy an existing one as a template
Create commands/deploy.md in your IDE's commands directory:
# Deployment Checklist
Before deploying, verify:
- [ ] All tests pass
- [ ] /code_review completed
- [ ] Version bumped
- [ ] Changelog updated
Deployment steps:
1. Run `npm run build`
2. Run `npm run deploy`
3. Verify production health check
4. Monitor for errors (15 min)- Structure, not bureaucracy - Commands guide but don't constrain
- Context is king - Persist decisions so nothing gets lost
- AI as partner - Let AI handle the checklist, you make decisions
- Learn from friction - Postmortems improve the process itself
Contributions welcome! Ideas:
- Language/framework-specific command variants
- Additional workflow commands
- Improved prompts
- Documentation
MIT - Use freely, modify as needed, contribute back if you can.
Key Inspirations:
-
Zevi Arnovitz on Lenny's Podcast - His discussion on structured AI-assisted development shaped the philosophy behind this workflow. The idea of treating AI as a collaborative partner with clear processes came directly from his insights.
-
everything-claude-code by @affaanmustafa - A comprehensive Claude Code configuration collection (25k+ stars) that demonstrated the power of structured commands, agents, and skills. The TDD and code review patterns here were adapted from his battle-tested configs. Highly recommended for Claude Code users.
Also built on:
- Structured development practices (TDD, code review checklists)
- The realization that AI coding assistants work dramatically better with clear context and processes