# 프로그래밍을 위한 LLM 프롬프트 예제

> Clean Markdown view of GeekNews topic #8999. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8999](https://news.hada.io/topic?id=8999)
- GeekNews Markdown: [https://news.hada.io/topic/8999.md](https://news.hada.io/topic/8999.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-04-20T10:18:02+09:00
- Updated: 2023-04-20T10:18:02+09:00
- Original source: [martinfowler.com](https://martinfowler.com/articles/2023-chatgpt-xu-hao.html)
- Points: 20
- Comments: 0

## Topic Body

- Thoughtworks 중국지사의 기술 헤드인 Xu Hao가 마틴 파울러에게 ChatGPT를 이용하여 셀프 테스팅 코드를 작성하는 것을 설명   
- 어플리케이션 컨텍스트와 코드 구조 방식을 프롬프트로 작성  
- 보안 문제를 피하기 위해, "Generated Knowledge" 라는 프롬프트 기술을 사용   
  - 첫번째, LLM에게 문제에 대한 정보를 생성하게 만들고   
  - 그 정보를 다시 LLM에게 제공해서 실제 제품을 생성하도록 만듦   
  - "구현 전략" 부분에서 2가지의 프롬프트 스타일을 조합   
    - Instruction : LLM이 따라야 할 지침을 제공하는 프롬프트   
    - Chain of Thought : LLM이 자신의 추론을 설명하도록 유도하는 프롬프트   
- LLM이 작성한 계획에 대해서 컴포넌트 명/메소드/속성까지 상세히 작성하라고 유도   
- 실제 컴포넌트에 대한 구현과 테스트까지 작성을 요청   
- Mock 라이브러리(redux-mock-store) 없이 테스트를 작성하게 다시 요청

## Comments



_No public comments on this page._
