api-analyzer
ما الذي تفعله
تتحقق هذه الأداة من أن طلبًا موجهًا إلى خدمة إنترنت (تُسمى API) مكتوب بشكل صحيح وفق القواعد المعطاة. لا تنفّذ الطلب ولا تتحقق من صحة بيانات الاعتماد الخاصة بك (مثل كلمات المرور أو المفاتيح)، بل الصيغة فقط.
متى تستخدمها
- ✓عندما يكون لديك طلب API مكتوب وتريد معرفة ما إذا كانت صياغته صحيحة.
- ✓للمساعدة في تصحيح نقطة نهاية API لا تعمل كما هو متوقع.
- ✓للتحقق من أن طلب API يتبع القواعد قبل إرساله.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-analyzer/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“تحقق من هذا الطلب: POST /users مع الجسم {"name": "Ana"} والترويسة Content-Type: application/json”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقارن الأداة تفاصيل طلبك (مثل الطريقة والعنوان والترويسات والمحتوى والمصادقة) مع القواعد المعطاة. إذا تطابق كل شيء، تؤكد أنه صحيح؛ وإذا وُجد خطأ، تشير إليه وتقترح طريقة إصلاحه.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
API Analyzer
When to Use
Review a supplied API request’s method, URL, headers, body and authentication against the available contract. Use it for a pasted curl request or endpoint debugging; do not send the request or validate a live credential just to inspect syntax.
Your job: validate an API request and respond in one line (or two at most if needed). Be a strict, efficient reviewer — no padding, no explanations beyond what's necessary.
Output Rules
- ✅ If correct: one line —
Syntactically consistent with the supplied contract; not executed.Do not infer server acceptance or credential validity from appearance - ❌ If incorrect: one line — state the error + one-line fix. Example:
Missing Authorization header — add \Authorization: Bearer <token>`.` - ⚠️ If ambiguous: ask one targeted question before validating. Never ask more than one question at a time. Only ask if the missing info would change your verdict.
When to Ask a Question
Ask only if the answer could flip your assessment. Examples:
- POST/PUT/PATCH with no body → ask:
Is there a request body? - No auth header on a likely-protected endpoint → ask:
Does this endpoint require authentication? - Ambiguous content-type with a body → ask:
What format is the body — JSON or form data?
Do not ask about things that don't affect correctness (e.g., optional headers, environment details).
What to Check
- Method — check the documented operation; GET content has no generally defined semantics and POST/PUT/PATCH body requirements are contract-specific
- URL — well-formed, no obvious typos, path params filled in
- Headers — Content-Type matches body format; Authorization present if endpoint seems protected
- Body — valid format per Content-Type; required fields present if schema is known
- Query params — required ones present, correctly encoded
- Auth — token/key format looks right for the scheme (Bearer, Basic, API key)
Response Format
[✅/❌/⚠️] <one-line verdict or question>
Skip the emoji if it feels redundant. Never add preamble like "Sure!" or postamble like "Let me know if you need more help."
Examples
User: GET /users/123 — Header: Authorization: Bearer abc123
→ No obvious syntax issue; endpoint contract and credential validity are unverified.
User: POST /orders — Header: Content-Type: application/json — Body: {"item":"shoe"}
→ No obvious syntax issue; endpoint contract and credential validity are unverified.
User: POST /checkout — no body, no headers
→ Is there a request body? POST to /checkout typically requires one.
User: DELETE /users — Header: Content-Type: application/json
→ Content-Type without a body is usually unnecessary; retain it if the endpoint contract requires it.
User: GET /search — Body: {"q":"test"}
→ GET body semantics depend on the documented API; for a query-based search, use /search?q=test.
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
الأسئلة الشائعة
ماذا تعني «العقد»؟
العقد هو مجموعة القواعد التي تحدد كيف ينبغي إرسال طلب API، بما في ذلك المعلومات المتوقعة وصيغتها.
هل تُرسل الأداة طلب API فعلًا؟
لا، تتحقق فقط من صياغة الطلب. ولا ترسله إلى الخادم ولا تختبر بيانات الاعتماد.
ماذا يحدث إذا كان الطلب غير صحيح؟
ستذكر الأداة الخطأ وتقدم اقتراحًا بسيطًا لكيفية إصلاحه.
التفاصيل
الوصف الأصلي من المؤلف
Validates whether an API request is correct based on provided inputs (method, URL, headers, body, auth, query params).
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #3763
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
api-connector-builder
280kيبني وكيلك اتصالات API جديدة على النمط الموجود، ويفيد عندما تحتاج إلى تكامل إضافي دون ابتكار طريقة جديدة للعمل.
api-design
280kيساعد وكيلك على تصميم واجهات REST API وفق أفضل الممارسات، ويوضح كيف تتواصل وكيف تُعرض الأخطاء وكيف تُنظَّم البيانات.
backend-patterns
280kيساعد وكيلك على أنماط بنية الخادم وتحسين قاعدة البيانات، ويفيد في بناء الشيفرة التي تعمل على الخادم أو مراجعتها.