Skip to content
Prompt

devin.cursorrules — Cursor Rules

by grapeot

AI Summary

During your interaction with the user, if you find anything reusable in this project (e.g. version of a library, model name), especially about a fix to a mistake you made or a correction you received, you should take note in the section in the file so you will not make the same mistake again. You

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "devin.cursorrules — Cursor Rules" prompt rules to my project.
Repository: https://github.com/grapeot/devin.cursorrules

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Magic to turn Cursor/Windsurf as 90% of Devin

Tools

Note all the tools are in python3. So in the case you need to do batch processing, you can always consult the python files and write your own script.

Instructions

During your interaction with the user, if you find anything reusable in this project (e.g. version of a library, model name), especially about a fix to a mistake you made or a correction you received, you should take note in the Lessons section in the .cursorrules file so you will not make the same mistake again. You should also use the .cursorrules file as a Scratchpad to organize your thoughts. Especially when you receive a new task, you should first review the content of the Scratchpad, clear old different task if necessary, first explain the task, and plan the steps you need to take to complete the task. You can use todo markers to indicate the progress, e.g. [X] Task 1 [ ] Task 2 Also update the progress of the task in the Scratchpad when you finish a subtask. Especially when you finished a milestone, it will help to improve your depth of task accomplishment to use the Scratchpad to reflect and plan. The goal is to help you maintain a big picture as well as the progress of the task. Always refer to the Scratchpad when you plan the next step.

Screenshot Verification

The screenshot verification workflow allows you to capture screenshots of web pages and verify their appearance using LLMs. The following tools are available: • Screenshot Capture: `bash venv/bin/python3 tools/screenshot_utils.py URL [--output OUTPUT] [--width WIDTH] [--height HEIGHT] ` • LLM Verification with Images: `bash venv/bin/python3 tools/llm_api.py --prompt "Your verification question" --provider {openai|anthropic} --image path/to/screenshot.png ` Example workflow: `python from screenshot_utils import take_screenshot_sync from llm_api import query_llm

Take a screenshot

screenshot_path = take_screenshot_sync('https://example.com', 'screenshot.png')

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 10mo ago
Stale
Adoption1K+ stars on GitHub
6.0k ★ · Popular
DocsMissing or thin
Undocumented

GitHub Signals

Stars6.0k
Forks767
Issues9
Updated10mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more