Skip to main content
comet skill is a low-level Skill package and Skill Engine Run tool. It discovers explicit Skill directories, project overwrites under .comet/skills/, and built-in skills, and provides local Skill package management and advanced runtime debugging. When creating reusable skills, it is preferred to use /comet-any]. comet skill run/comet skill continue are more suitable for debugging advanced Skill runs
If you only want to put a local Skill into the project, start with comet skill add and comet skill show. Running, restoring, and runtime checks are advanced debugging capabilities, mainly for Engine-enabled skills.

First, distinguish between platform skills and project skills

  • ** Platform Skill** : Installed from comet init or comet update to platform directories such as .claude/skills/ and .agents/skills/, and directly discovered by the Agent platform.
  • ** Project Skill** : Installed from comet skill add to .comet/skills/<name>/, resolved by name by Comet Engine, and will not automatically become platform commands.
They solve different problems. In day-to-day /comet usage, project Skill management is rarely needed. These commands are mainly for installing a custom Engine Skill, overriding a built-in Skill, or debugging an Engine Run.

Common paths

Subcommand

All subcommands support --json.

General Options

—change and —run-id are mutually exclusive: only one of them can be bound at a Run. —change bind to the OpenSpec change directory, —run-id use .comet/runs/< run-id> stores an independent Run state.

Package management

add

Copy the Skill to .comet/skills/<name> (reject symbolic links and use atomic rename with a backup). The project Skill will override the built-in Skill by name. Invalid overwrite will fail closed, directly report an error and prohibit silent rollback to the built-in version.

show

Parse the Skill and return the name, version, source, root directory, content hash, steps, guardrails, and runtime checks.

Skill discovery sequence

Skill resolution searches in the following order. Stop once found:
  1. explicit -Selector points to an existing directory and loads directly. If the path does not exist, an error will be reported and the search will not continue.
  2. project - <projectRoot>/.comet/skills/<selector>, ** takes precedence over built-in **, so the project can override the built-in Skill by name.
  3. builtin — assets/skills/<selector>。
  4. None of them were found → fail closed, no silent rollback.
The bare name must match ^[A-Za-z0-9][A-Za-z0-9._-]*$. When a project Skill overrides a built-in Skill by name, an invalid project Skill will fail directly and be prohibited from falling back. This can prevent silent downgrading when the custom version is invalid.

”Run Lifecycle”

run: Start

Do these things when starting up
  1. Reject the adaptive package (currently).
  2. Reject existing runs (in change mode, there can only be one Run per directory).
  3. ** Create an immutable snapshot ** - Freeze the entire Skill package to .comet/skill-snapshots/<hash>/ and hash lock it to Run’s skillHash.
  4. Initialize the Run state: currentStep = entry, status = running.
  5. Record the run_started trajectory event.
  6. The engine parses entry step, constructs the first action, passes guardrails, writes pending action, status = waiting.

continue: Submit the result or restore

With outcome (actual progress) :
Without outcome (view/redecide)
Upgrade the current Run to the new Skill version:
Upgrades are strictly guarded: there cannot be pending actions, Skill names must match, orchestration patterns must match, and the current step must still exist in the new version. After the upgrade, record the state_migrated event.
—upgrade cannot be combined - status, - summary, - artifact, - state are used in combination. - summary, - artifact, - state must be used in conjunction with - status.

check: Check as needed

--scope can be selected as progress, step or completion (default is progress). Read the runtime checks of comet/checks.yaml.
comet skill check only checks the completion degree of a certain Skill run and is not a general Skill assessment. To evaluate the capability of a Skill product, please use comet eval. For details, please refer to Runtime check.

Run state store

Run state is machine-owned. ** Do not edit manually **. Only run_id will be mirrored to .comet.yaml. Attached files (all in the change/run directory) : All file I/O operations are sandboxed within the “change/run” directory, and absolute paths, ~, drive letters, and .. path traversals are rejected. The write is atomic (write to tmp and then rename).

Text mode recovery prompt

In text mode, comet skill prints Pending action and Next: so you can see what to do after a paused Run or failed eval. For example, run outputs:
When check fails, it will prompt:

Next step

最后修改于 2026年9月4日