cursor-best-practices

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Cursor Best Practices

Cursor最佳实践

Best practices for working with Cursor to maximize productivity and code quality.
使用Cursor以提升生产力和代码质量的最佳实践。

Core Principles

核心原则

  • Start with plans - Use Plan Mode (Shift+Tab) for complex tasks
  • Manage context effectively - Let agent find context, start new conversations when needed
  • Extend the agent - Use Rules for static context, Skills for dynamic capabilities
  • Review carefully - AI-generated code needs review like human code
  • 从规划开始 - 针对复杂任务使用Plan Mode(Shift+Tab)
  • 有效管理上下文 - 让agent查找上下文,必要时开启新对话
  • 扩展agent能力 - 使用Rules添加静态上下文,使用Skills实现动态功能
  • 仔细审核 - AI生成的代码需要像人工代码一样进行审核

Key Workflows

关键工作流

  • Test-driven development - Write tests first, iterate until passing
  • Codebase understanding - Use agent to explore and learn codebases
  • Git workflows - Automate common git operations with commands
  • Parallel agents - Run multiple agents simultaneously for comparison
  • 测试驱动开发 - 先编写测试,迭代直至通过
  • 代码库理解 - 使用agent探索和学习代码库
  • Git工作流 - 用命令自动化常见Git操作
  • 并行agent - 同时运行多个agent进行对比

References

参考资料

For detailed guidance, see:
  • references/planning.md
    - Plan mode and starting with plans
  • references/context.md
    - Managing context and conversations
  • references/extending.md
    - Rules vs Skills, extending agent
  • references/workflows.md
    - TDD, codebase understanding, git workflows
  • references/reviewing.md
    - Code review strategies
  • references/parallel-agents.md
    - Running agents in parallel
如需详细指导,请查看:
  • references/planning.md
    - Plan Mode与从规划开始
  • references/context.md
    - 上下文与对话管理
  • references/extending.md
    - Rules与Skills对比,扩展agent能力
  • references/workflows.md
    - TDD、代码库理解、Git工作流
  • references/reviewing.md
    - 代码审核策略
  • references/parallel-agents.md
    - 运行并行agent