Using Appstrate

Skills and coding agents

Bring your spaces' skills and agents into Claude Code and Codex with appstrate code sync, and let a coding agent configure Appstrate through the CLI or MCP.

Coding agents such as Claude Code and Codex can work with Appstrate in three ways, and they combine: the skills carry your team's conventions, the CLI or MCP is the hands.

  • Your skills, locally. appstrate code sync copies the skills of the spaces you belong to into the agent's skill directories, and keeps them current.
  • Your agents, as commands. In Claude Code, every agent active in a space where you may run agents becomes a /appstrate:run-<agent> command that launches it, in its own space, through the organization's MCP server.
  • The CLI and the API. A coding agent can call the platform through appstrate api without ever seeing a token. The repository ships an operating manual for exactly that: apps/cli/AGENTS.md. An agent without the CLI can use the organization's MCP server instead, as described in MCP clients.

What you need first: an instance and the CLI, signed in (appstrate login) with an organization pinned. Login pins it for you when there is only one choice. code sync does not read the pinned space.

Claude Code

Install the plugin once. Claude Code then re-runs the sync in the background every session, and reloads the plugin when something changed.

appstrate login
claude plugin marketplace add appstrate/claude-plugins
claude plugin install appstrate@appstrate

What you get in Claude Code:

WhatHow it appears
Skills of every space you are a member of/appstrate:<skill>
Agents active in the spaces you can run/appstrate:run-<agent>
The organization's MCP serverA server named plugin:appstrate:appstrate, reaching every space you hold a role in

The plugin carries no token. Open /mcp, select plugin:appstrate:appstrate and complete the browser login once. That login is separate from appstrate login.

Agent commands take your request in plain words, for example /appstrate:run-invoice-extractor extract the totals from ~/Downloads/march-invoice.pdf. Claude builds the input from the agent's launch form and launches it with the MCP tool run_and_wait. Nothing is pre-approved: Claude Code asks before the metered run starts and shows the exact input. You need the permissions to run agents and read runs in the agent's space, which the runner space role includes. The same agent active in two spaces gives two commands, run-<agent> and run-<space>-<agent>, each launching in its own space. To pass a file, keep it in the session's working directory or start Claude Code with --add-dir.

Installing the plugin on a fresh machine is the only step that has to come first. Without a signed-in profile it installs a setup skill that tells you what is missing.

The plugin has one SessionStart hook, which prints a notice at the start of a session when the last sync could not complete: a lost login, a missing profile, no pinned organization or space, or a revoked organization. The notice gives the time of the failed sync and the command that fixes it, which you can ask Claude to run; then claude plugin update appstrate@appstrate and a new session load the result. A sync without such a problem removes the notice, and one that fails on a network or server error leaves it as it is.

After switching organization

The plugin follows your profile's organization. After appstrate org switch, refresh it and start a new Claude Code session, because a running session can keep the old endpoint. appstrate space switch changes the default space of the CLI's REST commands only, not the plugin:

claude plugin update appstrate@appstrate

Then check the endpoint in /mcp and authenticate again if asked.

Codex

Codex reads skills from ~/.agents/skills/. The Claude Code plugin already syncs that directory too. Without Claude Code, run the sync yourself, by hand or on a schedule:

appstrate code sync --target codex

Agent commands are not available in Codex, since nothing configures the MCP server there. To give Codex the organization's MCP server, see MCP clients.

Sync options

appstrate code sync --target claude-plugin --target codex   # what the plugin runs
appstrate code sync --target claude-user                    # into ~/.claude/skills/ without the plugin
appstrate code sync --target codex --dry-run                # show what would change
appstrate code sync --target claude-user --source draft     # your working copies, not published versions
appstrate code sync --target codex --space spc_prod         # only these spaces, this run
  • --target is required and repeatable: claude-plugin, codex or claude-user.
  • By default a sync takes the active skills of every space you are a member of and can read skills in. Being added to a space puts its skills on your machine at the next sync, and being removed takes them off. --space, or syncSpaces in your profile, narrows that set and never widens it.
  • It installs the organization's latest published version of each skill. --source draft syncs working copies instead, for authors, and needs write access to the skill.
  • The MCP connection is the organization's: it reaches every space you hold a role in, and a free-form request names its space (space_id) or Claude asks you which one. Agent commands come from the same selected spaces as skills, wherever you may run agents.
  • A sync never deletes or overwrites a directory it did not create. A name already taken by your own skill is reported and skipped.
  • Installed skills are generated copies. Editing them does not change anything in Appstrate.

If your organization blocks command-sourced plugins, or you use Codex only, schedule appstrate code sync --target codex with cron or a macOS launchd agent. Use launchd on macOS: the sync needs your keyring, which a system cron job may not reach. Scheduling details, ownership rules and every failure message are in the CLI README.

Write skills and agents from your editor

appstrate code sync only copies down. To author a skill, agent, integration or MCP server in a local folder, push it to its draft and publish it, use appstrate packages. To try a skill in Claude Code before publishing it, load its folder directly with claude --plugin-dir <dir>.

What to delegate

A platform engineer rolling out Appstrate can hand configuration work to the coding agent instead of clicking through the dashboard or hand-typing API calls. Requests that land well:

  • "Create an agent called email-triage that reads my Gmail inbox and posts a summary to Slack. Use the @appstrate/gmail-mcp and @appstrate/slack integrations and select only the tools it needs."
  • "Write a custom integration for our internal API at https://api.acme.com, with an API key in the Authorization header, import it, and add it to the reporting agent."
  • "Rotate the API key named ci-deploy: create the new one, check it works, then revoke the old one."
  • "Diff my dev profile's agent list with prod and tell me what is missing on prod."

If something fails, the agent should stop and show the error instead of retrying blindly. Review what it is about to do on a production profile, as you would a colleague's change.

A standalone skill repository

A separate open-source repository, appstrate/skills, publishes a skill for coding agents. It is not part of this repository, so follow its own README for installation and contents.

Reference

On this page