Give a repository its own skills

In Getting started, Dana committed a team manifest to payments-api that lists release-notes, and Sam installed it in his checkout. This page continues from there. The payments team adds a skill from a second catalog, Sam makes changes that only he gets, and Dana uses the same skills in a second checkout and in a folder that has no manifest.

You manage team manifests with skc. The desktop app shows project profiles and can make your personal changes to them, but it cannot create or install a team manifest.

Add skills to a team manifest

skc init created the payments-api team manifest in Getting started. It writes a new manifest only and refuses to change one that exists, so to add skills later, you edit the file.

The payments team wants the platform team's incident-response skill for everyone on call. Dana declares the platform-skills catalog under catalogs: and adds its entry under entries:, so .skillcatalog/skillcatalog.yml reads:

profile:
  id: payments-api
  display_name: Payments API
catalogs:
  acme-skills:
    source: git@github.com:acme/acme-skills.git
  platform-skills:
    source: git@github.com:acme/platform-skills.git
entries:
  - catalog_id: acme-skills
    kind: skill
    slug: release-notes
  - catalog_id: platform-skills
    kind: skill
    slug: incident-response
  • Every catalog that an entry uses needs a line under catalogs: with its URL, so that a teammate's install can clone it.
  • The key under catalogs: and each entry's catalog_id are the catalog id, the same on every machine.

Before she commits, Dana tries the change in her own checkout:

skc update

Dana removed the platform catalog from her machine earlier, so skc update clones and adds it again from the manifest's URL, then delivers incident-response into the checkout. If an entry names a skill that its catalog does not have, skc update fails and delivers nothing into the checkout, so a misspelled slug shows up here before it reaches the team. Dana commits and pushes the manifest:

git add .skillcatalog/skillcatalog.yml
git commit -m "Add incident-response for on-call"
git push

Keep delivered files out of Git

In Getting started, Dana added each tool's skills folder to the repository's .gitignore. Those folders stay out of Git because every teammate's install writes its own copies, and the copies differ between machines: a delivered SKILL.md in a checkout can hold absolute paths, such as the path of a script. Install also refuses to take over skill folders it did not write, even identical ones, so committed copies would make every teammate's install fail.

SkillCatalog also keeps two files of its own for personal changes, which the sections below cover. It adds them to .gitignore the first time someone makes a personal change in a checkout, which leaves .gitignore modified in that person's checkout. Dana adds the two lines now and commits them, so SkillCatalog finds them already there and everyone's git status stays clean:

.skillcatalog/skillcatalog.local.yml
/.skillcatalog/.skc-recovery/

If the repository already commits its own skills in a tool's skills folder, ignore each delivered skill folder instead of the whole skills folder, such as .claude/skills/release-notes/.

Update a checkout

When a teammate changes the team manifest, everyone else pulls the change and updates their checkout. Sam does both in payments-api:

git pull
skc update
Registered catalog 'platform-skills' from git@github.com:acme/platform-skills.git (declared in ~/payments-api/.skillcatalog/skillcatalog.yml).
Updated profile 'payments-api'.
...
Scoped delivery: created 1, restored 0, replaced 0, updated 0, removed 0, failed 0.

The manifest names a catalog that Sam had not added, so skc update cloned and added it, as a first install does, and then delivered incident-response.

When the change adds or changes a catalog's revision or an import, skc update prepares the new selection as skc install does, saves it, and delivers it. A selection that the change left alone keeps its saved commit, so a branch does not move. If the selected repository cannot be reached, skc update changes nothing and says that the selection is not prepared; run skc update again once the repository can be reached. See skc update for its outcomes.

Run skc update at the top of the checkout, in the folder that holds .skillcatalog/, because it does not look for a manifest in parent folders. Sync or update? compares it with skc sync.

Choose a catalog version

Before sharing a revision choice, follow the team upgrade steps.

Dana wants payments-api to use a released catalog while other profiles keep their current content. She adds revision: { tag: v1.0 } below that catalog's source in the team manifest, then runs skc install. Install prepares and validates that revision in a private snapshot before saving it and delivering. The selected commit can hold its catalog at the repository root or in .skillcatalog/catalog/; both locations at once are an error. See Catalog revisions for the file shape.

For a choice that belongs only to one installed profile, Sam runs:

skc profile catalog set acme-skills --profile payments-api --tag v1.0
skc profile catalog show --profile payments-api
skc deliver payments-api

The first command saves the choice and resolved full commit. It leaves delivered files as they are until delivery runs. show reads the saved content without fetching and shows each source, requested choice, full commit, and whether it comes from a manifest or the profile. The same commands work for Home and personal profiles. Use --branch releases/stable or --commit <full-commit-id> in place of --tag.

A profile choice can refine an omitted manifest revision or agree with an explicit one. It cannot contradict the team's choice. --unpin removes the profile's own choice; any manifest choice still applies. When the team later changes a revision that your profile pinned, skc update, skc install, delivery, and skc status report profile-revision-conflict and name the skc profile catalog set <catalog-id> --profile <profile-id> --unpin command to run before skc update.

A Home or personal profile keeps its active saved choice when you remove the catalog registration. Its saved snapshot still supports inspection, adding items, and delivery. Add the catalog again before using --unpin, so the profile can return to its shared checkout.

Tags and commits stay at their saved full commit, even if someone moves a tag upstream. A branch also stays at its saved commit until this explicit command succeeds:

skc profile catalog update --profile payments-api
skc deliver payments-api

When this machine has already fetched newer commits of a selected branch, for example because skc sync pulled a catalog you also added, skc update and skc update --check say how many commits the saved one is behind and name these two commands.

The update prepares and validates the profile's selected catalogs and consumer imports, advances its branches, and saves their commits together. It leaves delivered files unchanged. A failed fetch or validation keeps the previous saved choices and delivered files. skc install and skc update prepare a new or changed manifest selector and reuse the saved commit of an unchanged one. skc sync and delivery keep selected commits fixed.

If the team manifest changes just after skc profile catalog set or skc profile catalog update saves your choice, the command keeps the saved choice and reports exit 47. Review the team manifest and the saved selection before retrying.

Delivery and freshness checks read saved snapshots offline. A matching saved selection keeps working when the shared catalog is removed or registered from a different source; a new binding still checks source URLs literally. A missing, corrupt, or stale snapshot stops delivery of that profile and preserves its tracked files; it never substitutes the shared checkout. To restore a missing snapshot or prepare a changed selector, run skc update in a project checkout, or skc profile catalog update --profile <id> for any profile. An existing corrupt snapshot is rejected again; revision update does not replace it. Updating a selected profile leaves the shared checkout and other profiles' saved choices untouched.

The profile page has four tabs. Contents shows the priority list; Sources shows catalog versions and imports; Resolved skills shows the skills the selection provides; Delivery holds delivery and drift checks. Switching tabs keeps an import draft.

In the desktop app, open Profiles, choose a profile, then choose Change version… beside its catalog in Sources. The dialog offers Follow the team's choice for a project profile, Use the shared copy for Home and personal profiles, A branch, A tag, and An exact commit. Only the chosen option shows its field. Enter the branch, tag, or full commit, then choose Save version. Errors appear beside that field; a short commit moves focus to Full commit id. Saving a version leaves delivered files unchanged. To choose a version before adding the catalog’s first entry, open Add content…, choose the catalog, then choose Change version….

Choose Check for updates… in Sources to advance branches without delivering. Confirm Update versions, or review the import selection preview when the profile has imports. Deliver saved content in the Delivery tab applies saved content for all profiles.

Sources combines the profile’s catalogs and imports in compact rows, with seven-character saved commits. Technical details holds full commits, source addresses, and whether a manifest, consumer file, or profile supplies the choice. An unavailable catalog has its own warning; other selections stay visible. Adding the catalog again refreshes the list automatically. Changing an import clears the previous delivery result.

