Skip to content
thebushidocollective avatar

Cpp Modern Features

Catalog guide to modern C++ features from C++11 through C++20, with runnable examples for each.

CCM score
41 of 100
skills.sh installs
247
GitHub stars
202
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers type inference, lambdas, range-based loops, uniform initialization, and move semantics with rvalue references
  • Includes code samples for auto, structured bindings, generic lambdas, custom ranges, and the move constructor and assignment pattern
  • Shows before-and-after contrasts, such as iterator declarations versus auto and the most vexing parse versus brace initialization
  • Designed for C++ developers moving from pre-C++11 code to contemporary standards

Install

$ npx -y skills add thebushidocollective/han --skill cpp-modern-features -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Modern C++ Features

Modern C++ (C++11 and beyond) introduced significant improvements that make C++ more expressive, safer, and easier to use. This skill covers essential modern features including type inference, lambda expressions, range-based loops, smart initialization, and the latest C++20 additions.

Auto Type Inference

The auto keyword enables automatic type deduction, reducing verbosity while maintaining type safety.

#include <iostream>
#include <vector>
#include <map>
#include <string>

void auto_examples() {
    // Simple type inference
    auto x = 42;              // int
    auto pi = 3.14159;        // double
    auto name = "Alice";      // const char*
    auto message = std::string("Hello");  // std::string

    // Iterator simplification
    std::vector<int> numbers = {1, 2, 3, 4, 5};

    // Before C++11
    for (std::vector<int>::iterator it = numbers.begin();
         it != numbers.end(); ++it) {
        std::cout << *it << " ";
    }

    // With auto
    for (auto it = numbers.begin(); it != numbers.end(); ++it) {
        std::cout << *it << " ";
    }

Details

Repository
github.com/thebushidocollective/han
Category
Learning & Teaching
First seen
Jun 3, 2026

Questions

What does the cpp-modern-features skill cover?

cpp-modern-features teaches an agent modern C++ features from C++11, C++14, C++17 and C++20, including auto type inference, lambda expressions, range-based for loops, structured bindings and concepts. The SKILL.md also covers uniform initialization and move semantics with rvalue references.

How do I install the cpp-modern-features skill?

Run npx -y skills add thebushidocollective/han --skill cpp-modern-features -y in your project. After that, cpp-modern-features gives the agent guidance on writing modern C++ code with these language features.

Where does cpp-modern-features rank in its category?

cpp-modern-features ranks in the top 100 of the Learning & Teaching category on Claude Marketplaces. It sits alongside skills such as teach, scaffold-exercises and show-me in that category.

More from thebushidocollective/han

All 14

Similar to Cpp Modern Features

More Learning & Teaching