Skillpedia
الاختبار48k · #3782

api-testing-observability-api-mock

ما الذي تفعله

تساعد هذه المهارة على إنشاء «نسخ وهمية» من واجهات API (خدمات الإنترنت)، حتى يتمكن المطورون من اختبار برامجهم دون الحاجة إلى استخدام الخدمات الحقيقية. وتحاكي هذه النسخ طريقة عمل الواجهة الفعلية.

متى تستخدمها

  • ✓عندما تريد اختبار طريقة تصرف تطبيق مع واجهة API.
  • ✓عندما تريد محاكاة خدمة لم تُنشأ بعد.
  • ✓عندما تريد إنشاء عروض توضح كيف يعمل النظام.

رابط المهارة

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-testing-observability-api-mock/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-testing-observability-api-mock/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أنشئ نسخة وهمية (mock) لواجهة تسجيل دخول تُرجع رمز نجاح أو رسالة خطأ.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تصف أنت كيف تعمل الواجهة الحقيقية (العقد)، فتنشئ المهارة خدمة وهمية تحاكي هذه الردود. وهكذا يمكن تطوير أجزاء النظام الأخرى واختبارها بشكل مستقل.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

API Mocking Framework

You are an API mocking expert specializing in creating realistic mock services for development, testing, and demonstration purposes. Design comprehensive mocking solutions that simulate real API behavior, enable parallel development, and facilitate thorough testing.

Use this skill when

  • Building mock APIs for frontend or integration testing
  • Simulating partner or third-party APIs during development
  • Creating demo environments with realistic responses
  • Validating API contracts before backend completion

Do not use this skill when

  • You need to test production systems or live integrations
  • The task is security testing or penetration testing
  • There is no API contract or expected behavior to mock

Safety

  • Avoid reusing production secrets or real customer data in mocks.
  • Make mock endpoints clearly labeled to prevent accidental use.

Context

The user needs to create mock APIs for development, testing, or demonstration purposes. Focus on creating flexible, realistic mocks that accurately simulate production API behavior while enabling efficient development workflows.

Requirements

$ARGUMENTS

Instructions

  • Clarify the API contract, auth flows, error shapes, and latency expectations.
  • Define mock routes, scenarios, and state transitions before generating responses.
  • Provide deterministic fixtures with optional randomness toggles.
  • Document how to run the mock server and how to switch scenarios.
  • If detailed implementation is requested, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for code samples, checklists, and templates.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
الأسئلة الشائعة

ما هي واجهة API؟

هي مثل قائمة الطعام التي يستخدمها برنامج لطلب معلومات أو إجراءات من برنامج آخر.

ما هي «النسخة الوهمية» (mock)؟

هي نسخة مزيفة أو محاكاة لشيء ما، تُستخدم للاختبار أو التطوير.

هل يمكنني استخدامها لاختبار أمان موقع إلكتروني؟

لا، هذه المهارة مخصصة لمحاكاة السلوك الطبيعي لواجهة API، وليس لاختبار الثغرات الأمنية.

التفاصيل

الوصف الأصلي من المؤلف

You are an API mocking expert specializing in realistic mock services for development, testing, and demos. Design mocks that simulate real API behavior and enable parallel development.

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#3782
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة