> For AI agents: the complete documentation index is available at https://tackup.dev/llms.txt, the full documentation bundle is available at https://tackup.dev/llms-full.txt.

# Profiles and bundles

A profile is a file in a source that lists resources. Enabled for a project or the user, it is a
layer: its members join the selection, your picks still win, and disabling it returns to your own
selection. Applied to a project, it fixes that project's set: picks cannot change it. A bundle packs
a profile's files into one archive for a machine without the sources.
[Turn a profile on and off](https://tackup.dev/docs/guides/profiles.md#turn-a-profile-on-and-off) and
[Share a fixed set with a profile](https://tackup.dev/docs/guides/profiles.md) are the step-by-step versions, and the built-in `author-tack-profiles` skill holds worked examples.

## The profile file

A `tack.yaml` declares each profile with a `{ name, path }` entry in `profiles`. Each
profile file has its own version-1 schema: a `name`, optional `depends-on` source labels and at least
one entry in `members`. A bare member resolves only in the owning source; a member of another source
is written `{ name, source, kind? }`. Required dependencies of members are added; defaults, picks and
optional dependencies are not.

`tack check SOURCE_PATH [COMPANION_SOURCE...]` checks every profile of the source; a profile file can
also be passed directly. It reads only the files passed and reports structure, linkage, and the
direct and required members apart. In `tack explore`, press `d` and choose a profile under
Profiles, or a new one. Saving writes only the profile and its declaration; pending edits must be
saved, discarded or cancelled before you change destinations.

Built-in skills are always delivered and locked. Saved selections leave them out and say so in the
preview. A hand-written profile may still name them: `tack check` warns with
`profile-builtin-omitted`, and apply skips those members with a note. A resource with the
same name in another source stays an ordinary member.

## List the declared profiles

`tack profile`, or `tack profile list`, lists the profiles that registered sources declare, with the
`SOURCE:PROFILE` reference that enable, apply and export take, the profile file, and the user
or projects it is enabled for or applied to. It reads only the `profiles` key of each `tack.yaml` and writes nothing. A
broken declaration is reported as a warning and the run is partial; `tack check` validates the
profile files. A source whose name another source shares has no reference until the names differ.

## Enable and disable a profile

`tack profile enable SOURCE:PROFILE --project PROJECT`, or `--user`, turns a declared profile on as a
layer of that namespace, and `tack profile disable` turns it off. Both write at once and change one
record, the layer: no pick, docs attachment or link changes. `tack sync` previews the links, and its
`--apply` makes them. Enabling a layer that is on, or disabling a declared profile that is off,
changes nothing.

```sh
tack profile enable tools:dev --project app
tack sync --project app               # preview the members it links
tack sync --project app --apply
tack profile disable tools:dev --project app
```

A layer is live. Every sync, status and save reads the profile file as it is then, so after a
`git pull` that edits it, the next sync preview shows a new member to link and a removed one to
unlink. The selection decides a resource in this order:

| Order | Case                                                                        | Result                                |
| ----- | --------------------------------------------------------------------------- | ------------------------------------- |
| 1     | You exclude it                                                              | Not selected                          |
| 2     | You include it                                                              | Selected                              |
| 3     | An enabled profile names it, and you include no other resource of that name | Selected, whatever its activation     |
| 4     | Its metadata selects it by default                                          | Selected, unless 2 or 3 took the name |

Required dependencies of a member follow the ordinary rules: an exclude of one blocks the member, and
one that shares its name with a default-selected resource collides with it, until you exclude that
resource or include the dependency.
Two profiles that name the same resource select it once. Two that bring different resources of one
name collide: `selection-collision` names both profiles, neither resource is linked, and an include
or an exclude of one settles it. Layers have no order.

Docs members of a project's layer are attached while it is on, beside your own attachments. Your
writing default stays yours, and a member can be the default only once you attach it too. A user layer skips docs, which need a
project, and members of an extension that is off wait unused. Scripts run by reference
as before. Built-in skills are never members: enable marks one a profile names, and a member that
shares the name of a built-in skill is left out.

Enable refuses, and writes nothing, when the reference names no declared profile
(`profile-source-linkage`, `profile-undeclared`), when a member does not resolve, such as
`profile-member-missing`; its Next is the `tack check` of the source. Enable and disable refuse in a
fixed project and for a fixed user (`profile-fixed-context`). Enable lists your includes
that equal a member: they are redundant while the profile is on, and each keeps its member after you
turn it off. Both mark a member that the next sync cannot link because another selected resource has
its name, and name the resources that collide, a member's dependency included. Disable takes the
registration ID in place of the label when the source is gone or does not read, or the folder name
that `tack status` shows for it. It reports `profile-layer-not-found` for a reference nothing declares or enables, and
`profile-layer-ambiguous` for one that names several enabled profiles.

A layer that stops resolving makes sync and status report `profile-layer-unresolved`, as does a
`tack project refresh` that plans docs mounts. It is a partial outcome that names the profile, what does not resolve and the
`tack check` to run. `tack doctor` fails its `profiles` check, with that `tack check` as its next.
Members that still resolve stay selected, and a broken sibling in `profiles:` changes nothing. When
the source is unhealthy or the profile cannot be read, the layer brings nothing and sync removes the
links only it brought; the message says why, such as a profile that is missing from its path, and
names the `tack check` and the `tack profile disable` to run. A docs mount whose source or folder
cannot be read is kept. `profile-layer-overridden` is a note, not a problem: your exclude keeps out
a resource an enabled profile names.

`tack status` gives each namespace one line per enabled profile and, where one is on, the origin of
each selected resource: `yours`, `default`, `dependency` or the profile. In JSON, a namespace carries
`layers`, a decision of reason `profile` lists its `profiles`, and so does an `exclude` or
`superseded` decision that keeps a member out. `tack pick` lists the enabled profiles after your
picks. `tack source remove` and `tack project remove` list the layers that go with them, and
`tack source remove` the layers of other sources that stay incomplete.

In `tack explore`, `p` lists the profiles of the open selection and stages them beside the picks.

## Apply a profile

`tack profile apply SOURCE:PROFILE --project PROJECT --target-root ROOT` applies a profile; repeat
`--target-root` for every root of the project. The preview writes nothing; `--apply` records the
exact intent, then links. A project that already has intent needs `--force`: picks, enabled
profiles, docs settings, mounts, a removal still owed or an earlier application, also an empty or
incomplete one. The links its computed defaults made do not count. `--force` replaces that intent
and does not keep it. It never allows partial roots, unsafe parent
links or replacing content Tack did not make. For a user target, give the matching home with
`--target-home` and an explicit state directory inside that home.

Sync keeps the applied set, refuses a changed dependency closure, and `tack status` and
`tack doctor` show the fixed intent. Picks in a fixed project are refused. A member an enabled
adapter cannot take, such as a command with Claude Code, is skipped for that adapter
(`delivery.skipped` in the apply plan) and still reaches every adapter that takes it; apply and sync
stay successful, and doctor notes the skip. With no enabled adapter, delivery stays partial on retry,
sync and status, and fails doctor. Context and scripts keep their roles: catalogued, and run by
reference.

Applying is one-way: no command returns a project to the selection it had. A fixed application ends
with `tack project remove`, with `tack source remove` of the source that declares the profile, or
with `tack state reset`. Register the project again to select resources by default and by pick. To
keep your own selection and turn a set on and off, [enable the
profile](#enable-and-disable-a-profile) instead.

## Save

`tack profile save SOURCE_PATH NAME --project PROJECT` copies daily choices into a profile: by
default the user's and one project's, enabled profiles included, or only one with `--input user` or `--input project`. The
preview shows where each member comes from and the changes to the profile file and its declaration;
`--apply` saves only the profile. An existing profile needs `--edit`. In `tack explore`, choose a
save input in the destination chooser, adjust the members, choose the source and name, then review
the change.

Saving creates no subscription: later picks leave the profile unchanged. An earlier Tack could also
copy a profile's members, their required dependencies and its docs into picks and attachments. Those
stay yours; after you enable the profile, remove each one that it should own with `tack pick remove`
or `tack docs detach`.

## Bundles

`tack profile export SOURCE:PROFILE OUTPUT.tar.gz` previews a snapshot of the direct and required
members: their exact files, integrity facts, the provenance of imported skills and non-secret setup.
`--apply` creates the archive and never overwrites an existing path.

`tack profile inspect-bundle FILE` lists what a bundle holds. `tack check FILE` checks it offline,
without state or the original sources: archive safety, manifest integrity and the profile it
carries. A profile's docs use the same set for mounts, `tack docs`, search, serve and
`tack docs target`.

`tack profile apply-bundle FILE --project NAME --target-root ROOT` previews the same complete-target
contract as `tack profile apply`. `--apply` keeps the content under the explicit state directory,
registers the sources the bundle provides and applies the profile. A fresh machine needs no original
source, no earlier sync and no `--force`. Existing intent, even an empty or incomplete one, still
needs `--force`, and files Tack did not make stay protected. The original sources, even newer ones
with the same names, stay independent: a bundle never falls back to them, and its defaults never
reach other projects.

### Bundle support

Scripts and docs in a bundle need `bundle-support` entries in the source's `tack.yaml`,
each with the resource's `kind` and `name`, `complete: true`, `files` and `prerequisites`. A script
that imports no package declares `package: none`; one that does needs its package and lock files
included and its setup stated. An unknown helper, reader module or asset, or a computed import,
refuses a complete export. The built-in `author-tack-profiles` skill has worked examples.

### Format and limits

Bundle version 1 is a POSIX ustar archive of regular files and directories in gzip: at most 8 MiB
compressed, 32 MiB expanded, 8 MiB per file and 5,000 entries. Traversal, absolute paths, paths that
differ only by case or Unicode form, duplicates, unsafe parents, links, special files, unsupported
versions and wrong facts or digests are refused before anything changes. Known configuration,
credential, `.env` and history paths are left out or refused; other authored text is not certified
free of secrets. Checksums prove integrity, not who published the bundle. No script, module, reader
component, hook, installer or fetch from the bundle runs while it is checked or applied, and carrying
the content does not guarantee a script can run offline.

Applying the same bundle again reuses only matching, verified registrations and content; `--force`
is still needed when the project has intent. A changed mapping or file, a duplicate key or a
foreign payload path is a repairable identity conflict, never an overwrite. Kept bundle content
cannot be edited or relocated as a source. Different revisions stay separate, and their content
stays for ownership and recovery even after an incomplete delivery. `tack status` and `tack doctor`
report a kept bundle whose integrity fails as `source-bundle-changed`.
