Skip to content

docs: add CLI agent skills for non-Mogplex hosts#23

Merged
charlesrhoward merged 1 commit intomainfrom
feat/cli-agent-skills
Apr 24, 2026
Merged

docs: add CLI agent skills for non-Mogplex hosts#23
charlesrhoward merged 1 commit intomainfrom
feat/cli-agent-skills

Conversation

@charlesrhoward
Copy link
Copy Markdown
Contributor

Summary

  • Adds an Anthropic-spec skill set at skills/*/SKILL.md that teaches external agents (Claude Code, Agent SDK, Cursor, opencode) how to drive a Mogplex workspace through the mogplex CLI — a drop-in substitute for a Mogplex MCP server, without asking users to paste tokens into JSON configs.
  • Mirrors the skills into the Fumadocs sidebar under CLI → Skills (content/docs/cli/skills/), with a new card on the CLI landing page.
  • Frontmatter follows the Anthropic spec: only name + description, name matches directory, bodies start with a single H1, descriptions use the canonical [what]. Use when [trigger] pattern (261–367 chars, well under the 1024 cap).

Skills

Skill Role
using-mogplex-cli Umbrella. Routes to the right command when the user asks for a Mogplex workspace action.
mogplex-exec One-off non-interactive runs with --json / --jsonl output.
mogplex-slash Discover (mogplex slash list --json) and run (mogplex exec "/...") slash commands.
mogplex-auth Auth preflight, env-var precedence, troubleshooting decision tree.

Test plan

  • pnpm lint
  • pnpm types:check
  • pnpm build (all 165 pages generated, includes new /cli/skills/* routes)
  • Verify sidebar renders the new Skills section between Guides and the rest of CLI nav on preview
  • Spot-check one skill page (e.g. /cli/skills/mogplex-auth) for callout + code block rendering

Adds an Anthropic-spec skill set that teaches external agents (Claude
Code, Agent SDK, Cursor, opencode) how to drive a user's Mogplex
workspace through the CLI as a substitute for a Mogplex MCP server.

- skills/{using-mogplex-cli,mogplex-exec,mogplex-slash,mogplex-auth}/SKILL.md
  as canonical source
- content/docs/cli/skills/* mirrors them in the Fumadocs sidebar
- cli/index.mdx gets a Skills card; cli/meta.json includes the section
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mogplex-docs Ready Ready Preview, Comment Apr 24, 2026 0:48am

Request Review

@charlesrhoward charlesrhoward enabled auto-merge (squash) April 24, 2026 00:47
@charlesrhoward charlesrhoward merged commit 8e57ef7 into main Apr 24, 2026
6 checks passed
@charlesrhoward charlesrhoward deleted the feat/cli-agent-skills branch April 24, 2026 00:48
Copy link
Copy Markdown

@mogplex mogplex Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mogplex PR Review

Status: Attention needed

This is a well-structured documentation-only PR adding Anthropic Agent Skills for the Mogplex CLI. The content is clear, internally consistent, and follows the stated spec. There are no security or correctness issues with the documentation itself. I found three issues worth flagging: a truncated/incomplete .mdx file in the diff, a subtle agent-instruction gap in the preflight check, and minor content drift between the canonical SKILL.md files and their content/docs mirrors.

2 findings were added inline.

Suggestions

  • Content drift: mogplex-auth SKILL.md contains a 'Hard rules' section absent from the .mdx mirror (content/docs/cli/skills/mogplex-auth.mdx)
    The canonical skills/mogplex-auth/SKILL.md includes a prominent ## Hard rules section (never read auth.json, never echo a raw key, etc.) that does not appear in content/docs/cli/skills/mogplex-auth.mdx. The PR states the docs pages "mirror" the canonical skill files, but this section is user-safety-relevant and worth surfacing in the rendered docs too. Either add the section to the .mdx or explicitly note in the Callout that the .mdx is an abridged version. The same pattern — SKILL.md 'See also' linking to an authentication guide (https://mogplex.dev/cli/guides/authentication) — is also absent from the mirror page.

View check run


- [mogplex-exec](/cli/skills/mogplex-exec)
- [mogplex-auth](/cli/skills/mogplex-auth)
- [Slash commands guide](/cli/guides/slash-commands)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning: mogplex-slash.mdx is truncated mid-sentence in the diff

The patch for mogplex-slash.mdx ends at line 108 with - Running — the sentence is cut off and the closing content is missing from the diff hunk. This likely means the file itself is complete on the branch but GitHub's diff is clipping it. Please verify the file ends cleanly (e.g. a complete ## See also section) and that the rendered page does not show a fragment. Similarly, using-mogplex-cli.mdx in the diff ends with - The agent cannot read ~/.mogplex/auth.json. All credential state must — also mid-sentence in the patch. Worth an explicit sanity check against the full files on the head branch.

Before any command that talks to Mogplex, verify the CLI is installed and authenticated:

```bash
command -v mogplex >/dev/null || echo "mogplex CLI not installed"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning: Preflight command -v mogplex silently continues on failure

The preflight snippet is:

command -v mogplex >/dev/null || echo "mogplex CLI not installed"
mogplex login status

If mogplex is not on PATH, this prints a warning and then immediately runs mogplex login status anyway, which will produce a confusing command not found error rather than a clean stop. The skill instructs the agent to check for the CLI, but the shell idiom doesn't actually gate the subsequent command. Consider revising to something like:

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

or make the intent explicit in prose: "If the first command prints the warning, stop here and tell the user to install the CLI before continuing." This is an agent-instruction issue — agents following the snippet literally may try to run mogplex login status even when mogplex is absent. The same snippet is mirrored in content/docs/cli/skills/using-mogplex-cli.mdx and should be updated there too.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aefea6c679

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread skills/README.md

```bash
# Global install
cp -R skills/* ~/.claude/skills/
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Create target directory before copying skills

The global install command assumes ~/.claude/skills/ already exists, but for first-time users that directory is often missing, so cp -R skills/* ~/.claude/skills/ fails with "No such file or directory" and none of the skills are installed. Add a mkdir -p ~/.claude/skills step (or use an install command that creates parents) so the documented install flow works on a clean machine.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant