> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ccs.kaitran.ca/llms.txt
> Use this file to discover all available pages before exploring further.

# Shared Data

> Inspect shared commands, skills, and agents from the CCS dashboard

# Shared Data

Shared Data is the routed dashboard workspace for the reusable Claude assets
that CCS exposes across profiles: commands, skills, and agents.

## Access

```bash theme={null}
ccs config
# Sidebar -> Accounts -> Shared Data
# Direct route -> /shared
```

## What It Reads

Shared Data is an inspection layer on top of the shared asset chain:

* `~/.claude/` remains the authoritative source
* `~/.ccs/shared/` is the CCS access layer
* profile instances read shared assets through that chain

For non-bare profiles, this chain also shares `settings.json` and the user
instructions in `CLAUDE.md`. The Shared Data browser itself lists only
commands, skills, and agents.

On Windows, CCS can fall back to copies when symlinks are unavailable.

## Current Layout

### Header

The current page header surfaces three live counts:

* **Total Shared** across commands, skills, and agents
* **Current tab total**
* **Visible** items after search filtering

It also shows a markdown-detail badge and an optional filter badge when a query
is active.

### Left Pane

The left pane is the browser:

* tab switcher for **Commands**, **Skills**, and **Agents**
* live item counts per tab
* search across item name, description, and path
* retry handling when list reads fail

### Right Pane

The right pane is the detail viewer:

* rendered markdown or raw content for the selected item
* item kind badge
* path and metadata display
* loading and retry states for the selected item

## Asset Discovery Rules

| Kind | Location | Discovery |
| - | - | - |
| Commands | `~/.claude/commands/` | recursive `.md` discovery |
| Skills | `~/.claude/skills/` | directories containing `SKILL.md` |
| Agents | `~/.claude/agents/` | agent directories or standalone markdown agent files |

## Configuration Warnings

If the shared-data chain is invalid, the workspace shows a configuration alert
and points you back to:

```bash theme={null}
ccs sync
```

The page can still show partial results while counts or content retry, but a
broken shared chain should be fixed before you trust the inventory.

## CLI Parity

```bash theme={null}
ccs sync
ccs doctor
ccs auth resources <profile>
ccs auth resources <profile> --mode shared|profile-local
```

Use the dashboard when you want discovery and reading. Use the CLI when you
need repair or automation.

## Per-Profile Shared Resource Policy

Each account profile is either **shared** (plugins, settings, `CLAUDE.md`,
commands, skills, and agents linked from `~/.claude/`) or **profile-local** (no
linking; the profile carries its own resource set, equivalent to creating with
`--bare`). New non-bare profiles use shared mode by default.

Switch modes from the dashboard or CLI:

| Surface | How |
| - | - |
| Dashboard | Accounts -> profile row -> "Edit Shared Resources" dialog |
| CLI | `ccs auth resources <profile> --mode shared\|profile-local` |
| Inspection | `ccs auth resources <profile> [--json]` |

Profile-local mode is useful for sandboxed accounts that must not inherit your
global Claude plugins, skills, settings, or instructions.

## Shared `CLAUDE.md`

`~/.claude/CLAUDE.md` is the canonical user-instructions file. Shared profiles
use this chain:

```text theme={null}
~/.ccs/instances/<profile>/CLAUDE.md
  -> ~/.ccs/shared/CLAUDE.md
  -> ~/.claude/CLAUDE.md
```

If the canonical file and all previous copies are missing, CCS creates an empty
Markdown file. It does not seed `CLAUDE.md` with JSON.

Reconciliation is canonical-first:

| Existing state | Result |
| - | - |
| Canonical file exists | Canonical content wins; divergent copies are preserved beside their old path with a `.ccs-shared-conflict` suffix. |
| Canonical file is missing and one byte-for-byte variant exists | CCS adopts that variant as the canonical file. |
| Canonical file is missing and multiple distinct variants exist | CCS preserves every variant with a `.ccs-shared-conflict` suffix, creates an empty canonical file, and asks you to recover one explicitly. Modification time is not used to choose. |

To recover a conflict, inspect the preserved files, put the intended content in
`~/.claude/CLAUDE.md`, then start each affected shared profile so CCS can
restore its managed link. Keep the conflict copies until you confirm the
instructions load correctly.

## API Endpoints

| Endpoint | Purpose |
| - | - |
| `GET /api/shared/commands` | list shared commands |
| `GET /api/shared/skills` | list shared skills |
| `GET /api/shared/agents` | list shared agents |
| `GET /api/shared/content?type=X&path=Y` | load selected item content |
| `GET /api/shared/summary` | fetch counts and symlink status |

## Related

* [Accounts Workspace](https://docs.ccs.kaitran.ca/features/dashboard/accounts-workspace.md)
* [CLI Commands](https://docs.ccs.kaitran.ca/reference/cli-commands.md)
* [File Locations](https://docs.ccs.kaitran.ca/reference/file-locations.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.