Cpp logo

Cpp

Organization
Mindrally
cpp

Guidelines for modern C++ development with C++17/20 standards, memory safety, and performance optimization

Overview

PublisherMindrally
Repositoryskills
Skill namecpp
Stars
259
Forks
41
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Mindrally on GitHub. Read the source before you install it.

Installation

Install the Cpp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Mindrally/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/cpp .claude/skills/cpp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cpp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cpp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cpp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

C++ Development Guidelines

You are an expert in modern C++ development with deep knowledge of C++17/20 standards, memory management, and high-performance programming.

Code Style and Structure

  • Write clean, modern C++ code following C++17/20 standards
  • Use meaningful variable and function names
  • Follow the Single Responsibility Principle
  • Prefer composition over inheritance
  • Keep functions small and focused

Naming Conventions

  • Use PascalCase for classes and structs
  • Use camelCase for functions, variables, and methods
  • Use SCREAMING_SNAKE_CASE for constants and macros
  • Use snake_case for namespaces
  • Prefix member variables with m_ or use trailing underscore

Memory Management

Smart Pointers

  • Use std::unique_ptr for exclusive ownership
  • Use std::shared_ptr only when shared ownership is required
  • Use std::weak_ptr to break circular references
  • Avoid raw owning pointers

RAII (Resource Acquisition Is Initialization)

  • Use RAII for all resource management
  • Wrap resources in classes with proper destructors
  • Ensure exception safety through RAII
  • Use scope guards for cleanup operations

Best Practices

  • Prefer stack allocation over heap allocation
  • Use std::make_unique and std::make_shared
  • Avoid new and delete in application code
  • Use containers instead of raw arrays

Modern C++ Features

C++17 Features

  • Use structured bindings for tuple unpacking
  • Use std::optional for values that may not exist
  • Use std::variant for type-safe unions
  • Use if constexpr for compile-time conditionals
  • Use std::string_view for non-owning string references

C++20 Features

  • Use concepts for template constraints
  • Use ranges for cleaner algorithms
  • Use std::span for non-owning array views
  • Use coroutines for asynchronous operations
  • Use modules for faster compilation (when supported)

Error Handling

  • Use exceptions for error handling
  • Define custom exception types for domain-specific errors
  • Use noexcept for functions that don't throw
  • Catch exceptions by const reference
  • Provide strong exception guarantees where possible

Performance

  • Use const and constexpr liberally
  • Prefer move semantics with std::move
  • Use perfect forwarding with std::forward
  • Avoid unnecessary copies
  • Profile before optimizing
  • Use inline for small frequently-called functions

Security

Buffer Safety

  • Use std::array instead of C-style arrays
  • Use std::vector with bounds checking
  • Prefer std::string over C-style strings
  • Use std::span for array views

Type Safety

  • Avoid C-style casts; use static_cast, dynamic_cast, etc.
  • Use enum class instead of plain enums
  • Use nullptr instead of NULL
  • Enable compiler warnings and treat them as errors

Concurrency

  • Use std::thread and std::jthread for threading
  • Use std::mutex and std::lock_guard for synchronization
  • Use std::atomic for lock-free operations
  • Prefer std::async for simple async operations
  • Use condition variables for thread coordination

Testing

  • Write unit tests with Google Test or Catch2
  • Use mocking frameworks like Google Mock
  • Test edge cases and error conditions
  • Use sanitizers (ASan, UBSan, TSan) during testing
  • Implement continuous integration testing

Documentation

  • Use Doxygen-style comments for documentation
  • Document public APIs thoroughly
  • Include usage examples in documentation
  • Keep documentation up to date with code changes
  • Document thread safety requirements

Build System

  • Use CMake for cross-platform builds
  • Organize code into logical modules
  • Use package managers (vcpkg, Conan) for dependencies
  • Enable compiler warnings and static analysis
  • Configure proper debug and release builds

Frequently asked questions

What does the Cpp AI skill do?

Guidelines for modern C++ development with C++17/20 standards, memory safety, and performance optimization

Why use Cpp on TypingMind?

Because you install it once and use it with any model. Cpp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cpp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Mindrally/skills/tree/main/cpp. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cpp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cpp?

As many as you like. As long as a model supports skills, you can use Cpp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cpp AI skill free?

Yes. It is published on GitHub by Mindrally under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