[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CH9H73NAJQ7MBY53PCAPXP":3,"skill-same:01M7CH9H73NAJQ7MBY53PCAPXP":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7CH9H73NAJQ7MBY53PCAPXP","modern-cpp",null,"Guides C++ code toward modern idioms (C++20\u002F23\u002F26). Use when writing new C++ code, modernizing legacy patterns, or working on security-critical C++. Replaces raw pointers with smart pointers, SFINAE with concepts, printf with std::print, error codes with std::expected.","bongkage\u002Ftrailofbits-skills","bongkage","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F101378796?v=4","01M7CH419QTJ16DNJ33P0WCWBE","01M7CH41A9NWK8D2JBRK9F0M2C",1,"CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmodern-cpp\u002Fskills\u002Fmodern-cpp\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: modern-cpp\ndescription: Guides C++ code toward modern idioms (C++20\u002F23\u002F26). Use when writing new C++ code, modernizing legacy patterns, or working on security-critical C++. Replaces raw pointers with smart pointers, SFINAE with concepts, printf with std::print, error codes with std::expected.\n---\n\n# Modern C++\n\nGuide for writing modern C++ using C++20, C++23, and C++26 idioms. Focuses on patterns that eliminate vulnerability classes and reduce boilerplate, with a security emphasis from Trail of Bits.\n\n## When to Use This Skill\n\n- Writing new C++ functions, classes, or libraries\n- Modernizing existing C++ code (pre-C++20 patterns)\n- Choosing between legacy and modern approaches\n- Working on security-critical or safety-sensitive C++\n- Reviewing C++ code for modern idiom adoption\n\n## When NOT to Use This Skill\n\n- **User explicitly requires older standard**: Respect constraints (embedded, legacy ABI)\n- **Pure C code**: This skill is C++-specific\n- **Build system questions**: CMake, Meson, Bazel configuration is out of scope\n- **Non-C++ projects**: Mixed codebases where C++ isn't primary\n\n## Anti-Patterns to Avoid\n\n| Avoid | Use Instead | Why |\n|-------|-------------|-----|\n| `new`\u002F`delete` | `std::make_unique`, `std::make_shared` | Eliminates leaks, double-free |\n| Raw owning pointers | `std::unique_ptr`, `std::shared_ptr` | RAII ownership semantics |\n| C arrays (`int arr[N]`) | `std::array\u003Cint, N>` | Bounds-aware, value semantics |\n| Pointer + length params | `std::span\u003CT>` | Non-owning, bounds-checkable |\n| `printf` \u002F `sprintf` | `std::format`, `std::print` | Type-safe, no buffer overflow |\n| C-style casts `(int)x` | `static_cast\u003Cint>(x)` | Explicit intent, auditable |\n| `#define` constants | `constexpr` variables | Scoped, typed, debuggable |\n| SFINAE \u002F `enable_if` | Concepts + `requires` | Readable constraints and errors |\n| Error codes + out params | `std::expected\u003CT, E>` | Composable, type-safe errors |\n| `union` | `std::variant` | Type-safe, no silent UB |\n| Raw `mutex.lock()\u002Funlock()` | `std::scoped_lock` | Exception-safe, no deadlocks |\n| `std::thread` | `std::jthread` | Auto-join, stop token support |\n| `assert()` macro | `contract_assert` (C++26) | Visible to tooling, configurable |\n| Manual CRTP | Deducing `this` (C++23) | Simpler, no template boilerplate |\n| Macro code generation | Reflection (C++26) | Zero-overhead, composable |\n\nSee [anti-patterns.md](.\u002Freferences\u002Fanti-patterns.md) for the full table (30+ patterns).\n\n## Decision Tree\n\n```\nWhat are you doing?\n|\n+-- Writing new C++ code?\n|   +-- Use modern idioms by default (C++20\u002F23)\n|   +-- Choose the newest standard your compiler supports\n|   +-- See Feature Tiers below\n|\n+-- Modernizing existing code?\n|   +-- Start with Tier 1 (C++20\u002F23) replacements\n|   +-- Prioritize by security impact (memory > types > style)\n|   +-- See anti-patterns.md for the migration table\n|\n+-- Security-critical code?\n|   +-- Enable compiler hardening flags (see below)\n|   +-- Enable hardened libc++ mode\n|   +-- Run sanitizers in CI\n|   +-- See safe-idioms.md and compiler-hardening.md\n|\n+-- Using C++26 features?\n    +-- Reflection: YES, plan for it (GCC 16+)\n    +-- Contracts: cautiously, for new API boundaries\n    +-- std::execution: wait for ecosystem maturity\n    +-- See cpp26-features.md\n```\n\n## Feature Tiers\n\nFeatures are ranked by **practical usability today**, not by standard version.\n\n### Tier 1: Use Today (C++20\u002F23, solid compiler support)\n\n| Feature | Replaces | Standard |\n|---------|----------|----------|\n| Concepts + `requires` | SFINAE, `enable_if` | C++20 |\n| Ranges + views | Raw iterator loops | C++20 |\n| `std::span\u003CT>` | Pointer + length | C++20 |\n| `std::format` | `sprintf`, iostream chains | C++20 |\n| Three-way comparison `\u003C=>` | Manual comparison operators | C++20 |\n| `std::jthread` | `std::thread` + manual join | C++20 |\n| Designated initializers | Positional struct init | C++20 |\n| `std::expected\u003CT,E>` | Error codes, exceptions at boundaries | C++23 |\n| `std::print` \u002F `std::println` | `printf`, `std::cout \u003C\u003C` | C++23 |\n| Deducing `this` | CRTP, const\u002Fnon-const duplication | C++23 |\n| `std::flat_map` | `std::map` for read-heavy use | C++23 |\n| Monadic `std::optional` | Nested if-checks on optionals | C++23 |\n\nSee [cpp20-features.md](.\u002Freferences\u002Fcpp20-features.md) and [cpp23-features.md](.\u002Freferences\u002Fcpp23-features.md).\n\n### Tier 2: Deploy Now (no standard bump needed)\n\nThese improve safety without changing your C++ standard version:\n\n- **Compiler hardening flags** — `-D_FORTIFY_SOURCE=3`, `-fstack-protector-strong`, `-ftrivial-auto-var-init=zero`\n- **Hardened libc++** — `-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST` for ~0.3% overhead bounds-checking\n- **Sanitizers in CI** — ASan + UBSan as minimum; TSan for concurrent code\n- **Warning flags** — `-Wall -Wextra -Wpedantic -Werror`\n\nSee [compiler-hardening.md](.\u002Freferences\u002Fcompiler-hardening.md).\n\n### Tier 3: Plan For (C++26, worth restructuring around)\n\n**Reflection** is the single most transformative C++26 feature. It eliminates:\n- Serialization boilerplate (one generic function replaces per-struct `to_json`)\n- Code generators (protobuf codegen, Qt MOC)\n- Macro-based registration and enum-to-string hacks\n\nGCC 16 (April 2026) has reflection merged. Plan new code to benefit from it.\n\n### Tier 4: Watch (C++26, needs maturation)\n\n- **Contracts** (`pre`\u002F`post`\u002F`contract_assert`) — Better than `assert()`, but no virtual function support and limited compiler support. Adopt cautiously for new API boundaries.\n- **std::execution** (senders\u002Freceivers) — Powerful async framework, but steep learning curve, no scheduler ships with it, and poor documentation. Wait for ecosystem maturity.\n\nSee [cpp26-features.md](.\u002Freferences\u002Fcpp26-features.md).\n\n## Compiler Hardening Quick Reference\n\n### Essential Flags (GCC + Clang)\n\n```\n-Wall -Wextra -Wpedantic -Werror\n-D_FORTIFY_SOURCE=3\n-fstack-protector-strong\n-fstack-clash-protection\n-ftrivial-auto-var-init=zero\n-fPIE -pie\n-Wl,-z,relro,-z,now\n```\n\n### Clang-Specific\n\n```\n-Wunsafe-buffer-usage\n```\n\n### Hardened libc++ (Clang\u002Flibc++ only)\n\n```\n-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST\n```\n\nGoogle deployed this across Chrome and their server fleet: ~0.3% overhead, 1000+ bugs found, 30% reduction in production segfaults.\n\nSee [compiler-hardening.md](.\u002Freferences\u002Fcompiler-hardening.md) for the full guide.\n\n## Rationalizations to Reject\n\n| Rationalization | Why It's Wrong |\n|----------------|----------------|\n| \"It compiles without warnings\" | Warnings depend on which flags you enable. Add `-Wall -Wextra -Wpedantic`. |\n| \"ASan is too slow for production\" | Use GWP-ASan for sampling-based production detection (~0% overhead). |\n| \"We only use safe containers\" | Iterator invalidation and unchecked `optional` access are still exploitable. |\n| \"Smart pointers are slower\" | `std::unique_ptr` has zero overhead vs raw pointers. Measure before claiming. |\n| \"Our code doesn't have memory bugs\" | Google found 1000+ bugs when enabling hardened libc++. So did everyone else. |\n| \"C++26 features aren't available yet\" | C++20\u002F23 features are. Hardening flags work on any standard. Start there. |\n| \"Modern C++ is harder to read\" | `std::expected` is more readable than checking error codes across 5 out-params. |\n\n## Best Practices Checklist\n\n- [ ] Use smart pointers for ownership, raw pointers only for non-owning observation\n- [ ] Prefer `std::span` over pointer + length for function parameters\n- [ ] Use `std::expected` for functions that can fail with typed errors\n- [ ] Constrain templates with concepts, not SFINAE\n- [ ] Enable compiler hardening flags and hardened libc++ in all builds\n- [ ] Run ASan + UBSan in CI; add TSan for concurrent code\n- [ ] Use `constexpr` \u002F `consteval` where possible (UB-free by design)\n- [ ] Mark functions `[[nodiscard]]` when ignoring the return value is likely a bug\n- [ ] Prefer value semantics; use `std::variant` over `union`, `enum class` over `enum`\n- [ ] Initialize all variables at declaration\n\n## Read Next\n\n- [anti-patterns.md](.\u002Freferences\u002Fanti-patterns.md) — Full legacy-to-modern migration table (30+ patterns)\n- [cpp20-features.md](.\u002Freferences\u002Fcpp20-features.md) — Concepts, ranges, span, format, coroutines\n- [cpp23-features.md](.\u002Freferences\u002Fcpp23-features.md) — expected, print, deducing this, flat_map\n- [cpp26-features.md](.\u002Freferences\u002Fcpp26-features.md) — Reflection, contracts, memory safety improvements\n- [compiler-hardening.md](.\u002Freferences\u002Fcompiler-hardening.md) — Flags, sanitizers, hardened libc++\n- [safe-idioms.md](.\u002Freferences\u002Fsafe-idioms.md) — Security patterns by vulnerability class\n","# Modern C++\n\nGuide for writing modern C++ using C++20, C++23, and C++26 idioms. Focuses on patterns that eliminate vulnerability classes and reduce boilerplate, with a security emphasis from Trail of Bits.\n\n## When to Use This Skill\n\n- Writing new C++ functions, classes, or libraries\n- Modernizing existing C++ code (pre-C++20 patterns)\n- Choosing between legacy and modern approaches\n- Working on security-critical or safety-sensitive C++\n- Reviewing C++ code for modern idiom adoption\n\n## When NOT to Use This Skill\n\n- **User explicitly requires older standard**: Respect constraints (embedded, legacy ABI)\n- **Pure C code**: This skill is C++-specific\n- **Build system questions**: CMake, Meson, Bazel configuration is out of scope\n- **Non-C++ projects**: Mixed codebases where C++ isn't primary\n\n## Anti-Patterns to Avoid\n\n| Avoid | Use Instead | Why |\n|-------|-------------|-----|\n| `new`\u002F`delete` | `std::make_unique`, `std::make_shared` | Eliminates leaks, double-free |\n| Raw owning pointers | `std::unique_ptr`, `std::shared_ptr` | RAII ownership semantics |\n| C arrays (`int arr[N]`) | `std::array\u003Cint, N>` | Bounds-aware, value semantics |\n| Pointer + length params | `std::span\u003CT>` | Non-owning, bounds-checkable |\n| `printf` \u002F `sprintf` | `std::format`, `std::print` | Type-safe, no buffer overflow |\n| C-style casts `(int)x` | `static_cast\u003Cint>(x)` | Explicit intent, auditable |\n| `#define` constants | `constexpr` variables | Scoped, typed, debuggable |\n| SFINAE \u002F `enable_if` | Concepts + `requires` | Readable constraints and errors |\n| Error codes + out params | `std::expected\u003CT, E>` | Composable, type-safe errors |\n| `union` | `std::variant` | Type-safe, no silent UB |\n| Raw `mutex.lock()\u002Funlock()` | `std::scoped_lock` | Exception-safe, no deadlocks |\n| `std::thread` | `std::jthread` | Auto-join, stop token support |\n| `assert()` macro | `contract_assert` (C++26) | Visible to tooling, configurable |\n| Manual CRTP | Deducing `this` (C++23) | Simpler, no template boilerplate |\n| Macro code generation | Reflection (C++26) | Zero-overhead, composable |\n\nSee [anti-patterns.md](.\u002Freferences\u002Fanti-patterns.md) for the full table (30+ patterns).\n\n## Decision Tree\n\n```\nWhat are you doing?\n|\n+-- Writing new C++ code?\n|   +-- Use modern idioms by default (C++20\u002F23)\n|   +-- Choose the newest standard your compiler supports\n|   +-- See Feature Tiers below\n|\n+-- Modernizing existing code?\n|   +-- Start with Tier 1 (C++20\u002F23) replacements\n|   +-- Prioritize by security impact (memory > types > style)\n|   +-- See anti-patterns.md for the migration table\n|\n+-- Security-critical code?\n|   +-- Enable compiler hardening flags (see below)\n|   +-- Enable hardened libc++ mode\n|   +-- Run sanitizers in CI\n|   +-- See safe-idioms.md and compiler-hardening.md\n|\n+-- Using C++26 features?\n    +-- Reflection: YES, plan for it (GCC 16+)\n    +-- Contracts: cautiously, for new API boundaries\n    +-- std::execution: wait for ecosystem maturity\n    +-- See cpp26-features.md\n```\n\n## Feature Tiers\n\nFeatures are ranked by **practical usability today**, not by standard version.\n\n### Tier 1: Use Today (C++20\u002F23, solid compiler support)\n\n| Feature | Replaces | Standard |\n|---------|----------|----------|\n| Concepts + `requires` | SFINAE, `enable_if` | C++20 |\n| Ranges + views | Raw iterator loops | C++20 |\n| `std::span\u003CT>` | Pointer + length | C++20 |\n| `std::format` | `sprintf`, iostream chains | C++20 |\n| Three-way comparison `\u003C=>` | Manual comparison operators | C++20 |\n| `std::jthread` | `std::thread` + manual join | C++20 |\n| Designated initializers | Positional struct init | C++20 |\n| `std::expected\u003CT,E>` | Error codes, exceptions at boundaries | C++23 |\n| `std::print` \u002F `std::println` | `printf`, `std::cout \u003C\u003C` | C++23 |\n| Deducing `this` | CRTP, const\u002Fnon-const duplication | C++23 |\n| `std::flat_map` | `std::map` for read-heavy use | C++23 |\n| Monadic `std::optional` | Nested if-checks on optionals | C++23 |\n\nSee [cpp20-features.md](.\u002Freferences\u002Fcpp20-features.md) and [cpp23-features.md](.\u002Freferences\u002Fcpp23-features.md).\n\n### Tier 2: Deploy Now (no standard bump needed)\n\nThese improve safety without changing your C++ standard version:\n\n- **Compiler hardening flags** — `-D_FORTIFY_SOURCE=3`, `-fstack-protector-strong`, `-ftrivial-auto-var-init=zero`\n- **Hardened libc++** — `-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST` for ~0.3% overhead bounds-checking\n- **Sanitizers in CI** — ASan + UBSan as minimum; TSan for concurrent code\n- **Warning flags** — `-Wall -Wextra -Wpedantic -Werror`\n\nSee [compiler-hardening.md](.\u002Freferences\u002Fcompiler-hardening.md).\n\n### Tier 3: Plan For (C++26, worth restructuring around)\n\n**Reflection** is the single most transformative C++26 feature. It eliminates:\n- Serialization boilerplate (one generic function replaces per-struct `to_json`)\n- Code generators (protobuf codegen, Qt MOC)\n- Macro-based registration and enum-to-string hacks\n\nGCC 16 (April 2026) has reflection merged. Plan new code to benefit from it.\n\n### Tier 4: Watch (C++26, needs maturation)\n\n- **Contracts** (`pre`\u002F`post`\u002F`contract_assert`) — Better than `assert()`, but no virtual function support and limited compiler support. Adopt cautiously for new API boundaries.\n- **std::execution** (senders\u002Freceivers) — Powerful async framework, but steep learning curve, no scheduler ships with it, and poor documentation. Wait for ecosystem maturity.\n\nSee [cpp26-features.md](.\u002Freferences\u002Fcpp26-features.md).\n\n## Compiler Hardening Quick Reference\n\n### Essential Flags (GCC + Clang)\n\n```\n-Wall -Wextra -Wpedantic -Werror\n-D_FORTIFY_SOURCE=3\n-fstack-protector-strong\n-fstack-clash-protection\n-ftrivial-auto-var-init=zero\n-fPIE -pie\n-Wl,-z,relro,-z,now\n```\n\n### Clang-Specific\n\n```\n-Wunsafe-buffer-usage\n```\n\n### Hardened libc++ (Clang\u002Flibc++ only)\n\n```\n-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST\n```\n\nGoogle deployed this across Chrome and their server fleet: ~0.3% overhead, 1000+ bugs found, 30% reduction in production segfaults.\n\nSee [compiler-hardening.md](.\u002Freferences\u002Fcompiler-hardening.md) for the full guide.\n\n## Rationalizations to Reject\n\n| Rationalization | Why It's Wrong |\n|----------------|----------------|\n| \"It compiles without warnings\" | Warnings depend on which flags you enable. Add `-Wall -Wextra -Wpedantic`. |\n| \"ASan is too slow for production\" | Use GWP-ASan for sampling-based production detection (~0% overhead). |\n| \"We only use safe containers\" | Iterator invalidation and unchecked `optional` access are still exploitable. |\n| \"Smart pointers are slower\" | `std::unique_ptr` has zero overhead vs raw pointers. Measure before claiming. |\n| \"Our code doesn't have memory bugs\" | Google found 1000+ bugs when enabling hardened libc++. So did everyone else. |\n| \"C++26 features aren't available yet\" | C++20\u002F23 features are. Hardening flags work on any standard. Start there. |\n| \"Modern C++ is harder to read\" | `std::expected` is more readable than checking error codes across 5 out-params. |\n\n## Best Practices Checklist\n\n- [ ] Use smart pointers for ownership, raw pointers only for non-owning observation\n- [ ] Prefer `std::span` over pointer + length for function parameters\n- [ ] Use `std::expected` for functions that can fail with typed errors\n- [ ] Constrain templates with concepts, not SFINAE\n- [ ] Enable compiler hardening flags and hardened libc++ in all builds\n- [ ] Run ASan + UBSan in CI; add TSan for concurrent code\n- [ ] Use `constexpr` \u002F `consteval` where possible (UB-free by design)\n- [ ] Mark functions `[[nodiscard]]` when ignoring the return value is likely a bug\n- [ ] Prefer value semantics; use `std::variant` over `union`, `enum class` over `enum`\n- [ ] Initialize all variables at declaration\n\n## Read Next\n\n- [anti-patterns.md](.\u002Freferences\u002Fanti-patterns.md) — Full legacy-to-modern migration table (30+ patterns)\n- [cpp20-features.md](.\u002Freferences\u002Fcpp20-features.md) — Concepts, ranges, span, format, coroutines\n- [cpp23-features.md](.\u002Freferences\u002Fcpp23-features.md) — expected, print, deducing this, flat_map\n- [cpp26-features.md](.\u002Freferences\u002Fcpp26-features.md) — Reflection, contracts, memory safety improvements\n- [compiler-hardening.md](.\u002Freferences\u002Fcompiler-hardening.md) — Flags, sanitizers, hardened libc++\n- [safe-idioms.md](.\u002Freferences\u002Fsafe-idioms.md) — Security patterns by vulnerability class\n",{"name":5,"description":7},"main","321ccfe628eca0d314b0ee4eaffcdd8a05639aaf","plugins\u002Fmodern-cpp\u002Fskills\u002Fmodern-cpp",0,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills","https:\u002F\u002Fgithub.com\u002Fbongkage","2026-11-06 12:15:06",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add bongkage\u002Ftrailofbits-skills --skill modern-cpp",{"tool":36,"command":37},"bunx","bunx skills add bongkage\u002Ftrailofbits-skills --skill modern-cpp",{"tool":39,"command":40},"pnpm","pnpm dlx skills add bongkage\u002Ftrailofbits-skills --skill modern-cpp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmodern-cpp\u002Fskills\u002Fmodern-cpp\u002FSKILL.md",true,[44,50,54,58,62,66],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fanti-patterns.md","REFERENCE","参考文档",5630,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmodern-cpp\u002Fskills\u002Fmodern-cpp\u002Freferences\u002Fanti-patterns.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fcompiler-hardening.md",7471,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmodern-cpp\u002Fskills\u002Fmodern-cpp\u002Freferences\u002Fcompiler-hardening.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fcpp20-features.md",7138,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmodern-cpp\u002Fskills\u002Fmodern-cpp\u002Freferences\u002Fcpp20-features.md",{"path":59,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fcpp23-features.md",7150,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmodern-cpp\u002Fskills\u002Fmodern-cpp\u002Freferences\u002Fcpp23-features.md",{"path":63,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fcpp26-features.md",7696,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmodern-cpp\u002Fskills\u002Fmodern-cpp\u002Freferences\u002Fcpp26-features.md",{"path":67,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fsafe-idioms.md",8316,"https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fmodern-cpp\u002Fskills\u002Fmodern-cpp\u002Freferences\u002Fsafe-idioms.md",[71,78,85,92,99,106],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7CHJAESZRWKJXFQG55BMNAA","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fzeroize-audit\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7CHJ543G42A9GQC3PJE4F4V","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fyara-authoring\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7CHHYVFS1AKDTH3YDS1Y4K4","writing-lean-proofs","Writes and reviews structured Lean 4 proofs and designs Lean libraries following Mathlib conventions. Use when proving theorems in Lean, formalizing mathematics or specifications in Lean 4, defining new types or definitions in a Lean library, reviewing Lean proofs for readability and maintainability, refactoring long tactic proofs into lemmas, filling in sorry placeholders in a Lean development, setting up CI or linters for a Lean project, diagnosing slow proofs or maxHeartbeats timeouts, or writing custom tactics, macros, or linters.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwriting-lean-proofs\u002Fskills\u002Fwriting-lean-proofs\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7CHHQXA39M4965MV2RMM5YS","vulnerability-triage-brocards","This skill should be used when the user asks to \"triage a vulnerability report\", \"assess a CVE\", \"evaluate a bug bounty submission\", \"decide if a finding is valid\", \"review a security finding\", \"dismiss a vulnerability\", \"should we fix this CVE\", \"prioritize a vulnerability report\", or needs to determine whether an incoming vulnerability report warrants investigation. Applies 7 brocards (rules of thumb) to systematically accept, dismiss, or request more information on vulnerability reports, or needs to filter raw findings from agentic vulnerability discovery pipelines before human review.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fvulnerability-triage-brocards\u002Fskills\u002Fvulnerability-triage-brocards\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7CHHJVQC2ZG2M310GXT0T42","variant-analysis","Hunts for the other instances of a bug already found — the variants of one root cause across a codebase. Use immediately after a vulnerability, logic bug, or bad pattern turns up in a specific file and the question becomes where else it occurs, including the bare conversational form (\"are there others like this?\", \"is this the same bug?\"). Also for generalizing one known instance into a CodeQL or Semgrep query for its whole pattern family, and for triaging a set of look-alike candidates against a known root cause. Not for initial discovery with no bug in hand.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fvariant-analysis\u002Fskills\u002Fvariant-analysis\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M7CHHC1GM5GH585ZWGP7D03P","vector-forge","Mutation-driven test vector generation. Finds implementations of a cryptographic algorithm or protocol, runs mutation testing to identify escaped mutants, then generates new test vectors that deliberately exercise the uncovered code paths. Compares before\u002Fafter mutation kill rates to prove vector effectiveness. Use when generating cryptographic test vectors, measuring Wycheproof coverage gaps, finding escaped mutants via mutation testing, creating cross-implementation test suites, or improving test vector coverage for crypto primitives.","https:\u002F\u002Fgithub.com\u002Fbongkage\u002Ftrailofbits-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftrailmark\u002Fskills\u002Fvector-forge\u002FSKILL.md",[],[]]