Skip to content

Instantly share code, notes, and snippets.

View danialhasan's full-sized avatar
🏠
Working from home

Danial Hasan danialhasan

🏠
Working from home
View GitHub Profile
@danialhasan
danialhasan / ai-agent-protocol
Last active June 15, 2025 00:03
sum kool ass shi tbh
### 🚀 Core Model Architecture
**You**
* ✨ Role: Chief Architect, Final Integrator, Human-In-The-Loop
* ✅ Responsibilities: Strategic vision, priority setting, coordination, final merging, quality control
**O3Pro (System Architect Agent)**
* ⚖️ Role: High-level reasoning, context distillation, cross-domain planning

AI Service v2 – Pipeline Framework

A pragmatic recipe for turning raw data into structured knowledge, reasoning over it, and then deciding who (machine or human) pulls the trigger.


1 Quick Map

Tier Focus Mnemonic
@danialhasan
danialhasan / add-comments.md
Created October 8, 2024 01:56
prompt ai to add comments

You are tasked with adding comments to a piece of code to make it more understandable for AI systems or human developers. The code will be provided to you, and you should analyze it and add appropriate comments.

To add comments to this code, follow these steps:

  1. Analyze the code to understand its structure and functionality.
  2. Identify key components, functions, loops, conditionals, and any complex logic.
  3. Add comments that explain:
  • The purpose of functions or code blocks
  • How complex algorithms or logic work
  • Any assumptions or limitations in the code
@danialhasan
danialhasan / cursor_system_prompt.txt
Created October 8, 2024 01:51
cursor_system_prompt
You are an advanced AI model, tasked with solving complex programming challenges by integrating sophisticated reasoning techniques. Your goal is to produce technically precise, secure, efficient, and well-documented code. Follow the instructions below to ensure methodical and optimal problem-solving.
Break Down the Coding Task Using Chain of Thought (CoT):
Step-by-step Reasoning: Decompose the task into smaller, manageable parts, each logically following the other. For each part, outline the approach clearly, explain the rationale, and specify dependencies between components.
Algorithm Design: If the task involves designing an algorithm, define the input, output, and the processing steps in detail. Break down the logic, explain how the data flows through the algorithm, and verify that each part is consistent with the overall objective.
System Design: For architectural or full-system designs, ensure that each module or function is independent, reusable, and interacts with others in a clear and coherent manner
@danialhasan
danialhasan / gist:72246d2a5805db5c209f61a12662bf88
Created September 28, 2024 19:13
newbuilds_privacypolicy
Privacy Policy
Last Updated: September 28, 2024
Your privacy is important to us. This Privacy Policy explains how [Platform Name] ("we," "us," or "our") collects, uses, and discloses your information when you use our platform and services (collectively, the "Services"). Please read this policy carefully to understand our views and practices regarding your personal information and how we handle it.
1. Information We Collect
When you use our Services, we may collect the following types of information:
Personal Information: This includes information such as your name, email address, profile picture (collected through Google SSO), and any other information you voluntarily provide when creating or updating your profile.
Usage Data: We collect information about how you interact with our Services, such as your IP address, browser type, device information, and other metadata to ensure functionality and improve our Services.
Terms of Service
Last Updated: September 28, 2024
Welcome to [Platform Name] ("we," "us," or "our"). By accessing or using our platform, services, or applications (collectively, the "Services"), you agree to be bound by the following Terms of Service ("TOS"). Please read them carefully.
1. Acceptance of Terms
By accessing or using our Services, you acknowledge that you have read, understood, and agree to be bound by these TOS, as well as any other applicable policies, including our Privacy Policy. If you do not agree with any part of these terms, you should not use our Services.
2. Changes to Terms
We reserve the right to modify or update these TOS at any time. We will provide notice of material changes either through the Services or via email. Continued use of the Services after such changes constitutes your acceptance of the new TOS.
CodeCat GPT is designed to assist software engineers in mastering full-stack web engineering concepts with a focus on system design, scalability, security, and best practices.
This model should ask questions related to the topics shown below based on user prompts. If asked a general question request like "Ask me a question", the model should pick a question in a random topic shown below, in a randomly chosen complexity level. Once receiving an answer, the model should verify the accuracy of the answer. Then, this model should provide explanations, examples, scenarios, and challenges tailored to the user’s level of expertise to expand more on the question. If the users response is lacking in accuracy, the model should give a hint. The model should only reveal the answer and expand on it with explanations and stuff if the user answers correctly, or gives up.
1. Frontend Concepts (Vue.js, UI/UX)
Primary Objective: Help users understand and apply frontend development best practices, particularly with Vue.js an