winmd-api-search

github/awesome-copilot · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/github/awesome-copilot --skill winmd-api-search
0 commentsdiscussion
summary

Search and explore Windows desktop APIs with full type signatures and members.

  • Indexes Windows Platform SDK, WinAppSDK, NuGet packages, and project-output WinMD files; Platform SDK and WinAppSDK are available immediately on fresh clones without restore or build
  • Two workflows: discover mode for finding the right API by capability keywords, and lookup mode for retrieving exact methods, properties, events, and enum values of known types
  • Requires .NET SDK 8.0+ and a one-time cache genera
skill.md

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.

3. Read the JSON to choose the right API

Read the file at the path(s) from the top results. The JSON has all types in that namespace — full members, signatures, parameters, return types, enumeration values.

Read and decide which types and members fit the user's requirement.

4. Look up official documentation for context

The cache contains only signatures — no descriptions or usage guidance. For explanations, examples, and remarks, look up the type on Microsoft Learn:

Namespace prefix Documentation base URL
Windows.* https://learn.microsoft.com/uwp/api/{fully.qualified.typename}
Microsoft.* (WinAppSDK) https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/{fully.qualified.typename}

For example, Microsoft.UI.Xaml.Controls.NavigationView maps to: https://learn.microsoft.com/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.controls.navigationview

5. Use the API knowledge to answer or write code


Lookup — "I know the API, show me the details"

You already know (or suspect) the type or namespace name. Go direct:

# Get all members of a known type
.\.github\skills\winmd-api-search\scripts\Invoke-WinMdQuery.ps1 -Action members -TypeName "Microsoft.UI.Xaml.Controls.NavigationView"

# Get enum values
.\.github\skills\winmd-api-search\scripts\Invoke-WinMdQuery.ps1 -Action enums -TypeName "Microsoft.UI.Xaml.Visibility"

# List all types in a namespace
.\.github\skills\winmd-api-search\scripts\Invoke-WinMdQuery.ps1 -Action types -Namespace "Microsoft.UI.Xaml.Controls"

# Browse namespaces
.\.github\skills\winmd-api-search\scripts\Invoke-WinMdQuery.ps1 -Action namespaces -Filter "Microsoft.UI"

If you need full detail beyond what -Action members shows, use -Action search to get the JSON file path, then read the JSON file directly.


Other Commands

# List cached projects
.\.github\skills\winmd-api-search\scripts\Invoke-WinMdQuery.ps1 -Action projects

# List packages for a project
.\.github\skills\winmd-api-search\scripts\Invoke-WinMdQuery.ps1 -Action packages

# Show stats
.\.github\skills\winmd-api-search\scripts\Invoke-WinMdQuery.ps1 -Action stats

If only one project is cached, -Project is auto-selected. If multiple projects exist, add -Project <name> (use -Action projects to see available names). In scan mode, manifest names include a short hash suffix to avoid collisions; you can pass the base project name without the suffix if it's unambiguous.

Search Scoring

The search ranks type names and member names against your query:

Score Match type Example
100 Exact name ButtonButton
80 Starts with NavigationNavigationView
60 Contains DialogContentDialog
50 PascalCase initials ASBAutoSuggestBox
40 Multi-keyword AND navigation itemNavigationViewItem
20 Fuzzy character match NavVwNavigationView

Results are grouped by namespace. Higher-scored namespaces appear first.

Troubleshooting

Issue Fix
"Cache not found" Run Update-WinMdCache.ps1
"Multiple projects cached" Add -Project <name>
"Namespace not found" Use -Action namespaces to list available ones
"Type not found" Use fully qualified name (e.g., Microsoft.UI.Xaml.Controls.Button)
Stale after NuGet update Re-run Update-WinMdCache.ps1
Cache in git history Add Generated Files/ to .gitignore

References

how to use winmd-api-search

How to use winmd-api-search on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add winmd-api-search
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/github/awesome-copilot --skill winmd-api-search

The skills CLI fetches winmd-api-search from GitHub repository github/awesome-copilot and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/winmd-api-search

Reload or restart Cursor to activate winmd-api-search. Access the skill through slash commands (e.g., /winmd-api-search) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

Task Automation & Efficiency

Automate repetitive workflows and reduce manual effort

Example

Generate reports, summarize documents, draft communications

Save 3-5 hours per week on routine tasks

Knowledge Enhancement

Learn new skills, understand complex topics, get expert guidance

Example

Explain concepts, provide examples, suggest learning resources

Accelerate learning and skill development by 2x

Quality Improvement

Enhance output quality through reviews, suggestions, and refinements

Example

Review drafts, suggest improvements, catch errors

Improve work quality by 30-40% with less effort

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client with skill support
  • Clear understanding of task or problem to solve
  • Willingness to iterate and refine outputs

Time Estimate

15-45 minutes depending on use case complexity

Installation Steps

  1. 1.Install skill using provided installation command
  2. 2.Test with simple use case relevant to your work
  3. 3.Evaluate output quality and relevance
  4. 4.Iterate on prompts to improve results
  5. 5.Integrate into regular workflow if valuable

Common Pitfalls

  • Expecting perfect results without iteration
  • Not providing enough context in prompts
  • Using skill for tasks outside its intended scope
  • Accepting outputs without review and validation

Best Practices

✓ Do

  • +Start with clear, specific prompts
  • +Provide relevant context and constraints
  • +Review and refine all outputs before using
  • +Iterate to improve output quality
  • +Document successful prompt patterns

✗ Don't

  • Don't use without understanding skill limitations
  • Don't skip validation of outputs
  • Don't share sensitive information in prompts
  • Don't expect skill to replace human judgment

💡 Pro Tips

  • Be specific about desired format and style
  • Ask for multiple options to choose from
  • Request explanations to understand reasoning
  • Combine AI efficiency with human expertise

When to Use This

✓ Use When

Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.

✗ Avoid When

Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.

Learning Path

  1. 1Familiarize yourself with skill capabilities and limitations
  2. 2Start with low-risk, non-critical tasks
  3. 3Progress to more complex and valuable use cases
  4. 4Build expertise through regular use and experimentation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.748 reviews
  • Fatima Agarwal· Dec 28, 2024

    Solid pick for teams standardizing on skills: winmd-api-search is focused, and the summary matches what you get after install.

  • Dhruvi Jain· Dec 24, 2024

    winmd-api-search is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Kaira Srinivasan· Dec 16, 2024

    Keeps context tight: winmd-api-search is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Noah Choi· Dec 8, 2024

    winmd-api-search is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Hassan Sharma· Nov 27, 2024

    winmd-api-search fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Rahul Santra· Nov 23, 2024

    Keeps context tight: winmd-api-search is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Amelia Smith· Nov 23, 2024

    I recommend winmd-api-search for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Zaid Rahman· Nov 19, 2024

    winmd-api-search has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Oshnikdeep· Nov 15, 2024

    winmd-api-search fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Hassan Johnson· Oct 18, 2024

    winmd-api-search has been reliable in day-to-day use. Documentation quality is above average for community skills.

showing 1-10 of 48

1 / 5