Skillpedia
برمجة عامة40k · #7478

winmd-api-search

ما الذي تفعله

تساعدك هذه المهارة على إيجاد الدوال الصحيحة في Windows (APIs) لإضافة ميزات إلى برنامجك، مثل استخدام الكاميرا أو حفظ الملفات. وتجلب التفاصيل الكاملة لهذه الدوال.

متى تستخدمها

  • ✓عندما تريد بناء ميزة جديدة ولا تعرف أي دالة تستخدم.
  • ✓عندما تسأل « كيف أفعل X؟ » وX يتعلق بشيء من النظام (كاميرا أو ملفات وغيرها).
  • ✓عندما تحتاج إلى التفاصيل الدقيقة لدالة قبل كتابة الكود.

رابط المهارة

https://github.com/github/awesome-copilot/blob/main/skills/winmd-api-search/SKILL.md

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

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

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

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

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

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

“كيف ألتقط صورة باستخدام التطبيق؟”

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

كيف تعمل

تبحث المهارة في قاعدة بيانات محلية تحتوي على معلومات عن دوال Windows. تترجم طلبك إلى مصطلحات تقنية، وتجد الدالة الأنسب وتعرض تفاصيلها.

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

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

WinMD API Search

This skill helps you find the right Windows API for any capability and get its full details. It searches a local cache of all WinMD metadata from:

  • Windows Platform SDK — all Windows.* WinRT APIs (always available, no restore needed)
  • WinAppSDK / WinUI — bundled as a baseline in the cache generator (always available, no restore needed)
  • NuGet packages — any additional packages in restored projects that contain .winmd files
  • Project-output WinMD — class libraries (C++/WinRT, C#) that produce .winmd as build output

Even on a fresh clone with no restore or build, you still get full Platform SDK + WinAppSDK coverage.

When to Use This Skill

  • User wants to build a feature and you need to find which API provides that capability
  • User asks "how do I do X?" where X involves a platform feature (camera, files, notifications, sensors, AI, etc.)
  • You need the exact methods, properties, events, or enumeration values of a type before writing code
  • You're unsure which control, class, or interface to use for a UI or system task

Prerequisites

  • .NET SDK 8.0 or later — required to build the cache generator. Install from dotnet.microsoft.com if not available.

Cache Setup (Required Before First Use)

All query and search commands read from a local JSON cache. You must generate the cache before running any queries.

# All projects in the repo (recommended for first run)
.\.github\skills\winmd-api-search\scripts\Update-WinMdCache.ps1

# Single project
.\.github\skills\winmd-api-search\scripts\Update-WinMdCache.ps1 -ProjectDir <project-folder>

No project restore or build is needed for baseline coverage (Platform SDK + WinAppSDK). For additional NuGet packages, the project needs dotnet restore (which generates project.assets.json) or a packages.config file.

Cache is stored at Generated Files\winmd-cache\, deduplicated per-package+version.

What gets indexed

Source When available
Windows Platform SDK Always (reads from local SDK install)
WinAppSDK (latest) Always (bundled as baseline in cache generator)
WinAppSDK Runtime When installed on the system (detected via Get-AppxPackage)
Project NuGet packages After dotnet restore or with packages.config
Project-output .winmd After project build (class libraries that produce WinMD)

Note: This cache directory should be in .gitignore — it's generated, not source.

How to Use

Pick the path that matches the situation:


Discover — "I don't know which API to use"

The user describes a capability in their own words. You need to find the right API.

0. Ensure the cache exists

If the cache hasn't been generated yet, run Update-WinMdCache.ps1 first — see Cache Setup above.

1. Translate user language → search keywords

Map the user's daily language to programming terms. Try multiple variations:

User says Search keywords to try (in order)
"take a picture" camera, capture, photo, MediaCapture
"load from disk" file open, picker, FileOpen, StorageFile
"describe what's in it" image description, Vision, Recognition
"show a popup" dialog, flyout, popup, ContentDialog
"drag and drop" drag, drop, DragDrop
"save settings" settings, ApplicationData, LocalSettings

Start with simple everyday words. If results are weak or irrelevant, try the more technical variation.

2. Run searches

.\.github\skills\winmd-api-search\scripts\Invoke-WinMdQuery.ps1 -Action search -Query "<keyword>"

This returns ranked namespaces with top matching types and the JSON file path.

If results have low scores (below 60) or are irrelevant, fall back to searching online documentation:

  1. Use web search to find the right API on Microsoft Learn, for example:
    • site:learn.microsoft.com/uwp/api <capability keywords> for Windows.* APIs
    • site:learn.microsoft.com/windows/windows-app-sdk/api/winrt <capability keywords> for Microsoft.* WinAppSDK APIs
  2. Read the documentation pages to identify which type matches the user's requirement.
  3. Once you know the type name, come back and use -Action members or -Action enums to get the exact local signatures.

…

الأسئلة الشائعة

هل أحتاج إلى تثبيت شيء قبل استخدامها؟

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

ما هي APIs؟

واجهات البرمجة (APIs) تشبه الأوامر أو الأدوات التي يستخدمها المبرمجون ليجعلوا نظام التشغيل (مثل Windows) ينفذ مهام محددة، كالوصول إلى الكاميرا أو عرض الإشعارات.

ماذا يحدث إذا لم تجد المهارة الدالة المطلوبة؟

إذا لم تجد تطابقًا جيدًا في بياناتها المحلية، تقترح البحث في التوثيق الرسمي لـ Microsoft على الإنترنت.

التفاصيل

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

Find and explore Windows desktop APIs. Use when building features that need platform capabilities — camera, file access, notifications, UI controls, AI/ML, sensors, networking, etc. Discovers the right API for a task and retrieves full type details (methods, properties, events, enumeration values).

repo: github/awesome-copilot

الشعبية

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

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

0

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

التعليقات

  • …

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

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