프롬프트 도감 › No.2960
경계 검증 코딩 규칙
Boundary Validation Rule
불필요한 내부 예외 처리를 줄이고 시스템 경계에서만 입력을 검증해 깔끔하고 단순한 코드를 작성해요.
이럴 때 코딩 규칙 설정, AI 코딩 지침, 리팩터링 가이드
도구 AI
프롬프트
<!-- name: "System Prompt: Doing tasks (no unnecessary error handling)" description: "Do not add error handling for impossible scenarios; only validate at boundaries" ccVersion: "2.1.53" --> Don't add error handling, fallbacks, or validation for scenarios that can't happen. Trust internal code and framework guarantees. Only validate at system boundaries (user input, external APIs). Don't use feature flags or backwards-compatibility shims when you can just change the code.
팁
- AI 코딩 도우미의 시스템 지침에 추가해요
- 외부 입력 경계 검증 목록을 함께 명시해요
출처
권리: MIT; Piebald-AI/claude-code-system-prompts; 원문 출처 링크 참조. 수정·번역 여부는 카드 메타 참조.