Agileitt
Learn AI development

Cursor AI training: build software with an AI coding agent

Learn Cursor's core tools, give an agent useful context, plan changes, write project rules, review generated code and build a dependable AI-assisted development workflow.

9 lessonsSelf-pacedBeginner to intermediate

Cursor is an AI-powered code editor that can complete code, make focused edits and operate as an agent across a repository. The speed is useful; the durable skill is learning how to give it the right context, constrain the work and verify every change.

You will learn

  • Use Tab, Inline Edit and Agent effectively
  • Provide precise intent and codebase context
  • Plan controlled multi-file changes
  • Create maintainable project rules
  • Review, test and secure generated code

Choose how you want to learn

For every topic, watch the concept video, follow the hands-on demonstration or jump directly to the corresponding written documentation below.

Learning topic 01

Cursor 3 orientation

Understand the concept

Concept: Cursor 3 orientationYouTube

Learn by doing

Hands-on: Cursor 3 orientationYouTube

Your practical task

Install or update Cursor then locate Tab Inline Edit Agent settings and source control.

Learning topic 02

Beginner editor workflow

Understand the concept

Concept: Beginner editor workflowYouTube

Learn by doing

Hands-on: Beginner editor workflowYouTube

Your practical task

Complete one small edit using the least autonomous Cursor interaction that fits.

Learning topic 03

Cursor 2 workflow foundations

Understand the concept

Concept: Cursor 2 workflow foundationsYouTube

Learn by doing

Hands-on: Cursor 2 workflow foundationsYouTube

Your practical task

Reproduce a bounded workflow in a test repository and inspect every changed file.

Learning topic 04

Current interface and capabilities

Understand the concept

Concept: Current interface and capabilitiesYouTube

Learn by doing

Hands-on: Current interface and capabilitiesYouTube

Your practical task

Map the demonstrated features to the current interface and note any version differences.

Learning topic 05

AI coding crash course

Understand the concept

Concept: AI coding crash courseYouTube

Learn by doing

Hands-on: AI coding crash courseYouTube

Your practical task

Build a tiny application feature with written acceptance criteria and tests.

Learning topic 06

Comprehensive beginner practice

Understand the concept

Concept: Comprehensive beginner practiceYouTube

Learn by doing

Hands-on: Comprehensive beginner practiceYouTube

Your practical task

Repeat one end-to-end example using a different project and data model.

Learning topic 07

Getting productive safely

Understand the concept

Concept: Getting productive safelyYouTube

Learn by doing

Hands-on: Getting productive safelyYouTube

Your practical task

Create a branch complete a small change and prove it with focused checks.

Learning topic 08

No-code and rapid prototyping

Understand the concept

Concept: No-code and rapid prototypingYouTube

Learn by doing

Hands-on: No-code and rapid prototypingYouTube

Your practical task

Prototype one interaction then list what must change before production use.

Learning topic 09

Working in large codebases

Understand the concept

Concept: Working in large codebasesYouTube

Learn by doing

Hands-on: Working in large codebasesYouTube

Your practical task

Ask Cursor to explain an unfamiliar execution path before allowing any edit.

Learning topic 10

Building an application

Understand the concept

Concept: Building an applicationYouTube

Learn by doing

Hands-on: Building an applicationYouTube

Your practical task

Build one vertical slice and record the prompts review notes and test evidence.

Learning topic 11

Context and full-stack workflow

Understand the concept

Concept: Context and full-stack workflowYouTube

Learn by doing

Hands-on: Context and full-stack workflowYouTube

Your practical task

Create a context map with entry point types tests and relevant project rules.

Learning topic 12

Agent techniques

Understand the concept

Concept: Agent techniquesYouTube

Learn by doing

Hands-on: Agent techniquesYouTube

Your practical task

Use Agent for a bounded multi-file change with explicit stop conditions.

Learning topic 13

Zero-to-hero workflow

Understand the concept

Concept: Zero-to-hero workflowYouTube

Learn by doing

Hands-on: Zero-to-hero workflowYouTube

Your practical task

Repeat a tutorial outcome from scratch without copying its project structure.

Learning topic 14

Professional Cursor practice

Understand the concept

Concept: Professional Cursor practiceYouTube

Learn by doing

Hands-on: Professional Cursor practiceYouTube

Your practical task

Build one feature from plan to reviewed diff and explain each architectural choice.

Learning topic 15

Rules agents skills and MCP

Understand the concept

Concept: Rules agents skills and MCPYouTube

Learn by doing

Hands-on: Rules agents skills and MCPYouTube

Your practical task

Create one scoped project rule and connect it to a repeatable development task.

Learning topic 16

Power-user techniques

Understand the concept

Concept: Power-user techniquesYouTube

Learn by doing

Hands-on: Power-user techniquesYouTube

Your practical task

Apply two efficiency techniques and measure whether they improve correctness or only speed.

Learning topic 17

Workflow patterns

Understand the concept

Concept: Workflow patternsYouTube

Learn by doing