Add content… above the priority list opens a picker for the profile's selected catalog content. Each priority row says whether it was added here, comes from the team manifest, or comes from an import. The header shows the profile's kind and a short folder, with its full path available on hover.

Add to profiles also reads each profile's chosen snapshot when it shows skills inherited through stacks and bundles. If that snapshot is unavailable, review the profile's catalog revisions before adding content. A newer item in the shared catalog may be absent from an older selection. The refusal names the profile and revision. Choose a revision that contains the item, or add an item from the selected content. Syncing the catalog does not change this profile's saved revision.

Selected snapshots are read-only. Ordinary skill editors, saves, history, proposals, recovery, share links, and sync use the shared catalog checkout. Editing a skill there leaves an older selected snapshot unchanged. To author new content, edit and publish through the shared catalog, then select or update the profile's revision.

Use a library's consumer profile

Acme publishes .skillcatalog/profiles/consumer.yaml with its catalog. That file selects code-review and imports the platform instructions its users need. Dana selects it once in the payments-api team manifest:

profile:
  id: payments-api
  display_name: Payments API
imports:
  - source: git@github.com:acme/acme-skills.git
    revision:
      tag: v1.0
    path: .skillcatalog/profiles/consumer.yaml
entries: []
skc install
skc profile show payments-api --effective

Install validates the selected file and its dependencies before saving their commits and delivering. The effective view identifies the imports that introduced each entry. The payments-api profile owns every delivered skill; imported files create no profiles or destinations of their own.

For a checkout whose team manifest does not import this file, Sam can select it personally:

skc profile import set git@github.com:acme/acme-skills.git --profile payments-api --path .skillcatalog/profiles/consumer.yaml --tag v1.0 --dry-run
skc profile import set git@github.com:acme/acme-skills.git --profile payments-api --path .skillcatalog/profiles/consumer.yaml --tag v1.0
skc profile import show --profile payments-api
skc deliver payments-api

The preview shows dependency changes without saving the selection or delivering. It can fetch required snapshots. Setting an import saves it in the ignored local manifest; the team manifest stays unchanged. These controls also work for Home and personal profiles. Team imports and transitive dependencies remain read-only in profile controls.

In the desktop app, open Profiles, choose a profile, then choose Add import… in Sources. Enter Import source and Consumer file, choose an Import revision choice, and enter the branch, tag, or full commit. Choose Preview import to review the entry changes by name and the changed sources. Unchanged sources share one line. Technical details holds the full commits, consumer file, and delivery folder. Choose Import to save the exact prepared commits, or Cancel to discard the preview. Cancel keeps your form values for the next Add import….

If the profile or its manifest selections changed, or the preview expired, prepare a new preview. When previous entries are unavailable, the preview warns that its entry changes are incomplete. An entry whose display name cannot be read uses its slug.

Returning to the app refreshes Sources. That refresh and skc profile import show inspect current roots and their saved dependencies without fetching. They show requested revisions, saved commits, and availability. In Contents, each imported entry names its import and introducing sources; Technical details holds its source address, file, and full commit.

Tags and commits retain their saved commit. To advance branch selections throughout the profile's imports, run:

skc profile import update --profile payments-api --dry-run
skc profile import update --profile payments-api
skc deliver payments-api

This update and skc profile catalog update update the same profile-wide revision choices. In Sources, choose Check for updates…, review the changes, then Save update. This previews the whole profile's revisions. A selection with no updates says so and offers Close. A dependency row names the import that sets it. Use Deliver saved content in the Delivery tab separately to apply the saved content for all profiles. Ordinary update, sync, inspection, and delivery keep matching saved selections fixed.

To remove Sam's local selection:

skc profile import remove git@github.com:acme/acme-skills.git --profile payments-api --path .skillcatalog/profiles/consumer.yaml
skc deliver payments-api

In the desktop app, choose Remove import on the source row, available only for your own root selections. Its confirmation names the profile, repository and consumer file; Cancel keeps the selection. An unavailable root can still be inspected and removed. Removal saves the selection without delivering. Delivery removes clean files that no remaining entry selects and preserves edited files. The team's selection still applies when it imports the same content.

