[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7APF3PGCNTTM6EQJ8E3T3FH":3,"skill-same:01M7APF3PGCNTTM6EQJ8E3T3FH":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7APF3PGCNTTM6EQJ8E3T3FH","cpp-testing",null,"Use only when writing\u002Fupdating\u002Ffixing C++ tests, configuring GoogleTest\u002FCTest, diagnosing failing or flaky tests, or adding coverage\u002Fsanitizers.","Cyrilthetecchieee\u002Fcyril-code-","Cyrilthetecchieee","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219787998?v=4","01M7AF0MMMKRAA0H61XMJPV92H","Julian Cyril D ","01M7AF0MQ10AVG6QJQ1C2BC0F5",2,"MIT","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fskills\u002Fcpp-testing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cpp-testing\ndescription: Use only when writing\u002Fupdating\u002Ffixing C++ tests, configuring GoogleTest\u002FCTest, diagnosing failing or flaky tests, or adding coverage\u002Fsanitizers.\nmetadata:\n  origin: ECC\n---\n\n# C++ Testing (Agent Skill)\n\nAgent-focused testing workflow for modern C++ (C++17\u002F20) using GoogleTest\u002FGoogleMock with CMake\u002FCTest.\n\n## When to Use\n\n- Writing new C++ tests or fixing existing tests\n- Designing unit\u002Fintegration test coverage for C++ components\n- Adding test coverage, CI gating, or regression protection\n- Configuring CMake\u002FCTest workflows for consistent execution\n- Investigating test failures or flaky behavior\n- Enabling sanitizers for memory\u002Frace diagnostics\n\n### When NOT to Use\n\n- Implementing new product features without test changes\n- Large-scale refactors unrelated to test coverage or failures\n- Performance tuning without test regressions to validate\n- Non-C++ projects or non-test tasks\n\n## Core Concepts\n\n- **TDD loop**: red → green → refactor (tests first, minimal fix, then cleanups).\n- **Isolation**: prefer dependency injection and fakes over global state.\n- **Test layout**: `tests\u002Funit`, `tests\u002Fintegration`, `tests\u002Ftestdata`.\n- **Mocks vs fakes**: mock for interactions, fake for stateful behavior.\n- **CTest discovery**: use `gtest_discover_tests()` for stable test discovery.\n- **CI signal**: run subset first, then full suite with `--output-on-failure`.\n\n## TDD Workflow\n\nFollow the RED → GREEN → REFACTOR loop:\n\n1. **RED**: write a failing test that captures the new behavior\n2. **GREEN**: implement the smallest change to pass\n3. **REFACTOR**: clean up while tests stay green\n\n```cpp\n\u002F\u002F tests\u002Fadd_test.cpp\n#include \u003Cgtest\u002Fgtest.h>\n\nint Add(int a, int b); \u002F\u002F Provided by production code.\n\nTEST(AddTest, AddsTwoNumbers) { \u002F\u002F RED\n  EXPECT_EQ(Add(2, 3), 5);\n}\n\n\u002F\u002F src\u002Fadd.cpp\nint Add(int a, int b) { \u002F\u002F GREEN\n  return a + b;\n}\n\n\u002F\u002F REFACTOR: simplify\u002Frename once tests pass\n```\n\n## Code Examples\n\n### Basic Unit Test (gtest)\n\n```cpp\n\u002F\u002F tests\u002Fcalculator_test.cpp\n#include \u003Cgtest\u002Fgtest.h>\n\nint Add(int a, int b); \u002F\u002F Provided by production code.\n\nTEST(CalculatorTest, AddsTwoNumbers) {\n    EXPECT_EQ(Add(2, 3), 5);\n}\n```\n\n### Fixture (gtest)\n\n```cpp\n\u002F\u002F tests\u002Fuser_store_test.cpp\n\u002F\u002F Pseudocode stub: replace UserStore\u002FUser with project types.\n#include \u003Cgtest\u002Fgtest.h>\n#include \u003Cmemory>\n#include \u003Coptional>\n#include \u003Cstring>\n\nstruct User { std::string name; };\nclass UserStore {\npublic:\n    explicit UserStore(std::string \u002F*path*\u002F) {}\n    void Seed(std::initializer_list\u003CUser> \u002F*users*\u002F) {}\n    std::optional\u003CUser> Find(const std::string &\u002F*name*\u002F) { return User{\"alice\"}; }\n};\n\nclass UserStoreTest : public ::testing::Test {\nprotected:\n    void SetUp() override {\n        store = std::make_unique\u003CUserStore>(\":memory:\");\n        store->Seed({{\"alice\"}, {\"bob\"}});\n    }\n\n    std::unique_ptr\u003CUserStore> store;\n};\n\nTEST_F(UserStoreTest, FindsExistingUser) {\n    auto user = store->Find(\"alice\");\n    ASSERT_TRUE(user.has_value());\n    EXPECT_EQ(user->name, \"alice\");\n}\n```\n\n### Mock (gmock)\n\n```cpp\n\u002F\u002F tests\u002Fnotifier_test.cpp\n#include \u003Cgmock\u002Fgmock.h>\n#include \u003Cgtest\u002Fgtest.h>\n#include \u003Cstring>\n\nclass Notifier {\npublic:\n    virtual ~Notifier() = default;\n    virtual void Send(const std::string &message) = 0;\n};\n\nclass MockNotifier : public Notifier {\npublic:\n    MOCK_METHOD(void, Send, (const std::string &message), (override));\n};\n\nclass Service {\npublic:\n    explicit Service(Notifier &notifier) : notifier_(notifier) {}\n    void Publish(const std::string &message) { notifier_.Send(message); }\n\nprivate:\n    Notifier &notifier_;\n};\n\nTEST(ServiceTest, SendsNotifications) {\n    MockNotifier notifier;\n    Service service(notifier);\n\n    EXPECT_CALL(notifier, Send(\"hello\")).Times(1);\n    service.Publish(\"hello\");\n}\n```\n\n### CMake\u002FCTest Quickstart\n\n```cmake\n# CMakeLists.txt (excerpt)\ncmake_minimum_required(VERSION 3.20)\nproject(example LANGUAGES CXX)\n\nset(CMAKE_CXX_STANDARD 20)\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\n\ninclude(FetchContent)\n# Prefer project-locked versions. If using a tag, use a pinned version per project policy.\nset(GTEST_VERSION v1.17.0) # Adjust to project policy.\nFetchContent_Declare(\n  googletest\n  # Google Test framework (official repository)\n  URL https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fgoogletest\u002Farchive\u002Frefs\u002Ftags\u002F${GTEST_VERSION}.zip\n)\nFetchContent_MakeAvailable(googletest)\n\nadd_executable(example_tests\n  tests\u002Fcalculator_test.cpp\n  src\u002Fcalculator.cpp\n)\ntarget_link_libraries(example_tests GTest::gtest GTest::gmock GTest::gtest_main)\n\nenable_testing()\ninclude(GoogleTest)\ngtest_discover_tests(example_tests)\n```\n\n```bash\ncmake -S . -B build -DCMAKE_BUILD_TYPE=Debug\ncmake --build build -j\nctest --test-dir build --output-on-failure\n```\n\n## Running Tests\n\n```bash\nctest --test-dir build --output-on-failure\nctest --test-dir build -R ClampTest\nctest --test-dir build -R \"UserStoreTest.*\" --output-on-failure\n```\n\n```bash\n.\u002Fbuild\u002Fexample_tests --gtest_filter=ClampTest.*\n.\u002Fbuild\u002Fexample_tests --gtest_filter=UserStoreTest.FindsExistingUser\n```\n\n## Debugging Failures\n\n1. Re-run the single failing test with gtest filter.\n2. Add scoped logging around the failing assertion.\n3. Re-run with sanitizers enabled.\n4. Expand to full suite once the root cause is fixed.\n\n## Coverage\n\nPrefer target-level settings instead of global flags.\n\n```cmake\noption(ENABLE_COVERAGE \"Enable coverage flags\" OFF)\n\nif(ENABLE_COVERAGE)\n  if(CMAKE_CXX_COMPILER_ID MATCHES \"GNU\")\n    target_compile_options(example_tests PRIVATE --coverage)\n    target_link_options(example_tests PRIVATE --coverage)\n  elseif(CMAKE_CXX_COMPILER_ID MATCHES \"Clang\")\n    target_compile_options(example_tests PRIVATE -fprofile-instr-generate -fcoverage-mapping)\n    target_link_options(example_tests PRIVATE -fprofile-instr-generate)\n  endif()\nendif()\n```\n\nGCC + gcov + lcov:\n\n```bash\ncmake -S . -B build-cov -DENABLE_COVERAGE=ON\ncmake --build build-cov -j\nctest --test-dir build-cov\nlcov --capture --directory build-cov --output-file coverage.info\nlcov --remove coverage.info '\u002Fusr\u002F*' --output-file coverage.info\ngenhtml coverage.info --output-directory coverage\n```\n\nClang + llvm-cov:\n\n```bash\ncmake -S . -B build-llvm -DENABLE_COVERAGE=ON -DCMAKE_CXX_COMPILER=clang++\ncmake --build build-llvm -j\nLLVM_PROFILE_FILE=\"build-llvm\u002Fdefault.profraw\" ctest --test-dir build-llvm\nllvm-profdata merge -sparse build-llvm\u002Fdefault.profraw -o build-llvm\u002Fdefault.profdata\nllvm-cov report build-llvm\u002Fexample_tests -instr-profile=build-llvm\u002Fdefault.profdata\n```\n\n## Sanitizers\n\n```cmake\noption(ENABLE_ASAN \"Enable AddressSanitizer\" OFF)\noption(ENABLE_UBSAN \"Enable UndefinedBehaviorSanitizer\" OFF)\noption(ENABLE_TSAN \"Enable ThreadSanitizer\" OFF)\n\nif(ENABLE_ASAN)\n  add_compile_options(-fsanitize=address -fno-omit-frame-pointer)\n  add_link_options(-fsanitize=address)\nendif()\nif(ENABLE_UBSAN)\n  add_compile_options(-fsanitize=undefined -fno-omit-frame-pointer)\n  add_link_options(-fsanitize=undefined)\nendif()\nif(ENABLE_TSAN)\n  add_compile_options(-fsanitize=thread)\n  add_link_options(-fsanitize=thread)\nendif()\n```\n\n## Flaky Tests Guardrails\n\n- Never use `sleep` for synchronization; use condition variables or latches.\n- Make temp directories unique per test and always clean them.\n- Avoid real time, network, or filesystem dependencies in unit tests.\n- Use deterministic seeds for randomized inputs.\n\n## Best Practices\n\n### DO\n\n- Keep tests deterministic and isolated\n- Prefer dependency injection over globals\n- Use `ASSERT_*` for preconditions, `EXPECT_*` for multiple checks\n- Separate unit vs integration tests in CTest labels or directories\n- Run sanitizers in CI for memory and race detection\n\n### DON'T\n\n- Don't depend on real time or network in unit tests\n- Don't use sleeps as synchronization when a condition variable can be used\n- Don't over-mock simple value objects\n- Don't use brittle string matching for non-critical logs\n\n### Common Pitfalls\n\n- **Using fixed temp paths** → Generate unique temp directories per test and clean them.\n- **Relying on wall clock time** → Inject a clock or use fake time sources.\n- **Flaky concurrency tests** → Use condition variables\u002Flatches and bounded waits.\n- **Hidden global state** → Reset global state in fixtures or remove globals.\n- **Over-mocking** → Prefer fakes for stateful behavior and only mock interactions.\n- **Missing sanitizer runs** → Add ASan\u002FUBSan\u002FTSan builds in CI.\n- **Coverage on debug-only builds** → Ensure coverage targets use consistent flags.\n\n## Optional Appendix: Fuzzing \u002F Property Testing\n\nOnly use if the project already supports LLVM\u002FlibFuzzer or a property-testing library.\n\n- **libFuzzer**: best for pure functions with minimal I\u002FO.\n- **RapidCheck**: property-based tests to validate invariants.\n\nMinimal libFuzzer harness (pseudocode: replace ParseConfig):\n\n```cpp\n#include \u003Ccstddef>\n#include \u003Ccstdint>\n#include \u003Cstring>\n\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {\n    std::string input(reinterpret_cast\u003Cconst char *>(data), size);\n    \u002F\u002F ParseConfig(input); \u002F\u002F project function\n    return 0;\n}\n```\n\n## Alternatives to GoogleTest\n\n- **Catch2**: header-only, expressive matchers\n- **doctest**: lightweight, minimal compile overhead\n","# C++ Testing (Agent Skill)\n\nAgent-focused testing workflow for modern C++ (C++17\u002F20) using GoogleTest\u002FGoogleMock with CMake\u002FCTest.\n\n## When to Use\n\n- Writing new C++ tests or fixing existing tests\n- Designing unit\u002Fintegration test coverage for C++ components\n- Adding test coverage, CI gating, or regression protection\n- Configuring CMake\u002FCTest workflows for consistent execution\n- Investigating test failures or flaky behavior\n- Enabling sanitizers for memory\u002Frace diagnostics\n\n### When NOT to Use\n\n- Implementing new product features without test changes\n- Large-scale refactors unrelated to test coverage or failures\n- Performance tuning without test regressions to validate\n- Non-C++ projects or non-test tasks\n\n## Core Concepts\n\n- **TDD loop**: red → green → refactor (tests first, minimal fix, then cleanups).\n- **Isolation**: prefer dependency injection and fakes over global state.\n- **Test layout**: `tests\u002Funit`, `tests\u002Fintegration`, `tests\u002Ftestdata`.\n- **Mocks vs fakes**: mock for interactions, fake for stateful behavior.\n- **CTest discovery**: use `gtest_discover_tests()` for stable test discovery.\n- **CI signal**: run subset first, then full suite with `--output-on-failure`.\n\n## TDD Workflow\n\nFollow the RED → GREEN → REFACTOR loop:\n\n1. **RED**: write a failing test that captures the new behavior\n2. **GREEN**: implement the smallest change to pass\n3. **REFACTOR**: clean up while tests stay green\n\n```cpp\n\u002F\u002F tests\u002Fadd_test.cpp\n#include \u003Cgtest\u002Fgtest.h>\n\nint Add(int a, int b); \u002F\u002F Provided by production code.\n\nTEST(AddTest, AddsTwoNumbers) { \u002F\u002F RED\n  EXPECT_EQ(Add(2, 3), 5);\n}\n\n\u002F\u002F src\u002Fadd.cpp\nint Add(int a, int b) { \u002F\u002F GREEN\n  return a + b;\n}\n\n\u002F\u002F REFACTOR: simplify\u002Frename once tests pass\n```\n\n## Code Examples\n\n### Basic Unit Test (gtest)\n\n```cpp\n\u002F\u002F tests\u002Fcalculator_test.cpp\n#include \u003Cgtest\u002Fgtest.h>\n\nint Add(int a, int b); \u002F\u002F Provided by production code.\n\nTEST(CalculatorTest, AddsTwoNumbers) {\n    EXPECT_EQ(Add(2, 3), 5);\n}\n```\n\n### Fixture (gtest)\n\n```cpp\n\u002F\u002F tests\u002Fuser_store_test.cpp\n\u002F\u002F Pseudocode stub: replace UserStore\u002FUser with project types.\n#include \u003Cgtest\u002Fgtest.h>\n#include \u003Cmemory>\n#include \u003Coptional>\n#include \u003Cstring>\n\nstruct User { std::string name; };\nclass UserStore {\npublic:\n    explicit UserStore(std::string \u002F*path*\u002F) {}\n    void Seed(std::initializer_list\u003CUser> \u002F*users*\u002F) {}\n    std::optional\u003CUser> Find(const std::string &\u002F*name*\u002F) { return User{\"alice\"}; }\n};\n\nclass UserStoreTest : public ::testing::Test {\nprotected:\n    void SetUp() override {\n        store = std::make_unique\u003CUserStore>(\":memory:\");\n        store->Seed({{\"alice\"}, {\"bob\"}});\n    }\n\n    std::unique_ptr\u003CUserStore> store;\n};\n\nTEST_F(UserStoreTest, FindsExistingUser) {\n    auto user = store->Find(\"alice\");\n    ASSERT_TRUE(user.has_value());\n    EXPECT_EQ(user->name, \"alice\");\n}\n```\n\n### Mock (gmock)\n\n```cpp\n\u002F\u002F tests\u002Fnotifier_test.cpp\n#include \u003Cgmock\u002Fgmock.h>\n#include \u003Cgtest\u002Fgtest.h>\n#include \u003Cstring>\n\nclass Notifier {\npublic:\n    virtual ~Notifier() = default;\n    virtual void Send(const std::string &message) = 0;\n};\n\nclass MockNotifier : public Notifier {\npublic:\n    MOCK_METHOD(void, Send, (const std::string &message), (override));\n};\n\nclass Service {\npublic:\n    explicit Service(Notifier &notifier) : notifier_(notifier) {}\n    void Publish(const std::string &message) { notifier_.Send(message); }\n\nprivate:\n    Notifier &notifier_;\n};\n\nTEST(ServiceTest, SendsNotifications) {\n    MockNotifier notifier;\n    Service service(notifier);\n\n    EXPECT_CALL(notifier, Send(\"hello\")).Times(1);\n    service.Publish(\"hello\");\n}\n```\n\n### CMake\u002FCTest Quickstart\n\n```cmake\n# CMakeLists.txt (excerpt)\ncmake_minimum_required(VERSION 3.20)\nproject(example LANGUAGES CXX)\n\nset(CMAKE_CXX_STANDARD 20)\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\n\ninclude(FetchContent)\n# Prefer project-locked versions. If using a tag, use a pinned version per project policy.\nset(GTEST_VERSION v1.17.0) # Adjust to project policy.\nFetchContent_Declare(\n  googletest\n  # Google Test framework (official repository)\n  URL https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fgoogletest\u002Farchive\u002Frefs\u002Ftags\u002F${GTEST_VERSION}.zip\n)\nFetchContent_MakeAvailable(googletest)\n\nadd_executable(example_tests\n  tests\u002Fcalculator_test.cpp\n  src\u002Fcalculator.cpp\n)\ntarget_link_libraries(example_tests GTest::gtest GTest::gmock GTest::gtest_main)\n\nenable_testing()\ninclude(GoogleTest)\ngtest_discover_tests(example_tests)\n```\n\n```bash\ncmake -S . -B build -DCMAKE_BUILD_TYPE=Debug\ncmake --build build -j\nctest --test-dir build --output-on-failure\n```\n\n## Running Tests\n\n```bash\nctest --test-dir build --output-on-failure\nctest --test-dir build -R ClampTest\nctest --test-dir build -R \"UserStoreTest.*\" --output-on-failure\n```\n\n```bash\n.\u002Fbuild\u002Fexample_tests --gtest_filter=ClampTest.*\n.\u002Fbuild\u002Fexample_tests --gtest_filter=UserStoreTest.FindsExistingUser\n```\n\n## Debugging Failures\n\n1. Re-run the single failing test with gtest filter.\n2. Add scoped logging around the failing assertion.\n3. Re-run with sanitizers enabled.\n4. Expand to full suite once the root cause is fixed.\n\n## Coverage\n\nPrefer target-level settings instead of global flags.\n\n```cmake\noption(ENABLE_COVERAGE \"Enable coverage flags\" OFF)\n\nif(ENABLE_COVERAGE)\n  if(CMAKE_CXX_COMPILER_ID MATCHES \"GNU\")\n    target_compile_options(example_tests PRIVATE --coverage)\n    target_link_options(example_tests PRIVATE --coverage)\n  elseif(CMAKE_CXX_COMPILER_ID MATCHES \"Clang\")\n    target_compile_options(example_tests PRIVATE -fprofile-instr-generate -fcoverage-mapping)\n    target_link_options(example_tests PRIVATE -fprofile-instr-generate)\n  endif()\nendif()\n```\n\nGCC + gcov + lcov:\n\n```bash\ncmake -S . -B build-cov -DENABLE_COVERAGE=ON\ncmake --build build-cov -j\nctest --test-dir build-cov\nlcov --capture --directory build-cov --output-file coverage.info\nlcov --remove coverage.info '\u002Fusr\u002F*' --output-file coverage.info\ngenhtml coverage.info --output-directory coverage\n```\n\nClang + llvm-cov:\n\n```bash\ncmake -S . -B build-llvm -DENABLE_COVERAGE=ON -DCMAKE_CXX_COMPILER=clang++\ncmake --build build-llvm -j\nLLVM_PROFILE_FILE=\"build-llvm\u002Fdefault.profraw\" ctest --test-dir build-llvm\nllvm-profdata merge -sparse build-llvm\u002Fdefault.profraw -o build-llvm\u002Fdefault.profdata\nllvm-cov report build-llvm\u002Fexample_tests -instr-profile=build-llvm\u002Fdefault.profdata\n```\n\n## Sanitizers\n\n```cmake\noption(ENABLE_ASAN \"Enable AddressSanitizer\" OFF)\noption(ENABLE_UBSAN \"Enable UndefinedBehaviorSanitizer\" OFF)\noption(ENABLE_TSAN \"Enable ThreadSanitizer\" OFF)\n\nif(ENABLE_ASAN)\n  add_compile_options(-fsanitize=address -fno-omit-frame-pointer)\n  add_link_options(-fsanitize=address)\nendif()\nif(ENABLE_UBSAN)\n  add_compile_options(-fsanitize=undefined -fno-omit-frame-pointer)\n  add_link_options(-fsanitize=undefined)\nendif()\nif(ENABLE_TSAN)\n  add_compile_options(-fsanitize=thread)\n  add_link_options(-fsanitize=thread)\nendif()\n```\n\n## Flaky Tests Guardrails\n\n- Never use `sleep` for synchronization; use condition variables or latches.\n- Make temp directories unique per test and always clean them.\n- Avoid real time, network, or filesystem dependencies in unit tests.\n- Use deterministic seeds for randomized inputs.\n\n## Best Practices\n\n### DO\n\n- Keep tests deterministic and isolated\n- Prefer dependency injection over globals\n- Use `ASSERT_*` for preconditions, `EXPECT_*` for multiple checks\n- Separate unit vs integration tests in CTest labels or directories\n- Run sanitizers in CI for memory and race detection\n\n### DON'T\n\n- Don't depend on real time or network in unit tests\n- Don't use sleeps as synchronization when a condition variable can be used\n- Don't over-mock simple value objects\n- Don't use brittle string matching for non-critical logs\n\n### Common Pitfalls\n\n- **Using fixed temp paths** → Generate unique temp directories per test and clean them.\n- **Relying on wall clock time** → Inject a clock or use fake time sources.\n- **Flaky concurrency tests** → Use condition variables\u002Flatches and bounded waits.\n- **Hidden global state** → Reset global state in fixtures or remove globals.\n- **Over-mocking** → Prefer fakes for stateful behavior and only mock interactions.\n- **Missing sanitizer runs** → Add ASan\u002FUBSan\u002FTSan builds in CI.\n- **Coverage on debug-only builds** → Ensure coverage targets use consistent flags.\n\n## Optional Appendix: Fuzzing \u002F Property Testing\n\nOnly use if the project already supports LLVM\u002FlibFuzzer or a property-testing library.\n\n- **libFuzzer**: best for pure functions with minimal I\u002FO.\n- **RapidCheck**: property-based tests to validate invariants.\n\nMinimal libFuzzer harness (pseudocode: replace ParseConfig):\n\n```cpp\n#include \u003Ccstddef>\n#include \u003Ccstdint>\n#include \u003Cstring>\n\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {\n    std::string input(reinterpret_cast\u003Cconst char *>(data), size);\n    \u002F\u002F ParseConfig(input); \u002F\u002F project function\n    return 0;\n}\n```\n\n## Alternatives to GoogleTest\n\n- **Catch2**: header-only, expressive matchers\n- **doctest**: lightweight, minimal compile overhead\n",{"name":5,"metadata":24,"description":7},{"origin":25},"ECC","main","57e7aa6b6e03bce1a7d7862ba9c2ec312f7f19b5","src\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fskills\u002Fcpp-testing",0,"https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee","https:\u002F\u002Fwithcyril.me\u002F","Hi, I’m Julian Cyril D, a Computer Science and Business Systems student at PSNACET.\r\nI’m passionate about full-stack development, UI\u002FUX design, and building sma","2026-11-04 23:28:50",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Cyrilthetecchieee\u002Fcyril-code- --skill cpp-testing",{"tool":41,"command":42},"bunx","bunx skills add Cyrilthetecchieee\u002Fcyril-code- --skill cpp-testing",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Cyrilthetecchieee\u002Fcyril-code- --skill cpp-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fskills\u002Fcpp-testing\u002FSKILL.md",true,[],[50,59,66,74,81,88],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":54,"licenseFileUrl":55,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7AQV6CYX8RMC78420V9WZ62","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7AQV2895N3S1MEX6K76G6G2","youtube-downloader","Download YouTube videos with customizable quality and format options. Use this skill when the user asks to download, save, or grab YouTube videos. Supports various quality settings (best, 1080p, 720p, 480p, 360p), multiple formats (mp4, webm, mkv), and audio-only downloads as MP3.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fvideo-downloader\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":54,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7AQTRNX62DNKVZ5GXEHRBKB","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7AQTNNVHAAN9H6DA8T6ZVE0","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftemplate-skill\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7AQTJ3MQ6AKX152MEX2MYCC","tailored-resume-generator","Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Ftailored-resume-generator\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":54,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7AQTD7D5MYET2YWG7HG9WM3","slack-gif-creator","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FCyrilthetecchieee\u002Fcyril-code-\u002Fblob\u002Fmain\u002Fsrc\u002Fcyril_code\u002Fassets\u002F.skills_repo\u002Fslack-gif-creator\u002FSKILL.md",[],[]]