Skip to content

Instantly share code, notes, and snippets.

@w0rd-driven
Forked from stevenrouk/next-task.md
Created August 9, 2025 15:59
Show Gist options
  • Save w0rd-driven/81f56db14b3c72c62e58f76008c42c89 to your computer and use it in GitHub Desktop.
Save w0rd-driven/81f56db14b3c72c62e58f76008c42c89 to your computer and use it in GitHub Desktop.
Claude Code commands for starting project documentation (/start-project), executing next tasks (/next-task), and updating documentation when task is complete (/update-task-documentation). Current working version -- last updated 2025-08-02.

Complete the next task from the plan in docs/start-here.md

Please look at docs/start-here.md and follow the instructions. Your job is to get the next task done. Ultimately, you are the one guiding the work and making sure it meets what it's supposed to do. Chunk the work into small pieces, when it's helpful.

First, review the necessary files, think carefully, review more, and then create a plan to create the next chunk of work. Output your plan for approval by me (the user) before proceeding. Pause after outputting the plan to wait for my input.

Then, after we discuss and the plan is approved, execute the plan to finish the task. Use subagents when helpful. Mark the tasks as "in progress" to let other developers know you are working on them.

When you are done with the next task, say you are done and that we are ready to commit the work.

If I want you to work on a specific task instead of the next task, I will include that information right here: $ARGUMENTS

Start new project structure

Create a new project structure in this directory according to these guidelines. You will create a few files and dirs.

Root README.md

Create a minimal README.md file in the root as follows, filling in the information as needed:

# [Project Name]

**[1-2 sentence description of what this project does]**

## Quick Start

```bash
# Basic setup commands
npm install
npm run dev

Tech Stack

  • [List main technologies]

Current Status

  • βœ… [Completed feature]
  • 🚧 [In progress feature]
  • πŸ“‹ [Planned feature]

Documentation

πŸ“– Full Documentation - Complete setup and development guide

πŸ“‹ Current Tasks - What's being worked on now

πŸ”§ Quick Reference - Commands and common fixes


## docs/start-here.md
Create a docs/start-here.md file as follows, filling in the information as needed:

```start-here.md
# START HERE - [project name] Development

## 🎯 What You're Building
**[project name]** - [1-2 sentence description of project]

**Current Status**: [1-2 sentence very high-level update of where the project is]
**Your Mission**: [upcoming big tasks, projects]

## πŸš€ Quick Start (5 minutes)

### 1. Get the Code Running
[a bash code block example of how to get the code up and running, with all relevant steps/commands, if we're at that stage -- aim to be maximally helpful here]

### 2. Your Roadmap
Work through these in order:
[a numbered list of done/todo items -- below are example rows to show you the format we use]
[example: 1. βœ… **[Phase 1: Database Setup](dev-guides/01-DATABASE-SETUP.md)** - COMPLETED]
[example: 2. βœ… **[Phase 1A: Security & RLS](dev-guides/01A-SECURITY-RLS.md)** - COMPLETED (July 30, 2025)]
[example: 3. 🚨 **[Phase 1B: Backend Authentication](dev-guides/01B-BACKEND-AUTH.md)** ← **DO THIS NEXT**]
[example: 5. **[Phase 2: Payment Integration](dev-guides/02-PAYMENTS.md)**]
[example: 6. **[Phase 3: User Features](dev-guides/03-USER-FEATURES.md)**]

## πŸ“š Documentation Structure

### When You Need Help
- **[quick-reference.md](quick-reference.md)** - Commands, URLs, and common fixes
- **[tasks/](tasks/)** - Step-by-step implementation task lists -- your checklist for getting things done
- **[reference/](reference/)** - Deep technical documentation (read only if needed)
- **[how-to-guides/](how-to-guides/)** - Project-specific walkthroughs (e.g. Supabase CLI setup)

### Key Principle
**Read docs just-in-time**. Start with the next task that needs to be done (which you get from a mixture of reading this doc and verifying in tasks/ dir files), and reference other docs only when you need specific information. It's important to work on the correct next thing, so take a small amount of extra time in the beginning to make sure you're looking at the next tasks.

## βœ… Success Criteria
MVP is complete when:
- Users can pay via Stripe
- Daily emails with podcast summaries are sent automatically
- Users can manage their subscriptions
- System runs without manual intervention

## 🎯 **Ready? Go look for the next task to do, then create a plan, and get to work β†’**

docs/tasks/ dir

Create a docs/tasks/ dir (if it doesn't exist already) with the following structure:

./docs/tasks β”œβ”€β”€ active β”‚Β Β  β”œβ”€β”€ 01-[name of prioritized task or feature].md β”‚Β Β  └── 02-[name of prioritized task or feature].md β”œβ”€β”€ backlog β”‚Β Β  └── [backlog task or feature name].md β”œβ”€β”€ completed β”‚Β Β  β”œβ”€β”€ [completed task or feature name].md β”‚Β Β  β”œβ”€β”€ [completed task or feature name].md β”‚Β Β  └── [completed task or feature name].md └── README.md

The README.md should be this:

# Task Management System

This directory organizes development tasks and technical improvements for the [project name] repository.

## Directory Structure

### `active/`
Current high-priority tasks that need to be completed in sequence. Files are prefixed with numbers (01-, 02-, etc.) to indicate order.

### `backlog/`
Tasks that should be done but have no specific timeline or order. Includes performance improvements, technical debt, and nice-to-have features.

### `completed/`
Archive of completed tasks. Move files here when done to maintain history of what's been accomplished.

## File Naming Conventions

**Active tasks:** `01-description.md`, `02-description.md`
**Backlog tasks:** `descriptive-name.md`
**Completed tasks:** Keep original name, optionally add completion date

## Task Format

Each task file should include the following, in this order:
- **Summary**: 2-3 sentences describing the issue/improvement
- **Action Items**: Specific steps to complete as md checkboxes, with short notes about the task (if it's stalled, if there are important details or caveats, etc.)
- **Technical Details**: Relevant code locations, dependencies, etc.

## Usage

1. Check `active/` for next priority task
2. Create new tasks in appropriate directory
3. Move completed tasks to `completed/`
4. Review `backlog/` during planning sessions

Create other docs

Create the docs directory structure with the following subdirectories and files:

πŸ“ docs/ β”œβ”€β”€ πŸ“ tasks/ β†’ Actionable checklists and TODOs β”œβ”€β”€ πŸ“ how-to-guides/ β†’ Project-specific walkthroughs (e.g. Supabase CLI setup) β”œβ”€β”€ πŸ“ reference/ β†’ In-depth conceptual docs (e.g. auth flow diagram, schema) β”œβ”€β”€ πŸ“„ start-here.md β†’ Main project development guide └── πŸ“„ quick-reference.md β†’ One-pager for frequent lookups

Populate how-to-guides and reference with any documentation that already exists or extremely high value docs that should exist, but no need to create things here just for the sake of it.

Update task documentation with current state
Before continuing our work, please update our task documentation (`docs/tasks/` dir docs) to get them up to date with the current state of progress. Please mark as completed tasks that we've done together (quickly double-check that the task is *actually* done before marking it as complete in the tasks docs), and make sure that any upcoming tasks we've discussed are added/reflected as tasks in the appropriate place in the docs, if they're not already there. We want to leave the task docs in a state where any future new developer could pick up where we left off and have full information needed to continue the tasks.
After updating the task documentation, remind me of where we were and what we were about to do next, then pause.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment