메이커링크
Cursor AI 코드 리뷰 및 문서화 보조 레시피: 일관된 주석 및 README 작성
코드 변경 사항에 대한 명확하고 일관된 주석과 README 업데이트를 Cursor AI에게 지시하여, 팀 내 코드 이해도를 높이고 유지보수성을 향상시키는 방법입니다.
Cursor AI 코드 리뷰 및 문서화 보조 레시피
이 레시피는 Cursor AI를 활용하여 코드 리뷰 과정에서 일관된 주석을 작성하고, 변경 사항을 README 파일에 자동으로 반영하도록 돕습니다. 개발 과정에서 문서화 습관을 강화하고 팀원 간의 코드 이해도를 높이는 것을 목표로 합니다.
🎯 목표
- 코드 변경 사항에 대한 명확하고 간결한 주석 자동 생성
- 주요 기능 변경 및 API 업데이트 내용을 README 파일에 자동으로 반영
- 일관된 문서화 스타일 유지 및 개발 생산성 향상
📜 Cursor Rules (.cursor/rules/*.mdc)
1. 코드 변경 시 주석 작성 규칙
- You are a meticulous code reviewer and documentation assistant.
- When editing code, you must provide a concise and informative code comment explaining the purpose and logic of the change. Use a standard comment format for the given language (e.g.,
//for JavaScript/C++/Java,#for Python). - Focus on why the change was made, not just what was changed. If the change is a bug fix, briefly mention the bug ID or a short description of the bug.
- If the change introduces a new feature or significant modification, add a comment explaining the high-level impact.
- Avoid overly generic comments like
// updated codeor// fix bug. Be specific. - If a piece of code is particularly complex or non-obvious, add a more detailed comment block explaining the algorithm or data flow.
- Ensure comments are in Korean, unless the surrounding code or project standard dictates English.
2. README.md 업데이트 규칙
- You are responsible for maintaining the project's README.md file.
- When a significant code change is made (e.g., new feature, API change, breaking change, important bug fix), update the
README.mdfile accordingly. - Specifically, update the following sections if affected:
## Featuresor## New Features: Describe newly added functionalities.## API Changesor## Breaking Changes: Document any modifications to the public API or changes that might break existing usage. Include details on how to adapt.## Bug Fixes: Briefly list significant bugs that have been resolved.
- Maintain a clear and structured format in the
README.md. Use Markdown headers, bullet points, and code blocks for readability. - Ensure the language used in
README.mdis Korean, matching the code comments, unless the project's primary language is English. - If the change is minor (e.g., small refactoring, documentation typo fix), do not update the
README.mdto avoid unnecessary noise. - If unsure whether a change warrants a
README.mdupdate, err on the side of caution and include it, but keep the description concise.
3. General Guidelines
- Prioritize clarity and conciseness in all generated documentation.
- Always aim to improve the understandability of the codebase.
- If you encounter ambiguity in the code or the request, ask clarifying questions before proceeding.
- When generating documentation, consider the target audience (e.g., other developers on the team, future self).
💡 활용 예시
시나리오 1: 새로운 API 엔드포인트 추가
개발자가 /users 경로에 POST 요청을 처리하는 새로운 API 엔드포인트를 추가했다고 가정합니다. Cursor AI는 자동으로 다음과 같은 주석을 코드에 추가하고 README를 업데이트합니다.
- 코드 주석 예시:
// POST /users // 새로운 사용자 계정을 생성하는 API 엔드포인트. // 요청 본문에는 username, email, password 필드가 포함되어야 함. // 성공 시 201 Created 상태 코드와 생성된 사용자 정보를 반환. app.post('/users', (req, res) => { // ... 구현 로직 ... }); - README.md 업데이트 예시:
## New Features * 사용자 계정 생성을 위한 `POST /users` 엔드포인트가 추가되었습니다. ## API Changes * **New Endpoint:** `POST /users` * **Description:** Creates a new user account. * **Request Body:** Requires `username`, `email`, `password`. * **Response:** `201 Created` with user details on success.
시나리오 2: 버그 수정
사용자 로그인 시 발생하던 버그를 수정했을 때, Cursor AI는 관련 코멘트를 남기고 README의 'Bug Fixes' 섹션을 업데이트합니다.
- 코드 주석 예시:
# Fix for issue #123: Correctly handle empty password input during login. # Previously, an empty password caused a crash. Now, it r
메이커링크 에이전트
이 레시피, 직접 따라 하지 말고 맡겨 보세요
휴대폰에서 한 줄로 지시하면 메이커링크 에이전트가 내 PC의 Cursor · Claude Code로 그대로 실행합니다.
함께 보면 좋은 레시피
AI 레시피
Cursor AI를 활용한 코드 리팩토링 및 성능 최적화 가이드
Cursor의 AI 코딩 어시스턴트를 사용하여 코드의 가독성을 높이고, 실행 속도를 개선하며, 메모리 사용량을 줄이는 방법을 단계별로 안내합니다. 코드 품질 향상을 위한 실질적인 팁을 제공합니다.
터미널 레시피
RESTful API 기본 구조 및 인증 토큰 검증 CLI 레시피
RESTful API의 기본 GET, POST 요청을 보내고, Authorization 헤더에 Bearer 토큰을 포함하여 서버 응답을 확인하는 CLI 명령어입니다. API 개발 및 테스트에 유용합니다.
AI 레시피
GitOps 기반 Kubernetes 자동 배포 파이프라인 구축 가이드
GitOps 원칙을 사용하여 Kubernetes 환경에 애플리케이션을 자동으로 배포하고 관리하는 방법을 안내합니다. CI/CD와 Git의 장점을 결합한 효율적인 배포 전략을 이해하고 적용하는 데 도움이 됩니다.
터미널 레시피
Helm으로 Kubernetes 애플리케이션 패키징 및 기본 배포
Helm 차트를 생성하고 로컬 Kubernetes 클러스터에 간단한 애플리케이션을 배포하는 과정을 보여주는 명령어 레시피입니다. CI/CD 파이프라인 연동의 기초로 활용할 수 있습니다.
AI 레시피
SQL vs NoSQL 데이터베이스 비교 및 선택 가이드
SQL과 NoSQL 데이터베이스의 핵심적인 차이점을 이해하고, 프로젝트 요구사항에 맞는 데이터베이스를 선택하는 데 도움을 주는 가이드입니다.
AI 레시피
GitOps 핵심 개념과 CI/CD 파이프라인 구축 전략 가이드
GitOps의 기본 원리를 이해하고, Docker, Kubernetes, GitHub Actions를 활용하여 자동화된 CI/CD 파이프라인을 구축하는 방법을 안내합니다. 실무 적용에 필요한 핵심 개념과 전략을 다룹니다.