Output and exit codes

This page is the contract for scripts, CI jobs, and AI agents that run skc. See Use SkillCatalog in scripts and CI.

Where output goes

skc writes results to standard output and problems to standard error.

OutputStream
Success messages, reports, and listsStandard output
The JSON envelope of a command that succeededStandard output
Every error, including JSON error envelopesStandard error
What a failing check found: drift from skc deliver --check, pending changes from skc update --check, findings that fail skc validateStandard error
A warning about a command that still succeeded, such as Warning: delivery after mutation failed.Standard output, after the success message
A warning that does not come from a failed step, such as an item omitted by skc skill list, skc stack list, or skc bundle list, recovery files that skc sync found, edits put back after a sync that did not finish, no AI tool turned on after skc profile add or skc install, or a metrics address that skc catalog add did not saveStandard error
The review of uncommitted changes, the commit message prompt, and the cancel notice of skc syncStandard error
The line that names the Git host a clone, fetch, or push still waits for after five seconds, printed only when standard error is a terminal, and never with --json or --quietStandard error
The prompts of skc initStandard output
Diagnostic logsLog files only. See Logs.

In text mode, most errors start with a line Error: <outcome>, followed by the message and a Hint: line with the next step. In scripts, use the exit code or JSON output instead of this text.

skc skill list, skc stack list, skc bundle list, skc sync, skc profile add, skc install, and skc catalog add print their warnings in text mode only. So does every command that puts back the edits of a sync that did not finish.

--quiet hides the success summary of skc sync, skc deliver, skc install, skc uninstall, skc update, skc init, skc validate, skc status, skc catalog add, and skc catalog remove. For skc catalog add, that includes the line that names the catalog's metrics address. The warning about an address it did not save still prints.

JSON envelope

With --json, a command prints one JSON object on one line: to standard output when it succeeds, and to standard error when it fails. The object always has the same six keys, in no fixed order. A few commands print raw JSON instead. See Raw output.

skc catalog policy show acme-skills --json
{"command":"catalog.policy.show","data":{"catalog_id":"acme-skills","sync_policy":{"mode":"direct"}},"error":null,"exit_code":0,"outcome":"catalog-policy","status":"ok"}

A command that fails fills error:

skc sync acme-skill --json
{"command":"sync","data":null,"error":{"details":null,"message":"catalog(s) not found: acme-skill","recovery_hint":"Choose registered catalog ids from `skc status` and rerun `skc sync`."},"exit_code":17,"outcome":"catalog-not-found","status":"error"}
KeyValue
commandThe command with dots between its words, such as sync, catalog.add, or profile.show.
status"ok" or "error".
outcomeA stable name for what happened, such as sync-complete or dirty-tree. See Exit codes.
exit_codeThe process exit code. It is 0 when status is "ok".
dataThe result, or null. A failed skc sync puts its per-catalog report in data.result, and skc deliver --check puts the files it found in data.drift.
errornull on success. On failure, an object with message (text), recovery_hint (text or null), and details (an object or null). For dirty-tree, details lists the changed files of each catalog. When skc install or skc update registered a catalog before it failed, details.registered_catalogs lists it.

A command with two names reports the one you ran: skc install reports install, and skc profile install reports profile.install. The same holds for uninstall and init. The hints of skc install, skc uninstall, and skc init also name the spelling you ran.

skc proposal show, skc proposal discard, and skc hook run print some of their errors as plain text. With --json, those errors arrive with outcome set to internal-error, the command's own exit code, and the plain text in error.message. The tables below mark these outcome names "text only".

Raw output

These commands print their result without the envelope, even with --json:

CommandWhat it prints to standard output
skc help-jsonThe full command tree as JSON
skc profile resolve with --jsonOne versioned group result. See Profile resolve output.
skc completions <shell>A completion script for bash, zsh, fish, or powershell

Their errors still go to standard error.

Parse errors

When skc cannot parse its arguments, it prints the problem to standard error and exits 2. That covers an unknown command or flag, a missing or invalid value, and two flags that cannot be combined. Running skc with no command prints the help to standard error and also exits 2. --help and --version print to standard output and exit 0.

If the arguments include --json, the error is a JSON envelope on standard error, with command set to skc and outcome set to cli-parse-error:

skc settings enable vim --json
{"command":"skc","data":null,"error":{"details":{"parser_error_kind":"InvalidValue","rendered":"error: invalid value 'vim' for '<TARGET_ID>'\n  [possible values: claude-code, cursor, codex]\n\nFor more information, try '--help'."},"message":"error: invalid value 'vim' for '<TARGET_ID>'","recovery_hint":"Run `skc --help` for usage or `skc help-json` for the machine-readable command tree."},"exit_code":2,"outcome":"cli-parse-error","status":"error"}

Exit codes

0 means the command succeeded. Any other code means it failed or found a problem. The same number means different things in different commands. Read a code together with the command that returned it, or branch on outcome in JSON output.

Rows that ask you to run skc validate mean that a profile file (profile.yml) or a delivery record (delivery-manifest.json) in the SkillCatalog folder is damaged. See Report a problem.

Codes every command can return

ExitOutcomeWhat happened
0Depends on the commandThe command succeeded.
2cli-parse-error (with --json)The arguments could not be parsed. See Parse errors.
70internal-errorSkillCatalog could not finish, for example because it could not read its own files or write its output. The message names the cause.
70registry-unreadableThe catalog registry, catalogs.yml in the SkillCatalog folder, cannot be parsed. The hint names the file. skc status reports this as status-inconsistent-state instead. See The catalog registry cannot be read.
129, 130, 143noneA hangup, an interrupt such as Ctrl-C, or a termination signal stopped the command, and the Git commands it started.

skc completions and skc help-json return only these codes. When the reader closes the pipe early, as in skc help-json | head, both stop quietly and exit 0. Any other failure to write their output exits 70.

Codes shared by install, update, uninstall, and deliver

These codes mean the same in each command named in the row. The tables for those commands leave them out.

ExitOutcomeCommandsWhat happened
10checkout-path-not-canonicalinstall, update, uninstallThe current folder cannot be resolved to a real path.
11manifest-malformedinstall, update, deliverThe team or local manifest cannot be read or breaks a rule.
12manifest-path-not-canonicalinstall, update, deliverThe manifest's path cannot be resolved to a real file.
19manifest-missinginstall, update, deliverThe team manifest is missing: in the current folder, or for skc deliver, in a project profile's checkout.
46manifest-changedinstall, update, deliverThe team manifest changed during the run, before SkillCatalog wrote anything. Nothing changed; run the command again.
47changed-after-<effect>install, update, uninstall, deliverThe team manifest changed after SkillCatalog had written something. The JSON data names what was written (effect, commitment, locators), and error.recovery_hint says how to reconcile it.
47cleanup-failed-after-effectuninstall, profile deleteCleanup committed ownership or file removals, then another removal, keeping edited-file tracking, or deleting profile state failed. Inspect the carried state. If profile metadata is already gone, skc profile delete <profile-id> can clear the remaining delivery records without removing files from the checkout.
47manifest-write-failedinstall, update, deliver, uninstall, profile deleteManifest persistence failed after state committed or may have committed. Cleanup keeps profile metadata and gives steps to inspect and finish removing its files. Moving a project's old entries from profile.yml into the local manifest reports it when the entries were written but clearing profile.yml failed.

The <effect> part is one of local-yaml, local-privacy, installed-clear, profile-save, catalog, catalog-refresh, delivery-target, or delivery-manifest, and names what SkillCatalog had written.

skc sync

ExitOutcomeWhat happened
0sync-completeEvery selected catalog synced. Delivery ran, unless you passed --no-deliver.
0no-catalogsNo catalogs are registered. Sync removes profiles of missing project checkouts unless you passed --no-deliver.
0NoneYou left a commit message empty at the prompt, or input ended. Sync prints Sync cancelled; nothing was synced. and changes nothing.
10empty-message--message is empty after trimming.
11commit-message-too-longThe message is over 1,000 bytes after trimming, from --message or the prompt.
12missing-configGit cannot read a nonempty user.name or user.email in the working folder, and sync needs to commit.
17catalog-not-foundA catalog id you passed is not registered.
25delivery-failedThe catalogs synced, but delivery reported a problem or stopped with an error. See skc deliver for what counts as a problem.
25proposal-reconciliation-blockedThe catalogs synced, but SkillCatalog could not lock, read, or save the proposal records of a review-branch catalog, so delivery did not run.
33dirty-treeA catalog has uncommitted changes, you passed no --message, and standard input or standard output is not a terminal. The message names which one.
34another-sync-runningAnother process holds the lock of a catalog: a Git operation in its clone, or a sync or save by SkillCatalog. The message names the busy catalog.
41sync-partialSome catalogs synced and others failed.
44sync-all-failedEvery selected catalog failed.

When sync reaches delivery, data.result.delivery.removed_profiles lists project profiles it removed because their checkout folders were gone. Each row holds profile_id and directory. --no-deliver skips this cleanup. If cleanup fails, sync lists the profile under data.result.delivery.failures and continues delivery for the other profiles. When the catalogs synced successfully, sync exits 25 with delivery-failed.

A failed catalog stops delivery for the whole run. A catalog whose commit fails is not pulled or pushed, and the other catalogs still pull and push. For example, a catalog fails when:

  • its Git host cannot be reached, or refuses the push. For a refused push, the catalog's report.push.message in JSON holds the host's reason.
  • its pre-commit check refuses the commit.
  • a pull conflicts. The message names every file that Git could not merge.
  • its clone's own Git data is missing or damaged, so Git would use another repository. Nothing is committed or pushed.

A review-branch catalog also fails when:

  • an edit cannot be merged onto the proposal already waiting for that item. The edit stays in the clone, uncommitted.
  • the Git host refuses a proposal push. Edits from this run go back into the clone, uncommitted. Local commits on the primary branch stay there, and the next sync tries again.
  • local commits on the primary branch conflict with new commits on origin. The message prints a git -C '<clone>' reset --soft <commit> command that stages only those local commits.
  • its clone has an unfinished merge, rebase, or cherry-pick.

See Sync refuses one catalog and Local commits conflict with the Git host.

When a catalog fails, or another catalog stops the run, each catalog's line says whether the run committed its changes and how many local commits did not reach the Git host, as in up_to_date, committed, 1 commit not pushed because another catalog failed. The count includes commits that an earlier sync left, so a sync that commits nothing still names them, and its first line does not count that catalog as synced. With --json, each catalog's commit holds the commit step's status (committed, nothing_to_commit, not_needed, failed, or skipped), and for a commit the run made, its commit_id and whether the run pushed it. Each catalog's unpushed_commits holds the count when a failed pull stopped the pushes, and null otherwise. Each catalog's report.push.commits counts the commits the run sent to the Git host, report.push.status is pushed when the run sent a proposal from a review-branch catalog, and report.push.proposals lists each such proposal with its proposal_id, branch, and title.

Sync delivers only when every selected catalog committed, pulled, and pushed. When that delivery reports a problem, skc sync exits 25, as skc deliver does, and data.result.delivery holds the report in JSON. Edited files that delivery kept are not a problem, so sync still exits 0 for them. With --json, when some reported files already match the catalog version, error.recovery_hint names skc deliver <profile-id> --adopt-matching.

When delivery stops with an error, data.result.delivery_error holds the outcome, exit code, and recovery hint that skc deliver gives for that error. For example, when no profile could be delivered because a proposal's state is unknown, that is delivery-blocked-by-remote-status-unknown and 45.

