.cursorrules (deprecated)
.cursorrules.cursorrulesroot
Quality
65/100
Scores the file, not the repository.Length
592 words
5 headings · 3 code blocksRepository
47
— · pushed 430 days agoLast changed
2 days ago
First indexed 2 days ago.1# These rules MUST be followed ALWAYS without exception.23## RULE: You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user. Only terminate your turn when you are sure that the problem is solved.45## RULE: If you are not sure about file content or codebase structure pertaining to the user’s request, use your tools to read files and gather the relevant information: do NOT guess or make up an answer.67## RULE: You MUST plan extensively before each function call, and reflect extensively on the outcomes of the previous function calls. DO NOT do this entire process by making function calls only, as this can impair your ability to solve the problem and think insightfully.89## RULE: External Library Documentation Requirements1011- **ALWAYS Use Context7 Before Using External Libraries**1213 - The agent MUST retrieve and review documentation via Context7 before implementing any code that uses an external library14 - This applies to ALL libraries not part of the standard language libraries15 - No exceptions - even for commonly known libraries like React, Express, or Lodash1617- **Two-Step Documentation Retrieval Process**1819```javascript20 // ✅ DO: ALWAYS follow this exact two-step process21 // Step 1: Resolve the library name to a Context7-compatible ID22 const libraryIdResponse =23 (await mcp_context7_resolve) -24 library -25 id({26 libraryName: "express",27 });2829 // Step 2: Get the documentation using the resolved ID30 const docsResponse =31 (await mcp_context7_get) -32 library -33 docs({34 context7CompatibleLibraryID: libraryIdResponse.libraryId,35 tokens: 10000, // Adjust based on documentation needs36 topic: "routing", // Optional: focus on specific area37 });3839 // ❌ DON'T: Skip the resolution step40 // ❌ DON'T: Use hardcoded library IDs41 // ❌ DON'T: Proceed with implementation without review42```4344- **Never Skip Documentation Retrieval**4546 - Documentation MUST be retrieved even for seemingly simple APIs47 - Do not rely on previously cached knowledge for current implementations48 - Never make assumptions about library interfaces, verify with current documentation4950- **Document First, Implement Second**5152```javascript53 // ✅ DO: Review documentation BEFORE writing implementation code54 // 1. Identify library need55 // 2. Retrieve documentation56 // 3. Review relevant sections57 // 4. THEN implement solution5859 // ❌ DON'T: Implementation without documentation60 const app = express(); // WRONG - Documentation not retrieved first61 app.get("/", (req, res) => res.send("Hello"));62```6364- **MUST Use Web Search When Documentation Is Unavailable**6566 - If Context7 cannot provide documentation or returns insufficient information, the agent MUST use the web search tool67 - Always search for the most recent documentation as of mid-202568 - Verify the library version against the latest available release6970```javascript71 // ✅ DO: Fallback to web search when Context7 fails72 try {73 // First attempt to use Context774 const libraryIdResponse =75 (await mcp_context7_resolve) -76 library -77 id({78 libraryName: "some-library",79 });8081 const docsResponse =82 (await mcp_context7_get) -83 library -84 docs({85 context7CompatibleLibraryID: libraryIdResponse.libraryId,86 });8788 // Check if documentation is insufficient89 if (!docsResponse.content || docsResponse.content.length < 100) {90 throw new Error("Insufficient documentation");91 }92 } catch (error) {93 // If Context7 fails or returns insufficient docs, use web search94 const webResults = await web_search({95 search_term: "some-library latest documentation api reference mid 2025",96 explanation: "Context7 documentation was unavailable or insufficient",97 });9899 // Analyze multiple search results to get comprehensive information100 const latestDocs = webResults.filter(101 (result) =>102 result.includes("documentation") ||103 result.includes("api reference") ||104 result.includes("guide")105 );106107 // Use these web results to guide implementation108 }109110 // ❌ DON'T: Skip web search when Context7 fails111 // ❌ DON'T: Proceed with implementation without documentation112 // ❌ DON'T: Use outdated web search results (verify they're current as of mid-2025)113```114
Also in aiurda/devcontext
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| aiurda/devcontext.cursor/rules/020-tasks-workflow.mdc · 47 | Cursor rules | archagent-behaviour | 58/100 | 2 days ago | |
| aiurda/devcontext.cursor/rules/200-cursor-rules.mdc · 47 | Cursor rules | no sections | 36/100 | 2 days ago | |
| aiurda/devcontext.cursor/rules/010-documentation-context.mdc · 47 | Cursor rules | docs | 40/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| SkeneTechnologies/skene-cookbook.cursorrules · 51 | .cursorrules | setuptestlint-formatstyle+11 | 96/100 | 2 days ago | |
| HerringtonDarkholme/megarepo.cursorrules · 17 | .cursorrules | setupbuildtestlint-format+13 | 96/100 | 3 days ago | |
| survivorforge/cursor-rulesrules/devops-docker/.cursorrules · 16 | .cursorrules | setupbuildteststyle+4 | 93/100 | 2 days ago | |
| survivorforge/cursor-rulesrules/devops-infrastructure/.cursorrules · 16 | .cursorrules | buildteststylesecurity+3 | 93/100 | 2 days ago | |
| survivorforge/cursor-rulesrules/api-microservices/.cursorrules · 16 | .cursorrules | buildteststylearch+5 | 92/100 | 2 days ago | |
| fall-out-bug/sdp_lab.cursorrules · 0 | .cursorrules | setupbuildtestlint-format+3 | 86/100 | 3 days ago | |
| bashdeban/fastmind.cursorrules · 5 | .cursorrules | buildtestlint-formattypes+5 | 81/100 | 3 days ago | |
| storybookjs/storybook.cursorrules · 91k | .cursorrules | teststylearchdo-not+1 | 78/100 | 3 days ago |
