8000 Docs: Cursor 프롬프팅 by guesung · Pull Request #161 · guesung/Web-Memo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Docs: Cursor 프롬프팅 #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 9, 2025
Merged

Docs: Cursor 프롬프팅 #161

merged 2 commits into from
Apr 9, 2025

Conversation

guesung
Copy link
Owner
@guesung guesung commented Apr 9, 2025

Summary by CodeRabbit

  • 신규 기능
    • 코드 작성 표준 및 품질을 강화하기 위한 가이드라인이 추가되었습니다.
    • AI와의 소통 방식을 명확히 하는 커뮤니케이션 기준이 도입되었습니다.
    • 프로젝트 기술 스택에 관한 체계적 가이드라인이 마련되어 개발 워크플로우가 개선되었습니다.

Copy link
coderabbitai bot commented Apr 9, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

총 3개의 새로운 구성 파일이 추가되었습니다.

  • 코딩 선호도 파일은 코드 스타일, 구조, JavaScript/TypeScript 작성 관행, 오류 처리 및 React 컴포넌트 작성에 관한 상세한 규칙을 정의합니다.
  • 커뮤니케이션 선호도 파일은 AI와 인간 간의 상호작용 시 응답 스타일, 문제 해결 방식, 복잡한 작업 계획 및 문서 작성 지침 등을 제시합니다.
  • 기술 스택 파일은 프로젝트에서 사용되는 다양한 기술, 프레임워크, 도구 및 개발 워크플로우에 대한 정보를 체계적으로 정리한 문서입니다.

Changes

파일 경로 변경 내용
.cursor/rules/{coding-preferences, communication-preferences, tech-stack}.mdc 세 개의 새로운 구성 파일 추가 - 코딩 선호도에서는 코드 스 8000 일 및 품질 규칙, 커뮤니케이션 선호도에서는 소통 및 문제 해결 지침, 기술 스택 파일에서는 프로젝트에 사용되는 기술 및 도구 명세를 포함함

Poem

나는 귀여운 토끼, 코드 숲을 뛰어다녀
새로운 규칙들이 반짝여, 당근처럼 선명하게 빛나네
코딩의 길 따라 정갈한 발자국 남기고,
대화의 물결 위에 지혜의 당근을 올려
기술 스택의 숲에서 모두 함께 춤추는 오늘,
변화의 기쁨 속에 토끼 마음은 가볍게 날아올라 🐇✨


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 901cc61 and 944beda.

📒 Files selected for processing (3)
  • .cursor/rules/coding-preferences.mdc (1 hunks)
  • .cursor/rules/communication-preferences.mdc (1 hunks)
  • .cursor/rules/tech-stack.mdc (1 hunks)

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (1)
.cursor/rules/tech-stack.mdc (1)

13-20: 핵심 기술이 명확하게 정의되어 있습니다.

TypeScript, Node.js, Next.js, React 서버 컴포넌트, Supabase, React Hook Form, Shadcn UI와 같은 핵심 기술은 현대적인 웹 애플리케이션 개발 스택을 반영합니다. 19번 줄에는 주석 처리된 Zod 항목이 있습니다. 이 항목을 포함할지 또는 제거할지 결정할 필요가 있습니다.

19번 줄의 주석 처리된 Zod 항목에 대한 결정이 필요합니다:

-<!-- - Zod for schema validation and type safety -->
+- Zod for schema validation and type safety

또는 주석 처리된 줄을 완전히 제거하는 것이 좋습니다.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bee2199 and 901cc61.

📒 Files selected for processing (3)
  • .cursor/rules/coding-preferences.mdc (1 hunks)
  • .cursor/rules/communication-preferences.mdc (1 hunks)
  • .cursor/rules/tech-stack.mdc (1 hunks)
🔇 Additional comments (19)
.cursor/rules/communication-preferences.mdc (5)

13-20: 응답 스타일에 대한 가이드라인이 잘 정의되어 있습니다.

응답 스타일 섹션은 AI가 어떻게 응답해야 하는지 명확하게 정의하고 있습니다. 특히 이모지를 사용하여 컨텍스트 유지를 확인하는 방법은 좋은 아이디어입니다.


21-28: 문제 해결 접근 방식에 대한 명확한 구조가 제공되어 있습니다.

문제 해결을 위한 단계별 접근 방식이 논리적으로 구성되어 있습니다. 이는 AI가 코딩 문제를 해결할 때 체계적인 방법을 따르도록 돕습니다.


29-34: 복잡한 작업 계획에 대한 지침이 명확합니다.

큰 작업을 관리 가능한 작은 구성 요소로 분해하는 접근 방식은 소프트웨어 개발의 모범 사례와 일치합니다. 초기에 엣지 케이스와 오류 시나리오를 고려하는 것에 대한 강조는 특히 유용합니다.


35-44: 문서화 지침이 포괄적입니다.

복잡한 코드 섹션에 대한 간결한 주석과 "무엇"보다는 "왜"에 초점을 맞추는 것에 대한 강조는 우수한 문서화 관행입니다. API 문서에 대한 구체적인 요구 사항도 잘 정의되어 있습니다.