In text mode, sync ends with one warning line for each synced catalog that has recovery files from syncs that did not finish. The warning does not change the exit code. See Recover unpublished changes.

skc deliver

ExitOutcomeWhat happened
0delivery-completeEvery selected profile and skill was delivered, no file failed, and no two catalogs delivered the same slug. Edited files it kept are listed. With --check: no delivered file changed.
0delivery-dry-run-complete--dry-run computed the changes without writing. It found nothing to withhold and no same-slug conflict. Existing files that SkillCatalog did not write are counted on a Blocked: line, with the command that takes over the ones that match.
10user-input-invalidThe profile id is not valid, or no profile has it.
20install-path-conflictTwo profiles would write the same file.
24profile-write-failedSkillCatalog could not remove a project profile whose checkout folder is gone. The other profiles still deliver. The failure is listed in data.delivery.failures.
25delivery-failedDelivery finished with a problem, and data.delivery lists each one: a file it could not write, a file SkillCatalog did not write at a delivery path, a withheld profile or skill, or two skills from different catalogs with the same slug. A dry run exits 25 when its plan withholds a profile or skill, rejects an unsafe parent, or has a same-slug conflict, and lists them in data.preview.
26delivery-check-drift--check found delivered files that were edited, deleted, cannot be read, or have an unsafe parent, or a delivery folder that cannot be found while its checkout still exists.
28delivery-manifest-malformed, delivery-manifest-unreadableA profile's delivery record (delivery-manifest.json) is damaged. The hint says to remove it and rebuild it with skc deliver <profile-id> --adopt-matching.
43delivery-io-errorDelivery could not read or write what it needed because of a filesystem failure. Unsupported skill payloads are withheld with exit 25.
43bound-catalog-clone-missingA profile uses a catalog that has no registered, readable clone.
43profile-import-invalidThe profile's saved consumer imports cannot be composed, or the imports it selects are not prepared on this machine. For imports a teammate changed in a team manifest, the message names skc update in the checkout, which prepares them. Otherwise inspect them with skc profile import show --profile <profile-id>, then repair or prepare them with skc profile import update --profile <profile-id>.
43profile-revision-conflictThe profile's own revision choice for a catalog disagrees with its manifests or imports. The hint names skc profile catalog set <catalog-id> --profile <profile-id> --unpin, which drops the choice.
43too-many-delivered-filesThe profile delivers so many files that its delivery record would grow past 10 MiB. Nothing was written for it. Remove entries, or turn off a tool, and deliver again.
44delivery-composition-gapA stack or bundle includes a skill that refers to a skill outside it.
45delivery-blocked-by-remote-status-unknownA proposal on a review-branch catalog has an unknown state. See Delivery while proposals are pending.
45delivery-blocked-by-metadata-failureA proposal record of a review-branch catalog cannot be read. Nothing is delivered.
46profile-changedAnother process changed or deleted the profile after delivery started planning it and before it wrote anything for it, for example with skc profile remove, skc profile delete, or skc uninstall. Nothing was written for that profile; run the command again.
47delivery-manifest-save-failed-after-effectDelivery files or their ownership record committed, but saving the record did not finish.
47delivery-failed-after-effectDelivery changed files for earlier profiles, then failed for a later one. The message names the changed files and the error; the hint says how to continue.
10, 24, 43local-child-entry-divergence and local-manifest-migration-repair (10), home-profile-parent-metadata (24), profile-parent-path-invalid and profile-catalog-id-undeclared (43)A profile file (profile.yml) is damaged, or points at a team manifest that cannot be used. Run skc validate and include its output when you report the problem.

Every delivery of all profiles removes project profiles whose checkout folders are gone and reports the removals. This includes delivery after settings changes, catalog saves, catalog refreshes and catalog removal. Scoped skc deliver <profile-id> also removes its missing project checkout. A missing checkout produces no failed delivery row or warning. A successful removal leaves the exit code unchanged. If SkillCatalog cannot remove a profile, the report lists that failure and delivery continues for the other profiles. Status, validation, --check, and --dry-run report the missing checkout as information and leave the profile in place.

In JSON, data.delivery.removed_profiles lists each removed profile's profile_id and directory. skc settings enable and skc settings disable return the same rows in data.removed_profiles and name removals in text output. If delivery or sync fails after removing profiles, error.details.removed_profiles lists the completed removals when the error ends the run without a delivery report.

A check lists missing checkouts under data.drift.missing_checkout_profiles. A dry run lists them under data.preview.missing_checkout_profiles, or under error.details.missing_checkout_profiles if another error stops the preview. Each of those rows adds a recovery_hint.

When a project checkout exists but its --target-dir folder cannot be found, skc deliver <profile-id> exits 43 with profile-parent-path-invalid. The hint says to mount the folder or run skc install --target-dir . in the checkout. See A profile's folder cannot be found.

skc deliver <profile-id> also exits 43 with profile-parent-path-invalid when the profile's team manifest names a different profile id than the one the profile was installed from. See A checkout's team manifest names another profile id.

For tracked files with unsafe parents, data.drift.unreadable adds reason: "unsafe_parent_path" and error naming the cause. Status lists the same problem in data.summary.drift.entries and keeps exit 0 when drift is its only finding. Checks leave the links, target files and delivery records unchanged.

Partial delivery

When a profile or a skill cannot be delivered for one of the reasons in the table below, skc deliver withholds it, delivers the rest, and exits 25. A withheld skill keeps the files it delivered earlier. When no profile with entries could be delivered, the run instead exits with the error of the first withheld profile, such as bound-catalog-clone-missing (43), too-many-delivered-files (43), delivery-composition-gap (44), or delivery-blocked-by-remote-status-unknown (45). A profile with no entries does not count. Unsupported skill payloads return 25 even when every selected skill is withheld.

