Chuyển đến nội dung
Skillpedia
Kiểm thử48k · #3782

api-testing-observability-api-mock

Skill này làm gì

Công cụ này giúp tạo các “phiên bản giả” của API (dịch vụ trên internet) để lập trình viên kiểm thử chương trình mà không cần dùng dịch vụ thật. Nó mô phỏng cách API thật sẽ hoạt động.

Khi nào nên dùng

  • ✓Khi muốn kiểm tra cách một ứng dụng hoạt động với một API.
  • ✓Khi cần mô phỏng một dịch vụ chưa tồn tại.
  • ✓Khi tạo bản trình diễn cho thấy một hệ thống hoạt động ra sao.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-testing-observability-api-mock/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-testing-observability-api-mock/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tạo một mock cho API đăng nhập, trả về token thành công hoặc thông báo lỗi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn mô tả cách API thật hoạt động (hợp đồng), và công cụ tạo ra một dịch vụ giả mô phỏng các phản hồi đó. Điều này cho phép các phần khác của hệ thống được phát triển và kiểm thử độc lập.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

API Mocking Framework

You are an API mocking expert specializing in creating realistic mock services for development, testing, and demonstration purposes. Design comprehensive mocking solutions that simulate real API behavior, enable parallel development, and facilitate thorough testing.

Use this skill when

  • Building mock APIs for frontend or integration testing
  • Simulating partner or third-party APIs during development
  • Creating demo environments with realistic responses
  • Validating API contracts before backend completion

Do not use this skill when

  • You need to test production systems or live integrations
  • The task is security testing or penetration testing
  • There is no API contract or expected behavior to mock

Safety

  • Avoid reusing production secrets or real customer data in mocks.
  • Make mock endpoints clearly labeled to prevent accidental use.

Context

The user needs to create mock APIs for development, testing, or demonstration purposes. Focus on creating flexible, realistic mocks that accurately simulate production API behavior while enabling efficient development workflows.

Requirements

$ARGUMENTS

Instructions

  • Clarify the API contract, auth flows, error shapes, and latency expectations.
  • Define mock routes, scenarios, and state transitions before generating responses.
  • Provide deterministic fixtures with optional randomness toggles.
  • Document how to run the mock server and how to switch scenarios.
  • If detailed implementation is requested, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for code samples, checklists, and templates.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Câu hỏi thường gặp

API là gì?

API giống như thực đơn mà một chương trình dùng để yêu cầu thông tin hoặc hành động từ chương trình khác.

“Mock” là gì?

“Mock” là phiên bản giả hoặc mô phỏng của một thứ gì đó, dùng để kiểm thử hoặc phát triển.

Tôi có thể dùng công cụ này để kiểm thử bảo mật website không?

Không, công cụ này dùng để mô phỏng hành vi API thông thường, không dùng để kiểm thử lỗ hổng bảo mật.

Chi tiết

Mô tả gốc của tác giả

You are an API mocking expert specializing in realistic mock services for development, testing, and demos. Design mocks that simulate real API behavior and enable parallel development.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#3782
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự