feat(skills): register flow skills as /skill: slash commands#664
Merged
Conversation
Signed-off-by: Richard Chien <stdrc@outlook.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds the ability to invoke flow skills via /skill:<name> commands in addition to the existing /flow:<name> commands, providing users with two ways to interact with flow skills depending on their needs.
Changes:
- Updated skill registration logic to include flow skills in
/skill:command registration - Added test coverage to verify both command types are registered for flow skills
- Updated documentation (English and Chinese) to explain the dual invocation methods
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/kimi_cli/soul/kimisoul.py | Modified skill type filter to register flow skills as /skill: commands |
| tests/test_kimisoul_slash_commands.py | Added test verifying flow skills register both /skill: and /flow: commands |
| docs/en/reference/slash-commands.md | Documented that /skill: works for flow skills without auto-executing |
| docs/zh/reference/slash-commands.md | Chinese documentation for the new dual invocation behavior |
| docs/en/customization/skills.md | Added examples showing both invocation methods for flow skills |
| docs/zh/customization/skills.md | Chinese documentation with dual invocation examples |
| docs/en/release-notes/changelog.md | Added changelog entry for the new feature |
| docs/zh/release-notes/changelog.md | Chinese changelog entry for the new feature |
| CHANGELOG.md | Main changelog entry documenting the feature |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Flow skills can now be invoked via
/skill:<name>commands in addition to/flow:<name>commands./flow:<name>: Executes the flow, processing nodes fromBEGINtoEND/skill:<name>: Loads theSKILL.mdcontent as a prompt without auto-executing the flowThis provides more flexibility for users who want to reference flow skill content without triggering the automated workflow.
Changes
kimisoul.pyto register flow skills as/skill:commands/skill:and/flow:commands