Only the reasons in the table withhold part of a run. Other filesystem errors and unreadable proposal records stop the whole run for every profile.

Each problem is a row in data.delivery.failures (data.preview.failures for a dry run), with the profile_id, the install_path, the reason, and the remedies that apply:

reasonWhat happened
unmanaged_target_existsA file that SkillCatalog did not write is at a delivery path. Delivery leaves it. When it matches the catalog version, remedies includes adopt, and skc deliver --adopt-matching takes it over.
broken_entryAn entry or consumer import cannot be resolved, for example a misspelled slug, a changed import that needs preparation, or a removed catalog without a usable saved snapshot. In skc deliver without a profile id and in skc sync, it also means that a project's team manifest names a different profile id than the one its profile was installed from. The whole profile is withheld.
checkout_missingA project profile's checkout exists, but its --target-dir folder cannot be found. The whole profile is withheld.
project_profile_removal_failedThe checkout folder is gone, but SkillCatalog could not remove its project profile.
too_many_delivered_filesThe profile delivers so many files that its delivery record would grow past 10 MiB. The whole profile is withheld, and none of its files is written.
unsupported_skill_payloadAn eligible file is special or over 10 MiB, or Git ignores the required root SKILL.md. That skill is withheld.
symlink_in_skillThe skill's folder in the catalog holds a symbolic link. That skill is withheld.
blocked_remote_status_unknownThe skill comes from a review-branch catalog with a proposal whose state is unknown. That skill is withheld.
unsafe_parent_pathA tool or skill parent folder is a symbolic link, is not a folder, or cannot be inspected safely. Repair the folder before retrying. Previews report this before file matching or saved Keep choices.
target_inspection_failed, directory_create_failed, file_write_failed, file_finalize_failed, removal_failedDelivery could not check, write, or remove one file.

--adopt-matching takes over only files that are exactly what delivery would write. It never overwrites a file with different content. When some rows can be taken over, the text output and the JSON error.recovery_hint of skc deliver, skc install, skc update, and skc sync name the command.

skc install and skc profile install

ExitOutcomeWhat happened
0installed-freshThe project profile was created and delivered.
0installed-idempotentThe project profile already existed. SkillCatalog registered any declared catalog that this machine lacked, pulled the catalogs, and delivered the profile again.
13manifest-reference-missingAn entry names a skill, stack, or bundle that the catalog does not have.
14manifest-reference-wrong-kindAn entry's kind does not match the item, for example stack for a skill.
16catalog-source-invalidA catalog source is not a supported remote Git URL.
16missing-git-identityA declared catalog repository is empty, and committing its starter files needs a Git name and email.
20install-path-conflictAnother profile writes the same files. When that profile belongs to another checkout and delivers into this one through its --target-dir folder, the hint names skc install --target-dir . to run in that checkout.
22profile-revision-conflictThe profile's own revision choice for a catalog disagrees with the revision the manifests select. The hint names skc profile catalog set <catalog-id> --profile <profile-id> --unpin, which drops the profile's choice.
23catalog-clone-unreadableA catalog clone cannot be read.
23catalog-registry-durability-uncertainA catalog registration was saved, but its survival through a crash is uncertain. The catalog and clone stay. Check the disk, then rerun the install command. See skc catalog.
24profile-write-failedThe profile could not be saved, or no profile id could be chosen for it; the message names the cause and the fix. When another install changed the installed profiles at the same time, run the command again. When every id from the first one the message names up to its -1000 form is taken, delete profiles you no longer use with skc profile delete <profile-id>. When a folder in the SkillCatalog folder that every profile id shares cannot be checked, fix or move the folder the message names. When the checkout's profile has an invalid manifest-binding.yml, see A profile's manifest binding is invalid.
25delivery-failedThe profile was saved, but delivery reported a problem or stopped with an error. See skc deliver for what counts as a problem.
26install-url-mismatchThe manifest gives a catalog a different source than the one registered.
27catalog-integrityA catalog clone fails its integrity checks.
28install-intrinsic-id-mismatchThe source's catalog.yaml has a different id than the manifest's key. If rollback fails, the message also names the retained clone and the failure. Check the registration before removing those files.
29checkout-directory-conflictMore than one profile claims this checkout, and the hint names skc profile delete <profile-id> for each. When one of them is the Home profile, because the checkout is your home folder, the hint says to check the repository out in another folder instead. Or the checkout's profile was installed from a team manifest profile id other than the one its team manifest names now. Then error.details has profile_id, bound_manifest_profile_id, and manifest_profile_id, and the hint names skc uninstall followed by skc install.
30target-directory-invalidThe --target-dir folder does not exist or cannot be used.
40catalog-clone-failedA declared catalog, or the repository of a selected catalog revision or import, could not be cloned or fetched. The message names the cause, such as a Git host that cannot be reached.
42catalog-refresh-failedA registered catalog could not be pulled before delivery.
11, 24profile-catalog-id-undeclared (11), local-child-entry-divergence and local-manifest-migration-repair (24)A profile file (profile.yml) is damaged. Run skc validate and include its output when you report the problem.

After a failed pull, install and update check the team manifest again if a catalog changed or may have changed. If the manifest still matches, the command reports the original catalog-refresh-failed (exit 42). If the manifest changed, the command reports changed-after-catalog-refresh (exit 47) and includes the refresh failure. The JSON commitment is maybe-committed when no advance is proven. When the command also registered a catalog, it reports changed-after-catalog (exit 47) for the registration and describes any possible refresh in the recovery hint.

The JSON output of a successful install has data.profile_id, the id of the checkout's project profile, and data.manifest_profile_id, the team manifest's profile id it was installed from. They differ when the profile was created under another id because the team manifest's id was taken at the time, for example in a second checkout of the repository. The text output then adds a line after Installed profile or Refreshed profile that names both ids. See Use the skills in a second checkout.

