Skip to content

feat: add check-kimi-code-docs builtin skill - #1727

Merged
liruifengv merged 4 commits into
mainfrom
feat/check-kimi-code-docs-skill
Jul 15, 2026
Merged

feat: add check-kimi-code-docs builtin skill#1727
liruifengv merged 4 commits into
mainfrom
feat/check-kimi-code-docs-skill

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

No tracking issue — see the problem statement below.

Problem

When users ask the agent questions about the Kimi Code product itself — CLI usage, configuration, slash commands, membership/quota, error codes — the agent answers from model memory. Whether it consults the official documentation at all is inconsistent, and answers can be inaccurate or outdated, with no source links.

What changed

  • Added a builtin check-kimi-code-docs skill in both agent engines (agent-core skill registry and agent-core-v2 skillCatalog), registered alongside the existing builtin skills.
  • The skill pins the official documentation site (https://www.kimi.com/code/docs/en/) as the single source of truth and embeds a question → page routing table covering the platform pages (overview / API onboarding, membership, FAQ, error reference, what's new, guidelines, feedback), the CLI docs modules (configuration/, customization/, guides/, reference/, release notes), and third-party-tool onboarding. It instructs the agent to fetch the relevant page with FetchURL before answering, cite the links used, and never invent config keys, command names, model IDs, or behaviors.
  • Verified with retrieval scenarios: without the skill, agents consulted the docs inconsistently (1 of 4 used no online source at all); with the skill, 6/6 representative questions routed to the correct page and were answered from the fetched content with citations.
  • The skill also surfaces as the /check-kimi-code-docs slash command; added it to the builtin skill commands tables in docs/en and docs/zh.
  • Tests: extended the existing builtin-skill unit test (agent-core) and the kap-server skills wire test to assert the new skill is registered and listed on the wire. Both suites pass (8/8 and 13/13); package typechecks and lint are clean.
  • Changeset: minor for @moonshot-ai/kimi-code (the engine packages are internal and bundled into the CLI release).

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. (Builtin skill commands tables updated in this PR, en + zh.)

@changeset-bot

changeset-bot Bot commented Jul 15, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 04d1f93

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 Minor

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 Jul 15, 2026

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

commit: 04d1f93

@liruifengv
liruifengv merged commit 286d3e7 into main Jul 15, 2026
15 checks passed
@liruifengv
liruifengv deleted the feat/check-kimi-code-docs-skill branch July 15, 2026 03:42
@github-actions github-actions Bot mentioned this pull request Jul 15, 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