Official agent skill

Directxmesh Usage

by microsoft in microsoft/DirectXMesh

Guide for integrating the DirectXMesh geometry processing library into a C++ project.

OfficialMITAuto-check passed

Install Directxmesh Usage

skills CLI
$ npx skills add microsoft/DirectXMesh --skill directxmesh-usage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microsoft/DirectXMesh directxmesh-usage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microsoft/DirectXMesh.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/directxmesh-usage .claude/skills/directxmesh-usage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
directxmesh-usage
GitHub stars
859
Token cost
~1.2k tokens
SKILL.md length
353 words
Files
2
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Guide for integrating the DirectXMesh geometry processing library into a C++ project.

  • SKILL.md covers When to Use, Overview, Integration Methods and Header Usage, plus 5 more sections
  • Reaches raw.githubusercontent.com

What it does

Directxmesh Usage is an agent skill from microsoft/DirectXMesh, published by the product's own GitHub organization. Guide for integrating the DirectXMesh geometry processing library into a C++ project.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `reference/overview.md`).

It works with C++ and Windows. The repository describes itself as: DirectXMesh geometry processing library. The licence is MIT.

Example prompts

  • “/directxmesh-usage”

What it can do on your machine

Read from SKILL.md and the folder at commit 27e180b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json, bash, cmake, cpp and mermaid).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • raw.githubusercontent.com

    Also links to:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Directxmesh Usage loads about 1.2k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 353 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from microsoft/DirectXMesh at commit 27e180b, republished under its MIT licence (© microsoft). 353 words, ~1,175 tokens.

Download SKILL.mdSave it as .claude/skills/directxmesh-usage/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
directxmesh-usage
description
Guide for integrating the DirectXMesh geometry processing library into a C++ project.
license
MIT
metadata.author
chuckw
metadata.version
1.0

DirectXMesh Usage Guide

This skill provides guidance for integrating the DirectXMesh geometry processing library into a C++ project.

When to Use

Invoke this skill when:

  • Adding DirectXMesh as a dependency to a new or existing project.
  • Writing code that processes mesh geometry (normals, tangents, optimization, meshlets).
  • Needing to understand the typical DirectXMesh processing pipeline.

Overview

DirectXMesh is a geometry processing library for Direct3D 11 and Direct3D 12 applications. It provides support for loading and saving mesh data, and performing various geometry processing operations including normal and tangent computation, adjacency generation, and mesh optimization.

Integration Methods

In your vcpkg.json file, add the following:

json
{
  "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
  "dependencies": [
    "directxmesh"
  ]
}
vcpkg (classic)
bash
vcpkg install directxmesh

Features: dx12 (DirectX 12 input layout support), tools (command-line tools). Triplets: x64-windows, x64-linux, arm64-windows, etc.

For DLL usage (x64-windows default triplet), define DIRECTX_MESH_IMPORT in your consuming project. For static library usage, use -static-md triplet variants.

CMakeLists.txt:

cmake
find_package(directxmesh CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectXMesh)
NuGet

Use directxmesh_desktop_win10 for Win32 desktop applications or directxmesh_uwp for UWP apps.

Project Reference

Add the appropriate .vcxproj from the DirectXMesh/ folder to your solution and add a project reference. Add the DirectXMesh directory to your Additional Include Directories.

Header Usage

cpp
#include <d3d12.h>        // or <d3d11_1.h> — include BEFORE DirectXMesh.h
#include "DirectXMesh.h"

using namespace DirectX;

All functions reside in the DirectX namespace. Most functions have overloads for both 16-bit and 32-bit index buffers.

Show full SKILL.md (140 more words)Show less

Typical Processing Pipeline

mermaid
flowchart TD
    A[Load geometry\npositions, indices, texcoords] --> B
    B[GenerateAdjacencyAndPointReps] -->|adjacency, pointRep| C
    C[Validate\noptional diagnostics] --> D
    D[Clean\nfix bowties, degenerate triangles] -->|dupVerts| E
    E[ComputeNormals / ComputeTangentFrame] --> F
    F[AttributeSort] -->|faceRemap| G
    G[OptimizeFaces] -->|faceRemap| H
    H[ReorderIB\napply face remap] --> I
    I[OptimizeVertices] -->|vertexRemap| J
    J[FinalizeIB + FinalizeVB\napply vertex remap and dupVerts] --> K
    K[CompactVB\noptional, remove trailing unused vertices] --> L
    L[ComputeMeshlets] -->|"meshlets, uniqueVertexIB (uint8_t), primitiveIndices"| M
    M[ComputeCullData\nfor mesh shader GPU culling]

Note: uniqueVertexIB from ComputeMeshlets is a packed buffer of uint16_t or uint32_t indices (matching the original IB format). Reinterpret-cast it to the appropriate type for ComputeCullData.

Error Handling

  • Most functions return HRESULT. Check with SUCCEEDED(hr) or FAILED(hr).
  • Functions marked noexcept never throw; they return E_OUTOFMEMORY or E_INVALIDARG on failure.
  • Functions using std::vector or std::function may throw on allocation failure

Key References

  • Public API header: DirectXMesh/DirectXMesh.h — read this for exact signatures and SAL annotations.
  • API overview table: See reference/overview.md in this skill folder.
  • Wiki documentation: https://github.com/microsoft/DirectXMesh/wiki
  • Utility headers: Utilities/WaveFrontReader.h (OBJ file loading), Utilities/FlexibleVertexFormat.h (legacy FVF conversion).