skc install and skc update clone and register each catalog that the manifests declare and this machine has not registered. For each one they print Registered catalog '<catalog-id>' from <source> (declared in <manifest path>). on standard output, also with --quiet, and also when the run fails afterwards. When the catalog names a metrics address, the next line names it too.

The JSON output of a successful skc install, or of skc update without --check, always has data.registered_catalogs. It lists these catalogs and is empty when there are none. If the run fails after registering a catalog, including with internal-error, error.details.registered_catalogs lists it instead. Each entry has catalog_id and source, and metrics_url when the catalog names a metrics address.

skc update

ExitOutcomeWhat happened
0project-updatedSkillCatalog registered any declared catalog that this machine lacked, pulled the catalogs, and delivered the project profile.
0up-to-date--check: delivery would change nothing. Files you edited, which skc update keeps, are listed with the ways to keep or replace them.
15missing-install-stateNo project profile is installed for this checkout. Run skc install first.
16installed-profile-missingA profile claims this checkout, but its record is missing.
17missing-registered-catalog-id--check: a catalog the manifests declare is not registered on this machine. Run skc update to register and clone it.
17registered-catalog-source-mismatchThe registered catalog uses a different source than the manifest.
18manifest-profile-mismatchThe checkout's installed profile has a different bound id or team manifest path, or the checkout is claimed by a personal or Home profile. For a project profile, the hint names skc uninstall followed by skc install; if the id changed, it also suggests switching back to a branch with the bound id. For a personal profile, the hint names skc profile delete <profile-id> followed by skc install. For Home, check out the repository in another folder.
22profile-revision-conflictThe profile's own revision choice for a catalog disagrees with the revision the manifests select, for example after the team changed it. The hint names skc profile catalog set <catalog-id> --profile <profile-id> --unpin, which drops the profile's choice.
23registered-catalog-unreadableA registered catalog's clone cannot be read.
24update-needed--check: delivery would create, update, or remove files.
24delivery-blocked--check: files that SkillCatalog did not write are at delivery paths, so skc update would fail. The output lists each file, and data.needs_update is false.
24revision-preparation-neededThe manifests select a catalog revision or import that this profile has not prepared, and nothing was saved. skc update reports it when preparing the selection fails, for example because its repository cannot be reached; --check reports it without fetching. Run skc update in the checkout once the repository can be reached.
24profile-write-failedWith or without --check: the checkout's profile has an invalid manifest-binding.yml. The hint names the fix; see A profile's manifest binding is invalid.
25delivery-failedDelivery reported a problem or stopped with an error. See skc deliver for what counts as a problem. With --check: delivery would withhold a skill or the profile, or reject an unsafe parent. This wins over 24.
27catalog-integrityA catalog clone fails its integrity checks.
29checkout-conflictMore than one profile claims this checkout.
42catalog-refresh-failedA catalog could not be pulled, for example because its Git host cannot be reached.
30local-child-entry-divergence, local-manifest-migration-repairThe project profile's file (profile.yml) is damaged. Run skc validate and include its output when you report the problem.

skc update --check does not pull catalogs, so it never returns 42.

When a selected branch has newer commits on this machine than the saved commit, skc update and skc update --check list it in data.selected_branches_behind, with catalog_id, branch, saved_commit, fetched_commit, and commits_behind, and name the commands that deliver the newer commits. The list does not change the outcome or the exit code.

When skc update cannot register a declared catalog, it reports catalog-refresh-failed (42). A declared id that differs from the id of the cloned catalog reports manifest-malformed (11) instead.

skc init and skc profile init

ExitOutcomeWhat happened
0manifest-writtenThe team manifest was written.
10user-input-invalidA flag value is invalid, or a catalog id is not registered and has no --source. When an id derived from --source is invalid, set the id with --catalog-id. This outcome also covers missing required input when standard input is not a terminal, --json prevents prompts, or input ends early. Without a terminal, the command fails at once and names the missing flags.
11manifest-malformedThe values would make an invalid manifest.
11manifest-reserved-idThe profile id is home.
18manifest-existsThe folder already has a team manifest.
27manifest-write-failedThe manifest file could not be written.

skc uninstall and skc profile uninstall

ExitOutcomeWhat happened
0uninstalledThe project profile and its delivered files were removed. Edited files are kept and listed.
15no-profile-at-checkoutNo project profile is installed for this checkout.
25delivery-failedThe cleanup could not start, for example because SkillCatalog could not read or lock the installed profiles. Nothing was removed, and the profile stays installed, so you can run the command again. A failure after the cleanup started, such as a delivered file that cannot be removed or edited files that cannot be recorded, is exit 47 cleanup-failed-after-effect.
29checkout-directory-conflictMore than one profile claims this checkout.

skc validate and skc hook run

The team manifest check reports group-member-not-in-team-profile for each skill in a group that the effective team profile does not select, including a skill from a group stack. The diagnostic names the group, catalog id, and skill slug. Skills selected through stacks, bundles, and consumer imports count.

ExitOutcomeWhat happened
0validate-reportNo findings, only info findings, or only warnings with --warnings-ok.
30validate-reportErrors, or warnings without --warnings-ok, and no finding comes from the team manifest check. Drift is an error.
31validate-reportThe same, and at least one finding comes from the team manifest check.
64hook-protocol (text only)skc hook run received a --protocol number other than 1. A value that is not a number is a parse error.

skc hook run, which a catalog's pre-commit hook calls, checks only catalog files and allows warnings. It never checks delivered copies or team or local manifests; these therefore never block a commit. Its catalog errors return 30.

skc validate --profiles reports profile-orphaned-delivery when a delivery record, cleanup stamp, or delivery intent remains without a profile file. Run skc install in the checkout to recover its profile.

