---
name: author-tack-profiles
description: Author, declare, inspect and repair Tack profiles. Use for profile files, source linkage, turning a profile on or off, membership copies, explicit fixed application and portable content bundles. Use manage-tack-sources for resource declarations and use-tack for daily selection.
metadata:
tack: |
version: 1
activation: opt-in
user-activation: default
---
# Author Tack profiles
Authoring, checking and source-based application support fixed positive resource manifests. Profiles reference existing resources; they are not a resource kind. Use `manage-tack-sources` before changing the owning source, including its maintainers check. Extensions add more resources: `tack extension` lists them, and each one that is on brings its own skill, which says how a profile carries them.
1. Inspect the resources with `tack catalog --details`. Agents use this noninteractive command; the terminal explorer is for people ([edit a profile in it](references/apply.md#edit-a-profile-in-the-terminal-explorer)).
2. Declare the file in the owning source's `tack.yaml`, under its `profiles` key. A source declaration is version 1, with or without profiles. Any other source version fails before resource discovery. A broken profile leaves unrelated resources usable.
```yaml
version: 1
name: tools
skills:
- path: skills
profiles:
- name: ci
path: profiles/ci.yaml
```
3. Write the separately versioned file. Only `version`, `name`, `depends-on` and `members` are accepted. The file's name must match its declaration. Paths are source-relative regular files inside the source, with no dot or parent segments. A profile file inside a declared resource folder, or on a declared file, overlaps that entry, and both are refused with `declaration-path-overlap` until the folder entry excludes the file or the file moves.
```yaml
# profiles/ci.yaml
version: 1
name: ci
depends-on: [team]
members:
- review
- name: audit
kind: command
source: team
```
<!-- ‹guest · 2026-12-04› -->
A bare member always belongs to this profile's own source, even if another source has the same name. An external member always needs `source`, and that name must appear in the profile's `depends-on`. Add `kind` when several kinds share a name in that source. Missing members never retarget. External sources need distinct portable names; repair missing or clashing names in their declarations. Machine-local registration UUIDs and commit pins do not belong in a manifest. Required dependencies follow each resource's source `depends-on` rules. Optional edges are not expanded. New defaults never enter a saved profile without an explicit edit.
4. Write the files, run `tack check /absolute/path/to/source /absolute/path/to/companion-source`, and repeat until clean. A source folder checks declarations, resources and every profile file. A profile file can be checked directly with its companion source folders. This authoring scope is stateless: it does not read registrations or require state initialization. The combined report gives file:line findings, structure, source linkage and direct/required inventory. Errors exit 1; warnings exit 0. No authored code or hooks run.
For source-based use, required external sources must already be available and registered. Check does not fetch or register them. A content bundle supplies retained source projections and registers them locally before delivery, without original source access.
Before application, verify an isolated context and every resolved destination, or list every root sharing the intent. Force never bypasses isolation or foreign-content protection. Read [apply](references/apply.md) before any apply: isolation, force, user targets, retained inventory and skipped members.
## Apply from registered sources
`tack profile` lists the declared profiles by their SOURCE:PROFILE. Preview `tack profile apply SOURCE:PROFILE --project PROJECT --target-root /absolute/project`, with one `--target-root` for every registered root of the project, or `--user --target-home /isolated/home` with a matching HOME and an explicit state directory inside that home. Review the destinations, members and additions and removals, then repeat with `--apply`. Existing picks, exclusions, enabled profiles, mounts or an earlier application need `--force`, which replaces them for good: apply is one-way. The links of computed defaults do not need it. A fixed context then refuses ordinary `pick` and `explore` edits with `profile-fixed-context`.
## Daily selection and profiles
Built-in release-owned skills are always delivered and locked. Selection copies omit them and say so in preview. A hand-written profile may still name them: check warns with `profile-builtin-omitted`, while apply and enable skip those members with a note. They do not become fixed inventory. Ordinary resources with the same name in another source remain normal members.
Use `tack profile save /path/to/source NAME --project PROJECT` to preview effective user + one project membership, its origins and file/declaration changes. `--apply` saves only the source profile. `--input user` and `--input project --project PROJECT` narrow the input; `--edit` explicitly updates an existing profile. Saving delivers nothing.
`tack profile enable SOURCE:PROFILE --project PROJECT` (or `--user`) turns a profile on at once as a live layer and `tack profile disable` turns it off: picks never change and win over members, and sync previews the links. The `use-tack` skill owns its rules.
Follow [copy workflows](references/copy-workflows.md) for CI, VPS and team-sharing walkthroughs, input narrowing, explicit existing-profile edits and cancellation without writes.
## Port a profile as content
Preview `tack profile export SOURCE:PROFILE /artifacts/profile.tar.gz`, then add `--apply` after reviewing exact files, integrity facts, support closure and non-secret prerequisites. Read the manifest with `tack profile inspect-bundle /artifacts/profile.tar.gz` and validate it with `tack check /artifacts/profile.tar.gz`. Both work offline without local state; inspection is a content read-out, while check verifies complete projected profile linkage and inventory. Preview `tack profile apply-bundle /artifacts/profile.tar.gz --project PROJECT --target-root /repo`, then add `--apply` after complete-target review. It retains content and registers its source projections before fixed delivery, preserving originals and the same refusal/force contract.
Read [portable content](references/bundles.md) before export/apply: it defines bundle-support, package completeness, known sensitive paths, bounded archives, pristine-recipient setup, identity conflicts, immutable payloads and incomplete-delivery recovery. Bundle operations never execute supplied code, fetch content or install packages.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.