agentleFS
MicrosoftKnown publishermicrosoft/vscode-cmake-tools/.github/skills/pr-readiness/SKILL.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/vscode-cmake-tools repository that our weekly crawl found: only 14 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about microsoft/vscode-cmake-tools

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

9 more on GitHub
  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 1

    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.

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
  1. Distinctive:

    Start with a verb (e.g., "Fix", "Add", "Improve", "Remove", "Update").

    line 19
  2. Very specific:

    Every PR must add an entry to CHANGELOG.md.

    line 45
  3. Distinctive:

    Place the entry in exactly one of these three sections, creating the section if it does not already exist under the current version:

    line 53
  4. Distinctive:

    Do not add a new version heading — use the existing topmost one.

    line 94
  5. Distinctive:

    Do not place the entry under an older version.

    line 95
  6. Distinctive:

    Do not use past tense (write "Fix …", not "Fixed …").

    line 96
  7. Distinctive:

    Do not omit the issue or PR link.

    line 97
  8. Very specific:

    Both operating modes: If the change touches shared logic (configure, build, test, targets, environment), verify it handles both *presets …

    line 103
  9. Very specific:

    Both generator types: If the change involves build-type logic, verify it handles both single-config generators (CMAKE_BUILD_TYPE at …

    line 104
  10. Very specific:

    Edge cases: Look for off-by-one errors, null/undefined access, missing await on async calls, and unhandled promise rejections.

    line 105
  11. Very specific:

    Error handling: Verify errors are not silently swallowed.

    line 106
  12. Very specific:

    Cross-platform: Check for hardcoded path separators (/ or \\), case-sensitive env var assumptions, or platform-specific APIs used without …

    line 107
  13. Distinctive:

    Verify the change follows the project's established conventions:

    line 123
  14. Very specific:

    Localization: All user-visible strings use localize('message.key', 'Message text') with the vscode-nls boilerplate at the top of the file.

    line 127
  15. Distinctive:

    Verify that the PR includes adequate tests for the changes:

    line 136
  16. Distinctive:

    Changed behavior: If existing behavior is modified, check that existing tests are updated to reflect the new behavior and that no tests are …

    line 140
  17. Distinctive:

    Test names should clearly state what is being tested and the expected outcome.

    line 143
  18. Distinctive:

    Check whether the change requires documentation updates:

    line 155
  19. Very specific:

    New or changed settings: Must be reflected in all three locations — package.json (contributes.configuration), src/config.ts …

    line 157
  20. Very specific:

    New commands: Must be documented in package.json (contributes.commands) and referenced in the relevant docs page under docs/.

    line 158
  21. Very specific:

    User-visible behavior changes: If the change alters how a feature works (not just fixes a bug), check whether docs/ pages describing that …

    line 159
  22. Very specific:

    Extensibility changes: If src/api.ts or public types change, update EXTENSIBILITY.md.

    line 160
  23. Distinctive:

    README: If a new major feature is added, check whether README.md should mention it.

    line 161
  24. Distinctive:

    When reviewing or preparing a PR:

    line 165

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 symlinks
  • Add "Delete Build Directory and Reconfigure" command
  • Improve 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:

SectionUse 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 useCMakePresets branching where appropriate.
  • Both generator types: If the change involves build-type logic, verify it handles both single-config generators (CMAKE_BUILD_TYPE at configure time) and multi-config generators (--config at build time).
  • Edge cases: Look for off-by-one errors, null/undefined access, missing await on async calls, and unhandled promise rejections.
  • Error handling: Verify errors are not silently swallowed. Top-level event handlers should use rollbar.invokeAsync() / rollbar.invoke(). Empty catch blocks 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 use path.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, or src/util.ts affect many callers — verify all call sites still behave correctly.
  • Driver base class: Changes to cmakeDriver.ts propagate to cmakeFileApiDriver.ts, cmakeLegacyDriver.ts, and cmakeServerDriver.ts. Check that subclass overrides are still compatible.
  • Preset merging: Changes to presetsController.ts or presetsParser.ts can alter how presets resolve — verify with nested include chains and CMakeUserPresets.json overrides.
  • Settings: Adding or renaming a setting in package.json without updating src/config.ts (or vice versa) causes silent failures.
  • Task provider: Changes to cmakeTaskProvider.ts can break tasks.json definitions that users have already configured.
  • Public API / extensibility: Changes to exports in src/api.ts or types in EXTENSIBILITY.md can break dependent extensions.
  • Test coverage: Flag changes to critical paths that lack corresponding test updates, especially in src/drivers/, src/presets/, and src/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 outside src/). Uses import * as nls from 'vscode-nls' for localization.
  • Logging: Uses logging.createLogger('module-name') — never console.log.
  • Localization: All user-visible strings use localize('message.key', 'Message text') with the vscode-nls boilerplate at the top of the file.
  • Settings access: Reads settings through ConfigurationReader (src/config.ts) — never calls vscode.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.targets for targets, CMakeDriver.cmakeCacheEntries for cache) — never parses CMake files or cache directly.
  • Async patterns: Prefers async/await over .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 in src/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 via yarn backendTests. Tests that require VS Code belong in test/unit-tests/ and run via yarn 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/, or src/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.
  • 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), and docs/cmake-settings.md.
  • New commands: Must be documented in package.json (contributes.commands) and referenced in the relevant docs page under docs/.
  • 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.ts or public types change, update EXTENSIBILITY.md.
  • README: If a new major feature is added, check whether README.md should mention it.

Applying This Skill

When reviewing or preparing a PR:

  1. Check the title — rewrite it if it is vague or missing context.
  2. Check the description — ensure it explains what, why, and (if needed) how.
  3. Check CHANGELOG.md — verify an entry exists under the current version in the correct section with the correct format. If missing, add one.
  4. Check correctness — review code for logical errors, missing mode/generator handling, cross-platform issues, and error handling gaps.
  5. Check regression risks — identify areas where the change could break existing behavior and flag missing test coverage for critical paths.
  6. Check pattern adherence — verify the change follows established import, logging, localization, settings access, and architectural conventions.
  7. 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.
  8. Check documentation — verify that new or changed settings, commands, and behavior are reflected in the appropriate docs.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.