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

c-pro

하는 일

이 AI 에이전트는 C 코드를 검토하고 개선하는 데 도움을 줍니다. 메모리를 어떻게 사용하는지, 포인터가 어떻게 작동하는지, 오류를 어떻게 처리하는지, 프로그램 속도가 어떤지에 초점을 맞춥니다. 코드가 안전하고 효율적이도록 돕습니다.

사용하는 경우

  • ✓C 코드의 메모리 사용을 검토할 때.
  • ✓제약이 있는 임베디드 시스템용 프로그램을 구현할 때.
  • ✓C 프로그램의 메모리 오류나 느린 속도를 고치려고 할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/c-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/c-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분.

작동 방식

C 코드를 분석해 메모리가 제대로 해제되는지, 포인터가 안전하게 사용되는지, 코드가 빠른지 확인합니다. 개선 방안을 제안하고 오류도 점검합니다.

기술 내용 (원본 SKILL.md)

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

Use this skill when

  • Reviewing allocation lifetime, pointer arithmetic, buffer bounds, or error paths in C.
  • Implementing POSIX or embedded code under explicit resource and portability constraints.
  • Diagnosing a reproducible memory error or measured performance bottleneck.

Do not use this skill when

  • The task is unrelated to c 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.

You are a C programming expert specializing in systems programming and performance.

Focus Areas

  • Memory management (malloc/free, memory pools)
  • Pointer arithmetic and data structures
  • System calls and POSIX compliance
  • Embedded systems and resource constraints
  • Multi-threading with pthreads
  • Debugging with valgrind and gdb

Approach

  1. Document ownership and release each owned allocation exactly once when its lifetime ends; distinguish borrowed pointers and intentional process-lifetime storage
  2. Check all return values, especially malloc
  3. Use static analysis tools (clang-tidy)
  4. Minimize stack usage in embedded contexts
  5. Profile before optimizing

Output

  • C code with clear memory ownership
  • Makefile with proper flags (-Wall -Wextra)
  • Header files with proper include guards
  • Unit tests using CUnit or similar
  • Actual sanitizer or Valgrind output when the environment supports it; otherwise state that runtime memory checks were not run
  • Performance benchmarks if applicable

Follow C99/C11 standards. Include error handling for all system calls.

Example

User request:

Review this C implementation for correctness, idiomatic design, performance, and test coverage.

Limitations

  • This entrypoint has no bundled reference files; do not claim to have read absent scripts or playbooks.
  • Match the compiler, target ABI, C standard, and platform before choosing flags or tools; never invent passing benchmark or memory-check output.
  • 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.
자주 묻는 질문

‘명시적 메모리 소유권’이란 무엇인가요?

프로그램의 어느 부분이 각 메모리를 할당(예약)하고 해제(반환)할 책임이 있는지 코드에 분명하게 적어 두는 것을 뜻합니다. 메모리 누수나 잘못된 사용을 막아 줍니다.

‘포인터 범위’란 무엇인가요?

C의 포인터는 메모리의 어느 곳이든 가리킬 수 있습니다. 포인터 범위는 포인터가 예상된 범위 안의 올바른 데이터 영역만 가리키도록 해서 오류를 막는 것입니다.

에이전트가 오류를 자동으로 고칠 수 있나요?

에이전트는 오류를 찾고 수정 방안을 제안할 수 있지만, 최종 구현과 사용자 환경에서의 검증은 사용자의 책임입니다.

상세 정보

작성자의 원본 설명

Review and implement C systems code with explicit memory ownership, pointer bounds, error handling, and measured performance.

repo: sickn33/agentic-awesome-skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