匠人学院 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
.cursorrules Configuration
On this page

Project Rules and Legacy .cursorrules

Rules record durable project constraints so repeated tasks do not drift away from the team's stack, exports, types or testing conventions.

#Use the current rule format

Cursor's rules documentation↗ describes project rules in .cursor/rules. The root .cursorrules file is a legacy format. Preserve an existing file when maintaining a project, but use the documented current rule workflow for new rules.

Team, project and personal instructions have different scopes. Check the current product's precedence and application modes rather than relying on the original guide's simplified hierarchy.

#Keep permanent and temporary instructions separate

Always-applied rules suit durable team conventions. Manual/task-specific rules suit a limited assignment. A one-off performance-only task should not become an unrelated permanent rule.

#Organize the contents

Record the stack, code style, testing requirements, output/comment language and explicit exclusions.

markdown
# Project conventions ## Stack - Next.js App Router, TypeScript and styled-components - Jest for meaningful unit tests ## Style - Functional components and named exports - async/await for asynchronous logic ## Tests - Cover new utility behavior - Avoid snapshots that merely mirror implementation ## Output - Follow the task's requested language - Keep comments concise

This is sample rule content, not a prescription to change an existing repository's framework.

#Useful exclusions

Require an explicit decision before schema changes; avoid unrequested state libraries; remove temporary debug code; and do not use any merely to silence type errors.

#Common rule failures

“Follow best practices” is too vague. Temporary instructions become stale. An exhaustive wish list is difficult for both people and tools to maintain.

For writing tasks, plain headings, source-backed claims, an appropriate language policy and a non-promotional tone can also be recorded. These improve editorial consistency without guaranteeing search outcomes.

Start with the five constraints your team most frequently has to repeat.

#Next steps

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