Skip to content

feat(agent): add KHI agent plugin and khi-investigation skill - #1230

Merged
kyasbal merged 3 commits into
mainfrom
push-vyrkyouxnuty
Nov 5, 2026
Merged

kyasbal merged 3 commits into
mainfrom
push-vyrkyouxnuty

Conversation

@kyasbal

@kyasbal kyasbal commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Part of #1049
Closes #1048

Summary

Bundles the khi-investigation agent skill and KHI MCP server connection configuration (${KHI_MCP_URL:-http://127.0.0.1:8080/mcp}) as an installable plugin across Claude Code, OpenAI Codex, and Gemini CLI:

  • Marketplace & Plugin Manifests:
    • .claude-plugin/marketplace.json and plugins/khi/.claude-plugin/plugin.json for Claude Code (/plugin marketplace add GoogleCloudPlatform/khi -> /plugin install khi@khi).
    • .agents/plugins/marketplace.json and plugins/khi/.codex-plugin/plugin.json for Codex (codex plugin marketplace add GoogleCloudPlatform/khi).
    • plugins/khi/gemini-extension.json for Gemini CLI extensions and plugins/khi/.mcp.json for HTTP MCP server configuration.
  • khi-investigation Skill (plugins/khi/skills/khi-investigation/SKILL.md):
    • Documents the end-to-end investigation workflow (khi://inspections, khi://inspections/{id}, search_timelines, search_logs, detail/revision tools, render_timelines, validate_report, and sharing Applied filter YAML blocks), inspection creation (including reviewing Warning/Info field hints before run_inspection), CEL filter authoring via references/cel-timeline.md and references/cel-log.md, pagination/truncation, and structured error handling.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces configuration files and a skill definition (SKILL.md) to integrate the Kubernetes History Inspector (KHI) as an agent plugin, along with a new test TestKHIInvestigationSkillToolsAndResources to validate that the tools, resources, and references documented in the skill match the registered MCP definitions. The review feedback suggests replacing a fragile regular expression used in the test to match tool names with a simpler and more robust slices.Contains check, which also allows for the removal of the unused "regexp" import.

Comment thread pkg/server/mcp/server_test.go Resolved
Comment thread pkg/server/mcp/server_test.go Resolved
@kyasbal
kyasbal marked this pull request as ready for review November 5, 2026 06:41
@kyasbal
kyasbal added this pull request to the merge queue Nov 5, 2026
Merged via the queue into main with commit a43836e Nov 5, 2026
21 checks passed
@kyasbal
kyasbal deleted the push-vyrkyouxnuty branch November 5, 2026 06:49
@kyasbal kyasbal mentioned this pull request Nov 11, 2026
16 of 23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant