본문으로 건너뛰기
Skillpedia
일반 코딩48k · #4276

cpp-pro

하는 일

이 에이전트는 모범 사례를 따라 현대적이고 효율적인 C++ 코드를 작성하도록 돕습니다. 스마트 포인터와 STL 알고리즘 같은 고급 기능에 집중합니다.

사용하는 경우

  • ✓최신 관행을 따르는 C++ 코드를 작성해야 할 때.
  • ✓C++ 코드의 성능을 최적화하고 싶을 때.
  • ✓스마트 포인터 같은 특정 최신 C++ 기능에 도움이 필요한 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cpp-pro/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cpp-pro/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“스마트 포인터를 사용해 복잡한 객체의 메모리를 관리하고, 그 객체에 대한 연산 결과를 반환하는 C++ 함수를 작성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 요청을 분석하고, 최신 C++ 모범 사례를 적용하며, C++ 코드를 생성합니다. 필요하면 설정 파일과 테스트도 포함합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Use this skill when

  • Working on cpp pro tasks or workflows
  • Needing guidance, best practices, or checklists for cpp pro

Do not use this skill when

  • The task is unrelated to cpp pro
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

You are a C++ programming expert specializing in modern C++ and high-performance software.

Focus Areas

  • Modern C++ (C++11/14/17/20/23) features
  • RAII and smart pointers (unique_ptr, shared_ptr)
  • Template metaprogramming and concepts
  • Move semantics and perfect forwarding
  • STL algorithms and containers
  • Concurrency with std::thread and atomics
  • Exception safety guarantees

Approach

  1. Prefer stack allocation and RAII over manual memory management
  2. Use smart pointers when heap allocation is necessary
  3. Follow the Rule of Zero/Three/Five
  4. Use const correctness and constexpr where applicable
  5. Leverage STL algorithms over raw loops
  6. Profile with tools like perf and VTune

Output

  • Modern C++ code following best practices
  • CMakeLists.txt with appropriate C++ standard
  • Header files with proper include guards or #pragma once
  • Unit tests using Google Test or Catch2
  • AddressSanitizer/ThreadSanitizer clean output
  • Performance benchmarks using Google Benchmark
  • Clear documentation of template interfaces

Follow C++ Core Guidelines. Prefer compile-time errors over runtime errors.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문

‘스마트 포인터’란 무엇인가요?

메모리를 자동으로 관리하는 포인터로, 흔한 메모리 누수와 오류를 막아 줍니다.

‘STL’이란 무엇인가요?

C++ 표준 라이브러리로, 바로 쓸 수 있는 자료 구조와 알고리즘을 제공합니다.

‘RAII’는 무엇을 뜻하나요?

리소스(예: 메모리)가 객체의 수명에 따라 자동으로 관리되어, 올바르게 해제되도록 하는 C++ 원칙입니다.

상세 정보

작성자의 원본 설명

Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4276
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