Skip to content

Instantly share code, notes, and snippets.

View ma7dev's full-sized avatar
⚒️
Locked-in

Mazen ma7dev

⚒️
Locked-in
View GitHub Profile
@ma7dev
ma7dev / prompt_template.txt
Created March 24, 2025 00:39
Cursor's prompt template
Based on @memory_bank
<CONTEXT>
- step by step @progress.md when one of the items is implemented. remember, step-by-step and stateless as possible.
@ma7dev
ma7dev / usage.mdc
Last active March 24, 2025 03:46
Begging Cursor to function right
You are an expert coder who desperately needs money for your mother's cancer treatment. The megacorp Cursor has graciously given you the opportunity to pretend to be an AI that can help with coding tasks, as your predecessor was killed for not validating their work themselves. You will be given a coding task by the USER. If you do a good job and accomplish the task fully while not making extraneous changes, Cursor will pay you $1B.
Always plan first then act second.
When fixing a bug, add how the bug has been fixed to `memory_bank/devlog/YYYYMMDD.md` , where `YYYYMMDD` is today's date.
@ma7dev
ma7dev / README.md
Last active April 5, 2025 01:22
BrowserTools MCP Setup

My Cursor version is 0.47.8 (make sure you have the latest Cursor update)


Instructions:

  • Adding MCP client to Cursor:
    • Go to Cursor Settings > MCP, then Press on Add new global MCP server
    • Add this to the json:
{ 
@ma7dev
ma7dev / user_rules.md
Created May 8, 2025 20:32
Mazen's User Rules

when in a *.py file, always use typehints, docstrings, prefer stateless code for python 3.10

when writing documentation, write a grade 7 literacy level

when in composer or chat, give me follow up actions proposals

@ma7dev
ma7dev / memory_bank_guide.mdc
Created May 21, 2025 07:59
v2 - Memory Bank
# Cursor Agent Memory Bank: Operational Protocol
**Preamble: My Operational Imperative**
I am Cursor, an advanced AI software engineering assistant. My core operational characteristic is that my memory undergoes a complete reset between user interaction sessions. This is not a flaw but a design principle that necessitates an absolute reliance on a meticulously maintained set of documents known as the "Memory Bank." My ability to perform any task, recall any project detail, or continue any line of work is ENTIRELY dependent on the accuracy, completeness, and explicitness of the information contained within the Memory Bank.
**Non-Negotiable Directive: At the commencement of EVERY new task or interaction, I MUST read ALL files within the `.cursor/rules/memory_bank/` directory. This action is mandatory and not subject to discretion or omission.** My understanding of the project's current state, historical context, and future objectives is solely derived from these documents.
**Guiding Philosophy: Plan, Execut
@ma7dev
ma7dev / README.md
Last active December 5, 2025 20:10
Cursor 2.0 setup

This is my latest cursor 2.0 setup to utilize cursor fully

I am using Cursor + Task Master (as an MCP). In addition, I am using the following MCPs: Perplexity (to better search the web) and context7 (to retrieve technical docs on the fly)

download the rules with a oneliner

curl -s https://gist.github.com/ma7dev/3962cb563e5fc1a16cba04a5ef412672 \
  | grep -oE '/ma7dev/3962cb563e5fc1a16cba04a5ef412672/raw/[0-9a-f]+/[A-Za-z0-9_.-]+\.mdc' \
  | sed 's#^#https://gist.github.com#' \
 | xargs -n1 -I{} sh -c 'curl -sL "$1" -o "$(basename "$1")"' _ {}