
Validate Oas
- 2 installs
- 21.2k repo stars
- Updated August 5, 2026
- elastic/kibana
validate-oas skill documents Use when you need a quick VALID or NOT VALID result for a scoped Kibana OAS area, and first ensure the generated `oas_docs` inputs are up to date so validation runs against the current enviro
About
validate-oas skill documents Use when you need a quick VALID or NOT VALID result for a scoped Kibana OAS area, and first ensure the generated `oas_docs` inputs are up to date so validation runs against the current environment rather than stale snapshots.. name: validate-oas description: Use when you need a quick VALID or NOT VALID result for a scoped Kibana OAS area, and first ensure the generated `oas_docs` inputs are up to date so validation runs against the current environment rather than stale snapshots.
- Use when you need a quick VALID or NOT VALID result for a scoped Kibana OAS area, and first ensure the generated `oas_do
- Platform-specific setup patterns for validate-oas.
- Evidence-backed steps from upstream SKILL.md.
- When-to-use criteria for validate-oas versus alternatives.
Validate Oas by the numbers
- 2 all-time installs (skills.sh)
- Ranked #1,788 of 2,203 Security skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
validate-oas capabilities & compatibility
- Capabilities
- validate oas quick start · validate oas when to use guidance · validate oas integration patterns
- Works with
- elasticsearch
- Use cases
- security audit
What validate-oas says it does
disable-model-invocation: true
Use `node ./scripts/validate_oas_docs.js` for a fast pass/fail check of a specific API area.
npx skills add https://github.com/elastic/kibana --skill validate-oasAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 2 |
|---|---|
| repo stars | ★ 21.2k |
| Last updated | August 5, 2026 |
| Repository | elastic/kibana ↗ |
How do I use validate-oas correctly?
Use when you need a quick VALID or NOT VALID result for a scoped Kibana OAS area, and first ensure the generated `oas_docs` inputs are up to date so validation runs against the current environment rat
Who is it for?
Teams implementing validate-oas workflows from the catalog.
Skip if: Skip when requirements clearly match a different specialized stack.
When should I use this skill?
User asks about validate-oas, use when you need a quick valid or not valid result for a scoped kibana oas area, and firs.
What you get
Working validate-oas setup with validated configuration and next steps.
Files
Validate OAS
Overview
Use node ./scripts/validate_oas_docs.js for a fast pass/fail check of a specific API area.
This skill is intentionally minimal:
- Return only
VALIDorNOT VALID. - If
NOT VALID, mention thedebug-oasskill for detailed issue debugging. - Use this skill first for quick pass/fail.
- Hand off to
debug-oaswhen the developer wants issue categorization or examples.
Before validating, make sure the generated OAS artifacts in oas_docs are current. Treat stale generated files as an environment/setup problem, not a validation result.
Environment setup
Refresh the generated OAS inputs before validation when:
- the developer asks for a fresh or CI-like validation run
oas_docsmay be stale after switching branches or pulling changes- scoped validation gives surprising results that may come from outdated generated files
Do not refresh first when:
- the developer explicitly wants a fast local re-check only
- the developer already refreshed
oas_docsin this session and no relevant inputs changed since then
Refresh flow:
1. Bootstrap dependencies if needed:
yarn kbn bootstrap2. Regenerate captured OAS snapshots using the same include paths as Buildkite:
node scripts/capture_oas_snapshot \
--include-path /api/status \
--include-path /api/alerting/rule/ \
--include-path /api/alerting/rules \
--include-path /api/actions \
--include-path /api/security/role \
--include-path /api/spaces \
--include-path /api/streams \
--include-path /api/fleet \
--include-path /api/saved_objects \
--include-path /api/maintenance_window \
--include-path /api/agent_builder \
--include-path /api/workflows \
--include-path /api/security/entity_store3. Rebuild the final OAS documents:
cd oas_docs && make api-docsAfter this refresh flow completes, run the scoped validation command.
Source of truth:
- Keep the
capture_oas_snapshotinclude-path list aligned with.buildkite/scripts/steps/checks/capture_oas_snapshot.sh. - If the Buildkite command changes, update this skill to match it.
Required interaction flow
1. Ask what APIs the developer is working on. 2. Ask for one or more HTTP API paths (for example /api/fleet/agent_policies). 3. Ensure oas_docs is up to date first when needed by following the environment setup flow above. 4. Run validation using those route-style --path filters with --only traditional by default and always include --skip-printing-issues. 5. Return only:
VALID, orNOT VALID(and mentiondebug-oasfor details).
Do not skip questions (1) and (2) unless the developer already provided the API paths.
Path format
Use normal route-style API paths for --path:
/api/fleet/agent_policies/api/fleet/agent_policies/{agentPolicyId}
Do not manually convert to JSON pointers. The CLI handles conversion for error filtering internally.
Commands
Environment refresh:
yarn kbn bootstrap
node scripts/capture_oas_snapshot \
--include-path /api/status \
--include-path /api/alerting/rule/ \
--include-path /api/alerting/rules \
--include-path /api/actions \
--include-path /api/security/role \
--include-path /api/spaces \
--include-path /api/streams \
--include-path /api/fleet \
--include-path /api/saved_objects \
--include-path /api/maintenance_window \
--include-path /api/agent_builder \
--include-path /api/workflows \
--include-path /api/security/entity_store
cd oas_docs && make api-docsDefault scoped validation:
node ./scripts/validate_oas_docs.js --only traditional --skip-printing-issues --path <api_route_prefix>Multiple path filters are supported:
node ./scripts/validate_oas_docs.js --only traditional \
--skip-printing-issues \
--path /api/fleet/agent_policies \
--path /api/fleet/agent_policies/{agentPolicyId}Optional (only when explicitly requested):
node ./scripts/validate_oas_docs.js --only serverless --skip-printing-issues --path <api_route_prefix>Default scoping note:
- Prefer
--only traditionalby default because it matches the common local debugging path and keeps output narrower. - Use
--only serverlessonly when the developer explicitly asks for it.
Result rules
- Determine status from CLI output:
Found 0 errors in ...->VALIDFound N errors in ...whereN > 0->NOT VALID- If validation was run without first refreshing obviously stale
oas_docs, note that the result may reflect outdated generated inputs and refresh before concluding the spec is clean or broken. - If CLI output indicates no matched paths (for example
None of the provided --path filters matched any content), keep status asVALIDbut include an explicit warning. - Output must stay concise:
VALIDVALID (WARNING: no actual paths were matched.)NOT VALID. Use the debug-oas skill for detailed issues.
Output template
Use exactly one of these responses:
VALIDVALID (WARNING: no actual paths were matched.)NOT VALID. Use the debug-oas skill for detailed issues.Related skills
FAQ
What does validate-oas do?
validate-oas skill documents Use when you need a quick VALID or NOT VALID result for a scoped Kibana OAS area, and first ensure the generated `oas_docs` inputs are up to date so validation runs against the current environment rather than stale snapshots.
When should I use validate-oas?
User asks about validate-oas, use when you need a quick valid or not valid result for a scoped kibana oas area, and firs.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.