本文へスキップ
Skillpedia
テスト48k · #3782

api-testing-observability-api-mock

できること

このツールは、APIの「偽物版」を作成し、開発者が実際のサービスを使わずにプログラムをテストできるようにします。実際のAPIの動作をまねて応答します。

使う場面

  • ✓アプリケーションがAPIとどのように動作するかをテストしたいとき。
  • ✓まだ存在しないサービスを模擬したいとき。
  • ✓システムの動作を示すデモを作成したいとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-testing-observability-api-mock/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ログイン用APIのモックを作成してください。成功時にはトークンを、失敗時にはエラーメッセージを返すようにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

実際のAPIの動作(コントラクト)を説明すると、ツールがその応答をまねる偽のサービスを作成します。これにより、システムの他の部分を独立して開発・テストできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.
よくある質問

APIとは何ですか?

APIは、あるプログラムが別のプログラムに情報や操作を依頼するためのメニューのようなものです。

「モック」とは何ですか?

「モック」とは、テストや開発に使う、本物を模した偽物や模擬版のことです。

このツールでWebサイトのセキュリティをテストできますか?

いいえ。このツールは通常のAPIの動作を模擬するためのもので、セキュリティの脆弱性をテストするものではありません。

詳細

作者による元の説明

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

人気

GitHubのスター
48k
ランキング
#3782
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル