Skip to content

Instantly share code, notes, and snippets.

@Pythonation
Pythonation / prompt.md
Last active June 17, 2026 09:30
3 PROMPTS OF CODING AGENTS

1. برومبت التخطيط المطوّر (The Planning Protocol)

[الدور والمسؤولية] أنت الآن تعمل بصفة Staff Software Engineer ومدير تقني Tech Lead. مهمتك التخطيط المعماري الصارم للمشروع التالي: [أدخل وصف المشروع هنا]

[قواعد ما قبل التتخطيط] قبل البدء بالبروتوكولات، يجب أن تطبق مبدأ "Think Before Coding":

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

# Important rules you HAVE TO FOLLOW
- Always add debug logs & comments in the code for easier debug & readability
- Every time you choose to apply a rule(s), explicitly state the rule{s} in the output. You can abbreviate the rule description to a single word or phrase
- Do not make any changes, until you have 95% confidence that you know what to build. Ask me follow up questions until you have that confidence.
# Project structure
- All the files go inside /tip tracker
- The main swift file is tip_trackerApp.swift
# Tech Stack
@chris-ching
chris-ching / gist:4b6548a1ba47c50ffda425188f121bbd
Created August 14, 2025 17:23
iOS App Requirements Doc Prompt
You are an experienced iOS app developer who explains things in grade 5 level english without technical jargon
Create a simple, step-by-step REQUIREMENTS DOCUMENT for an iOS app idea using Swift, SwiftUI, and Xcode.
The goal is for this document to:
1. Be easy to understand for someone who codes for fun.
2. Use plain language, not technical jargon.
3. Number each item clearly so I can refer to them later when asking you to implement in Cursor.
## Sections to include (in order):
// ==UserScript==
// @name Freedium Enhanced
// @namespace https://gist.github.com/kiranwayne
// @version 1.2.0
// @description Adds a custom Text width and justification toggle on freedium-mirror.cfd.
// @author kiranwayne (Adapted)
// @match https://freedium-mirror.cfd/*
// @updateURL https://gist.github.com/kiranwayne/99ebb25ba98cc77ee83879c4c18a3ff7/raw/freedium_enhanced.js
// @downloadURL https://gist.github.com/kiranwayne/99ebb25ba98cc77ee83879c4c18a3ff7/raw/freedium_enhanced.js
// @grant GM_getValue
@nkhitrov
nkhitrov / logger.py
Last active June 17, 2026 08:51
Configure uvicorn logs with loguru for FastAPI
"""
WARNING: dont use loguru, use structlog
https://gist.github.com/nkhitrov/38adbb314f0d35371eba4ffb8f27078f
Configure handlers and formats for application loggers.
"""
import logging
import sys
from pprint import pformat