본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

프롬프트 템플릿

원문 보기 위키 갱신

프롬프트 템플릿 (Prompt Templates)

X 스킬을 활용할 때 쓸 수 있는 프롬프트 템플릿 모음이에요. 다양한 스킬 기능을 더 효율적으로 사용하도록 도와줘요.

출처: 문서

본문

채팅 기능 개발

Use the skill to help me create a complete chat application with the following requirements: - Use Ant Design X UI components - Create a custom ChatProvider to adapt to streaming interfaces, using XRequest to handle SSE requests - Interface address: `https://api.example.com/chat` - Request format: `{ query: string, sessionId?: string }` - Response format: `{ content: string, time: string, status: 'success' | 'error', role: 'assistant' | 'user' }` - Add error handling and user-friendly error prompts - Organize code modularly by function: hooks/, types/, utils/, components/

부분 최적화 및 수정

Use the skill to help me extend the current ChatProvider to support tool calls: - Add tool call functionality based on the existing ChatProvider - Interface address: `https://api.example.com/chat` - Request format: `{ query: string, sessionId?: string }` - Response format: `{ content: string, time: string, status: 'success' | 'error', tools?: Array<{ id: string, name: string, code: string, status: 'pending' | 'running' | 'success' | 'error', output?: any, error?: string }> }` - Message format: `{ role: 'assistant' | 'user', content: string, time: string, status: 'success' | 'error', tools?: Array<{ id: string, name: string, code: string, status: 'running' | 'success' | 'error', }> }`

더 알아보기

X 스킬 전체 목록은 스킬 목록 문서에서 확인할 수 있어요.