To keep one imported entry after removing its import, add it directly first. A direct addition from a catalog that only an import selects retains the catalog's source and saved revision as your profile's own choice, even when the catalog is not registered. An addition from a catalog whose revision the team manifest chooses keeps the team's choice, so the team can still change it.

See Consumer imports for consumer authoring, ordering, exclusions, and input limits, import output for scripts, and failed selection saves for recovery.

Make personal changes

Sam reviews security changes and wants review-security in payments-api, but he does not write release notes. Neither change suits the whole team, so he makes them for himself. On a project profile, skc profile add and skc profile remove leave the team manifest alone. They write to your local manifest, .skillcatalog/skillcatalog.local.yml, a file in your checkout that Git ignores. Use the catalog id from skc catalog list. Catalog ids have 2 to 64 characters.

Both commands take the profile id that skc install named. In Sam's checkout, that is payments-api, the id under profile: in the team manifest:

skc profile add payments-api --catalog-id acme-skills --kind skill --slug review-security
skc profile remove payments-api --catalog-id acme-skills --kind skill --slug release-notes

Both commands deliver at once. Sam's local manifest now holds his entry and an exclusion, which leaves a team manifest entry out of delivery for him:

catalogs:
  acme-skills:
    source: git@github.com:acme/acme-skills.git
entries:
  - catalog_id: acme-skills
    kind: skill
    slug: review-security
excludes:
  - catalog_id: acme-skills
    kind: skill
    slug: release-notes

Dana and the rest of the team still get release-notes, because the team manifest did not change. An exclusion leaves out a whole inherited entry, including an imported entry, so excluding a stack drops every skill in it. To keep one of those skills, add it as your own entry. To undo an exclusion, delete it from excludes: and run skc deliver payments-api.

Removing your own entry also keeps inherited copies excluded when an import is unavailable or a manifest edit awaits preparation. The entry stays removed when the import recovers or the edited import is installed. If no inherited copy exists, skc validate reports an unmatched-exclusion warning; install and delivery still work. Adding the entry directly again selects it while retaining the exclusion.

In the desktop app, open Profiles and choose the project profile. Choose Exclude next to an entry under Inherited entries, check the named entry and profile, then confirm Exclude entry to leave it out. Cancel keeps the entry selected. Add to profiles on a skill, stack, or bundle page adds your own entry.

See what a project delivers

With entries from two files, Sam wants to see what his checkout gets now:

skc profile show payments-api --effective
Profile 'payments-api' (Payments API)
...
Local manifest entries:
1. skill:review-security@acme-skills
Team manifest entries:
1. skill:release-notes@acme-skills (excluded by local manifest)
2. skill:incident-response@platform-skills
Effective entries:
1. skill:review-security@acme-skills (local)
2. skill:incident-response@platform-skills (team)

The effective entries are what delivery uses, top entry first. Your direct entries and local imports come before the team's content, so yours wins when both deliver a skill with the same slug. If you add an entry that the team also has, the team's entry is marked (shadowed by local entry), and yours stays even if the team later removes theirs.

Use the skills in a second checkout

Dana starts a hotfix in a Git worktree, a second checkout of the repository. She installs the team manifest there too:

git worktree add ../payments-api-hotfix
cd ../payments-api-hotfix
skc install
Installed profile 'payments-api-hotfix'.
This checkout's profile id 'payments-api-hotfix' differs from the team manifest's profile id 'payments-api'. Use 'payments-api-hotfix' with skc deliver and the skc profile commands.
Scoped delivery: created 1, restored 0, replaced 0, updated 0, removed 0, failed 0.

Each checkout gets its own project profile, whether it is a worktree, a worktree on a detached commit, or a separate clone. The first checkout to install gets the team manifest's profile id, payments-api, when no other profile uses it. Every other checkout gets an id made from that id and a label, here payments-api-hotfix, and keeps it until the profile is removed.

