Skip to main content

review-firmware

Review embedded C/C++ code changes for best practices

설치로 이동

소스 정보

저장소
laurigates/mcu-tinkering-lab
최근 소스 활동
2026년 4월 6일 11:17
감지된 SKILL.md 언어
영어
스타
7
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
review-firmware
description
Review embedded C/C++ code changes for best practices
argument-hint
[files-or-commit]
allowed-tools
Bash(git:*), Read, Grep, Glob
# Review Firmware Code Review the firmware code changes: $ARGUMENTS If no specific files or commit provided, review the most recent changes. ## Context Check recent git changes: ```bash git diff --stat HEAD~1 ``` ## Review Checklist ### Memory Safety - Check for buffer overflows and array bounds - Verify proper null pointer checks - Look for memory leaks (malloc without free) - Check stack usage in functions ### Resource Management - Verify all allocated resources are freed - Check for proper GPIO initialization/deinitialization - Look for semaphore/mutex deadlock potential - Verify interrupt handlers are minimal ### ESP-IDF Best Practices - Check task stack sizes are appropriate - Verify FreeRTOS queue/semaphore usage - Look for blocking calls in critical sections - Check WiFi/network error handling ### Code Quality - Verify meaningful variable/function names - Check for magic numbers (should be #define or const) - Look for duplicated code - Verify error codes are properly propagated ### Security - Check for hardcoded credentials (should be in Kconfig/NVS) - Verify input validation - Look for unsafe string functions (use snprintf vs sprintf) - Check for proper certificate validation Provide specific line numbers and suggestions for any issues found.
GitHub에서 보기