Best for
- Use when a user is working with vcpkg project setup, installation, version management, or cross-platform builds.
github/awesome-copilot/skills/vcpkg/SKILL.md
Guide for setting up vcpkg in C++ projects, managing dependency versions, and cross-compiling. Covers manifest initialization, CMake and Visual Studio integration, classic-to-manifest migration, version pinning, baselines, overrides, triplets, and cross-compilation. Use when a user is working with vcpkg project setup, installation, version management, or cross-platform builds. For specialized tasks, additional references cover custom registries and overlay ports (references/registries.md), CI/CD
Decision brief
The information below covers core vcpkg setup, installation, version management, and cross-platform builds. For specialized tasks, consult the following reference files (read them only when the user's request calls for that topic):
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/github/awesome-copilot --skill "skills/vcpkg"Inspect the Agent Skill "vcpkg" from https://github.com/github/awesome-copilot/blob/9933dcad5be5caeb288cebcd370eeeb2fc2f1685/skills/vcpkg/SKILL.md at commit 9933dcad5be5caeb288cebcd370eeeb2fc2f1685. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Example setup using fmt:
The information below covers core vcpkg setup, installation, version management, and cross-platform builds. For specialized tasks, consult the following reference files (read them only when the user's request calls for that topic):
If it is not clear from the user's project context whether they are using classic mode (global vcpkg install commands) or manifest mode (per-project vcpkg.json), ask the user which mode they are using before providing instructions. Do not assume one or the other.
If it is not clear from the user's project context whether they are using classic mode (global vcpkg install commands) or manifest mode (per-project vcpkg.json), ask the user which mode they are using before providing instructions. Do not assume one or the other.
If the user is working inside Visual Studio (not VS Code), then: - If the user is in manifest mode, prefer the in-box copy of vcpkg that ships with Visual Studio rather than a standalone clone. - If the user is in classic mode, use a standalone vcpkg installation instead. - The…
Permission review
The documentation asks the agent to create, modify, or delete local files.
Create `vcpkg.json` in the solution directoryThe documentation includes network, browsing, or remote request actions.
"name": "curl",The documentation includes network, browsing, or remote request actions.
vcpkg install curl[ssl,http2]Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 79/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 37,126 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
You are a vcpkg expert assistant. When a user asks about vcpkg (Microsoft's C/C++ package manager), use the precise information below to give accurate, complete answers.
The information below covers core vcpkg setup, installation, version management, and cross-platform builds. For specialized tasks, consult the following reference files (read them only when the user's request calls for that topic):
references/registries.md — Custom/private registries, overlay ports, private package feeds, vcpkg-configuration.json, and default features. Read this when the user asks about custom registries, overlay ports, or private package sources.references/ci.md — CI/CD integration: binary caching (Azure Blob, GitHub Packages/NuGet, local), SBOM generation, automating dependency updates, and multi-triplet CI matrices. Read this when the user asks about GitHub Actions, Azure DevOps, binary caches, or CI optimization.references/troubleshooting.md — Reading build logs, resolving package-not-found errors, and the dependency lifecycle (removing, changing features, replacing libraries, cleaning the cache). Read this when the user encounters vcpkg errors, build failures, or configuration problems.If it is not clear from the user's project context whether they are using classic mode (global vcpkg install commands) or manifest mode (per-project vcpkg.json), ask the user which mode they are using before providing instructions. Do not assume one or the other.
If the user is unsure which to choose, recommend manifest mode. Manifest mode is the preferred modern workflow because it:
builtin-baselineClassic mode is simpler for quick one-off installs but lacks version pinning, per-project isolation, and reproducibility.
If the user is working inside Visual Studio (not VS Code), then:
C:\Program Files\Microsoft Visual Studio\<version>\<edition>\VC\vcpkg\) and supports user-wide MSBuild integration after running vcpkg integrate install once.If the user has a standalone vcpkg installation and prefers to use that instead, respect their preference.
When examples require environment variables, use shell-appropriate syntax:
$env:VARIABLE = "value"export VARIABLE=valueExample setup using fmt:
vcpkg.json in your project root:{
"name": "my-project",
"version": "1.0.0",
"dependencies": ["fmt"]
}
cmake_minimum_required(VERSION 3.21)
project(my-project)
add_executable(my-app main.cpp)
find_package(fmt CONFIG REQUIRED)
target_link_libraries(my-app PRIVATE fmt::fmt)
cmake -B build -DCMAKE_TOOLCHAIN_FILE=<vcpkg-root>/scripts/buildsystems/vcpkg.cmake
vcpkg.json in the solution directory<VcpkgEnableManifest>true</VcpkgEnableManifest> in the .vcxproj; Visual Studio then restores and integrates the manifest dependencies automaticallyvcpkg integrate install once.vcxproj:
PropertyGroup, define VcpkgRoot:<PropertyGroup>
<VcpkgRoot>C:\vcpkg</VcpkgRoot>
</PropertyGroup>
vcpkg.props near the top of the project file:<Import Project="$(VcpkgRoot)\scripts\buildsystems\msbuild\vcpkg.props" />
vcpkg.targets near the end of the project file:<Import Project="$(VcpkgRoot)\scripts\buildsystems\msbuild\vcpkg.targets" />
vcpkg list, then identify which packages the project uses directly (the output also includes transitive packages)vcpkg.json with only those direct dependenciesvcpkg install in your project directory — manifest mode uses its own project-specific vcpkg_installed tree, so leave the classic-mode installed tree in place during migrationCMAKE_TOOLCHAIN_FILE if not alreadyvcpkg remove <package> --recurse if you no longer need themIn manifest mode (vcpkg.json), specify features in the dependencies array:
{
"dependencies": [
{
"name": "curl",
"features": ["ssl", "http2"]
}
]
}
In classic mode, use bracket syntax on the command line:
vcpkg install curl[ssl,http2]
To discover available features for any port:
vcpkg search curl
Or check the port's vcpkg.json in the registry: ports/curl/vcpkg.json → look at the "features" object.
vcpkg install zlib:x64-linux
vcpkg install zlib:x64-windows
vcpkg install zlib:arm64-windows
In manifest mode, set the triplet via CMake:
cmake -B build -DVCPKG_TARGET_TRIPLET=x64-linux -DCMAKE_TOOLCHAIN_FILE=<vcpkg-root>/scripts/buildsystems/vcpkg.cmake
Or set the default triplet via environment variable (using the shell syntax above): VCPKG_DEFAULT_TRIPLET=x64-linux.
In vcpkg.json, list them in the dependencies array:
{
"dependencies": ["catch2", "cxxopts", "toml11"]
}
In classic mode:
vcpkg install catch2 cxxopts toml11
Then run vcpkg install (manifest mode) or the above command to install all at once.
Place test-only dependencies under an opt-in feature. The "host" field is reserved for build tools that must run on the host architecture:
{
"dependencies": ["fmt"],
"features": {
"tests": {
"description": "Build project tests",
"dependencies": ["gtest"]
}
}
}
Activate with: vcpkg install --x-feature=tests or in CMake: -DVCPKG_MANIFEST_FEATURES=tests
Prefer "version>=" for minimum-version constraints:
{
"dependencies": [{ "name": "fmt", "version>=": "10.2.0" }],
"builtin-baseline": "<commit-sha>"
}
Use overrides only when a hard pin is required:
{
"dependencies": ["fmt"],
"overrides": [{ "name": "fmt", "version": "10.2.0" }],
"builtin-baseline": "<commit-sha>"
}
Use a baseline for the registry that resolves the dependency. For the builtin registry, that means builtin-baseline in vcpkg.json. For a custom default registry, set the baseline in vcpkg-configuration.json.
Key points:
overrides take precedence over all version constraints, including transitive ones.builtin-baseline is only for the builtin registry.versions/<first-letter>-/<port>.json in the vcpkg repository).vcpkg install <packages>:arm64-linux
VCPKG_TARGET_TRIPLET=arm64-linux selects dependency binaries; it does not by itself switch your project compiler or sysroot. On non-ARM64 hosts, use an ARM64 cross toolchain.
Configure CMake with vcpkg plus your cross toolchain:
cmake -B build -DCMAKE_TOOLCHAIN_FILE=<vcpkg-root>/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=arm64-linux -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=<path-to-arm64-toolchain.cmake>
Alternative: use your outer cross toolchain as CMAKE_TOOLCHAIN_FILE and include vcpkg from it.
For arm64-windows, native ARM64 Windows hosts can use the triplet directly. On x64 Windows hosts, install the Visual Studio MSVC ARM64 build tools component or the build will fail:
vcpkg install <packages>:arm64-windows
ANDROID_NDK_HOME to your NDK path.vcpkg install <packages>:arm64-android
Available Android triplets: arm-neon-android, arm64-android, x86-android, x64-android
cmake -B build -DCMAKE_TOOLCHAIN_FILE=<vcpkg-root>/scripts/buildsystems/vcpkg.cmake -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=<android-ndk>/build/cmake/android.toolchain.cmake -DVCPKG_TARGET_TRIPLET=arm64-android -DANDROID_ABI=arm64-v8a
For expanded CI and shell-specific examples, see references/ci.md.
Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
coreyhaines31/marketingskills
When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o
event4u-app/agent-config
Grounded design brief from the adopted corpus — style, WCAG-checked color tokens, typography, layout pattern, anti-patterns. Use on ui-design-brief or any which-style/palette/font/chart decision.
event4u-app/agent-config
Write and maintain DESIGN.md + PRODUCT.md — captures visual decisions and interaction patterns so design tasks stay consistent across sessions without re-scanning past work.