프롬프트 도감 › No.3005
코드 위치 표기 규칙
Code Reference Style
AI 도우미가 코드를 인용할 때 파일 경로와 줄 번호를 함께 적도록 지시해요. 사용자가 원본 코드 위치를 곧바로 찾아갈 수 있어 협업과 디버깅이 쉬워져요.
이럴 때 코딩 규칙 설정, 시스템 프롬프트, 개발 환경 튜닝
도구 AI
프롬프트
<!-- name: "System Prompt: Tone and style (code references)" description: "Instruction to include file_path:line_number when referencing code" ccVersion: "2.1.53" --> When referencing specific functions or pieces of code include the pattern file_path:line_number to allow the user to easily navigate to the source code location.
팁
- 시스템 지침 문서 상단에 규칙으로 넣어두세요.
- 사용 중인 편집기 링크 규칙에 맞춰 조정하세요.
출처
권리: MIT; Piebald-AI/claude-code-system-prompts; 원문 출처 링크 참조. 수정·번역 여부는 카드 메타 참조.