Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/docs/cli/skills/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The canonical skill files live in the docs repo at `skills/<name>/SKILL.md` and

```bash
# Global
cp -R skills/* ~/.claude/skills/
mkdir -p ~/.claude/skills && cp -R skills/* ~/.claude/skills/

# Or per-project
mkdir -p .claude/skills && cp -R skills/* .claude/skills/
Expand Down
6 changes: 4 additions & 2 deletions content/docs/cli/skills/using-mogplex-cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ Mogplex exposes its workspace, slash-command registry, agent roster, skills, and

### Preflight — always run first

The install check must gate the auth check — do not continue if `mogplex` is not on `PATH`:

```bash
command -v mogplex >/dev/null || echo "mogplex CLI not installed"
command -v mogplex >/dev/null 2>&1 || { echo "mogplex CLI not installed — ask the user to install it first"; exit 1; }
mogplex login status
```

If `login status` shows no stored credential and no provider env var is set, stop and follow [`mogplex-auth`](/cli/skills/mogplex-auth) before continuing. Do not attempt to edit `~/.mogplex/auth.json` directly.
If the first line fails, stop and direct the user to [Installation](/cli/installation) before running anything else. If `login status` runs but shows no stored credential and no provider env var is set, follow [`mogplex-auth`](/cli/skills/mogplex-auth). Do not attempt to edit `~/.mogplex/auth.json` directly.

### Core command map

Expand Down
2 changes: 1 addition & 1 deletion skills/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Each subdirectory is a single skill with a `SKILL.md` using standard YAML frontm

```bash
# Global install
cp -R skills/* ~/.claude/skills/
mkdir -p ~/.claude/skills && cp -R skills/* ~/.claude/skills/

# Or per-project
mkdir -p .claude/skills && cp -R skills/* .claude/skills/
Expand Down
6 changes: 3 additions & 3 deletions skills/using-mogplex-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Mogplex exposes its workspace, slash-command registry, agent roster, skills, and

## Preflight — always run first

Before any command that talks to Mogplex, verify the CLI is installed and authenticated:
Before any command that talks to Mogplex, verify the CLI is installed and authenticated. The install check must gate the auth check — do not continue if `mogplex` is not on `PATH`:

```bash
command -v mogplex >/dev/null || echo "mogplex CLI not installed"
command -v mogplex >/dev/null 2>&1 || { echo "mogplex CLI not installed — ask the user to install it first"; exit 1; }
mogplex login status
```

If `login status` shows no stored credential and no provider env var is set, stop and follow [`mogplex-auth`](../mogplex-auth/SKILL.md) before continuing. Do not attempt to edit `~/.mogplex/auth.json` directly.
If the first line fails, stop and tell the user to install the CLI (point them at [Installation](https://mogplex.dev/cli/installation)) before running anything else. If `login status` runs but shows no stored credential and no provider env var is set, follow [`mogplex-auth`](../mogplex-auth/SKILL.md). Do not attempt to edit `~/.mogplex/auth.json` directly.

## Core command map

Expand Down