gaia-verify
Skill4 starsChanged 5 months agoMITView on GitHub
Use when the user wants to verify a Gaia installation -- "probemos la instalación", "verifiquemos que Gaia funcione", "verify", "test installation", "gaia-verify
- Installs packages
In this repository38 other files it gives its agents.
- agent-contract-handoffSkill
- agent-creationSkill
- agent-protocolSkill
- agent-responseSkill
- blog-writingSkill
- brief-specSkill
- code-reviewSkill
- code-standardsSkill
- command-executionSkill
- diagram-builderSkill
- executionSkill
- fast-queriesSkill
- gaia-auditSkill
- gaia-checkSkill
- gaia-compactSkill
- gaia-patternsSkill
- gaia-plannerSkill
- gaia-releaseSkill
- gaia-researchSkill
- git-conventionsSkill
- gmail-policySkill
- gmail-triageSkill
- gws-setupSkill
- investigationSkill
- memorySkill
- orchestrator-present-approvalSkill
- pending-approvalsSkill
- readme-writingSkill
- scheduled-taskSkill
- security-tiersSkill
- session-reflectionSkill
- skill-creationSkill
- subagent-request-approvalSkill
- technical-explanationSkill
- ticket-writingSkill
- verification-oracleSkill
- verification-rubricSkill
- visual-verifySkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
If the user does not name a mode, ask: "Which mode -- live, npm-sandbox, plugin, or registry?"
- Very specific: line 28
Run against the workspace: gaia doctor then gaia status, then the wire-up checklist below.
- Very specific: line 50
After wiring a workspace, these checks catch what gaia doctor cannot reach when the wire-up is so broken that doctor itself walks up to the …
- Distinctive: line 88
Every mode ends with a structured result:
- Very specific: line 100
If gaia doctor fails, report the exact error and stop -- do not continue to gaia status.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gaia Verify
Confirm that a Gaia installation actually works. Given a workspace and a delivery surface, run the checks that match that surface and report PASS/FAIL. This skill owns the definition of "a healthy install" -- the wire-up checklist and the per-surface checks. It is the check that gaia-release calls at the close of every layer; here it stands alone so the user can invoke it directly against whatever they just installed.
Gaia ships as one tree reaching a workspace through two surfaces -- npm/pnpm (the npm package @jaguilar87/gaia: symlinks + settings.local.json) and the Claude Code plugin (source: github with a pinned ref -- .claude-plugin/marketplace.json advertises the plugin, so /plugin install makes CC clone the git repo into its plugin cache and load hooks from the repo root's hooks/hooks.json; the root .claude-plugin/plugin.json is metadata-only, and there is no dist/ bundle). A change can pass on one surface and break on the other, so the mode you pick must match the surface you are validating.
Decision tree
"probemos" / "verify" / "test installation"
├─ Already installed in a workspace (npm/pnpm), just edited source? -> live
├─ Proving the npm tarball before a release? -> npm-sandbox
├─ Proving the npm tarball as a plugin before a release? -> plugin
└─ Confirming a version already published to npm? -> registryIf the user does not name a mode, ask: "Which mode -- live, npm-sandbox, plugin, or registry?"
Mode: live
Validates a workspace that is already wired (npm/pnpm surface). No build, no temp dir, no cleanup.
Run against the workspace: gaia doctor then gaia status, then the wire-up checklist below. This is the mode gaia-release Layer 1 and Layer 3 call after installing into the target (via gaia dev --workspace <TARGET>, the one-command install).
Mode: npm-sandbox
Validates the npm surface of exactly what a registry publish would ship -- pack, install into a clean sandbox, run the harness, clean up. No accumulated workspace state.
Primary path: gaia release check runs this gate (as gate 2, gaia:verify-install:local) inside the full Layer 2 sequence. To run just this surface in isolation, npm run gaia:verify-install:local (packs, installs into /tmp/gaia-sandbox-<ts>-<pid>/, runs the harness, cleans up) is what gaia release check wraps -- manual step-by-step in reference.md. This is the mode gaia-release Layer 2 gate 2 calls.
Mode: plugin
Validates the Claude Code plugin surface -- the exact npm tarball, extracted, with its root mounted as a plugin. This is the only mode that exercises the root plugin.json (metadata-only) / hooks/hooks.json, the packaged agents/skills, and bin/gaia on PATH; the npm surface never touches any of it.
Primary path: gaia release check runs this gate (as gate 3, gaia:plugin-dryrun) inside the full Layer 2 sequence, and SKIPs it gracefully when the claude binary is absent. To run just this surface, npm run gaia:plugin-dryrun (bin/plugin-dryrun.sh, what gaia release check wraps) packs the tarball, extracts it to a throwaway temp dir, and runs a headless, offline gate -- filesystem asserts (root plugin.json present with NO inline hooks block, hooks/hooks.json, bin/gaia, agents/, skills/, and NO dist/) + claude plugin validate. It touches no real workspace and spawns no session; the temps are trap-cleaned. Add gaia release check --functional (or npm run gaia:plugin-dryrun -- --functional) for an optional live claude --plugin-dir <temp> -p '...' probe (needs Claude auth/tokens). This is the mode gaia-release Layer 2 gate 3 calls. Do NOT publish or install to the real registry to run this.
Mode: registry
Validates a version already published to npm -- fresh temp dir, install from the registry tag, verify, clean up.
Core flow: npm run gaia:verify-install:rc (the @rc tag) or npm run gaia:verify-install:latest (the @latest / stable tag). Step-by-step in reference.md. This is the mode gaia-release Layer 3 step (h) calls after the pipeline publishes.
Wire-up checklist (live / after any install)
After wiring a workspace, these checks catch what gaia doctor cannot reach when the wire-up is so broken that doctor itself walks up to the user .claude/ instead of the workspace. If any check fails, jump to gaia-release/reference.md -> "Diagnostic guide".
ls -la <workspace>/.claude/-- 6 directory symlinks (agents,tools,hooks,config,skills,opencode) + aCHANGELOG.mdlink, pluslogs/,approvals/,plugin-registry.json,settings.local.json. (_SYMLINK_NAMES+_SYMLINK_FILESinbin/cli/_install_helpers.py.)cat <workspace>/.claude/plugin-registry.json--installed[].nameat the expected version. Decided: the canonical registry identity isgaia(_read_plugin_namein_install_helpers.pystrips the npm scope from@jaguilar87/gaiaand falls back to"gaia"). A fresh install always writesgaia; fail the check if the name is anything other thangaia.cat <workspace>/.claude/settings.local.json | jq '.hooks | keys'-- hook events registered (npm surface only; the plugin surface reads hooks from the repo root'shooks/hooks.json, not fromsettings.local.jsonor the metadata-onlyplugin.json).ls ~/.gaia/gaia.db-- DB file exists. It is bootstrapped lazily on firstgaiaCLI use (_ensure_db_bootstrappedinbin/gaia) or bygaia install-- there is no postinstall.cat ~/.gaia/last-install-error.json-- file does not exist.gaia installwrites this marker on any bootstrap or wire-up failure; treat its presence as a hard failure regardless of whatgaia doctorreports.cd <workspace> && gaia doctor--Status: HEALTHY, checks pass, 0 errors.
Drift-free surfaces (what doctor validates == what dev/release reconcile)
An install is drift-free when 5 surfaces agree on one build, plus the DB
schema direction is not reversed. gaia doctor REPORTS this skew (it never
fixes -- the reconcile lives in the install actors); the checklist above and the
per-surface report gaia dev prints after wiring both mirror it. The surfaces
(inspected read-only by bin/cli/_converge.py, classified aligned / stale /
absent):
- PATH
gaia-- a baregaiaresolves to the expected build (gaia doctorcheck 58,Global CLI alignment). A stalenpm install -gcopy earlier on PATH shadowing the workspace shim is the classic drift. - hooks in
.claude/settings.local.json(checklist 3 / doctorSettings). - workspace
node_modules/@jaguilar87/gaia(doctorInstall provenance). - global npm (
~/.npm-global) -- reconciled to the origin bygaia devvianpm link(install.reconcile_global_via_npm_link); doctor warns on a PATH-shadowing global (POSIX + Windows). - DB schema (
~/.gaia/gaia.db) --gaia doctorcheckSchema versionreports BOTH directions: code AHEAD of DB (forward migration pending -> rungaia dev/install/release) and code BEHIND DB (the reverse, finalize-breaking drift the bootstrap direction guard REFUSES -- install newer code, never downgrade the DB).
The reconcile is idempotent in all 3 cases (not installed / stale / aligned):
gaia dev (origin = local source) and gaia release (origin = artifact) share
this convergence; there is no --from flag -- the command IS the origin.
All modes: reporting
Every mode ends with a structured result:
Mode: <live | npm-sandbox | plugin | registry>
Surface: <npm/pnpm | plugin>
Version: <version installed, or "symlinked source" for live>
Doctor: PASS | FAIL
Status: <`gaia status` output summary>
Checklist: <n/n wire-up checks passed, or n/a>
Cleanup: done | n/a (live)If gaia doctor fails, report the exact error and stop -- do not continue to gaia status.
Anti-Patterns
- Skipping the mode question -- each mode tests a different surface; running the wrong one gives false confidence. A green npm-sandbox says nothing about the plugin bundle.
- Validating only one surface -- npm/pnpm and plugin load hooks by different paths; one can pass while the other is broken. Match the mode to what changed.
- Accepting a non-canonical registry name --
gaiais the sole canonical registry identity (check 2). A fresh install that writes anything other thangaiais a real bug. - Assuming a postinstall bootstrapped the DB -- the DB is lazy (first CLI use) or explicit (
gaia install); if it is missing, run agaiacommand, not "re-run postinstall". - Skipping cleanup --
/tmp/gaia-sandbox-*and registry temp dirs accumulate; always delete after reporting (n/a for live). - Continuing after doctor failure -- a failing doctor means the installation is broken; status output is meaningless.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

