匠人学院 JR Academy
Skip to article
Learning guide
Cursor Guide

Learn Cursor workflows for context-aware coding, multi-file changes, prompt design, and project speed.

3 chapters·11 guides·Access varies by chapter
Prompt Techniques
On this page

Cursor Prompt Techniques

A repository task needs an objective, exclusions, change scope and observable completion criteria. Ambiguity can produce incorrect edits rather than just a weak answer.

#State the goal and boundary

text
Add a forgot-password entry to the existing login page. Do not add dependencies. Keep the current design system. Change only the related components.

#Plan coordinated work

text
List the implementation steps and affected file paths first. Explain what each step changes.

Refine an incorrect plan before implementation instead of repeatedly patching a drifting result.

#Let the agent locate unknown context

text
If the entry file is unclear, locate the relevant module and propose a bounded change before editing.

Attach a known key file when useful; do not flood the conversation with unrelated material.

#Define a testable finish

For a behavior change, a meaningful failing test can establish the expected result before implementation. Where tests are not appropriate, specify another observable acceptance check. “Almost done” is not a criterion.

#Reset stale conversations

Start again with a concise handover when the module changes, misunderstandings repeat or old context overwhelms the current task.

#Reusable review structure

text
Report: 1. Change summary 2. Affected files 3. Important risks 4. Suggested validation

#Task examples

text
Feature: add course difficulty filtering. Keep the API contract and synchronize filter state to the URL. Show affected files and key patches.
text
Bug: a mobile button does not respond. Relevant code: @src/components/xxx.tsx. Identify the cause and propose the smallest effective fix.
text
Review this diff for logic errors, regressions and missing behavior tests.

Clear scope, inspectable results and reversible changes are more useful than elaborate phrasing.

#Reference

Published by
JR Academy
Learning resources

Individual authors and reviewers are credited where recorded.

Vibe Coding

AI coding workflows, tools, and practical habits

Build a stronger AI-assisted development workflow from scratch.

Open Vibe Coding →

Related Roadmaps

FAQ

Cursor 是免费的吗?
Cursor 提供免费版(Hobby)和付费版(Pro)。免费版可以使用基础的 AI 功能,但高级模型(如 Claude 3.5 Sonnet, GPT-4o)有使用次数限制。
Cursor 能直接导入 VS Code 的插件吗?
可以。Cursor 是基于 VS Code Fork 开发的,支持一键从 VS Code 迁移所有插件、主题和快捷键设置。
Cursor 的隐私模式安全吗?
Cursor 提供 "Privacy Mode",开启后你的代码不会被存储在服务器上,也不会用于训练模型,适合企业级开发。

Done reading? Next steps