skills/tools/conan/conan-basic-usage/SKILL.md
Basic operations for the Conan C++ package manager. Use when the user explicitly asks to 'use conan' for tasks like creating projects, installing dependencies, or building packages, or asks for 'how to' guidance on Conan setup.
npx skillsauth add igamenovoer/magic-context conan-basic-usageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides guidance on using Conan, the C/C++ package manager. It covers project initialization, dependency management, and package creation.
To create a standard project structure for a C++ library using CMake:
mkdir myproject && cd myproject
conan new cmake_lib -d name=myproject -d version=0.1
This generates:
conanfile.py: The package recipe.CMakeLists.txt: The build script.src/ & include/: Source and header files.test_package/: A consumer project to verify the package.To install dependencies defined in conanfile.py and build missing binaries:
conan install . --build=missing
To build the package and export it to your local Conan cache:
conan create .
This runs the build() method in conanfile.py, creates the binary package, and runs the tests in test_package/.
conan install . to resolve and install dependencies. Add --build=missing to compile from source if binaries aren't available for your configuration.conan graph info . to see the dependency tree.conan remote listconan remote add <remote_name> <url>conan upload <package_name> -r <remote_name>Project Structure: Best practices for directory layout. See project-structure.md.
Configuration: Core settings, cache location, and profiles. See configuration.md.
Runtime & Build Layout: Build directory structure and how to find shared libraries. See runtime-layout.md.
Internal Files: Understanding conanmanifest.txt, conaninfo.txt, etc. See internal-files.md.
Commands: Comprehensive list of common commands. See commands.md.
data-ai
Create readable Mermaid diagrams inside Markdown files. Use for flowcharts and sequence diagrams that must render cleanly in common Markdown renderers (e.g., GitHub) without horizontal scrolling. Covers fenced mermaid blocks, init/theme styling, label wrapping with <br/>, and sequenceDiagram layout rules (short IDs, wrapped labels, don’t break identifiers).
development
Manual invocation only; use only when the user explicitly requests `make-program-tutorial` by exact name, OR when the user asks to use a skill to create an SDK/API/library tutorial. Create a clear, reproducible, step-by-step tutorial for a specific API/SDK/library (or a set of functions/classes), with runnable examples, expected outputs, and basic troubleshooting.
testing
Use when the user wants to create a self-hosted, offline-installable Conda channel (mirror) containing a specific subset of packages using Pixi.
tools
Guides the agent to setup a new or existing Pixi environment for compiling C++ and CUDA code. It ensures the correct compilers, toolkits, and CMake configurations are in place for a robust user-space build.