45-48: 학습 리소스에 대한 지침이 간결하고 유용합니다.

공식 문서와 최신 리소스를 우선시하는 접근 방식은 프로젝트에 가장 관련성이 높고 신뢰할 수 있는 정보에 초점을 맞추는 데 도움이 됩니다.

.cursor/rules/coding-preferences.mdc (5)

13-18: 핵심 원칙이 명확하게 정의되어 있습니다.

단순성, DRY, 조직화, 문서화와 같은 핵심 원칙은 좋은 코딩 관행의 기초를 형성합니다. 특히 파일 크기 제한과 주요 컴포넌트 개발 후 문서화 요구 사항은 코드 품질 유지에 도움이 됩니다.


19-28: 코드 구조에 대한 명확한 지침이 제공되어 있습니다.

함수형 프로그래밍과 구성을 강조하는 접근 방식은 현대적인 JavaScript/TypeScript 개발과 일치합니다. 파일 구조와 명명 규칙에 대한 구체적인 지침은 일관성을 유지하는 데 도움이 됩니다. RORO 패턴을 언급한 것도 좋은 방법입니다.


29-36: JavaScript/TypeScript에 대한 명확한 규칙이 제시되어 있습니다.

순수 함수에 "function" 키워드를 사용하고, 인터페이스를 선호하며, 조건부 구문을 최소화하는 지침은 일관된 코드 스타일을 유지하는 데 도움이 됩니다. TypeScript 인터페이스/타입으로 시작하는 것에 대한 강조는 타입 안전성에 대한 좋은 관행입니다.


37-45: 오류 처리에 대한 철저한 접근 방식이 제시되어 있습니다.

초기 반환을 통한 오류 및 엣지 케이스 우선 처리, 가드 조항 사용, 서버 액션에서 오류를 값으로 반환하는 것 등은 견고한 오류 처리 전략입니다. 이는 코드의 가독성과 유지 관리성을 향상시킵니다.


46-53: React 컴포넌트에 대한 지침이 잘 정의되어 있습니다.

함수로서의 컴포넌트 작성, 선언적 JSX 사용, 서버 컴포넌트 우선 순위 지정 등의 지침은 현대적인 React 개발 관행과 일치합니다. 'use client' 사용을 최소화하고 Suspense로 클라이언트 컴포넌트를 감싸는 것에 대한 지침은 Next.js App Router와 함께 작업할 때 특히 관련이 있습니다.

.cursor/rules/tech-stack.mdc (9)

21-36: 모노레포 구조가 상세하게 설명되어 있습니다.

Turborepo를 사용한 모노레포 관리와 다양한 패키지 구조에 대한 설명은 프로젝트의 아키텍처를 이해하는 데 유용합니다. 각 패키지의 목적이 명확하게 정의되어 있습니다.


37-43: 백엔드 및 데이터베이스 기술이 잘 설명되어 있습니다.

Supabase를 사용한 인증, 데이터베이스, 실시간 구독 및 타입 생성에 대한 정보는 명확합니다.


44-47: 상태 관리 및 데이터 가져오기에 대한 정보가 간결합니다.

TanStack Query(React Query) v5와 React Hook Form에 대한 언급은 상태 관리 및 양식 관리 접근 방식을 명확하게 합니다.


48-53: UI 및 스타일링 기술이 적절하게 나열되어 있습니다.

Tailwind CSS, Framer Motion, Lucide React, Next Themes와 같은 UI 및 스타일링 도구는 현대적인 웹 UI 개발 접근 방식을 반영합니다.


54-58: 테스팅 도구가 포괄적으로 나열되어 있습니다.

Vitest, Playwright, Jest와 같은 다양한 테스팅 도구는 단위 테스트, E2E 테스트 및 유틸리티 테스트를 위한 포괄적인 테스팅 전략을 나타냅니다.


59-65: 개발 도구가 잘 정의되어 있습니다.

ESLint, Prettier, Husky, TypeScript, Sentry와 같은 개발 도구는 코드 품질, 포맷팅, 타입 안전성 및 오류 추적을 위한 강력한 도구 세트를 제공합니다.


66-71: 빌드 및 개발 도구가 명확하게 나열되어 있습니다.

Vite, Turbo, Cross-env, Rimraf와 같은 빌드 및 개발 도구는 효율적인 개발 워크플로우를 지원합니다.


72-75: 크롬 확장 프로그램 관련 정보가 제공되어 있습니다.

Chrome Extension Manifest V3 및 크로스 브라우저 호환성에 대한 언급은 프로젝트가 브라우저 확장 프로그램을 포함하고 있음을 나타냅니다.


76-83: 개발 워크플로우가 체계적으로 설명되어 있습니다.

Git 기반 버전 관리, GitHub Actions, 자동화된 버전 업데이트, 코드 품질 검사, 자동화된 테스팅, 크로스 브라우저 테스팅, 오류 추적 및 모니터링과 같은 개발 워크플로우 요소는 체계적인 개발 프로세스를 반영합니다.

@guesung guesung merged commit 833e789 into master Apr 9, 2025
3 of 5 checks passed
@guesung guesung deleted the feature/cursor-prompting branch April 9, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0