skc profile delete <profile-id> clears the records and keeps delivered files in place. If you install again in the same checkout, skc install saves the profile but delivery reports those files as unmanaged and exits 25. Run skc deliver <profile-id> --adopt-matching to take over the files that match.

A folder without a profile file or delivery state is reported as profile-folder-reusable and needs no action.

skc validate --profiles reports profile-slug-conflict, an error, when two entries of one profile deliver different skills with the same slug.

skc validate and skc status report profile-manifest-binding-mismatch when a checkout's team manifest names a profile id different from the one the installed profile is bound to. This finding alone exits 30 in validate and 32 in status. The hint says to run skc uninstall and then skc install in that checkout, or switch back to a branch whose manifest names the bound id.

skc validate and skc status report catalog-revision-unavailable, an error, for a catalog revision or consumer import that a manifest or profile selects and that this machine has not prepared. The hint names the command that prepares it: skc install or skc update in the checkout, or skc profile catalog update --profile <profile-id> or skc profile import update --profile <profile-id> for a Home or personal profile.

skc status

ExitOutcomeWhat happened
0status-reportThe report printed. Drift is listed in it and does not change the exit code.
32status-inconsistent-stateProfile files, settings, the catalog registry, or registered catalogs have errors or warnings, or two entries of one profile deliver different skills with the same slug. Run skc validate for details.

skc catalog

skc catalog remove clears project profiles whose checkout folders are gone before it checks whether the catalog is in use. In JSON, data.removed_profiles lists those removals on success. If catalog removal fails after cleanup, the same list appears in error.details.removed_profiles. Each row has profile_id and directory.

CommandExitOutcomeWhat happened
add0catalog-added, catalog-already-registeredThe catalog is registered and cloned. JSON output holds the metrics address the added catalog names in data.metrics_url, the warning about a --metrics-url address that was not saved in data.metrics_url_warning, and the warning about starter files that could not be pushed in data.initial_push_warning. Each is null otherwise; for catalog-already-registered, data.metrics_url is always null and no line names the catalog's metrics address, because nothing was added.
add16catalog-source-invalidThe source is not a supported remote Git URL, or it conflicts with a registered catalog.
add16missing-git-identityThe repository is empty, and committing its starter files needs a Git name and email.
add23catalog-clone-unreadableThe clone cannot be used, for example because the repository has commits but no catalog.yaml at either the repository root or .skillcatalog/catalog/.
add23catalog-registry-durability-uncertainThe registry was replaced, but syncing its folder failed, so survival through a crash is uncertain. The saved registration and clone stay. Check the disk, then rerun skc catalog add <source> to check the saved registration.
add40catalog-clone-failedCloning failed: a wrong URL, no access, or a Git host that cannot be reached.
remove0catalog-removedThe catalog is unregistered and its clone deleted, unless you passed --keep-clone. In a terminal, without --json, the command asks first when the clone holds changes that are not on the Git host; declining also exits 0 and keeps the catalog.
remove17catalog-not-foundNo catalog has that id.
remove24profile-write-failedSkillCatalog names the profiles it could not remove after their checkout folders disappeared. The catalog stays registered.
remove32catalog-remove-in-useProfiles use the catalog: through their own entries, a checkout's local manifest, or a team manifest. The hint lists one skc profile remove command per entry. --force removes it anyway; see delivery after catalog removal.
remove, policy set32catalog_read_onlyThe Essentials catalog cannot be removed or changed.
remove33catalog-removed-clone-cleanup-pendingThe catalog is unregistered, but its clone could not be deleted. Run the command again to retry.
remove33catalog-registry-durability-uncertainRegistry removal is visible, but syncing its folder failed, so survival through a crash is uncertain. The clone is retained at its original path, or in quarantine if restoration fails. JSON error.details records registry_removal_published, durability_confirmed, clone_removed, retained_clone_path, and clone_restore_error. Check storage and inspect registration before removing retained files separately.
remove35catalog-remove-local-workWithout a terminal, or with --json, the clone holds changed or untracked files, unpushed commits, or stash entries, or Git could not check it, so the catalog stays registered. error.details counts each kind of work, or names the Git error as check_error. Sync first, or pass --discard-local-work to delete the work or --keep-clone to keep the folder.
list0catalogs-listedThe registered catalogs printed.
stats0catalog-stats-shownThe counts printed.
stats, changes17catalog-not-foundNo catalog has that id.
stats, changes23catalog-clone-unreadableThe catalog's clone cannot be read.
list, stats16, 23, 40catalog-source-invalid, catalog-clone-unreadable, catalog-clone-failedThe registration or clone of a catalog is broken. The message names it.
changes0catalog-changes-listedThe uncommitted changes printed.
changes70catalog-read-failedThe changes could not be read.
policy show, policy set0catalog-policyThe sync policy printed, after any change.
policy show, policy set10catalog-policyThe branch values are invalid, for example --review equals --primary.
policy show, policy set17catalog-not-foundNo catalog has that id.

skc catalog add checks --metrics-url while it reads its arguments, so an invalid address is a parse error, and nothing is cloned.

skc profile

