---
name: eck:list-global-catalog
version: "0.7.4"
description: Read-only display of all components in the global template catalog with categorized tables.
disable-model-invocation: false
---

# List Global Catalog

Display the contents of `$ECK_HOME/global-catalog.yaml` in a formatted, categorized view. **Read-only** — never modifies any files.

---

## Visual Framework

Follow these conventions for all terminal output displayed to the user via the Bash tool.

### Output Mode Awareness

Before producing output, read the user's preferred output mode:

```bash
cat $ECK_HOME/user-preferences.json 2>/dev/null
```

Extract the `outputMode` field and adapt verbosity:

- **guided** — Add explanatory prose after key steps. Describe what is happening and why.
- **standard** (default) — Balanced. Show steps with brief context for non-obvious decisions.
- **concise** — Steps and summary box only. No prose, no explanations.

If the file is missing or `outputMode` is absent, use **standard**.

### ANSI Colors

Declare these variables at the top of **every** Bash tool call (shell state does not persist between calls):

```bash
source $ECK_HOME/colors.sh
```

Every color sequence **must** end with `${RESET}`. No exceptions.

### Stage Banners

Mark major stage transitions with a bold banner. One blank line before and after.

```bash
echo ""
printf '%b\n' "${ORANGE}${BOLD}STAGE NAME${RESET}"
echo ""
```

### Status Symbols

| Symbol | Meaning          | Color       |
| ------ | ---------------- | ----------- |
| `[*]`  | Active / running | `${CYAN}`   |
| `[x]`  | Completed        | `${GREEN}`  |
| `[!]`  | Error            | `${RED}`    |
| `[-]`  | Skipped          | `${DIM}`    |
| `[>]`  | In progress      | `${YELLOW}` |
| `[ ]`  | Pending          | `${DIM}`    |

```bash
printf '%b\n' "${GREEN}[x]${RESET} Step completed"
printf '%b\n' "${RED}[!]${RESET} Something failed"
```

No emoji in output. Use only these bracket symbols for status.

### Summary Boxes

Display at checkpoints and at the end of the skill. One blank line before and after.

```bash
echo ""
printf '%b\n' "${ORANGE}${BOLD}Title${RESET}"
echo ""
printf '%b\n' "Label: Value"
echo ""
```

### Error Format

```bash
printf '%b\n' "${RED}[!]${RESET} Error message here"
printf '%b\n' "    ${DIM}Recovery guidance here.${RESET}"
```

### Spacing Rules

- One blank line before and after stage banners and summary boxes.
- No blank lines within step lists.
- Maximum output line width: 70 characters.

### Statusline Stage Updates

At the **start** of each stage, update the statusline:

```bash
bash $ECK_HOME/update-stage.sh "{Statusline text from table}"
```

At **skill completion** (success or error), reset:

```bash
bash $ECK_HOME/update-stage.sh
```

---

## Task Registration

| Stage | Subject                 | Active Form        | Statusline      |
| ----- | ----------------------- | ------------------ | --------------- |
| 1     | Stage 1: Pre-Flight     | Verifying catalog  | Preflight (1/3) |
| 2     | Stage 2: Load and Parse | Parsing catalog    | Parse (2/3)     |
| 3     | Stage 3: Display        | Displaying catalog | Display (3/3)   |

## Usage

```bash
/eck:list-global-catalog                      # Show full catalog
/eck:list-global-catalog --category {cat}     # Filter by category
```

---

## Stage 1: Pre-Flight

### Inputs

- `$ECK_HOME/global-catalog.yaml`
- Optional `--category` flag from `$ARGUMENTS`

### Activities

```bash
ls $ECK_HOME/global-catalog.yaml
```

**If not found:**

```bash
printf '%b\n' "${RED}[!]${RESET} Global catalog not found at $ECK_HOME/global-catalog.yaml"
printf '%b\n' "    ${DIM}Run npx @evolvconsulting/evolv-coder-kit --global to install templates.${RESET}"
```

### Outputs

- Confirmation that `global-catalog.yaml` exists

### Exit Criteria

- Catalog file is found, or error is displayed and skill stops

---

## Stage 2: Load & Parse

### Inputs

- `$ECK_HOME/global-catalog.yaml`

### Activities

Read and parse `$ECK_HOME/global-catalog.yaml`.

Extract the version header and all component categories.

### Outputs

- Parsed catalog data: version header and per-category component lists

### Exit Criteria

- Catalog is fully parsed and component categories are extracted

---

## Stage 3: Display

### Inputs

- Parsed catalog data from Stage 2
- Optional `--category` filter flag

### Activities

### 3.1: Header

```bash
echo ""
printf '%b\n' "${ORANGE}${BOLD}Global Catalog${RESET}"
echo ""
printf '%b\n' "Path: $ECK_HOME/"
printf '%b\n' "Version: {VERSION}"
printf '%b\n' "Components: {TOTAL_COUNT}"
echo ""
```

### 3.2: Category Tables

For each category in the catalog (`root_files`, `config`, `agents`, `skills`, `hooks`, `primitives`, `context`), display a table:

```bash
printf '%b\n' "${BOLD}{CATEGORY}${RESET} ${DIM}({COUNT})${RESET}"
```

| Name   | File   | Version   | Checksum         | Required |
| ------ | ------ | --------- | ---------------- | -------- |
| {name} | {file} | {version} | {checksum_short} | {yes/no} |

Where `checksum_short` is the first 8 characters of the SHA-256 checksum.

### 3.3: Summary

```bash
echo ""
printf '%b\n' "${DIM}Total: {N} components across {N} categories${RESET}"
printf '%b\n' "${DIM}Required: {N} | Optional: {N}${RESET}"
```

If `--category` flag was provided, only show the matching category.

### Outputs

- Formatted catalog display in terminal

### Exit Criteria

- All components displayed; statusline reset

---

## Error Recovery

| Error             | Recovery                                                     |
| ----------------- | ------------------------------------------------------------ |
| Catalog not found | Install with `npx @evolvconsulting/evolv-coder-kit --global` |
| Parse error       | Report malformed YAML and suggest re-installing              |

---

## Related Documents

- [List User Catalog](../list-user-catalog/SKILL.md)
- [List Project Catalog](../list-project-catalog/SKILL.md)
- [Pull From Global Catalog](../pull-from-global-catalog/SKILL.md)
- [Global Catalog]($ECK_HOME/global-catalog.yaml)
