Skip to content

fix: count discovered plugin skills - #166

Merged
wbxl2000 merged 1 commit into
mainfrom
qer/plugin-skill-count
May 28, 2026
Merged

fix: count discovered plugin skills#166
wbxl2000 merged 1 commit into
mainfrom
qer/plugin-skill-count

Conversation

@wbxl2000

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue; this fixes an incorrect plugin summary count visible in /plugins.

Problem

Plugins can declare a single skill root containing multiple discovered skills. The plugin manager summary counted declared skill roots instead of discovered skills, so /plugins could show 1 skill for plugins such as Superpowers even when the root contains many skills.

What changed

  • Store skillCount on each materialized plugin record using the existing skill discovery scanner.
  • Use the discovered count in plugin summaries and plugin info.
  • Add coverage for a plugin skill root containing multiple skill bundles.
  • Add a patch changeset for the CLI-visible fix.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Verification:

  • pnpm exec vitest packages/agent-core/test/plugin/manager.test.ts packages/agent-core/test/plugin/manifest.test.ts packages/agent-core/test/plugin/integration.test.ts apps/kimi-code/test/tui/kimi-tui-message-flow.test.ts apps/kimi-code/test/tui/components/dialogs/plugins-selector.test.ts --run
  • pnpm --filter @moonshot-ai/agent-core run typecheck
  • pnpm --filter @moonshot-ai/kimi-code run typecheck
  • git diff --check

@changeset-bot

changeset-bot Bot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9047877

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented May 28, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@9047877
npx https://pkg.pr.new/@moonshot-ai/kimi-code@9047877

commit: 9047877

@wbxl2000

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@wbxl2000
wbxl2000 merged commit 92e1d8c into main May 28, 2026
7 checks passed
@wbxl2000
wbxl2000 deleted the qer/plugin-skill-count branch May 28, 2026 14:05
@github-actions github-actions Bot mentioned this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant