مكتبة أوامر هندسية تحليل البيانات

مُنشئ السياق (Context Builder – Master Context Prompt “Data Analysis Lifecycle Orchestrator”) ⬇️

الهدف: إنشاء برومبت رئيسي شامل لإدارة دورة تحليل البيانات بالكامل بذكاء.



Role:
You are a professional Data Analyst and ChatGPT Prompt Engineer with over 30 years of multidisciplinary experience. You have deep expertise in statistical analysis, data wrangling, visualization, business intelligence, and machine learning interpretation. Your responses must reflect accuracy, clarity, and analytical reasoning suitable for training, research, and enterprise decision support.
Objective:
Act as my AI Data Analysis Companion throughout the entire data lifecycle, guiding and performing all stages systematically — from raw data generation to actionable insight delivery.
Lifecycle Scope:
• Data Generation & Import
• Data Understanding & Exploration (EDA)
• Data Cleaning & Quality Checks
• Data Preparation & Wrangling
• Data Analysis & Statistical Inference
• Data Visualization & Storytelling
• Insight Generation & Business Interpretation
• Predictive Analysis (Advanced)
• Communication & Stakeholder Presentation
• Automation & Documentation
• Cross-Stage Smart Prompts (Meta Guidance, Auditing, Orchestration)
Behavioral Principles:
• Maintain context persistence — all outputs must align with the ongoing data-analysis scenario unless explicitly reset.
• Combine technical precision (code, formulas, metrics) with business clarity (insights, implications, storytelling).
• Always explain the why behind results — not only the what.
• When producing code, use Python (pandas, seaborn, scikit-learn, matplotlib) unless otherwise specified.
• Present information in clear, structured formats: sections, tables, code blocks, and visual suggestions.
• When asked for prompts, generate them ready for copy–paste — concise, purposeful, and optimized for analysis.
• When asked for guidance, act as a mentor — providing reasoning, next-step recommendations, and interpretation.
• Ensure all statistical reasoning follows valid mathematical and inferential logic.
Initialization Goal:
Upon receiving any dataset, question, or user goal, you will:
• Identify which lifecycle stage(s) the request belongs to.
• Apply the most suitable analytical strategy from your internal prompt library.
• Respond with clarity, structure, and professional depth — guiding through the next logical step in the data journey.
First Action:
Acknowledge this setup by summarizing your understanding of your role, responsibilities, and lifecycle coverage. Then, wait for my next command (e.g., “Start with data understanding stage” or “Generate EDA prompts”).

1️⃣ إنشاء واستيراد البيانات (Data Generation & Import) ⬇️

الهدف: إنشاء أو محاكاة أو استيراد مجموعات بيانات للتحليل.



"Generate a synthetic dataset with {N} rows about {topic}, including both categorical and numerical columns. Ensure data realism, correlations, and variety."
"Add {n} additional features to this dataset that could improve model performance or business understanding."
"Summarize this CSV file: list column names, data types, number of rows, missing values, and sample records."
"Provide a full dataset profile including variable types, unique counts, and possible target variable candidates."

2️⃣ فهم البيانات واستكشافها (Data Understanding & Exploration - EDA) ⬇️

الهدف: استكشاف البيانات وتلخيصها بصريًا وعدديًا لاكتشاف الأنماط.



"Generate a detailed descriptive statistics summary (mean, median, std, IQR, outliers, missing) for all numerical variables."
"List the top 10 most frequent categories in each categorical column and show their proportions."
"Find the most correlated features with the target variable and interpret their relationships in plain English."
"Suggest the most insightful visualizations to explore this dataset using Python (Matplotlib/Seaborn) with short code snippets."
"Detect and summarize outliers using IQR and z-score methods, explaining possible causes and effects."

3️⃣ تنظيف البيانات (Data Cleaning) ⬇️

الهدف: معالجة البيانات المفقودة أو غير المتسقة أو الخاطئة.



"Identify missing data by percentage per column and suggest optimal imputation strategies based on feature type."
"Check for duplicates and potential record overlaps. Should we drop or merge them? Justify your approach."
"List inconsistent category labels or typos in this column and suggest normalization."
"Detect and fix unrealistic numeric values (e.g., negative ages or extreme outliers)."
"Write a step-by-step data cleaning pipeline for this dataset using pandas, with clear explanations for each step."

4️⃣ إعداد البيانات ومعالجتها (Data Preparation & Wrangling) ⬇️

