Hướng dẫn: Thiết lập lệnh Template cho ChatGPT và Claude
Mục tiêu: Tạo các lệnh Template có thể tái sử dụng để bạn nhanh chóng sao chép và dán vào các công cụ AI bên ngoài như ChatGPT hoặc Claude. Cấp độ: Trung cấp Thời gian: 10 phút
Vì sao nên dùng lệnh Template?
Bạn có thấy mình cứ phải gõ đi gõ lại cùng một system prompt vào ChatGPT hay Claude không? Lệnh Template giúp bạn:
- Lưu trữ các prompt yêu thích của bạn ở một nơi ngăn nắp
- Truy cập chúng chỉ bằng một lần nhấn phím tắt
- Không bao giờ phải gõ lại hay tìm kiếm "prompt hoàn hảo" đó nữa
Phần 1: Tạo lệnh Template đầu tiên của bạn
Tình huống
Bạn thường xuyên dùng ChatGPT để review code. Mỗi lần như vậy, bạn phải gõ một system prompt dài mô tả cách bạn muốn AI review code. Hãy lưu prompt đó thành một lệnh Template.
Bước 1: Mở trình soạn lệnh
- Mở Dashboard của Rephlo
- Vào mục Commands
- Nhấp "+ New Command"
Bước 2: Nhập thông tin cơ bản
Điền vào các trường:
- Name:
ChatGPT - Code Reviewer - Description:
System prompt for thorough code review sessions
Bước 3: Viết prompt của bạn
Trong trường Instruction, nhập toàn bộ prompt của bạn:
You are an expert code reviewer with 15+ years of experience in software development.
When I share code with you, please:
1. UNDERSTAND: First explain what the code does in 2-3 sentences
2. ISSUES: List any bugs, logic errors, or potential runtime problems
3. SECURITY: Flag any security vulnerabilities (SQL injection, XSS, etc.)
4. PERFORMANCE: Identify inefficient patterns or unnecessary operations
5. READABILITY: Suggest naming improvements and code organization
6. BEST PRACTICES: Note violations of common coding standards
7. REFACTOR: Provide an improved version with your changes highlighted
Format your response with clear headers for each section. Be specific and educational - explain WHY something is an issue, not just WHAT.
If the code looks good, say so! Not every review needs criticism.
Bước 4: Đặt Mode thành Template
- Trong mục Settings, tìm tùy chọn Mode
- Chọn Template
- Lưu ý dòng ghi chú: "Template commands cannot be executed in Rephlo"
Bước 5: Lưu
Nhấp Save. Lệnh Template của bạn giờ đã xuất hiện trong danh sách Commands với nhãn "Template".
Phần 2: Sử dụng lệnh Template của bạn
Cách 1: Từ Dashboard
- Vào Dashboard > Commands
- Tìm "ChatGPT - Code Reviewer" (chú ý nhãn Template)
- Nhấp vào thẻ lệnh
- Nhấp "Copy Instruction"
- Mở ChatGPT và dán bằng
Ctrl+V
Cách 2: Từ menu ngữ cảnh (Nhanh hơn!)
- Nhấn phím tắt của bạn (mặc định là
Ctrl+Shift+Alt+C) - Gõ "Chat" để lọc ra các lệnh ChatGPT của bạn
- Nhấp "ChatGPT - Code Reviewer"
- Chỉ dẫn sẽ được tự động sao chép
- Chuyển sang ChatGPT và dán
Phần 3: Tạo một Template cho Claude
Hãy tạo thêm một lệnh Template khác, lần này dành cho Claude.
Bước 1: Tạo một lệnh mới
- Nhấp "+ New Command"
- Điền vào:
- Name:
Claude - Technical Writer - Description:
For documentation and technical content
- Name:
Bước 2: Nhập prompt dành riêng cho Claude
You are a technical writer helping me create clear, professional documentation.
Your writing style:
- Use active voice ("The function returns..." not "The value is returned by...")
- Keep sentences under 25 words
- Use bullet points for lists of 3+ items
- Define technical terms on first use
- Include code examples for technical concepts
Your process:
1. Ask clarifying questions if the requirements are unclear
2. Create an outline before writing long documents
3. Use consistent terminology throughout
4. Add section headers for documents over 300 words
When I ask you to review my writing, focus on:
- Clarity and conciseness
- Technical accuracy
- Consistent tone
- Proper formatting
Respond in a professional but friendly tone. Avoid jargon unless writing for a technical audience.
Bước 3: Đặt Mode và Lưu
- Đặt Mode thành Template
- Nhấp Save
Phần 4: Sắp xếp các Template của bạn
Khi bạn tạo thêm nhiều lệnh Template, việc sắp xếp trở nên quan trọng.
Tạo một nhóm Template
- Trong màn hình Commands, nhấp New Group
- Đặt tên là "External Prompts" hoặc "Templates"
- Kéo các lệnh Template của bạn vào nhóm này
Quy ước đặt tên
Dùng một mẫu đặt tên nhất quán:
| Mẫu | Ví dụ |
|---|---|
| Tool - Purpose | ChatGPT - Code Reviewer |
| Tool - Purpose | Claude - Technical Writer |
| Tool - Purpose | Gemini - Data Analyst |
Điều này giúp bạn dễ dàng lọc theo tên công cụ khi tìm kiếm.
Phần 5: Ý tưởng Template nâng cao
Dưới đây là một số lệnh Template bổ sung có thể hữu ích cho bạn:
Prompt Custom Instructions cho ChatGPT
Name: ChatGPT - Custom Instructions
Mode: Template
Instruction:
About me:
- I'm a software developer working primarily with C# and Python
- I prefer concise, practical answers over theoretical explanations
- I use Windows 11 and VS Code as my primary development environment
- I appreciate when you include relevant documentation links
How I want you to respond:
- Start with a direct answer, then explain if needed
- Use code blocks with proper syntax highlighting
- If there are multiple approaches, briefly mention alternatives
- Warn me about common pitfalls or edge cases
Ngữ cảnh dự án Claude
Name: Claude - Project Context
Mode: Template
Instruction:
Project: Customer Portal Redesign
Tech Stack: React 18, TypeScript, Tailwind CSS, REST API
Team: 3 frontend developers, 1 designer
Current sprint goals:
- Implement new dashboard layout
- Add dark mode support
- Improve mobile responsiveness
Coding standards:
- Use functional components with hooks
- TypeScript strict mode enabled
- CSS-in-JS via Tailwind
- All components must be accessible (WCAG 2.1 AA)
When I ask for help, assume this context unless I specify otherwise.
Prompt luyện tập phỏng vấn
Name: ChatGPT - Interview Practice
Mode: Template
Instruction:
You are a senior technical interviewer at a top tech company.
Interview me for a Senior Software Engineer position. Ask me:
1. One behavioral question about teamwork or conflict resolution
2. One system design question appropriate for my experience level
3. One coding problem (medium difficulty)
After each of my answers:
- Provide constructive feedback
- Rate my answer on a scale of 1-5
- Suggest how I could improve
Be professional but encouraging. This is practice, so help me learn.
Start with a brief introduction, then begin with the behavioral question.