K6 Docs

作者 grafana1ccacf29049fApache-2.0279 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Write or review k6 documentation across the three k6 repositories - k6-DefinitelyTyped (TypeScript types), k6-docs (user documentation), and k6 (release notes / changelog). Applies k6 doc style conventions, generates TypeScript type definitions, drafts release notes, and validates examples by running them against k6@master. Use when working on k6 documentation, the k6 changelog, the k6 release notes, k6 API reference, k6 TypeScript types, load testing docs, or when the user asks to write, edit, or review anything in the k6, k6-docs, or k6-DefinitelyTyped repos - even if they don't explicitly say "documentation".

AI 生成的概览

在三个 k6 仓库中撰写和审阅 k6 文档、TypeScript 类型定义与发布说明。

功能
该技能指导智能体在 k6-DefinitelyTyped、k6-docs 和 k6 仓库中撰写或审阅 k6 文档。它会应用 k6 文档风格规范,起草发布说明和变更日志,生成 TypeScript 类型定义,并通过在 k6@master 上运行来验证代码示例。它附带参考资料、检查清单、模板以及用于获取拉取请求、查找分支、格式化与测试 TypeScript、校验链接和更新团队成员的 shell 脚本。
适用场景
适用于处理 k6 文档、k6 变更日志或发布说明、k6 API 参考或 k6 TypeScript 类型时。也适用于撰写、编辑或审阅 k6、k6-docs 或 k6-DefinitelyTyped 仓库中任何内容的请求,即使未明确提到文档。
运行要求
需要本地检出 k6 仓库的 master 分支、用于通过 go run 运行示例的 Go 工具链,以及执行附带脚本的 shell 环境。部分脚本可能需要网络访问和凭据以进行获取拉取请求等仓库操作。

k6 Documentation

Document or review k6 features across three repositories: k6-DefinitelyTyped (TypeScript types), k6-docs (user documentation), and k6 (release notes).

Workflow

Pick the workflow that matches the user's intent:

  • Write documentation: follow references/workflows/write.md [blocked]
  • Review documentation: follow references/workflows/review.md [blocked]

Quick References

  • Repository structure & feature type identification [blocked]
  • TypeScript patterns & troubleshooting [blocked]
  • Testing workflow with parallel subagents [blocked]
  • agent-browser command reference [blocked]
  • Troubleshooting guide [blocked]

Critical Rules

  • Never push automatically - always ask first
  • Never chain commands with && or ; - run each command separately (prevents failures)
  • Only document user-facing features - not internal implementation
  • Use 1. for every numbered list item (not 1., 2., 3.)
  • Test every code example against k6@master before committing
  • No Co-Authored-By: Claude or AI attribution in commits

Validating examples (always run before committing)

Every code example in k6 documentation and release notes must execute cleanly against k6@master. The minimum loop:

bash
# 1. cd into the k6 repo (not k6-docs or k6-DefinitelyTyped)cd ~/path/to/k6
# 2. Make sure you're on master at the latest commit (the contract is k6@master)git checkout mastergit pull
# 3. Run each example as a separate command (no &&)go run . run /path/to/script.js

If the run fails: read the error, fix the example in the source (doc or release note), re-run. Do not commit a change whose example doesn't run clean against current master. For the full multi-example workflow with parallel subagents, see references/testing-workflow.md [blocked].

来源与署名

来源:grafana/skills位于skills/grafana-k6/k6-docs提交1ccacf2

许可证: Apache-2.0

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 grafana/skills 的技能

React 19 Plugin Migration

grafana

指导将 Grafana 插件迁移至 React 19 兼容,按顺序完成构建、依赖与源码修改步骤。

Software Development279今天更新

Plugin Bundle Size

grafana

指导使用 React.lazy、Suspense 和 webpack 代码分割来优化 Grafana 应用插件包体积。

Software Development279今天更新

Grafana Scenes

grafana

使用 @grafana/scenes 框架构建 Grafana 插件页面,涵盖场景、面板、变量与下钻导航。

Software Development279今天更新

Check Npm

grafana

对 JS/TS 仓库的 npm、yarn 或 pnpm 配置进行只读供应链加固审计。

Security279今天更新

Mimir

grafana

指导搭建和运维 Grafana Mimir,用于可扩展、多租户、长期的 Prometheus 与 OTLP 指标存储。

DevOps & Cloud279今天更新

K6 Trend Analysis

grafana

Analyze Grafana Cloud k6 test run trends over time. Detects slow metric drift (e.g., P95 latency creeping up while still passing thresholds), computes headroom to thresholds, flags anomalies, and recommends threshold tightening. Use when the user asks about test performance trends, wants to know if metrics are degrading, asks whether thresholds should be tightened, or wants a health check across recent runs for a specific test. Trigger on phrases like "how is my test trending", "is P95 getting worse", "check for performance regression", "should I tighten thresholds", "are my tests degrading", "show me trends for test X", "analyze my k6 test runs", or "is my test getting slower". Also trigger when a user asks to check all tests in a project -- run this skill once per test and synthesize.

待分类279今天更新