Hands-on: Workflow patternsYouTube

Your practical task

Document a repeatable Cursor workflow including context plan checks and handoff.

Learning topic 18

How Cursor is evolving

Understand the concept

Concept: How Cursor is evolvingYouTube

Learn by doing

Hands-on: How Cursor is evolvingYouTube

Your practical task

Compare current behaviour with the video and update your project notes for changed features.

Learning topic 19

Vibe coding with controls

Understand the concept

Concept: Vibe coding with controlsYouTube

Learn by doing

Hands-on: Vibe coding with controlsYouTube

Your practical task

Build a small prototype then conduct a production-readiness review using DIFFS.

Learning topic 20

Agent scale and architecture

Understand the concept

Concept: Agent scale and architectureYouTube

Learn by doing

Hands-on: Agent scale and architectureYouTube

Your practical task

Plan how to divide a large task into independently reviewable agent slices.

Learning topic 21

Modes and deliberate tool choice

Understand the concept

Concept: Modes and deliberate tool choiceYouTube

Learn by doing

Hands-on: Modes and deliberate tool choiceYouTube

Your practical task

Choose appropriate modes for investigation design and implementation and justify each choice.

Learning topic 22

AI coding quality

Understand the concept

Concept: AI coding qualityYouTube

Learn by doing

Hands-on: AI coding qualityYouTube

Your practical task

Improve a generated change by adding failure cases accessibility and maintainability checks.

Learning topic 23

Installation and setup

Understand the concept

Concept: Installation and setupYouTube

Learn by doing

Hands-on: Installation and setupYouTube

Your practical task

Set up Cursor in a clean environment without importing secrets or unsafe settings.

Learning topic 24

Beginner coding guide

Understand the concept

Concept: Beginner coding guideYouTube

Learn by doing

Hands-on: Beginner coding guideYouTube

Your practical task

Complete a coding task then compare Cursor's strengths and limits with another workflow.

Learning topic 25

Software factory capstone

Understand the concept

Concept: Software factory capstoneYouTube

Learn by doing

Hands-on: Software factory capstoneYouTube

Your practical task

Build and review a complete small feature including plan implementation tests visual review and intentional commit.

This course uses a small existing project as the training environment. Work on a branch, begin with a clean working tree and choose code you can safely inspect and test. Cursor changes frequently, so refer to the linked official documentation for current controls and plan availability.

1. Understand the Cursor workflow

Cursor combines familiar editor features with three complementary AI interactions:

  • Tab predicts the next code change while you type.
  • Inline Edit applies a focused instruction to selected code.
  • Agent can explore the repository, edit several files and run tools.

The official quickstart introduces all three. Use the least autonomous tool that comfortably fits the task: Tab for local completion, Inline Edit for a bounded transformation and Agent for work that requires investigation or coordinated changes.

Video lesson: Cursor beginner walkthrough

Cursor AI tutorial for beginners — independent walkthroughYouTube
Cursor's official coding-agent best-practices visual asking how to use coding agents effectively
Cursor's coding-agent best practicesUse Cursor's official guide as the map for choosing an interaction: understand the task, provide relevant context, plan consequential work and independently review the result.Original visual and explanation — Cursor
Why not use Agent for every coding task?

Agent is valuable for complex work, but a focused tool creates a smaller change surface. Smaller changes are generally faster to understand, review and reverse.

2. Prepare a safe project workspace

Before asking an agent to edit code, establish a recoverable baseline. Confirm the project builds, understand the test command and create a dedicated Git branch. Read repository instructions such as README.md, AGENTS.md and contribution guides yourself before assuming the agent interpreted them correctly.

Use this pre-flight checklist:

  1. Confirm you are in the intended repository and branch.
  2. Record existing uncommitted changes; do not let generated work overwrite them.
  3. Run the smallest relevant test or build command.
  4. Identify sensitive files, secrets and production systems that are out of scope.
  5. Define how you will inspect and reverse the change.

Never paste credentials into a prompt or commit them to rules. Treat terminal commands, package installations, migrations and external actions as meaningful operations that need deliberate review.

Git is part of the AI workflow

A branch and a readable diff turn fast generation into controlled engineering. They make every change attributable, reviewable and recoverable.

3. Give Cursor intent and state context

Cursor's context guide distinguishes between intent context—the outcome you want—and state context—the relevant reality of the codebase. Strong tasks provide both.

Goal: Add validation to the newsletter form.

Current behaviour:
- The form submits an email string to /api/newsletter.
- Validation currently happens only on the server.

Relevant context:
- @src/components/NewsletterForm.tsx
- @src/app/api/newsletter/route.ts
- @src/lib/validation.ts

Constraints:
- Reuse the existing schema library.
- Preserve server-side validation.
- Do not change the API response shape.

Acceptance criteria:
- Invalid email is announced accessibly before submission.
- Existing tests pass and new edge cases are covered.

Use precise file, folder or symbol references when you know what matters. More context is not always better: irrelevant files consume attention and can pull the solution towards unrelated patterns. Cursor's working with context guide explains explicit references and contextual trade-offs.

4. Plan before editing

For multi-file work, separate investigation from implementation. Ask Cursor to inspect the repository and return a plan containing affected files, assumptions, risks, test strategy and open questions. Explicitly say not to modify files during this phase.

A useful plan should explain why each file changes and how success will be verified. Reject plans that depend on invented APIs, replace established patterns without justification or bundle unrelated refactoring into the feature.

Official Cursor Plan Mode screenshot showing a reviewable implementation plan and task list
Plan Mode before implementationCursor's official Plan Mode example shows a concrete, editable plan with file-level tasks. Review and correct this artefact before asking the agent to build.Original visual and explanation — Cursor

When implementation starts, give Cursor the approved plan and ask it to stop if reality differs. This is particularly important for migrations, authentication, payments, permissions and infrastructure.

What should happen when implementation reveals that the approved plan is wrong?

Pause, report the new evidence and revise the plan. Silently improvising can expand scope and invalidate the original risk and test assessment.

5. Use Agent for bounded implementation

Agent can search, read files, edit code and run terminal commands. Cursor documents these capabilities in its Agent tools reference. Autonomy is most productive when the task has a clear boundary and observable completion conditions.

Break large features into vertical slices. Instead of “build authentication”, start with “add a server-side session reader using the existing library, cover valid, expired and missing sessions, and do not change UI routes”. Review that slice before moving forward.

Good implementation prompts name:

  • files or subsystems that are in scope;
  • behaviour that must remain unchanged;
  • required tests and validation commands;
  • actions requiring approval; and
  • the expected handoff, including a concise change summary.

Ask for evidence of completion

Require the exact checks Cursor ran and their results. “Done” is a claim; a passing focused test, type check and inspected diff are evidence.

6. Encode stable knowledge with project rules

Cursor rules provide persistent instructions to Agent and Inline Edit. Project rules live in .cursor/rules, can be version controlled and may be scoped to relevant paths. The official rules documentation recommends focused, actionable rules with concrete examples.

Use rules for stable knowledge that future tasks repeatedly need:

  • canonical architecture and module boundaries;
  • commands for tests, linting and builds;
  • security or accessibility requirements;
  • examples of preferred patterns; and
  • instructions for generated migrations or external actions.

Do not turn a rule into an encyclopedia. Split unrelated concerns, scope rules where possible and remove guidance that the codebase already makes obvious.

---
description: Testing conventions for API routes
globs: src/app/api/**/*.ts
alwaysApply: false
---

- Test authentication failures before success paths.
- Mock external services at the adapter boundary.
- Run: npm test -- api
- Never use production credentials or endpoints in tests.

7. Review, test and secure generated code

Treat AI-generated code exactly like an external contribution. Read the full diff and inspect adjacent behaviour that may be affected. Generated code can compile while introducing insecure defaults, missing error handling, inefficient queries or tests that only prove the implementation agrees with itself.

Use the DIFFS review:

  • D — Desired behaviour: does the change satisfy the actual acceptance criteria?
  • I — Integration: does it follow repository architecture and public contracts?
  • F — Failure modes: are invalid input, errors and partial states handled?
  • F — Footprint: did unrelated files, dependencies or configuration change?
  • S — Security: are permissions, data exposure, secrets and unsafe execution addressed?

Run focused tests first, then broader type, lint and build checks appropriate to the risk. Inspect newly added dependencies and lockfile changes. For UI work, test keyboard use, responsive layouts and error states—not only the happy-path screenshot.

Why can a generated test suite still miss the real defect?

The tests may encode the same mistaken assumptions as the generated implementation. Derive important cases independently from requirements, threat models and observed failures.

8. Build your repeatable Cursor workflow

Finish by documenting a workflow your team can apply consistently:

  1. Select a small, testable outcome.
  2. Create a branch and establish a clean baseline.
  3. Supply intent, state context, constraints and acceptance criteria.
  4. Request investigation and a plan for non-trivial work.
  5. Approve a bounded implementation.
  6. Run focused and project-level checks.
  7. Review the complete diff with the DIFFS method.
  8. Commit only the intended files and record remaining risks.

Final readiness check

  • I understand the repository before asking Cursor to change it.
  • My task has explicit boundaries and acceptance criteria.
  • I can recover the starting state with Git.
  • Project rules are concise, current and safe to share.
  • Commands and external actions receive appropriate review.
  • Tests and human review independently verify the result.
  • The final diff contains only intentional changes.

Speed needs a control system

Cursor can compress implementation time, but professional results come from context, boundaries, tests and accountable review. Use the agent to accelerate engineering—not to bypass it.

Continue with Cursor's quickstart, context guide and agent best practices. Recheck the official documentation as features and controls evolve.

9. Continue learning and test your skills

What turns watching Cursor tutorials into engineering competence?

Reproducing each outcome in a different repository, understanding the generated diff, testing independently and being able to explain where human judgement and approval remain necessary.