pr-readiness
Skill1.7k starsChanged 7 months agoMITView on GitHub
Verify that a pull request into microsoft/vscode-cmake-tools meets contribution requirements. Use when preparing, reviewing, or finalizing a PR to check for a descriptive title, a meaningful description, a properly formatted CHANGELOG entry, code correctness, regression risks, adherence to existing patterns, and whether documentation updates are needed.
1 other project uses a version of this, 1 of them edited.
Trending
Quiet this year.thin dataabout the whole repository
Most recently taken up by
- microsoft/vscode-makefile-toolsedited, first seen Apr 20, 2026
Who's talking about microsoft/vscode-cmake-tools
- clangd/vscode-clangd“support commands in settings”GitHub · Jun 27, 2020 · 17 reactions
- fredericbonnet/cmake-test-explorer“trigger BuildBeforeRun also by running a test in the testexplorer”GitHub · Mar 12, 2021 · 8 reactions
- twxs/vs.language.cmake“CMake Tools Extension & twxs.cmake extension”GitHub · Jan 29, 2024 · 5 reactions
- disroop/vs-code-conan“configuration provider for cpptools / IntelliSense”GitHub · Jan 14, 2021 · 3 reactions
- microsoft/vscode-cmake-tools-api“Update APIs”GitHub · Aug 1, 2025 · 2 reactions
The biggest 5 of 14 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 14
Talked about on GitHub (14 times).
On GitHub · 14
- Jun 27, 2020support commands in settings — clangd/vscode-clangd17 reactions · 8 comments
- Mar 12, 2021trigger BuildBeforeRun also by running a test in the testexplorer — fredericbonnet/cmake-test-explorer8 reactions
- Jan 29, 2024CMake Tools Extension & twxs.cmake extension — twxs/vs.language.cmake5 reactions · 1 comment
- Jan 14, 2021configuration provider for cpptools / IntelliSense — disroop/vs-code-conan3 reactions · 5 comments
- Aug 1, 2025Update APIs — microsoft/vscode-cmake-tools-api2 reactions · 4 comments
9 more on GitHub
- Nov 15, 2024Add C++26 support (setting values only) — microsoft/vscode-cpptools2 reactions · 3 comments
- Oct 25, 2024cmake-kits.json incorrect CXX compiler — raspberrypi/pico-vscode2 reactions · 3 comments
- Oct 24, 2024Add support for `${command:<name-of-command>}` in c_cpp_properties.json — microsoft/vscode-cpptools2 reactions · 7 comments
- Feb 28, 2022Add support for resolving commands — microsoft/vscode-cpptools2 reactions · 4 comments
- Jun 19, 2025Cleanup standard version handling. — microsoft/vscode-makefile-tools1 reaction
- Mar 5, 2025Pixi builds / VSCode / CMake issues and differences — FreeCAD/FreeCAD1 reaction · 15 comments
- Jan 31, 2025Feature request: Improved variable and command substitution for build directories setting — JacquesLucke/gcov-viewer1 reaction
- Sep 26, 2024Replace CMake grammar — github-linguist/linguist1 reaction
- Sep 16, 2024Newest macos-latest environment update not working for VS Code tests — actions/runner-images1 reaction · 2 comments
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- microsoft/vscode-makefile-tools★ 24453% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- add-commandSkill
- add-diagnostic-parserSkill
- add-settingSkill
- backend-testsSkill
- presets-vs-kitsSkill
- validation-projectSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 13 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Start with a verb (e.g., "Fix", "Add", "Improve", "Remove", "Update").
- Very specific: line 45
Every PR must add an entry to CHANGELOG.md.
- Distinctive: line 53
Place the entry in exactly one of these three sections, creating the section if it does not already exist under the current version:
- Distinctive: line 94
Do not add a new version heading — use the existing topmost one.
- Distinctive: line 95
Do not place the entry under an older version.
- Distinctive: line 96
Do not use past tense (write "Fix …", not "Fixed …").
- Distinctive: line 97
Do not omit the issue or PR link.
- Very specific: line 103
Both operating modes: If the change touches shared logic (configure, build, test, targets, environment), verify it handles both *presets …
- Very specific: line 104
Both generator types: If the change involves build-type logic, verify it handles both single-config generators (CMAKE_BUILD_TYPE at …
- Very specific: line 105
Edge cases: Look for off-by-one errors, null/undefined access, missing await on async calls, and unhandled promise rejections.
- Very specific: line 106
Error handling: Verify errors are not silently swallowed.
- Very specific: line 107
Cross-platform: Check for hardcoded path separators (/ or \\), case-sensitive env var assumptions, or platform-specific APIs used without …
- Distinctive: line 123
Verify the change follows the project's established conventions:
- Very specific: line 127
Localization: All user-visible strings use localize('message.key', 'Message text') with the vscode-nls boilerplate at the top of the file.
- Distinctive: line 136
Verify that the PR includes adequate tests for the changes:
- Distinctive: line 140
Changed behavior: If existing behavior is modified, check that existing tests are updated to reflect the new behavior and that no tests are …
- Distinctive: line 143
Test names should clearly state what is being tested and the expected outcome.
- Distinctive: line 155
Check whether the change requires documentation updates:
- Very specific: line 157
New or changed settings: Must be reflected in all three locations — package.json (contributes.configuration), src/config.ts …
- Very specific: line 158
New commands: Must be documented in package.json (contributes.commands) and referenced in the relevant docs page under docs/.
- Very specific: line 159
User-visible behavior changes: If the change alters how a feature works (not just fixes a bug), check whether docs/ pages describing that …
- Very specific: line 160
Extensibility changes: If src/api.ts or public types change, update EXTENSIBILITY.md.
- Distinctive: line 161
README: If a new major feature is added, check whether README.md should mention it.
- Distinctive: line 165
When reviewing or preparing a PR:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PR Readiness
PR Requirements Checklist
1. PR Title
The title must clearly and concisely describe the change from the user's perspective. It should:
- Start with a verb (e.g., "Fix", "Add", "Improve", "Remove", "Update").
- Mention the affected feature or area (e.g., presets, kits, CTest, build tasks, Project Outline).
- Be specific enough that a reader understands the change without opening the PR.
Good examples:
Fix preset reloading loop when preset files are symlinksAdd "Delete Build Directory and Reconfigure" commandImprove CTest test ordering to match Test Explorer display
Bad examples:
Fix bug(too vague)Update code(no useful information)WIP(not ready for review)
2. PR Description
The PR body must include:
- What changed: A short summary of the user-visible behavior change.
- Why: The motivation — link to a GitHub issue if one exists (e.g.,
Fixes #1234). - How (if non-obvious): A brief explanation of the implementation approach when the change is complex.
3. CHANGELOG Entry
Every PR must add an entry to CHANGELOG.md.
Where to insert
Insert the entry under the most recent (topmost) version heading in CHANGELOG.md. The first version heading looks like ## <version> (e.g., ## 1.23). Always add the new entry at the bottom of the appropriate section (i.e., after all existing entries in that section).
Which section
Place the entry in exactly one of these three sections, creating the section if it does not already exist under the current version:
| Section | Use when… |
Features: | A new user-visible capability is added (new command, new setting, new UI element). |
Improvements: | An existing feature is enhanced, optimized, or has better UX — but no new capability is introduced. |
Bug Fixes: | A defect is corrected. |
The sections appear in this fixed order: Features:, then Improvements:, then Bug Fixes:.
Entry format
Each entry follows this pattern:
- <Description>. [#<number>](<link>)Where <Description> starts with a present-tense verb describing the user-visible change, and the link references either:
- The GitHub issue it solves:
[#<issue number>](https://github.com/microsoft/vscode-cmake-tools/issues/<issue number>) - Or the PR itself:
[#<pr number>](https://github.com/microsoft/vscode-cmake-tools/pull/<pr number>)
An entry may optionally credit an external contributor at the end: [@user](https://github.com/user).
Examples:
Features:
- Add "Delete Build Directory and Reconfigure" command that removes the entire build directory before reconfiguring, ensuring a completely clean state. [#4826](https://github.com/microsoft/vscode-cmake-tools/pull/4826)
Improvements:
- Run tests sequentially in alphabetical order (matching the Test Explorer display order) when `cmake.ctest.allowParallelJobs` is disabled. [#4829](https://github.com/microsoft/vscode-cmake-tools/issues/4829)
Bug Fixes:
- Fix `cmake.revealLog` set to `"focus"` not revealing the output panel or stealing focus. [#4471](https://github.com/microsoft/vscode-cmake-tools/issues/4471)
- Fix garbled characters in the Output panel when MSVC outputs UTF-8 on non-UTF-8 Windows systems. [#4520](https://github.com/microsoft/vscode-cmake-tools/issues/4520) [@contributor](https://github.com/contributor)What NOT to do
- Do not add a new version heading — use the existing topmost one.
- Do not place the entry under an older version.
- Do not use past tense (write "Fix …", not "Fixed …").
- Do not omit the issue or PR link.
4. Correctness
Review the code changes for logical correctness:
- Both operating modes: If the change touches shared logic (configure, build, test, targets, environment), verify it handles both presets mode and kits/variants mode. Check for
useCMakePresetsbranching where appropriate. - Both generator types: If the change involves build-type logic, verify it handles both single-config generators (
CMAKE_BUILD_TYPEat configure time) and multi-config generators (--configat build time). - Edge cases: Look for off-by-one errors, null/undefined access, missing
awaiton async calls, and unhandled promise rejections. - Error handling: Verify errors are not silently swallowed. Top-level event handlers should use
rollbar.invokeAsync()/rollbar.invoke(). Emptycatchblocks are a red flag. - Cross-platform: Check for hardcoded path separators (
/or\\), case-sensitive env var assumptions, or platform-specific APIs used without guards. Paths must usepath.join()/path.normalize().
5. Regression Risks
Identify areas where the change could break existing behavior:
- Shared utilities: Changes to
src/expand.ts,src/proc.ts,src/shlex.ts, orsrc/util.tsaffect many callers — verify all call sites still behave correctly. - Driver base class: Changes to
cmakeDriver.tspropagate tocmakeFileApiDriver.ts,cmakeLegacyDriver.ts, andcmakeServerDriver.ts. Check that subclass overrides are still compatible. - Preset merging: Changes to
presetsController.tsorpresetsParser.tscan alter how presets resolve — verify with nestedincludechains andCMakeUserPresets.jsonoverrides. - Settings: Adding or renaming a setting in
package.jsonwithout updatingsrc/config.ts(or vice versa) causes silent failures. - Task provider: Changes to
cmakeTaskProvider.tscan breaktasks.jsondefinitions that users have already configured. - Public API / extensibility: Changes to exports in
src/api.tsor types inEXTENSIBILITY.mdcan break dependent extensions. - Test coverage: Flag changes to critical paths that lack corresponding test updates, especially in
src/drivers/,src/presets/, andsrc/kits/. See also section 7 (Test Coverage) for detailed test review guidance.
6. Adherence to Existing Patterns
Verify the change follows the project's established conventions:
- Import style: Uses
@cmt/*path aliases (not relative paths from outsidesrc/). Usesimport * as nls from 'vscode-nls'for localization. - Logging: Uses
logging.createLogger('module-name')— neverconsole.log. - Localization: All user-visible strings use
localize('message.key', 'Message text')with thevscode-nlsboilerplate at the top of the file. - Settings access: Reads settings through
ConfigurationReader(src/config.ts) — never callsvscode.workspace.getConfiguration()directly. - Telemetry: Uses helpers from
src/telemetry.ts— never calls the VS Code telemetry API directly. - Data access: Uses canonical data paths (e.g.,
CMakeProject.targetsfor targets,CMakeDriver.cmakeCacheEntriesfor cache) — never parses CMake files or cache directly. - Async patterns: Prefers
async/awaitover.then()chains (exception: fire-and-forget UI calls). - Naming and structure: New files are placed in the correct layer directory (see architecture table in
.github/copilot-instructions.md). New commands are registered insrc/extension.ts.
7. Test Coverage
Verify that the PR includes adequate tests for the changes:
- New functionality: Any new function, command, setting, or behavior branch should have corresponding tests. If the change adds a new helper or utility, check that it has unit tests covering its inputs and edge cases.
- Bug fixes: A bug fix should include at least one test that would have caught the original bug — i.e., a test that fails on the base branch and passes with the fix applied.
- Changed behavior: If existing behavior is modified, check that existing tests are updated to reflect the new behavior and that no tests are silently broken or deleted without justification.
- Test location: Unit tests that don't require VS Code APIs belong in
test/unit-tests/backend/and run viayarn backendTests. Tests that require VS Code belong intest/unit-tests/and run viayarn unitTests. Check that new tests are placed in the correct location. - Test quality: Tests should be specific and descriptive:
- Test names should clearly state what is being tested and the expected outcome.
- Tests should assert specific values, not just "no error thrown".
- Tests should cover both positive cases (expected input → expected output) and negative/edge cases (invalid input, boundary conditions, fallback paths).
- Comments in tests should be accurate and not misleading about what the test actually exercises.
- Coverage gaps to flag: Pay special attention to:
- Code paths that touch
src/drivers/,src/presets/, orsrc/kits/— these are critical and should have test coverage for any non-trivial changes. - Fallback/error paths — if the PR adds a fallback (e.g., "if X fails, try Y"), both the success and fallback paths should be tested.
- Platform-specific branches — if the code branches on
process.platform, each branch should ideally be covered.
- Code paths that touch
- When tests are not feasible: Some changes (e.g., pure UI wiring, VS Code API integration) are difficult to unit test. In these cases, verify that the manual-checklist or PR description explains how to manually verify the change, and flag the gap rather than ignoring it.
8. Documentation Updates
Check whether the change requires documentation updates:
- New or changed settings: Must be reflected in all three locations —
package.json(contributes.configuration),src/config.ts(ConfigurationReader), anddocs/cmake-settings.md. - New commands: Must be documented in
package.json(contributes.commands) and referenced in the relevant docs page underdocs/. - User-visible behavior changes: If the change alters how a feature works (not just fixes a bug), check whether
docs/pages describing that feature need updating. - Extensibility changes: If
src/api.tsor public types change, updateEXTENSIBILITY.md. - README: If a new major feature is added, check whether
README.mdshould mention it.
Applying This Skill
When reviewing or preparing a PR:
- Check the title — rewrite it if it is vague or missing context.
- Check the description — ensure it explains what, why, and (if needed) how.
- Check
CHANGELOG.md— verify an entry exists under the current version in the correct section with the correct format. If missing, add one. - Check correctness — review code for logical errors, missing mode/generator handling, cross-platform issues, and error handling gaps.
- Check regression risks — identify areas where the change could break existing behavior and flag missing test coverage for critical paths.
- Check pattern adherence — verify the change follows established import, logging, localization, settings access, and architectural conventions.
- Check test coverage — verify that new or changed behavior has corresponding tests, bug fixes include regression tests, and tests are placed in the correct location with good quality.
- Check documentation — verify that new or changed settings, commands, and behavior are reflected in the appropriate docs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

