CU

cursor-hello-world

A 10-minute tutorial to get started with Cursor's core features like Tab completion and AI chat.

Install

mkdir -p .claude/skills/cursor-hello-world && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1699" && unzip -o skill.zip -d .claude/skills/cursor-hello-world && rm skill.zip

Installs to .claude/skills/cursor-hello-world

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Create your first project using Cursor AI features: Tab, Chat, Composer,
72 charsno explicit “when” trigger
Beginner

Key capabilities

  • Generate code with Tab Completion by typing function signatures or comments
  • Ask questions about code or generate new code using Chat
  • Modify selected code blocks with Inline Edit using natural language instructions
  • Create multi-file features and refactor code with Composer
  • Run generated code using `npx tsx`
  • Explore Cursor's core AI features in a hands-on walkthrough

How it works

The skill guides users through practical exercises for Cursor's AI features: Tab Completion generates code while typing, Chat answers questions and generates snippets, Inline Edit modifies selected code, and Composer creates multi-file features.

Inputs & outputs

You give it
User-typed code, natural language prompts, or selected code blocks
You get back
AI-generated code, explanations, code modifications, or multi-file feature implementations

When to use cursor-hello-world

  • Learning Tab completion workflows
  • Testing AI-assisted code generation
  • Practicing inline code editing
  • Exploring Composer for multi-file tasks
  • Starting a new project with AI assistance

About this skill

Cursor Hello World

A hands-on 10-minute walkthrough of Cursor's four core AI features: Tab Completion, Chat, Inline Edit, and Composer.

Setup

mkdir cursor-hello && cd cursor-hello
npm init -y
npm install typescript tsx @types/node --save-dev
npx tsc --init

Open the project in Cursor: cursor . (or File > Open Folder).

Exercise 1: Tab Completion

Create src/utils.ts. Start typing and let Tab complete:

// Type this much:
export function formatCurrency(amount: number, currency: string

// Tab suggests:
export function formatCurrency(amount: number, currency: string = 'USD'): string {
  return new Intl.NumberFormat('en-US', {
    style: 'currency',
    currency,
  }).format(amount);
}

Press Tab to accept the full suggestion, or Cmd+Right Arrow to accept word-by-word.

Try These Prompts for Tab

Type a comment describing what you want, then start the function:

// Validate an email address using regex
export function validateEmail(

// Sort an array of objects by a key
export function sortBy<T>(

// Calculate the distance between two lat/lng points in km
export function haversineDistance(

Tab reads your comment and generates the implementation.

Exercise 2: Chat (Cmd+L)

Open Chat with Cmd+L. Try these prompts:

Ask about your code:

@src/utils.ts
What does the formatCurrency function do? Does it handle edge cases
like negative numbers or very large values?

Generate new code:

Write a TypeScript function that converts a nested object
to a flat key-value map with dot-separated keys.
Example: { a: { b: 1 } } → { "a.b": 1 }

Debug a concept:

Explain the difference between Promise.all() and Promise.allSettled()
with code examples showing when to use each.

Chat responds with explanations and code snippets. Click Apply on any code block to insert it into your editor.

Exercise 3: Inline Edit (Cmd+K)

Open src/utils.ts. Select the formatCurrency function body. Press Cmd+K.

Type your instruction:

Add support for locale parameter with default 'en-US'.
Handle NaN input by returning '$0.00'.

Cursor shows the diff inline:

  • Green = added lines
  • Red = removed lines

Press Cmd+Y to accept, Esc to reject.

Inline Edit Quick Tasks

Select any code and press Cmd+K with instructions like:

  • "Add TypeScript types"
  • "Refactor to use early returns"
  • "Add error handling"
  • "Convert to async/await"
  • "Add JSDoc documentation"

Exercise 4: Composer (Cmd+I)

Press Cmd+I to open Composer. Ask it to create a complete feature:

Create a simple task manager module:

1. src/types/task.ts - Task interface with id, title, completed, createdAt
2. src/services/task-service.ts - TaskService class with:
   - addTask(title: string): Task
   - completeTask(id: string): Task
   - listTasks(): Task[]
   - deleteTask(id: string): void
3. src/index.ts - Demo script that creates 3 tasks, completes one, lists all

Use in-memory storage (Map). Include TypeScript types throughout.

Composer shows all files it will create/modify. Review each diff, then click Apply All.

Run the Result

npx tsx src/index.ts

Feature Comparison Summary

FeatureShortcutUse ForScope
TabAutomaticLine/block completions while typingCurrent cursor position
ChatCmd+LQuestions, explanations, code snippetsConversation-based
Inline EditCmd+KEdit selected code with instructionsSelected code block
ComposerCmd+IMulti-file generation and refactoringMultiple files

Next Steps After Hello World

  1. Add project rules: Create .cursor/rules/ with coding standards (see cursor-rules-config skill)
  2. Index your codebase: Open a real project and wait for indexing (see cursor-codebase-indexing skill)
  3. Learn @-mentions: Use @Files, @Codebase, @Docs in Chat (see cursor-context-management skill)
  4. Configure your model: Try different models for different tasks (see cursor-model-selection skill)

Enterprise Considerations

  • Hello World exercises do not send sensitive code to AI providers -- safe for evaluation
  • Enable Privacy Mode before using Cursor with production codebases
  • Tab completions work immediately; Chat and Composer require active subscription or BYOK API key

Resources

When not to use it

  • When working with production codebases without Privacy Mode enabled

How it compares

This skill provides a guided, hands-on project to learn Cursor's AI features, unlike general tutorials that describe features without practical application.

Compared to similar skills

cursor-hello-world side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
cursor-hello-world (this skill)324dReviewBeginner
godot1,0445moReviewIntermediate
software-architecture3336moNo flagsIntermediate
drizzle2382moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,0441,947

software-architecture

davila7

Guide for quality focused software architecture. This skill should be used when users want to write code, design architecture, analyze code, in any case that relates to software development.

333868

drizzle

lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

238873

screenshot-to-code

OneWave-AI

Convert UI screenshots into working HTML/CSS/React/Vue code. Detects design patterns, components, and generates responsive layouts. Use this when users provide screenshots of websites, apps, or UI designs and want code implementation.

204389

zustand

lobehub

Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.

113434

codex

Lucklyric

Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention "Codex", request complex implementation challenges, advanced reasoning, or need high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.

32238

Search skills

Search the agent skills registry