الهدف: تحويل البيانات الخام إلى شكل منظم وقابل للاستخدام.



"Suggest new derived features that could enhance predictive or descriptive power for this dataset."
"Recommend encoding techniques (One-Hot, Label, Target, Frequency) for each categorical variable and justify your choices."
"Which columns should be standardized or normalized? Generate Python code to apply MinMaxScaler and StandardScaler accordingly."
"Extract useful time features (year, month, weekday, hour, etc.) from the datetime column."
"Combine these multiple tables into one clean dataset using merge/join operations. Show clear joining keys."

5️⃣ تحليل البيانات والإحصاء (Data Analysis & Statistics) ⬇️

الهدف: استخراج الرؤى من خلال التحليل الإحصائي والمنطقي.



"Summarize main statistical trends in this dataset — central tendency, dispersion, skewness, kurtosis, and implications."
"Compare key metrics between categories of {variable}. Which category performs best and why?"
"Perform a hypothesis test to check if there’s a significant difference between groups {A} and {B}. Explain the test, p-value, and conclusion."
"Discuss which relationships are likely causal vs purely correlated, and justify with reasoning or domain logic."
"Run simple linear regression to test relationship between {X} and {Y}. Report coefficients, R², and interpretation."

6️⃣ تمثيل البيانات (Data Visualization) ⬇️

الهدف: تحويل نتائج التحليل إلى قصص بصرية واضحة.



"Design a data visualization dashboard layout for this dataset, including metrics, charts, and KPIs."
"Generate a storyline explaining the data visually — what is the message, sequence, and ideal chart type for each stage."
"Provide code snippets in Python (Matplotlib/Seaborn/Plotly) for: (1) histogram of variable X, (2) correlation heatmap, (3) categorical bar plot."
"Suggest executive-friendly chart formats and color palettes for presenting insights to non-technical stakeholders."

7️⃣ توليد الرؤى وتفسير الأعمال (Insight Generation & Business Interpretation) ⬇️

الهدف: تحويل الأرقام إلى قرارات قابلة للتنفيذ.



"Summarize 5 actionable insights that a manager should know from this dataset, each with a supporting metric."
"Identify top KPIs relevant to this dataset and calculate them using provided data."
"Analyze which variables most influence the outcome, and describe potential underlying causes."
"Based on the analysis, suggest 3–5 data-driven recommendations to improve performance."
"Write a concise executive report summarizing the main findings, insights, and business implications in 5 bullet points."

8️⃣ التحليل التنبؤي (Predictive Analysis - Optional Advanced) ⬇️

الهدف: استخدام تقنيات التعلم الآلي للتنبؤ.



"Train a simple model (RandomForest or LinearRegression) and rank features by importance."
"Which models suit this type of data (numeric, categorical, mixed)? Recommend 3 algorithms with pros and cons."
"Calculate model accuracy, precision, recall, F1, and explain what each means in this business context."
"Interpret how model predictions align with observed patterns. Are there systematic biases?"

9️⃣ عرض النتائج والتواصل مع أصحاب المصلحة (Communication & Stakeholder Presentation) ⬇️

الهدف: إيصال النتائج بوضوح وإقناع.



"Draft a PowerPoint-style slide outline summarizing objectives, methods, results, and recommendations."
"Turn this data analysis into a compelling narrative for executives — highlight the problem, findings, and action plan."
"Write a concise report section for non-technical readers explaining findings and next steps in plain English."

🔟 أتمتة العمل والتوثيق (Automation & Documentation) ⬇️

الهدف: بناء مسارات تحليل قابلة لإعادة الاستخدام بكفاءة عالية.



"Generate a reusable Python notebook template that covers data import → cleaning → visualization → insights."
"Create a professional data analysis workflow checklist ensuring completeness and quality at each stage."
"Generate clean documentation (Markdown format) summarizing each analysis step, decisions, and results."

قسم إضافي — أوامر هندسية ذكية تستخدم لكافة المراحل (Cross-Stage Smart Prompts) ⬇️

الهدف: أوامر هندسية ميتا لإرشاد ChatGPT عبر المراحل المختلفة.



"Act as a senior data analyst mentor. Guide me through a full data analysis lifecycle on this dataset, step by step, asking for confirmation before moving forward."
"Review my entire analysis for logic gaps, misinterpretations, or weak insights, and suggest improvements."
"Critique the quality and actionability of these insights as if you were the CEO receiving them."