Platform Notes

  • Windows desktop (Win8.1+), UWP, Xbox (GDK), and Linux are supported.
  • Non-Windows builds require the DirectX-Headers package and define USING_DIRECTX_HEADERS.
  • The library requires C++17 to build but the public API is C++11 compatible.

Further Reading

© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/directxmesh-usage of microsoft/DirectXMesh.

  • SKILL.md
  • reference/overview.md

Open the folder on GitHubat commit 27e180b

Compare with similar skills

Directxmesh Usage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Directxmesh Usage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Directxmesh Usage this skillmicrosoft/DirectXMesh859—~1.2kAutomated safety check: PassMIT
Build Fluentqt Guicalvinhxx/Fluent-Qt152—~1.6kAutomated safety check: PassMIT
Windows Parityn1m21n/Infinite260—~4.6kAutomated safety check: PassCustom licence
Geiss Portad-repo/nullplayer156—~5.3kAutomated safety check: PassCustom licence
Translation Diff ExportDevolutions/UniGetUI26k—~1.1kAutomated safety check: PassMIT
Translation Diff ImportDevolutions/UniGetUI26k—~750Automated safety check: PassMIT

Similar skills

  • Build Fluentqt Gui

    calvinhxx/Fluent-Qt

    Create, integrate, redesign, or fix C++ and PySide6 GUIs using FluentQt, including component and Gallery work.

    152 GitHub stars~1.6k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Windows Parity

    n1m21n/Infinite

    Writing Windows-safe Infinite code from macOS: keep WIN32 out of nodes, three-sided Platform:: obligation, Windows trap catalogue (WASAPI, WinMM, GDI glyphs, Media Foundation stride, wide paths…

    260 GitHub stars~4.6k tokensUpdated yesterday
    SecurityAuto-check passed
  • Geiss Port

    ad-repo/nullplayer

    Implementation reference for NullPlayer's Geiss visualization engine — the BSD-3-Clause port of Ryan Geiss's Win32/DirectDraw/Winamp-2 visualizer onto macOS as a ProjectM-peer engine.

    156 GitHub stars~5.3k tokensUpdated yesterday
    MobileAuto-check passed
  • Translation Diff Export

    Devolutions/UniGetUI

    Compares UniGetUI JSON locale files against English, identifies untranslated or source-changed keys, and generates patch, reference, and handoff files for a target language.

    26k GitHub stars~1.1k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Translation Diff Import

    Devolutions/UniGetUI

    Merges translated key-value pairs from a UniGetUI JSON localization patch back into the full language file and validates the merged result.

    26k GitHub stars~750 tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Paddle Build

    PaddlePaddle/Paddle

    A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.

    24k GitHub stars~1k tokensUpdated 7 days ago
    AI & LLM EngineeringAuto-check passed

More from microsoft/DirectXMesh

  • Mesh Converter

    microsoft/DirectXMesh

    Official

    Guide for using the meshconvert command-line tool to convert Wavefront OBJ files to DirectX runtime formats (CMO, SDKMESH, VBO).

    859 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Directxmesh Usage

What does Directxmesh Usage do?

Guide for integrating the DirectXMesh geometry processing library into a C++ project. Directxmesh Usage is an agent skill from microsoft/DirectXMesh, published by the product's own GitHub organization. Guide for integrating the DirectXMesh geometry processing library into a C++ project.

How do I install Directxmesh Usage in Claude Code?

Run `npx skills add microsoft/DirectXMesh --skill directxmesh-usage -a claude-code`. Or copy the skill folder (skills/directxmesh-usage in microsoft/DirectXMesh) into .claude/skills/directxmesh-usage in your project. Claude Code loads it when a task matches its description.

How do I install Directxmesh Usage in Codex?

Run `npx skills add microsoft/DirectXMesh --skill directxmesh-usage -a codex`. Or copy the skill folder (skills/directxmesh-usage in microsoft/DirectXMesh) into .agents/skills/directxmesh-usage in your project. Codex loads it when a task matches its description.

Can I use Directxmesh Usage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/DirectXMesh --skill directxmesh-usage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/directxmesh-usage, .gemini/skills/directxmesh-usage, .github/skills/directxmesh-usage and .opencode/skills/directxmesh-usage in your project.

What does Directxmesh Usage need to run?

SKILL.md names no scripts, command-line tools or credentials: Directxmesh Usage is instructions for the agent only.

Does Directxmesh Usage access the network?

SKILL.md names 2 domains. In commands or code: raw.githubusercontent.com; the agent is likely to contact it when it follows the instructions. As links in the text: github.com. This is read from the text; nothing was executed.

Is Directxmesh Usage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Directxmesh Usage use?

Directxmesh Usage is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Directxmesh Usage use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Directxmesh Usage?

Skills that share tags, products or a category with Directxmesh Usage: Build Fluentqt Gui (calvinhxx/Fluent-Qt, 152 stars), Windows Parity (n1m21n/Infinite, 260 stars), Geiss Port (ad-repo/nullplayer, 156 stars) and Translation Diff Export (Devolutions/UniGetUI, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Directxmesh Usage?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/DirectXMesh, which has 859 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 6, 2026.

Source: microsoft/DirectXMesh on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.