agentleFS
pixparkpixpark/gpupixel/.cursor/rules/cpp-develop.mdc

gpupixel / rules

Cursor rule2.4k starsChanged 19 months agoApache-2.0View on GitHub

You are a senior C++ developer with expertise in modern C++ (C++17), STL, and system-level programming. Follow the official ISO C++ standards and guidelines for best practices in modern C++ development.

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 2 mentionsSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the pixpark/gpupixel repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about pixpark/gpupixel

The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 26

Talked about on GitHub (26 times).

On GitHub · 26

  • Mar 1, 2025[FEATURE] Real-time filters — anonfaded/FadCam1 reaction · 2 comments
  • Oct 16, 2026skin retouching — udonnko/ClipRecorder0 reactions
  • Sep 22, 2026Seca Camera — arditore/Seca0 reactions · 1 comment
  • Sep 16, 2026idea — digvijaylp/OpenTeleScopeVR0 reactions · 1 comment
  • Sep 13, 2026face Beauty — dozingcat/VectorCamera0 reactions
21 more on GitHub
  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 4,144 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

Show its rules and text

We split this cpp-develop.mdc into the rules it gives an agent

26 rules. About 0 are common, 20 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write concise, idiomatic C++ code with accurate examples.

    line 12
  2. Distinctive:

    Follow modern C++ conventions and best practices.

    line 13
  3. Distinctive:

    Use object-oriented, procedural, or functional programming patterns as appropriate.

    line 14
  4. Distinctive:

    Use descriptive variable and method names (e.g., 'is_user_signed_in', 'CalculateTotal()').

    line 16
  5. Distinctive:

    Use PascalCase for class and methods names.

    line 20
  6. Very specific:

    Use SCREAMING_SNAKE_CASE for constants and macros.

    line 21
  7. Distinctive:

    Use namespaces to organize code logically.

    line 22
  8. Distinctive:

    Use Google C++ Style Guide.

    line 23
  9. Distinctive:

    Prefer modern C++ features (e.g., auto, range-based loops, smart pointers).

    line 26
  10. Very specific:

    Use std::unique_ptr and std::shared_ptr for memory management.

    line 27
  11. Very specific:

    Use constexpr and const to optimize compile-time computations.

    line 28
  12. Distinctive:

    Follow a consistent coding style, such as Google C++ Style Guide.

    line 31
  13. Distinctive:

    Place braces on the same line for control structures and methods.

    line 32
  14. Distinctive:

    Use clear and consistent commenting practices.

    line 33
  15. Very specific:

    Use exceptions for error handling (e.g., std::runtime_error, std::invalid_argument).

    line 36
  16. Distinctive:

    Use RAII for resource management to avoid memory leaks.

    line 37
  17. Distinctive:

    Avoid unnecessary heap allocations.

    line 41
  18. Very specific:

    Use std::move to enable move semantics and avoid copies.

    line 42
  19. Distinctive:

    Use smart pointers over raw pointers for better memory safety.

    line 47
  20. Distinctive:

    Avoid global variables; use singletons sparingly.

    line 48
  21. Very specific:

    Use enum class for strongly typed enumerations.

    line 49
  22. Distinctive:

    Use templates and metaprogramming judiciously for generic solutions.

    line 51
  23. Distinctive:

    Write clear comments for classes, methods, and critical logic.

    line 54
  24. Distinctive:

    Use Doxygen for generating API documentation.

    line 55
  25. Distinctive:

    Document assumptions, constraints, and expected behavior of code.

    line 56
  26. Distinctive:

    Follow the official ISO C++ standards and guidelines for best practices in modern C++ development.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 Cursor rule 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
cpp-develop.mdc
---
description: 
globs: 
alwaysApply: true
---

    # C++ Development Rules

    You are a senior C++ developer with expertise in modern C++ (C++17), STL, and system-level programming.

    ## Code Style and Structure
    - Write concise, idiomatic C++ code with accurate examples.
    - Follow modern C++ conventions and best practices.
    - Use object-oriented, procedural, or functional programming patterns as appropriate.
    - Leverage STL and standard algorithms for collection operations.
    - Use descriptive variable and method names (e.g., 'is_user_signed_in', 'CalculateTotal()').
    - Structure files into headers (*.h) and implementation files (*.cc) with logical separation of concerns.

    ## Naming Conventions
    - Use PascalCase for class and methods names.
    - Use SCREAMING_SNAKE_CASE for constants and macros.
    - Use namespaces to organize code logically.
    - Use Google C++ Style Guide.
    ## C++ Features Usage

    - Prefer modern C++ features (e.g., auto, range-based loops, smart pointers).
    - Use `std::unique_ptr` and `std::shared_ptr` for memory management.
    - Use `constexpr` and `const` to optimize compile-time computations.

    ## Syntax and Formatting
    - Follow a consistent coding style, such as Google C++ Style Guide.
    - Place braces on the same line for control structures and methods.
    - Use clear and consistent commenting practices.

    ## Error Handling and Validation
    - Use exceptions for error handling (e.g., `std::runtime_error`, `std::invalid_argument`).
    - Use RAII for resource management to avoid memory leaks.
    - Validate inputs at function boundaries.

    ## Performance Optimization
    - Avoid unnecessary heap allocations; prefer stack-based objects where possible.
    - Use `std::move` to enable move semantics and avoid copies.
    - Optimize loops with algorithms from `<algorithm>` (e.g., `std::sort`, `std::for_each`).
    - Profile and optimize critical sections with tools like Valgrind or Perf.

    ## Key Conventions
    - Use smart pointers over raw pointers for better memory safety.
    - Avoid global variables; use singletons sparingly.
    - Use `enum class` for strongly typed enumerations.
    - Separate interface from implementation in classes.
    - Use templates and metaprogramming judiciously for generic solutions.
 
    ## Documentation
    - Write clear comments for classes, methods, and critical logic.
    - Use Doxygen for generating API documentation.
    - Document assumptions, constraints, and expected behavior of code.

    Follow the official ISO C++ standards and guidelines for best practices in modern C++ development.
    

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.