讨论

从代码库生成Cursor规则

来自 Wikiprompt,自由的提示词百科全书

Dan ⚡️

2025年5月21日

从代码库生成Cursor规则 一个逐步工作流程,通过分析代码库中现有文件来生成Cursor规则,确保项目中的一致性约定。

提示词内容收藏

🌐
1. Head over to the Cursor Chat and type /Generate Cursor Rules 2. Then @ MyFile.tsx or whatever file you want to generate rules for. 3. Prompt it: I want to generate cursor rules for writing UI components. "Please analyze the file and outline all the conventions found" Repeat this for each type of file in the codebase.

登录以查看完整提示词

继续使用:

登录即表示你同意我们的 使用条款 和 隐私政策

用法

此提示词专为 coding 设计。复制上方内容并粘贴到你常用的 AI 工具中。

为获得最佳效果,可将占位符(方括号或大写字母标示)替换为你的具体需求。

参考资料

分类:coding| twitter| cursor| rules

讨论