security-scout-best-practices-reviewer
Skill by elastic
Reviews Scout tests for Security Solution in x-pack/solutions/security/. It adds Security-specific checks on top of the general Scout best practices reviewer, for developers and reviewers preparing PRs or migrating Cypress tests.
Install security-scout-best-practices-reviewer
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/x-pack/solutions/security/plugins/security_solution/.agents/skills/security-scout-best-practices-reviewer ~/.claude/skills/security-scout-best-practices-reviewerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install security-scout-best-practices-reviewer in Claude Code
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kibana/x-pack/solutions/security/plugins/security_solution/.agents/skills/security-scout-best-practices-reviewer ~/.gemini/antigravity-cli/skills/security-scout-best-practices-reviewerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install security-scout-best-practices-reviewer in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a review checklist for Scout tests in the Security Solution area of Kibana, under x-pack/solutions/security/. It is meant to run after the general scout-best-practices-reviewer skill and adds Security-specific checks on top of it. The checks cover page object placement, cleanup of Security Solution resources, package imports, login roles, deployment tags, API service reuse and test placement by namespace.
For Cypress-to-Scout migrations, the skill adds parity checks such as replacing force clicks, using kbnClient or apiServices instead of esArchiver for system indices, and mapping Cypress tags to Scout tags. It also lists the available API services and login methods in @kbn/scout-security. It is aimed at developers and reviewers working on Security Solution Scout tests.
Written from the project's SKILL.md and checked against it.
What it can do
- Security page object placementChecks that new page objects live in kbn-scout-security and are registered through the pageObjects fixture.
- Resource cleanup checkFlags missing afterAll or afterEach cleanup for rules, alerts, timelines, cases, exceptions and other Security resources.
- Package import checkVerifies spaceTest, test and tags come from @kbn/scout-security and UI and API assertions use their sub-entry points.
- Login role checkFlags loginAsAdmin() and suggests the least-privileged Security role that still tests the behaviour.
- Deployment tag checkChecks that stateful and serverless tags match the test's scope, and that solution view is set in the space.
- API services reuseLists available services such as detectionRule, timeline and entityAnalytics, and checks new services are wired in.
- Test placement checkChecks that specs sit in the correct namespace directory under test/scout/ and split files stay in the same namespace.
- Cypress migration parityChecks force clicks, system index loads, Cypress tags and cleanup against the original Cypress test.
- Skill improvement promptsAfter a review, suggests adding new checklist items or new services or page objects to the skill.
What you need
- The general scout-best-practices-reviewer skill
Try asking
- Review my Scout tests under x-pack/solutions/security for best practices
- Check this Cypress-to-Scout migration for Security Solution parity
- Flag any loginAsAdmin() calls in my new Security Scout spec
Good to know
- Additive only. The general scout-best-practices-reviewer must run first.
- Scoped to Scout tests in x-pack/solutions/security/.
- Service and role lists reflect the source at the time it was written.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: x-pack/solutions/security/plugins/security_solution/.agents/skills/security-scout-best-practices-reviewer/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to security-scout-best-practices-reviewer
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
security-scout-best-practices-reviewer: common questions
Does this skill replace the general Scout reviewer?
No. The source says it supplements the general scout-best-practices-reviewer, which should run first.
Which login role should Security Scout tests use?
The source says to prefer the least-privileged role that still exercises the behaviour under test. Admin is acceptable only when the test truly needs it.
Which serverless tiers can Security tests be tagged for?
The source lists security.complete, security.essentials, security.ease and security.all. It recommends security.complete unless the test covers tier-specific behaviour.
How do I install security-scout-best-practices-reviewer?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is security-scout-best-practices-reviewer free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is security-scout-best-practices-reviewer safe to use?
It scores 78 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 security-scout-best-practices-reviewer?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
