Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

scout-api-testing

Skill by elastic

Guides an AI assistant through creating, updating, debugging and reviewing Scout API tests in Kibana. It is for developers writing API tests for Kibana modules, covering auth choices, response assertions and API service patterns.

  • Score 83
  • 21k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install scout-api-testing

Built from the published package, never by AI.

git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.claude/skills && cp -r /tmp/kibana/.agents/skills/scout-api-testing ~/.claude/skills/scout-api-testing

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install scout-api-testing in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant the rules for writing Scout API tests in Kibana. It explains where API spec files live, which Scout package to import for each module root, and how to use apiTest, apiClient, requestAuth, samlAuth and apiServices. It also covers required headers, assertion matchers and the commands used to run and debug tests.

Auth choice follows the endpoint. Endpoints under api/ use API keys through requestAuth, and endpoints under internal/ use cookies through samlAuth.asInteractiveUser. The skill is aimed at developers working on Kibana plugins and packages in the Elastic repository. It points to reference files for auth and API service details.

Written from the project's SKILL.md and checked against it.

What it can do

  • Spec placementShows where Scout API spec files live and how they are named in a module.
  • Auth selectionExplains when to use requestAuth API keys or samlAuth cookies for an endpoint.
  • Response assertionsLists the custom matchers from @kbn/scout/api, such as toHaveStatusCode and toHaveHeaders.
  • API servicesDescribes module-local helpers registered through the apiServices fixture for setup and side effects.
  • Fixture extensionShows how to extend apiTest in fixtures/index.ts with custom auth helpers.
  • Run and debugLists run-tests and start-server commands and the SCOUT_LOG_LEVEL=debug setting.
  • CI enablementExplains registering a module under plugins or packages enabled in scout_ci_config.yml.

What you need

  • A Kibana repository with Scout (scripts/scout)
  • Node.js to run the scout commands

Try asking

  • Write a Scout API test for an internal endpoint using samlAuth cookies.
  • Help me pick requestAuth or samlAuth for my api/ endpoint test.
  • Review my Scout API spec for assertion and header mistakes.

Good to know

  • API tests do not currently validate tags at runtime.
  • apiServices and kbnClient run with elevated privileges, so they should not validate the endpoint under test.
  • Scout API tests are sequential by default. Parallel runs need manual isolation.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/scout-api-testing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/scout-api-auth.md3 KB
  • references/scout-api-services.md2 KB

Alternatives to scout-api-testing

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

scout-api-testing: common questions

Which auth should I use for Scout API tests?

Use API keys through requestAuth for api/* endpoints. Use cookies through samlAuth.asInteractiveUser for internal/* endpoints.

Where do I import expect for Scout API tests?

Import expect from @kbn/scout/api, or from the module's Scout package subpath. It is not exported from the main @kbn/scout entry.

Can I use apiServices to check RBAC?

No. The skill says apiServices and kbnClient run with elevated privileges, so the endpoint should be validated with apiClient and scoped auth.

How do I install scout-api-testing?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is scout-api-testing free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is scout-api-testing safe to use?

It scores 83 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to scout-api-testing?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

scout-api-testing Install

Add to stack

Loading.