Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

configure-load-tests配置负载测试

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

1,257

周安装

54

GitHub Stars

28

下载量

441
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:configure-load-tests(配置负载测试)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/configure-load-tests
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill configure-load-tests
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill configure-load-tests

简介

configure-load-tests 用于搭建 k6、Artillery 等负载测试基础设施。

  • 适用于容量规划与性能瓶颈识别场景。configure-load-tests 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 支持阶梯式加压与稳态持续时间配置。
  • 包含外部服务调用,需区分测试环境与生产环境。
  • 建议设置告警阈值防止意外压垮线上系统。

SKILL.md

/configure:load-tests

Check and configure load and performance testing infrastructure for stress testing, benchmarking, and capacity planning.

When to Use This Skill

Use this skill when...Use another approach when...
Setting up load testing infrastructure from scratch (k6, Artillery, Locust)Running existing load tests — use k6 run or artillery run directly
Auditing current load testing coverage (smoke, stress, spike, soak)Writing unit or integration tests — use /configure:tests
Adding CI/CD pipelines for performance regression detectionProfiling application memory usage — use /configure:memory-profiling
Migrating between load testing frameworksBenchmarking individual functions — use language-specific benchmark tools
Ensuring load test thresholds and reporting are properly configuredTesting API contracts — use /configure:api-tests

Context

  • Project root:!pwd
  • k6 tests:!find. -maxdepth 3 \(-name '*.k6.js' -o -name '*.k6.ts' \)
  • Load test directory:!find. -maxdepth 2 -type d -name 'load'
  • Artillery config:!find. -maxdepth 2 -name 'artillery.yml' -o -name 'artillery.yaml'
  • Locust files:!find. -maxdepth 2 -name 'locustfile.py'
  • Package files:!find. -maxdepth 1 \(-name 'package.json' -o -name 'pyproject.toml' \)
  • CI workflows:!find.github/workflows -maxdepth 1 -name '*load*' -o -name '*perf*'
  • k6 binary:!command -v k6

Parameters

Parse from $ARGUMENTS:

  • --check-only: Report load testing compliance status without modifications
  • --fix: Apply all fixes automatically without prompting
  • --framework <k6|artillery|locust>: Override framework detection

Framework preferences:

FrameworkBest For
k6 (recommended)Complex scenarios, CI/CD integration, TypeScript support
ArtilleryQuick YAML configs, simple API testing
LocustPython teams, distributed testing, custom behavior

Execution

Execute this load testing configuration check:

Step 1: Detect existing load testing infrastructure

Read the context values above and identify:

IndicatorComponentStatus
k6 binary or @grafana/k6k6Installed
*.k6.js or load-tests/k6 testsPresent
artillery.ymlArtillery configPresent
locustfile.pyLocust testsPresent
.github/workflows/*load*CI integrationConfigured

If --framework flag is set, use that framework regardless of detection.

Step 2: Analyze current load testing setup

Check for complete setup coverage:

Installation: k6 installed (binary or npm), TypeScript support if applicable.

Test Scenarios: Check which test types exist:

  • Smoke tests (minimal load validation)
  • Load tests (normal load)
  • Stress tests (peak load)
  • Spike tests (burst traffic)
  • Soak tests (endurance)

Configuration: Thresholds, environment-specific configs, data files.

Reporting: Console output, JSON/HTML reports, trend tracking.

CI/CD: GitHub Actions workflow, scheduled runs, PR gate.

Step 3: Generate compliance report

Print a compliance report covering:

  • Framework installation status and version
  • Test scenario coverage (smoke, load, stress, spike, soak)
  • Threshold configuration (response time, error rate)
  • Environment configuration (staging, production)
  • CI/CD integration (workflow, schedule, PR gate)
  • Reporting setup (console, JSON, HTML, Grafana Cloud)

End with overall issue count and recommendations.

If --check-only is set, stop here.

Step 4: Configure load testing framework (if --fix or user confirms)

Apply configuration using templates from REFERENCE.md:

  1. Install k6 (or chosen framework)
  2. Create directory structure: tests/load/{config,scenarios,helpers,data}
  3. Create base configuration with shared thresholds and headers
  4. Create test scenarios (smoke, load, stress, spike)
  5. Add npm/package scripts for running tests

Step 5: Configure CI/CD integration

  1. Create .github/workflows/load-tests.yml with:

- Smoke tests on PRs - Full load tests via workflow_dispatch - Scheduled weekly runs - Results artifact upload

  1. Add HTML reporting via k6-reporter
  2. Use templates from REFERENCE.md

Step 6: Update standards tracking

Update .project-standards.yaml:

components:
  load_tests: "2025.1"
  load_tests_framework: "k6"
  load_tests_scenarios: ["smoke", "load", "stress"]
  load_tests_ci: true
  load_tests_thresholds: true

Step 7: Print final compliance report

Print a summary of framework installed, scenarios created, scripts added, CI/CD configured, thresholds set, and next steps for the user.

For detailed k6 test scripts, CI workflow templates, and reporting configuration, see REFERENCE.md.

Agentic Optimizations

ContextCommand
Quick compliance check/configure:load-tests --check-only
Auto-fix all issues/configure:load-tests --fix
Run smoke test quicklyk6 run --vus 1 --duration 10s tests/load/scenarios/smoke.k6.js
Run with JSON outputk6 run --out json=results.json tests/load/scenarios/load.k6.js
Check k6 versionk6 version
List test scenariosfind tests/load -name '*.k6.js' -type f

Flags

FlagDescription
--check-onlyReport status without offering fixes
--fixApply all fixes automatically without prompting
--framework <framework>Override framework (k6, artillery, locust)

Examples

# Check compliance and offer fixes
/configure:load-tests

# Check only, no modifications
/configure:load-tests --check-only

# Auto-fix all issues
/configure:load-tests --fix

# Force specific framework
/configure:load-tests --fix --framework artillery

Error Handling

  • k6 not installed: Provide installation instructions for platform
  • No target URL: Prompt for BASE_URL configuration
  • Docker not available: Suggest local app startup
  • CI secrets missing: Provide setup instructions for k6 Cloud

See Also

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.66%
按下载量换算148

Claude

30.18%
按下载量换算133

Cursor

17.65%
按下载量换算78

Gemini CLI

9.01%
按下载量换算40

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/laurigates/claude-plugins --skill configure-load-tests 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills