Cursor rules for Agile

June 23, 2025 ยท View on GitHub

Motivation

Using modern IDEs with AI capabilities like Cursor, software engineers can use those features to implement software using prompts. However, in order to help the models, it is a good idea to provide the software requirements, technical decisions, and designs in context.

Using conversational and non-conversational approaches, you can decompose your problems into EPICs, Features & User Stories if you follow Agile principles. With that analysis, you can answer the questions about What you are going to build, Why it is necessary to build, and Who is going to use the software. Apart from those questions, you should describe the technical specifications about How you will implement the software, and you can describe those restrictions using ADR files as the format to describe the functional and non-functional requirements. You can also model the design using diagrams in UML & C4 format.

Models using specifications, decision records, and diagrams in context will generate better software with less ambiguity and less waste.

Goals

This repository provides a set of cursor rules to generate good software specifications based on Agile principles to be added to the Cursor context to generate better software.

The repository can be used by the following roles: EA, PO, BA, SA, TL, SSE, SE


https://learn.microsoft.com/en-us/azure/devops/boards/backlogs/define-features-epics?view=azure-devops&tabs=agile-process

Cursor Rules

Cursor rules designed to answer the questions about WHAT the development team is going to build, WHY it is necessary to build, and WHO is going to use it:

PhaseRoleCursor RuleDescription
Software requirements gatheringProduct OwnerCreate an Agile EpicDefine and structure high-level business objectives as epics
Software requirements gatheringProduct OwnerCreate an Agile FeatureBreak down epics into manageable features
Software requirements gatheringProduct Owner / Business AnalystCreate an Agile User StoryCreate detailed user stories from features with acceptance criteria based on Gherkin

Cursor rules designed to answer the questions about HOW the team is going to build the requirements and WHAT restrictions the software will have:

PhaseRoleCursor RuleDescription
DesignSolution ArchitectUML Sequence DiagramGenerate UML sequence diagrams to visualize system interactions
DesignSolution ArchitectC4 Model DiagramsCreate C4 architecture diagrams for system visualization
RequirementsSolution Architect / Technical LeadADR about Functional requirements for CLI DevelopmentCreate architectural decision records about functional requirements for CLI applications
RequirementsSolution Architect / Technical LeadADR about Functional requirements for REST APICreate architectural decision records about functional requirements for REST API development
RequirementsSolution Architect / Technical LeadADR about Acceptance Testing StrategyDefine comprehensive acceptance testing strategies
RequirementsArchitect / Technical LeadADR about Non-Functional RequirementsDefine non-functional requirements and constraints following ISO-25010
RequirementsGeneralADR creation using a Conversational approachInteractive assistant for creating architectural decision records

Cursor rules designed to implement the requirements and refactor:

PhaseRoleCursor RuleDescription
ImplementationProduct Owner / Technical LeadCreate Task ListGenerate detailed task lists from agile artifacts
ImplementationTechnical Lead / Senior Software engineerImplement Task ListManage and track implementation of generated tasks
ImplementationProduct Owner / Technical LeadDefinition of Done CreationCreate comprehensive Definition of Done documents with quality gates and completion criteria
RefactoringTechnical Lead / Senior Software engineerUML Class Diagram GeneratorGenerate UML class diagrams for object-oriented design

Getting Started

If you are interested in getting the benefits from these cursor rules, you can manually download this repository and copy the './cursor' folder and paste it into your repository, or delegate this task to a specific command-line tool based on Jbang:

sdk install jbang
# Add cursor rules for Agile in ./cursor/rules
jbang --fresh setup@jabrena init --cursor https://github.com/jabrena/cursor-rules-agile

Once you have installed the cursor rules:

PhaseRoleCursor RuleDescription
Getting StartedAllCreate Agile Development ChecklistCursor rule designed to help the user to use the whole set of cursor rules for agile in an easy way

Type the following prompt in the cursor chat:

Create an agile development checklist using the cursor rule @2000-agile-checklist

Examples

Learn about how these rules helped to implement some non-trivial examples

How to contribute

If you have nice ideas, please create an issue

References

Cursor rules ecosystem