Favicon of generate-compile-commands

generate-compile-commands Skill

AI Agent SkillOpen source

Generate compilecommands.json (clang compilation database) for the C++ language server. Covers MSBuild (.sln, .slnx, .vcxproj) via microsoft/msbuild-extractor-sample and CMake projects via CMAKEEXPORTCOMPILECOMMANDS. Use whenever the user asks to "regenerate compile commands", "regenerate the project", "reload the proj Published by microsoft in cpp-language-server.

What is generate-compile-commands Skill?

Generate compilecommands.json (clang compilation database) for the C++ language server. Covers MSBuild (.sln, .slnx, .vcxproj) via microsoft/msbuild-extractor-sample and CMake projects via CMAKEEXPORTCOMPILECOMMANDS. Use whenever the user asks to "regenerate compile commands", "regenerate the project", "reload the proj Published by microsoft in cpp-language-server. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
39/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Database workflows
  • Writing
  • Database workflows use cases
  • Writing use cases

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use generate-compile-commands Skill

  • Use it for database workflows.
  • Use it for writing.

Built with

Copy skill directory

Editorial notes

Source

  • Creator: microsoft
  • Repository: microsoft/cpp-language-server
  • Skill file: plugins/cpp-language-server/skills/generate-compile-commands/SKILL.md

What it does

Generate compilecommands.json (clang compilation database) for the C++ language server. Covers MSBuild (.sln, .slnx, .vcxproj) via microsoft/msbuild-extractor-sample and CMake projects via CMAKEEXPORTCOMPILECOMMANDS. Use whenever the user asks to "regenerate compile commands", "regenerate the project", "reload the proj

Skill instructions

Generate compilecommands.json The C++ language server needs a compilecommands.json (clang compilation database) to understand a project. How you produce one depends on the build system: CMake can export it directly, MSBuild needs an external extractor. Always regenerate compilecommands.json when this skill runs, even if one already exists for the project. For MSBuild, write it to .mscppls\compilecommands.json at the workspace root (the examples below do this); mscppls auto-discovers any compilecommands.json within the workspace, so no cpp-lsp.json is required. Add .mscppls/ to .gitignore so it does not get committed. mscppls hot-reloads the file content; /restart is only needed after changing the plugin's lsp.json or the workspace cpp-lsp.json (those are read once at LSP startup). CMake projects CMake writes compilecommands.json itself; no external extractor needed. Enable it at configure time: bash cmake -S . -B build -DCMAKEEXPORTCOMPILECOMMANDS=ON cmake --build build Or persist it i

Explore related resources

Frequently asked questions

What is generate-compile-commands?

generate-compile-commands is a open-source AI agent skill with Copy skill directory. Generate compilecommands.json (clang compilation database) for the C++ language server.

Who is generate-compile-commands best for?

generate-compile-commands is best for reusing agent instructions, scripts, and references, database workflows, writing workflows.

How do I install generate-compile-commands?

Install or run generate-compile-commands using Copy skill directory. Check generate-compile-commands for the latest setup command.

Is generate-compile-commands actively maintained?

generate-compile-commands may need a closer maintenance check before production use.

Share:

Stars
36
Forks
7
Last commit
16 days ago
Repository age
4 months
License
MIT

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to generate-compile-commands