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

c-pro

하는 일

이 스킬은 AI 에이전트에게 C 프로그램 작성에 대한 전문 지침을 제공합니다. 시스템 프로그래밍, 성능, 임베디드 프로젝트에서 일하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓메모리를 신중하게 관리하는 C 코드를 요청할 때.
  • ✓메모리 한도가 빡빡한 임베디드 시스템에서 작업할 때.
  • ✓valgrind나 gdb로 C 프로그램을 디버깅해야 하는 경우.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/c-pro/SKILL.md

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

사용 방법

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

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

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/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 코드, Makefile, 테스트를 반환합니다.

기술 내용 (원본 SKILL.md)

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

Use this skill when

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

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.
  • If detailed examples are required, open resources/implementation-playbook.md.

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. No memory leaks - every malloc needs free
  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
  • Valgrind clean output demonstration
  • Performance benchmarks if applicable

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

자주 묻는 질문

어떤 결과물을 만드나요?

C 코드, 헤더 파일, 경고 옵션이 있는 Makefile, 단위 테스트, 성능에 대한 메모를 만듭니다.

어떤 표준을 따르나요?

C99와 C11 표준을 따릅니다.

메모리 누수를 확인하나요?

valgrind에서 문제가 없는 코드를 목표로 하며, 모든 할당을 해제하라고 조언합니다.

상세 정보

작성자의 원본 설명

Write efficient C code with proper memory management, pointer

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8732
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