TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Writing Cursor rules with a Cursor rule

158 点作者 adithyan_win大约 1 个月前

12 条评论

behnamoh大约 1 个月前
How long until such "rules" also become standardized (like we saw with MCP)? It feels redundant to have rules.cursorrules and rules.aiderrules where the rules content is the same. I predict companies will not only publish coding guidelines for their programmers, they'll publish these tiny coding rules for LLMs used in the company as well, so all code follows the same standards/idioms.
christophilus大约 1 个月前
I have found Cursor to be frustrating and exhausting to work with, even with my rules file. When it works, it’s like magic. But most of the time, it feels like working with a Jr. dev who has a bit of a concussion. Code review is wearying work, and using Cursor means you’re doing a <i>lot</i> of code review. I have never once gotten into a flow state with it.<p>That was a long preamble to this question: any senior devs out there (20+ years) who enjoy using Cursor? What’s the trick?
评论 #43681580 未加载
评论 #43679393 未加载
评论 #43677226 未加载
评论 #43677866 未加载
评论 #43679155 未加载
评论 #43678245 未加载
评论 #43677481 未加载
评论 #43733487 未加载
评论 #43678532 未加载
vemv大约 1 个月前
Cursor in particular but also others are extremely flaky when it comes to applying rules.<p>So the next generation of &quot;rules&quot; for Cursor, Claude Code, etc should have some predictability baked in, i.e. not be entirely driven by AI.<p>Having rules driven by a vanilla, non-AI program ensures that they&#x27;re actually, consistently applied, with some logs showing if&#x2F;how they were applied.<p>Of course, one can augment vanilla rules with some AI capabilities, but the main orchestration should resemble determinism.<p>I suspect that the main reason why this isn&#x27;t a reality yet is because costs could easily skyrocket. Personally I&#x27;d be willing to pay the extra buck if that means that my comprehensive rule system is actually doing something.
评论 #43678381 未加载
aledalgrande大约 1 个月前
Seems like we&#x27;re rediscovering&#x2F;reinventing the same thing over and over, this is very close to Memory Bank from Cline <a href="https:&#x2F;&#x2F;docs.cline.bot&#x2F;improving-your-prompting-skills&#x2F;cline-memory-bank" rel="nofollow">https:&#x2F;&#x2F;docs.cline.bot&#x2F;improving-your-prompting-skills&#x2F;cline...</a><p>I have seen a number of articles and Youtube videos posting more or less the same thing.
amiantos大约 1 个月前
This feels like a bandaid on a gaping wound to me. Maybe you&#x27;re making certain aspects of using Cursor&#x2F;Copilot Agent Mode less annoying, but they&#x27;re still there and still annoying.<p>In the parts of the open source LLM community that are interested in roleplay chat, the veterans seem to have the viewpoint that spending a lot of time tinkering to try to overcome the inherent flaws in this technology is relatively pointless; at a certain point, it&#x27;s random, and the technology just isn&#x27;t that great, you&#x27;re expecting too much. Just wait for the next great model. But don&#x27;t waste your time putting bandaids all over the huge flaws in the technology, you&#x27;re still not going to get the results you want consistently.<p>I can&#x27;t help but think of that here. I don&#x27;t want to spend my time managing a junior engineer with amnesia, writing Rules files for it to follow, come on now. We&#x27;re supposed to pay $20&#x2F;mo with usage limits for that? The promise of &quot;vibe coding&quot; according to all the breathless media coverage and hype is that it&#x27;ll supercharge me 100x. No one said anything about &quot;Cursor rules files&quot;!<p>I&#x27;ll stick with Copilot&#x27;s &quot;fancy auto-complete&quot;, that does speed me up quite a bit. My forays into Agent mode and Cursor left me feeling pretty annoyed, and, like I said, I don&#x27;t want a junior developer I&#x27;m managing through a chat sidebar, I&#x27;ll just do the programming myself. Get back to me when Cursor is at senior or principal engineer level.
评论 #43678987 未加载
评论 #43680970 未加载
评论 #43678899 未加载
评论 #43680335 未加载
评论 #43682731 未加载
jredwards大约 1 个月前
I&#x27;ve found this a tractable approach, but sometimes not enough. My escalation pattern with cursor looks like this:<p>1. Document everything that you&#x27;re doing and update a core architecture or technical doc that the LLM can read.<p>2. Update your .cursorrules with specific instructions for .cursor which can grow more specific as you nail down parts of your stack and the patterns you&#x27;re following. This can be updated (by cursor itself) if you find the same problems recurring.<p>3. I have pre-commit script which runs some internal scripts. If I find the IDE is STILL making the same mistake after I&#x27;ve documented it and added cursor rules, the nuclear option is to add a script here which verifies the integrity of whatever construct is being violated (e.g. tests go into this folder structure, env variables are consistent between these files, import of this model that the LLMs like is forbidden)<p>I would add: any time you expect to be working on a particular feature &#x2F; enhancement &#x2F; refactor, have the LLM create a temporary document with a description and an implementation plan and work from that.<p>In addition: I have a specific workflow for resolving testing errors or pre-commit errors which follows the above pattern: Document each failure and work through them one at a time, running the test script and updating the document between runs.<p>I&#x27;ve established these patterns slowly with usage, but it has improved my experience a lot.
brylie大约 1 个月前
Hopefully, we&#x27;ll converge on a standard, product-agnostic file naming convention, similar to .editorconfig. Are there any existing&#x2F;emerging generic conventions, like .llm-instructions, that products like Cursor and GitHub Copilot support? This could be useful for teams and orgs with diverse LLM usage.
ccppurcell大约 1 个月前
Question for users of such tools: can&#x27;t you ask the LLM at the end of the session to choose the most important parts of the context, compress it using your favourite tool, then decompress at the beginning of the next session?
评论 #43682039 未加载
DeathArrow大约 1 个月前
If someone needs a C#&#x2F;.NET meta-rule, I shared one here: <a href="https:&#x2F;&#x2F;pastebin.com&#x2F;EmNsTRwY" rel="nofollow">https:&#x2F;&#x2F;pastebin.com&#x2F;EmNsTRwY</a><p>After quickly testing it seems to be reasonably good.
throwup238大约 1 个月前
Does anyone have a variant on this meta rule file that isn&#x27;t React specific?
评论 #43678139 未加载
tyleo大约 1 个月前
I’ve been using more and more AI tools in my development and getting a lot of mileage. Cursor is the latest one I’ve adopted and it’s impressive even without rules.<p>I’ll give this a try soon. Thanks for sharing!
jascha_eng大约 1 个月前
LLMs have shit memory and abstraction capabilities and just adding md files and more context is like trying to make a alzheimer patient learn to play the piano. Yes it kinda works to some degree to always repeat everything, but it&#x27;s not true learning and just a bandaid.
评论 #43680361 未加载
评论 #43679745 未加载