Chuyển tới nội dung chính

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

  1. Mở Dashboard của Rephlo
  2. Vào mục Commands
  3. 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

  1. Trong mục Settings, tìm tùy chọn Mode
  2. Chọn Template
  3. 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

  1. Vào Dashboard > Commands
  2. Tìm "ChatGPT - Code Reviewer" (chú ý nhãn Template)
  3. Nhấp vào thẻ lệnh
  4. Nhấp "Copy Instruction"
  5. Mở ChatGPT và dán bằng Ctrl+V

Cách 2: Từ menu ngữ cảnh (Nhanh hơn!)

  1. Nhấn phím tắt của bạn (mặc định là Ctrl+Shift+Alt+C)
  2. Gõ "Chat" để lọc ra các lệnh ChatGPT của bạn
  3. Nhấp "ChatGPT - Code Reviewer"
  4. Chỉ dẫn sẽ được tự động sao chép
  5. 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

  1. Nhấp "+ New Command"
  2. Điền vào:
    • Name: Claude - Technical Writer
    • Description: For documentation and technical content

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

  1. Đặt Mode thành Template
  2. 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

  1. Trong màn hình Commands, nhấp New Group
  2. Đặt tên là "External Prompts" hoặc "Templates"
  3. 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ẫuVí dụ
Tool - PurposeChatGPT - Code Reviewer
Tool - PurposeClaude - Technical Writer
Tool - PurposeGemini - 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.

Tóm tắt

Bạn đã học cách:

  1. Tạo lệnh Template cho các công cụ AI bên ngoài
  2. Đặt đúng chế độ thực thi (Template)
  3. Truy cập nhanh các template qua menu ngữ cảnh
  4. Sắp xếp template bằng nhóm và quy ước đặt tên
  5. Xây dựng template cho các công cụ AI và trường hợp sử dụng khác nhau

Tham khảo nhanh

Hành độngCách thực hiện
Tạo TemplateNew Command > Mode: Template > Save
Sao chép TemplateHotkey > Click Template > Auto-copied
Sắp xếpCreate group > Drag templates into group
Tìm nhanhHotkey > Type tool name (e.g., "ChatGPT")

Mẹo hay

  1. Đánh phiên bản cho prompt: Thêm số phiên bản vào tên mỗi khi bạn chỉnh sửa (ví dụ: "ChatGPT - Code Reviewer v2")
  2. Kiểm tra trước khi lưu: Dán prompt của bạn vào công cụ đích và thử nghiệm trước khi hoàn thiện
  3. Chia sẻ với nhóm: Xuất các lệnh Template của bạn và chia sẻ với đồng nghiệp
  4. Giữ sự đơn giản: Prompt ngắn gọn thường hiệu quả hơn; chỉ thêm chi tiết khi cần thiết
  5. Cập nhật thường xuyên: Xem lại và cập nhật template của bạn khi các công cụ AI phát triển

Hướng dẫn tiếp theo: Khám phá tự động hóa nâng cao trong Trường hợp sử dụng nâng cao.