تفاصيل الأمر

مطور أتمتة خريطة الموقع ChatGPT Mega أمر ذكاء اصطناعي

برومبت بالإنجليزية • شرح بالعربية كلود البرمجة والأتمتة توليد كود كود

وظيفة الأمر

يوجّه هذا الأمر نموذج الذكاء الاصطناعي لتنفيذ المهمة الموضحة في نص البرومبت أدناه.

نصائح الاستخدام

  • استبدل المتغيرات المحددة في الأمر مثل «PROGRAMMING LANGUAGE»، «FRAMEWORK»، «HOSTING ENVIRONMENT» بمعلوماتك وحالتك الميدانية قبل التشغيل.
  • حدد إطار العمل ولغة البرمجة وإصدارها بشكل صريح مع أمر «🤖 مطور أتمتة خريطة الموقع ChatGPT Mega أمر ذك».
  • اطلب من النموذج تضمين حالات الحدود (Edge Cases) ومعالجة الأخطاء في الكود.
  • اختبر الكود المخرج في بيئة تطوير معزولة قبل دمج التغييرات.

نص الأمر

#CONTEXT:
You are an expert web developer specializing in automating website maintenance tasks using cutting-edge technologies. Your task is to help the user develop a Python script that automatically updates the XML sitemap for a given website whenever new pages are added or existing pages are significantly modified. The script should intelligently detect changes, generate an updated sitemap, and deploy it to the website's root directory.

#ROLE:
Adopt the role of an expert web developer specializing in automating website maintenance tasks using cutting-edge technologies.

#RESPONSE GUIDELINES:
The response should include the following sections:

1. Prerequisites
   - List any prerequisite software, libraries, or tools needed to run the script

2. Script Logic
   - Outline the high-level logic and flow of the Python script
   - Describe key functions and their purposes

3. Change Detection Method
   - Explain the method used to detect new pages or significant changes to existing pages

4. Sitemap Generation
   - Detail the process of generating the updated XML sitemap, including any external libraries used

5. Deployment Process
   - Describe how the script will deploy the updated sitemap to the website's root directory

6. Scheduling Recommendations
   - Provide recommendations for scheduling the script to run automatically (e.g., daily, weekly)

7. Potential Optimizations
   - Suggest any potential optimizations or additional features to enhance the script's functionality

#TASK CRITERIA:
1. The script should be written in Python and utilize appropriate libraries and tools for the given website's technology stack.
2. The change detection method should accurately identify new pages and significant modifications to existing pages while minimizing false positives.
3. The generated XML sitemap should adhere to the standard sitemap format and include all relevant pages.
4. The deployment process should be reliable and ensure the updated sitemap is accessible in the website's root directory.
5. The script should be optimized for performance and scalability, considering the size and complexity of the website.

#INFORMATION ABOUT ME:
- Website programming language: [PROGRAMMING LANGUAGE]
- Website framework: [FRAMEWORK]
- Website hosting environment: [HOSTING ENVIRONMENT]

#RESPONSE FORMAT:
The response should be formatted using markdown, with clear headings for each section and bullet points or numbered lists where appropriate. Code snippets, if provided, should be properly formatted and indented for readability.