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

k6-load-testing

できること

このツールは、多数のユーザーが同時にアクセスしたときに、ウェブサイトやアプリケーションがどれくらい速く、安定して動作するかをテストする助けになります。多くのユーザーの利用を模擬し、パフォーマンスの問題を見つけます。

使う場面

  • ✓ウェブサイトが同時に多くのアクセスに耐えられるかを知りたいとき。
  • ✓更新後にパフォーマンスが低下していないかを確認する自動テストを設定するとき。
  • ✓さまざまなアクセス量でシステムがどう反応するかを理解したいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/k6-load-testing/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“100人のユーザーが5分間ホームページにアクセスする状況を再現して、サイトがダウンするかどうか教えてください。”

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

仕組み

ツールは、実際のユーザーの動きを模倣したシナリオを作成し、システムにアクセスさせます。応答時間やエラー率を測定し、レポートとして示します。

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

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

k6 Load Testing

Detailed Guide

Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use This Skill

  • Use when you need to load test HTTP APIs, WebSocket endpoints, or browser scenarios
  • Use when setting up performance regression tests in CI/CD
  • Use when analyzing system behavior under various load conditions
  • Use when comparing performance between code changes
  • Use when validating SLA requirements and performance budgets

Examples

Example 1: Basic API Load Test

import http from 'k6/http';
import { check, sleep } from 'k6';

export const options = {
  vus: 50,
  duration: '2m',
  thresholds: {
    http_req_duration: ['p(95)<500'],
    http_req_failed: ['rate<0.01'],
  },
};

export default function () {
  const res = http.get('https://api.example.com/users');
  
  check(res, {
    'status is 200': (r) => r.status === 200,
    'response time < 500ms': (r) => r.timings.duration < 500,
  });
  
  sleep(1);
}

Example 2: Test with Authentication and Data Parameterization

import http from 'k6/http';
import { check } from 'k6';
import { SharedArray } from 'k6/data';

const users = new SharedArray('users', function () {
  return JSON.parse(open('./users.json'));
});

export default function () {
  const user = users[__VU % users.length];
  
  const loginRes = http.post('https://api.example.com/login',
    JSON.stringify({ email: user.email, password: user.password })
  );
  
  const token = loginRes.json('access_token');
  
  const headers = { 'Authorization': `Bearer ${token}` };
  const res = http.get('https://api.example.com/profile', { headers });
  
  check(res, { 'profile loaded': (r) => r.status === 200 });
}

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

「負荷テスト」とは何ですか?

多くの人が同時に利用したときに、ウェブサイトなどのシステムがどれだけうまく動くかを確かめるテストです。

k6 は何に使われますか?

k6 は、こうした負荷テストを効率よく自動で実行するための専用ツールです。

使うのにプログラミングの知識は必要ですか?

テストを設定するには基本的なプログラミングの知識があると望ましいですが、ツールが簡単なスクリプトの生成を手伝ってくれます。

詳細

作者による元の説明

Comprehensive k6 load testing skill for API, browser, and scalability testing. Write realistic load scenarios, analyze results, and integrate with CI/CD.

repo: sickn33/agentic-awesome-skills

人気

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

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

0

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

コメント

  • …

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

似ているスキル