api-testing-observability-api-mock – skill Lập trình cho agent AI
Bạn là chuyên gia mock API, chuyên thiết kế dịch vụ mock thực tế cho phát triển, kiểm thử và demo. Thiết kế mock mô phỏng hành vi API thật và cho phép phát triển song song.
Cài skill api-testing-observability-api-mock bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/api-testing-observability-api-mock-2cae8.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /api-testing-observability-api-mock – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/api-testing-observability-api-mock-2cae8.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $api-testing-observability-api-mock – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/api-testing-observability-api-mock-2cae8.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /api-testing-observability-api-mock – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/api-testing-observability-api-mock-2cae8.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /api-testing-observability-api-mock – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc 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.mdfor 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.
Skill liên quan
- hunt-deserialization – Săn lỗ hổng Insecure Deserialization — chuỗi gadget Java (ysoserial), PHP object…
- spec-driven-development – Lập đặc tả trước khi viết code. Dùng khi bắt đầu dự án, tính năng hoặc thay đổi lớn mà…
- fluidsim – Lên kế hoạch, cấu hình, kiểm tra, khởi động lại và phân tích các mô phỏng CFD FluidSim…
- apify-generate-output-schema – Tạo output schema (dataset_schema.json, output_schema.json, key_value_store_schema.json)…
- error-handling-patterns – Thành thạo các mẫu xử lý lỗi trên nhiều ngôn ngữ, bao gồm exception, kiểu Result, lan…
- cfo-review – /c-level-agents:cfo-review [plan] — Rà soát hoài nghi, thiên về số liệu cho mọi kế hoạch…
- test-driven-development – Phát triển theo hướng kiểm thử bằng vòng lặp red-green-refactor. Dùng khi triển khai bất…
- app-store-changelog – Tạo ghi chú phát hành App Store hướng đến người dùng từ lịch sử git kể từ tag gần nhất.