The label comes from the checkout folder's name in lowercase with hyphens, without a leading payments-api-. If the label equals the team manifest's profile id, or the folder name has no ASCII letters or digits, SkillCatalog tries the parent folder. A second clone at ~/code/review/payments-api gets payments-api-review. When neither folder gives a label, SkillCatalog uses checkout. When the id is taken, a number follows: payments-api-hotfix-2, payments-api-hotfix-3, and so on.

skc install, skc update, and skc uninstall find the profile of the checkout you run them in, so they need no id. skc deliver and the skc profile commands take the id, so Dana uses payments-api-hotfix with them in the worktree. skc profile list shows each checkout's profile:

3 profiles.
- home: Home (~)
- payments-api: Payments API (~/payments-api)
- payments-api-hotfix: Payments API (~/payments-api-hotfix)

Each checkout reads its own team and local manifests, so a change on the hotfix branch, or a personal change Dana makes in the worktree, leaves payments-api as it was. A script that needs the id reads it from the output of skc install, as Find a checkout's profile shows. In the desktop app, profiles with the same name show their folder after the name.

SkillCatalog uses the team manifest id from install to identify the project. When the checkout gets a different profile id, SkillCatalog records the team manifest id in manifest-binding.yml. Personal profiles have no team manifest binding.

When a branch changes the id under profile: in the team manifest, the profile installed in that checkout still belongs to the old id. Until you switch back, or run skc uninstall and then skc install there, install and update stop in that checkout, and delivery skips its profile and says why.

When the hotfix is merged, Dana removes the worktree's profile, then the worktree:

skc uninstall
cd ../payments-api
git worktree remove ../payments-api-hotfix

If you remove a worktree first, any delivery of all profiles, such as skc sync or skc deliver, removes its project profile and reports the missing checkout. The desktop's check for changes and catalog removal also clear and report profiles whose checkouts are gone. You can also run skc deliver payments-api-hotfix to remove just that profile. If you used --target-dir, cleanup removes unchanged files from that folder and keeps edited files.

To deliver a checkout's skills into another existing folder, run skc install --target-dir <folder> in the checkout. SkillCatalog saves that folder with the project profile, so later installs, updates, and deliveries write there, while the manifests still come from the checkout. skc install --target-dir . delivers into the checkout again.

Use a personal profile

Dana wants release-notes in ~/code/spikes, a folder of experiments, but not in every repository. That folder has no team manifest, so she creates a personal profile, which delivers to one folder and exists only on her machine:

skc profile create "Spikes" ~/code/spikes --entry skill:acme-skills:release-notes
skc deliver spikes
Created profile 'spikes' (Spikes) at ~/code/spikes.
Delivered profile 'spikes': created 1, restored 0, replaced 0, updated 0, removed 0, failed 0.

Dana takes the profile id from the creation output. The id comes from the name and gains a numeric suffix, such as spikes-2, if the first id is taken. skc profile create does not deliver, so Dana runs skc deliver spikes once. After that, skc sync and skc deliver keep the folder up to date like any other profile.

The folder must exist, and it can have only one profile. For a checkout that already has a project profile, use your local manifest instead. skc profile delete spikes removes the profile and the skills it delivered, except files you edited, which it lists.

In the desktop app, open Profiles, choose New profile, enter a Profile name, pick the folder with Choose, then choose Create profile.

Remove a project profile

Sam moves to another team and no longer needs the payments skills in his checkout. skc uninstall deletes the project profile and the skills it delivered, including any in a folder saved with --target-dir. It keeps both manifests and your catalogs:

skc uninstall
Removed profile 'payments-api'.
Cleanup: removed 2, failed 0.

Files you edited stay, listed under Preserved edited files, not removed:. SkillCatalog remembers them, so a later skc install in the same checkout keeps your edits, unless another checkout took the profile id in the meantime. skc profile delete payments-api does the same as skc uninstall, from any folder. In the desktop app, deleting a profile reports each edited file it keeps; dismiss that notice after checking the paths.