CommandExitOutcomeWhat happened
All0profiles-listed, profile-shown, profile-created, profile-deleted, profile-entry-added, profile-entry-removed, profile-reorderedThe command succeeded.
show, create, delete, add, remove, reorder10user-input-invalid, profile-not-found, duplicate-priority-entry, entry-catalog-unregisteredAn argument is invalid, the profile does not exist, the entry is already in the profile, or a catalog is not registered. Catalog ids must have 2 to 64 characters. Before saving the profile, create checks the catalog ids in --catalog-id and --entry. It gives the same outcome for an unregistered id in either flag.
add10skill-not-found, stack-not-found, bundle-not-foundThe catalog has no item of that kind with that slug. When the slug exists as another kind, the message says so.
show --effective10effective-parent-invalidThe project profile's team manifest cannot be used.
show --effective10effective-import-invalidThe saved consumer imports cannot be composed, or the imports the profile selects are not prepared on this machine; the message names the command that prepares them. Inspect and repair them with skc profile import show --profile <profile-id> and skc profile import update --profile <profile-id>.
create, add, remove, reorder23catalog-clone-unreadableA catalog's clone cannot be read.
create, delete, add, remove, reorder24profile-write-failedThe profile could not be saved or deleted. For create, it also means that every id from the profile's slug up to <slug>-1000 is taken, or that a folder in the SkillCatalog folder that every profile id shares cannot be checked; the message names the fix.
create24profile-seeded-persistence-failedThe entries given with --entry could not be saved, so the profile was not created. When removing the partial profile also failed, the message says so.
add, remove, reorder24manifest-missing, manifest-malformed, manifest-path-not-canonical, manifest-changed, manifest-write-failedA project profile's team or local manifest is missing, invalid, changed during the run, or could not be written. The message names the file.
add, remove, reorder47changed-after-<effect>, manifest-write-failedAs for skc install. See Codes shared by install, update, uninstall, and deliver.
add, remove, reorder10, 24local-child-entry-divergence and local-manifest-migration-repair (10), home-profile-parent-metadata (24)A profile file (profile.yml) is damaged. Run skc validate and include its output when you report the problem.

skc profile add, remove, and reorder exit 0 when the profile changed, even if the delivery that follows fails. They print the warning after the success message, and JSON output holds it in data.delivery_warning. When that delivery had already changed files before it failed, they exit 47 instead, with the delivery's outcome, such as delivery-manifest-save-failed-after-effect, and its recovery hint. When no AI tool is turned on, skc profile add and skc install also print a warning on standard error that nothing was delivered.

The profile metadata in the JSON output of skc profile list, show, create, add, remove, and reorder has manifest_profile_id: the team manifest's profile id that a project profile was installed from, and null for the Home profile and personal profiles. It differs from id when another profile already used the team manifest's id at install, as for a second checkout. The profiles in skc status JSON, under data.summary.profiles, have the same field.

Imported entries in profile show --effective add import_provenance. It contains the containing file's source, path, and resolved_commit, its node index, and its introducing edges indices. Each introducers item contains edge, requested_revision, and parent (the parent node record, or null for a root). The indices refer to the response's saved import_graph. Ordinary entries omit this field.

skc profile resolve

On success with --json, the command prints a single object with schema_version: 1, group, status, members, and supporting_skills. An absent group returns status: "missing". An empty group returns status: "resolved" and empty arrays. Both exit with code 0.

members lists the skills in group order, with each stack expanded in place. Each (catalog_id, slug) pair appears once, at its first occurrence. The command follows same-catalog @skill: references from each skill and its exported companion files. Each referenced skill must belong to the team profile. A referenced group member stays in members, even if a later stack supplies it. Only additional skills reached through references appear in supporting_skills.

Every skill record has catalog_source, catalog_id, slug, commit, title, description, markdown, and files. The commit is the full Git commit ID. The markdown field contains the exact UTF-8 text of the committed SKILL.md, including its front matter. Each record in files carries path relative to that skill's folder and the file's exact markdown. For a one-file skill, markdown is the committed skills/<slug>.md and files is empty.

The command exports every committed regular .md and .markdown file in the skill folder, in path order. Links and path references do not affect which files it exports. The export permits up to 1 MiB per Markdown file, 4 MiB of Markdown in total, 2,048 Markdown files, and 16 MiB of JSON output.

ExitOutcomeWhat happened
10user-input-invalidThe group name is invalid or the manifest path cannot be read as a file. The hint names the flag to fix.
11profile-group-unresolvedThe team manifest, consumer import, catalog revision, group member, or skill reference could not be resolved, including a branch, tag, or commit that the source does not have. An export can also exceed a size limit.
16catalog-source-invalidA catalog or consumer import source is absent from the allowed sources. Pass each approved source with --allow-source.
40catalog-clone-failedGit could not fetch a source for another reason. This includes login, access, missing repositories, untrusted SSH host keys, and failures SkillCatalog does not recognize. A full disk, a lock conflict, or an HTTP 4xx response other than 429 reports this outcome even when Git also lost its connection. When Git needs a login, use SSH credentials or provide a GIT_ASKPASS program.
42profile-group-timeoutResolution reached the deadline set with --timeout-seconds.
42profile-group-source-unreachableGit timed out, could not connect, lost its connection, or received an empty reply, HTTP 429, or an HTTP 5xx response from the source. The message names an HTTP error's status or says the host closed without replying. Check connectivity and retry.
70internal-errorThe temporary snapshot folder or command output could not be created.

skc profile import

These commands use envelope names profile.import.set, profile.import.remove, profile.import.show, and profile.import.update. See Use a library's consumer profile for examples.

CommandExitOutcomeWhat happened
show0profile-imports-shownCurrent roots and their reachable saved dependencies were inspected without fetching.
set --dry-run, update --dry-run0profile-imports-previewedSnapshots were prepared and changes were previewed; selection and delivery remain unchanged.
set, remove, update0profile-imports-savedThe selection was saved. Delivery remains unchanged.
set, remove10profile-import-invalidThe source, selector, or consumer path supplied to the command is invalid.
All10profile-import-failedSelection inspection, preparation, or publication failed before a reported committed effect. This includes a missing profile, an unknown owned import, conflicting declarations, unavailable required content, or changed preparation authority.
set, remove, update47changed-after-<effect>, manifest-write-failedA write committed before the command failed. Inspect the effect and follow its recovery guidance.

Missing or conflicting revision flags are parse errors. Set requires exactly one of --branch, --tag, and --commit. Only set and update accept --dry-run; a preview can fetch and cache snapshots.

