Add agent skill for testing EUI PRs in Kibana#9639
Draft
acstll wants to merge 2 commits intoelastic:mainfrom
Draft
Add agent skill for testing EUI PRs in Kibana#9639acstll wants to merge 2 commits intoelastic:mainfrom
acstll wants to merge 2 commits intoelastic:mainfrom
Conversation
Adds a `test-eui-pr-in-kibana` agent skill that codifies the workflow documented in `wiki/contributing-to-eui/testing/testing-in-kibana.md`: build a local @elastic/eui tarball from a PR branch, stand up a Kibana branch consuming it, and run `yarn kbn bootstrap` so Kibana CI can run against the EUI PR before merging. Layout mirrors how elastic/kibana organizes agent assets: - `.agents/skills/` is the source of truth - `.claude/skills` and `.codex/skills` symlink to it Also extends `.gitignore` to ignore user-specific Claude Code state (`.claude/*.local.json`, `.claude/worktrees/`) while keeping the skills folder committable. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Clarifies when to use published theme packages and documents theme tarball output naming plus workspace dependency caveats to avoid Kibana bootstrap failures. Co-authored-by: Cursor <cursoragent@cursor.com>
Collaborator
💚 Build SucceededHistory
cc @acstll |
Collaborator
💚 Build Succeeded
History
cc @acstll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Important
There's a better fully-automated alternative of a workflow for testing an eui commit/branch in Kibana, that should be available soon (code). This is a fallback.
Note
Also, this workflow of manually packing tarballs and manually modifying package.json files is not something we want to have in the future, but since it's still needed, i thought it was an easy and useful way to start adding skills to this repo! Needing to create this Kibana PR was the trigger…
Tip
We could also add a variant of this that triggers a gh workflow for making a snapshot release, and then open the PR in Kibana
Adds a
test-eui-pr-in-kibanaagent skill that codifies the "Testing local EUI in local Kibana" workflow documented inwiki/contributing-to-eui/testing/testing-in-kibana.md(link).You can ask an agent something like "let's test this changes in Kibana" to trigger the skill. Which will then pack the tarballs and set it up in Kibana in a new branch, optionally pushing and creating a PR to run CI.
Layout mirrors how elastic/kibana organizes agent assets:
.agents/skills/is the source of truth.claude/skillsand.codex/skillssymlink to itAlso extends
.gitignoreto ignore user-specific Claude Code state (.claude/*.local.json,.claude/worktrees/) while keeping the skills folder committable.API Changes
N/A
Screenshots
Impact Assessment
Note: Most PRs should be tested in Kibana to help gauge their Impact before merging.
Impact level: 🟢 None
Release Readiness
QA instructions for reviewer
(agent-generated, edited by me)
QA is a guided dry-run of invoking the skill.
Prereqs
via the
.codex/skillssymlink — pick whichever you use)upstreamremote pointing togit@github.com:elastic/kibana.gitPR like #9630
Steps
Check out this branch in your EUI repo (
gh pr 9639).Verify the symlinks resolved —
ls .claude/skills/andls .codex/skills/should both showtest-eui-pr-in-kibana/.Open Claude Code from the EUI repo root and prompt something like:
(or whichever PR number you picked). The skill should auto-load.
Let it run, expect background tasks…
What to verify
packages/eui/package.jsonedit and the edit is reverted at the end (git statusclean afterwards)eui-theme-common/eui-theme-borealis, the skill detects and offers to build them; otherwise it askstest-eui-{N}-{slug}created off freshupstream/maineui_{version}_{N}.tgz)package.jsonpoints@elastic/euitofile:./...tgzand adds@elastic/eui-theme-common(published version, unless built)packages/kbn-dependency-ownership/src/rule.tsandsrc/dev/license_checker/config.tseach get an@elastic/eui-theme-commonentrygit add -A— your unrelated workingtree edits should not be picked up)
Checklist before marking Ready for Review
breaking changelabel (if applicable)Reviewer checklist