Imported from linxule/kimi-plugin-cc (
plugins/kimi-codex/skills/kimi-cancel/SKILL.md). Install upstream withnpx skills add linxule/kimi-plugin-cc --skill kimi-cancel. Copyright stays with the author.
Kimi Cancel
Forward this request to the local kimi-code companion runtime by shell. Do not use MCP for this skill.
Invocation
- Resolve the plugin root: prefer
$PLUGIN_ROOTif the host sets it; otherwise use the directory that CONTAINS theskills/directory (i.e. two levels up from thisSKILL.md). - Sanity check:
<plugin-root>/scripts/companion.shmust exist — it is the bundled entrypoint that resolves Node and runs the compiled runtime from<plugin-root>/dist/. - Launch the shell command from the user's current workspace directory so
scripts/companion.shcaptures the intended workspace cwd. - Run:
PLUGIN_ROOT="<plugin-root>" "<plugin-root>/scripts/companion.sh" cancel <args> - Data directories: standard cache installs verify shared
CLAUDE_PLUGIN_DATA/PLUGIN_DATAagainst this package's own host-specific directory. OnPLUGIN_DATA_CONFLICT, surface the error; do not automatically choose a new store or copy data. An explicit absoluteKIMI_PLUGIN_CC_DATAselects a custom data parent (the runtime appendskimi-plugin-cc/). Checkouts retain unambiguous legacy variables and the Codex fallback underCODEX_HOMEorHOME; a launch with no home needs an explicit data root.
Arguments
Pass through: [<job-id>]
Handling
- Pass the requested job id when supplied; otherwise let the companion choose the latest active job for this repository.
- Return companion stdout verbatim so the user sees the cancellation state.