/gloria:setting-up-gloriafrom gloria
For a project that's already set up (has, or intentionally has no, its own CLAUDE.md/AGENTS.md) and just needs Gloria wired in — not for a brand-new project with no CLAUDE.md yet (use `setting-up-a-gloria-project` for that, which runs this skill as the first step of its Gloria setup phase, then maps dependencies, extracts and checks coding standards, and identifies skills). Use when installing Gloria into a repo ("set up gloria", "install gloria in this project"), when a repo is missing .gloria/USING-GLORIA.md or the gloria section in CLAUDE.md/AGENTS.md, or after a gloria plugin update to refresh a stale doc — copies the canonical USING-GLORIA.md agent doc into the repo, wires an evergreen Gloria section into the agent instruction files (with the user's permission), and offers to register the project with gloria.dev. Idempotent; safe to re-run.
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.
Read when SKILL.md points to them.
Wire Gloria into the current repo so every coding agent that works here knows what Gloria is and when to use it. Two files carry that:
.gloria/USING-GLORIA.md — the agent playbook, copied verbatim from
the USING-GLORIA.md that sits next to this SKILL.md (the skill's base
directory). Committed to the repo.CLAUDE.md
and/or AGENTS.md) that points unconditionally at the doc. The section is
evergreen — it names no features, so it never changes across Gloria
releases; only the doc does.Never modify the user's files without showing them exactly what will change and getting a yes first.
This skill assumes the repo is already set up (or deliberately has no
CLAUDE.md of its own) — it only ever inserts/updates the marked Gloria
section inside existing instruction files, or creates a bare AGENTS.md
holding just that section. For a brand-new, empty repo that needs a full
CLAUDE.md authored from scratch, use setting-up-a-gloria-project instead — it
runs the full interview, then a Gloria setup phase whose first step is this
skill, followed by the dependency sync, coding standards, and skills steps.
Insert this text exactly, markers included. The markers are how re-runs find and replace the section instead of duplicating it.
<!-- gloria:start -->
## Gloria
This project uses [Gloria](https://gloria.dev) to keep agent-written code
aligned with intent — dependency monitoring, shared skills, and more. Gloria's
tools and skills apply to everyday coding tasks, not just Gloria-specific
requests.
Before starting work in this repo, read `.gloria/USING-GLORIA.md`. It explains
which Gloria tools and skills to use, and when. When it names a trigger that
matches your current task, using the corresponding tool/skill is required, not
optional.
<!-- gloria:end -->
git rev-parse --show-toplevel; fall back to the
working directory if not a git repo).USING-GLORIA.md in this skill's base
directory. If it is missing, stop and tell the user the plugin install
looks broken — do not synthesize the doc from memory..gloria/USING-GLORIA.md — present? Compare its gloria-doc-version
stamp (first line) with the shipped copy's.CLAUDE.md, AGENTS.md — which exist, and does each already contain a
<!-- gloria:start --> ... <!-- gloria:end --> block?Tell the user precisely what will happen, in one message, and ask a single yes/no. Cover only the actions actually needed, e.g.:
.gloria/USING-GLORIA.md;CLAUDE.md and AGENTS.md (or "replace the
existing Gloria section in ...");AGENTS.md containing the section, when neither instruction file
exists.If everything is already current, say so and skip to step 5. If the user declines the file edits, stop — do not partially apply.
Copy the shipped USING-GLORIA.md to .gloria/USING-GLORIA.md verbatim
(create the .gloria/ directory if needed). Do not edit, reformat, or
"improve" the content — refreshes must stay a pure file copy.
For each of CLAUDE.md and AGENTS.md that exists at the repo root:
<!-- gloria:start --> through <!-- gloria:end --> (inclusive) with the
section above.If neither file exists, create AGENTS.md containing only the section
(AGENTS.md is the cross-agent standard; Claude Code reads it too).
gloria MCP tool get_info.
list_projects and look for a project matching this repo (by name or
repo URL). If none matches, offer to run register_project. Registration
is optional — a "no" still completes setup.Summarize what changed (files created/updated, section inserted where,
registration outcome) and suggest committing the changes, e.g.
chore: wire gloria agent doc into instruction files.
Token-usage tracking (declaring work items, minting the collector's ingest
credential) moved to the Miranda plugin's own setting-up-usage-tracking
skill — offer that separately if the user has Miranda installed and hasn't
set it up yet.
.gloria/USING-GLORIA.md (older stamp) is overwritten wholesale.get_info response carries a latestAgentDocVersion
newer than the repo's .gloria/USING-GLORIA.md stamp → offer a refresh..gloria/USING-GLORIA.md → offer initial setup.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sandgardenhq/plugins --plugin gloria12 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.