/gloria:using-the-skills-libraryfrom gloria
Use when about to author a new agent skill, when asked whether the org already has a skill for some task, when sharing/publishing a reusable skill across the organization, or when installing a skill the org subscribes to from an external marketplace (e.g. Obra Superpowers) — drives the gloria.dev skills-library tools (search before you duplicate, get the full bundle, publish immutable versions org-wide, install external skills via the host agent's native marketplace).
Ships in gloria. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Your gloria.dev organization has a versioned, org-wide skills library. Before you write a new agent skill, check whether one already exists; when you build a reusable one, publish it so every project in the org can use it.
Skills come from three sources. Distinguish them with two fields on each search_skills result — source and author — because only external skills set source:
source is absent (undefined); identify by author === "org".source is absent; identify by author === "gloria.dev".source, to the string marketplace:<id> (and author === "marketplace"). They are metadata-only: gloria indexes their frontmatter but never copies the content. You install them through the host coding agent's native marketplace, not via get_skill.So the reliable test is: source starting with marketplace: ⇒ external (use install_skill); no source ⇒ internal — then read author to tell org from gloria.dev. Never branch on source === "org"/"gloria.dev"; those values are never emitted.
These tools live on the gloria MCP server and are deferred — they will not appear until you load them. Run ToolSearch with gloria skill (or select: the exact names) before calling them.
Core principle: search before you author. Publish to share. Install external skills natively.
Not for project-only conventions (those go in CLAUDE.md) or one-off local skills.
| Tool | Use | Requires | Returns |
|---|---|---|---|
search_skills | Find an existing skill (org + system + external) | query (optional substring) and/or tags (optional string[]) — omit both to list all | Summaries: slug, name, description, latestVersion, tags, author (org/gloria.dev/marketplace), updatedAt. External skills only also carry source (marketplace:<id>), marketplace, plugin, supportedAgents. Internal skills omit source — see the discriminator note in the Overview. |
get_skill | Read a full bundle | slug (+ optional version) | SKILL.md + all supporting files. External (marketplace) slugs return 409 — use install_skill instead. Unknown slug → 404 |
list_skill_versions | Inspect history | slug | Versions newest-first: version, name, description, contentHash, createdBy (the publisher's user id — not the org/gloria.dev author marker), createdAt. Unknown slug → 404 |
publish_skill | Create / update a skill | files[] (each {path, content}) | { slug, name, version, contentHash }. 403 (not admin), 409 (system-skill name), 422 (malformed bundle) |
list_marketplaces | See external subscriptions | — | Each subscription: id, name, repoUrl, manifestName (the <plugin>@<handle> install handle; null until first sync), supportedAgents, status (syncing/active/error), lastSyncedAt, lastError |
install_skill | Install an external skill | marketplace (id) + agent (claude-code|codex) + slug or plugin | { agent, marketplace, marketplaceName, repoUrl, plugin, slug?, commands[] } — each commands[] item is {description, command}, the host agent's native subscribe/install steps (commands only, never files). 409 if agent isn't in the marketplace's supportedAgents; 404 for an unknown marketplace/slug/plugin |
Tags. Skills are tagged from the tags: frontmatter key in their SKILL.md (a scalar tags: a, b or a YAML sequence; each value is slugified, deduped, and capped). search_skills's tags filter is AND — a skill matches only if it carries every tag you pass — and combines with query (both must hold). There is no tool that lists the org's tags, so to discover them, search_skills with no args and read the tags on the returned summaries.
search_skills with the task keywords. The query is a substring match on name and description only, so it misses differently-named skills — run 2–3 synonym queries ("API key rotation", "credential rotation", "secret rotation"). Because the org ships pre-seeded with gloria.dev system skills, a no-args search_skills is also how you see the tags already in use — then narrow with the tags filter (AND semantics), which catches relevant skills a substring query would miss. If still unsure, call it with no query and no tags to list the whole library.get_skill by slug to read the actual scope before judging overlap.publish_skill takes a files array; one file must be a root SKILL.md with name + description frontmatter. On success a new immutable version is created.
Know these before you publish:
name frontmatter — lowercased, every run of non-alphanumerics becomes a single hyphen, leading/trailing hyphens trimmed ("Rotate API Keys!" → rotate-api-keys). You do not pass a slug.tags: frontmatter key so the skill is discoverable by search_skills's tag filter — a scalar (tags: secrets, security) or a YAML sequence. Tags are slugified and deduped on publish; reuse tags you already saw in the library (Workflow A) so related skills cluster.latest + 1 — it never overwrites. A name that slugifies to an existing skill silently creates the next version of that skill. So run Workflow A first; to update intentionally, match the existing name exactly.gloria.dev); if your name slugifies to one, publish_skill returns 409 and creates nothing. Pick a distinct name rather than trying to shadow a seeded skill.publish_skill requires admin (settings:manage) — it returns 403 otherwise. A malformed bundle returns 422.get_info).When search_skills returns a skill whose source is marketplace:<id>, you cannot get_skill it — gloria never serves external content. Install it through the host agent's native marketplace instead:
search_skills for the task. A result with a source of marketplace:<id> is external — take its marketplace (id), plugin, and supportedAgents from the summary. A result with no source is internal (org or gloria.dev per its author) — use get_skill as usual.agent you pass next. Check it against the skill's supportedAgents first; if it's absent, tell the user this marketplace doesn't support their agent and stop (calling install_skill with an unsupported agent returns 409). Cursor is not a valid agent value. Cursor does have its own plugin marketplace (since Cursor 2.5), but no CLI/slash command an individual user can run to add an arbitrary marketplace repo — that's Team/Enterprise-admin-only via the Cursor Dashboard — so install_skill has no native command sequence to hand back for it. If you're running in Cursor, tell the user this workflow doesn't apply and point them at the working-today install instead (clone the marketplace repo, symlink its plugin into ~/.cursor/plugins/local/ — see the root README's Cursor section).install_skill { marketplace, agent, slug } (or pass plugin instead of slug). It returns commands[] — the exact subscribe/install steps for that agent — and the installing plugin. It never returns files.command in order; do not hand-construct them. The Claude Code install target is <plugin>@<handle>, where <handle> is the marketplace's manifest name (manifestName), which can differ from the repo name — so trust the returned string, not a guessed <plugin>@<repo>. (Shape: Claude Code → /plugin marketplace add <owner>/<repo>, then /plugin install <plugin>@<handle>, then /reload-plugins; codex → codex plugin marketplace add <owner>/<repo>, then install via /plugins.) Restate that this installs the whole plugin <plugin>, which may bundle more skills than the one searched./reload-plugins), confirm the plugin and its skills loaded.list_marketplaces shows which marketplaces the org subscribes to and their sync status; a marketplace still syncing may not list all its skills yet.
tags, or list all.tags: frontmatter when publishing — the skill then only surfaces on a name/description substring hit, never on a tag filter.publish_skill to overwrite or let you pick a slug — it appends a version and derives the slug from the name.409 and writes nothing; choose a distinct name.get_skill on an external (marketplace:<id>) skill — it returns 409; gloria never serves external content, so use install_skill and run the native commands.source === "org" or "gloria.dev" — those are never emitted. Only external skills set source (marketplace:<id>); for internal skills source is absent and the discriminator is author.<plugin>@<repo> — the real handle is the marketplace's manifestName, which can differ from the repo. Run the exact commands[] install_skill returns instead.install_skill command into the wrong agent — the commands are per-agent; pass the agent you're actually running in, and only if it's in the skill's supportedAgents (otherwise install_skill returns 409).plugin so the user knows what else it brings.ToolSearch for gloria skill.What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/checking-coding-standardsUse to check code against a project's registered gloria Coding Standards. Fires for plain requests to compare code with the rules — "check this against our standards", "does this drift from our rules/conventions", "are we following our own standards", "review this for standards compliance", "check this PR against our standards", "run a standards check", "audit the repo for drift", "has our code drifted from the rules" — including before or after implementing a change in a project that has registered standards. Runs diff-scoped checks (the per-PR workhorse), cheap metadata checks (render stamp + rule-evidence staleness), or a full audit (snippet staleness included), and reports findings to the gloria drift ledger via report_check_run. Read-only: findings, never edits./debugging-production-errorsUse to investigate production problems through gloria's log debugging tools. Fires for plain requests about live behavior — "why is X failing in production", "what happened at 2pm", "debug these 500s", "is anything erroring right now", "check the logs", "what broke after the last deploy", "why are checkouts timing out" — for any project with a gloria log connection configured. Queries the org's own log provider live via the gloria MCP tools (get_log_provider_status, get_log_stats, list_error_groups, query_logs): find the spike, group the errors, correlate with the deploy, pull the stack trace, map it to source. Read-only over logs; never asks for credentials in chat.Other plugins' skills for the same job
npx claudepluginhub sandgardenhq/plugins --plugin gloria