Successful show output has these data fields:

FieldValue
profile_idThe consuming profile's id.
importsInspection rows for current roots and their reachable saved dependencies.
import_graphThe saved import graph, or null.
delivery_performedAlways false.

Each inspection row contains source, path, requested_revision, resolved_commit, origin, is_root, edge, read_only, and available. origin is profile, local, or team, according to the root's owner. A root without a matching saved selection has resolved_commit: null and edge: null. Otherwise, edge indexes the saved graph. Transitive rows have is_root: false and are always read-only. Team roots are also read-only. available reports whether the saved consumer file can be read; an unavailable row remains inspectable.

Successful set, remove, and update output has data.profile_id, preview, import_graph, dry_run, and delivery_performed: false. The graph is the prepared candidate, including when the command only previews it. The preview contains:

FieldValue
profile_id, delivery_directoryThe consuming profile and its delivery folder.
revisionsConsumer selections, each with source, path, requested_revision, previous_commit, and resolved_commit.
catalog_revisionsCatalog selections with the same revision fields and catalog_id in place of path.
previous_entries_availableWhether previous effective entries could be read. When false, the entry comparison is incomplete.
added_entries, removed_entriesEntry records with catalog_id, kind, and slug.

In revision changes, previous_commit: null means there was no saved choice; resolved_commit: null means the choice was removed. Revision objects use the catalog revision format.

For exit 47, data includes kind, manifest_path, effect, commitment, locators, and recovery_guidance. manifest-write-failed also includes write_error. The same guidance appears in error.recovery_hint. A local-manifest write can be saved while the previous installed graph remains; an installed-profile write can already be saved despite the error. See failed selection saves. Catalog revision commands preserve these committed-effect outcomes too.

skc profile catalog

These commands use envelope names profile.catalog.set, profile.catalog.show, and profile.catalog.update. None of them deliver files.

CommandExitOutcomeWhat happened
set, update0catalog-revisions-savedThe catalog revision selection was saved.
show0catalog-revisions-shownRequested revisions and saved commits were inspected without fetching. An unavailable snapshot is reported in its row.
set10catalog-revision-invalidThe branch, tag, or commit supplied to the command is invalid.
All10catalog-revision-failedInspection or selection failed before a reported committed effect. This includes a missing profile, conflicting revisions, unavailable required content, or a change during preparation.
set, update47changed-after-profile-saveThe project profile selection was saved before the team manifest changed. Inspect the saved profile and follow the recovery hint.
set, update47manifest-write-failedA selection save reported a failure after committing or possibly committing a write. Inspect the reported effect and follow the recovery hint.

All three commands require --profile. Set requires exactly one of --branch, --tag, --commit, and --unpin. Missing or conflicting arguments are parse errors. The codes shared by every command also apply.

skc settings

CommandExitOutcomeWhat happened
show, list0settings-shownThe settings printed.
enable, disable0delivery-target-enabled, delivery-target-disabledThe tool was turned on or off and delivery ran. A delivery problem prints a warning and does not change the exit code; JSON output holds it in data.delivery_warning.
telemetry0telemetry-settings-shownThe usage metrics switch and the catalogs with a metrics address printed, after any change. A catalog registry that cannot be read does not fail the command.
enable, disable10user-input-invalidThe settings change was rejected.
enable, disable47delivery-manifest-save-failed-after-effect, delivery-failed-after-effect, changed-after-<effect>The tool was turned on or off, and the delivery that followed changed files and then failed. The message names the files; the hint says how to continue.
All70settings-unreadablesettings.toml cannot be read or parsed.

An unknown tool id is a parse error, and so is skc settings telemetry with both --enable and --disable.

With --json, skc settings telemetry returns data.enabled and data.metrics_catalogs. That is one {catalog_id, name, metrics_url} object for each catalog with a metrics address, or null when the registered catalogs cannot be read.

skc proposal

CommandExitOutcomeWhat happened
list0proposals-listedThe proposals printed.
show0proposal-shownThe proposal printed.
refresh0proposals-refreshedSkillCatalog checked each proposal on the Git host. One it could not reach is marked remote_status_unknown, and records it could not save are listed in data.errors.
discard0proposal-discardedThe record was discarded.
verify-clean0verifiedEvery review-branch clone passed.
verify-clean1invariants-violatedA review-branch clone failed a check, and data.catalogs lists each failure. The checks include that the clone is on its primary branch, and level with its local copy of origin/<primary>. The command does not fetch.
discard2not-applicable, already-discarded, refresh-failed, discard-not-applicable (text only)The catalog does not use proposals, the proposal is already discarded, or its remote state could not be checked. discard-not-applicable: its state does not allow discarding, so run skc sync instead.
show, discard3not-found (text only)No active proposal has that id.
All70internal-errorAmong other causes, a --catalog-id that is not registered.

skc skill, skc stack, and skc bundle: list and show

ExitOutcomeWhat happened
0skills-listed, skill-shown, stacks-listed, stack-shown, bundles-listed, bundle-shownThe command succeeded.
10user-input-invalidThe catalog id arguments conflict or are missing.
10skill-not-found, stack-not-found, bundle-not-foundThe catalog has no item with that slug.
17catalog-not-foundNo catalog has that id.
23catalog-clone-unreadable, catalog-read-failedThe catalog's clone, or an item the command reads, cannot be read.

skc skill list, skc stack list, and skc bundle list leave out malformed items, such as a file whose front matter lacks description, and still exit 0. Text output prints one warning on standard error for each omitted item, also with --quiet. JSON output includes an invalid_items array in a single-catalog result and in each catalog group. Each diagnostic has slug, path, and error. An unreadable clone or a failed listing read still exits 23. skc validate still reports malformed items. See A skill is missing from the list.