From realm
Deep investigation skill. Accepts abstract input (function name, class, concept, or freeform question) and returns consolidated understanding from two sources: live code via cavecrew-investigator (authoritative for behavior, flow, signatures) and vault via realm-agent-query (authoritative for why, ADRs, architectural intent). Detects and flags vault/code drift explicitly — never blends conflicting sources silently. Vault is optional; degrades gracefully to code-only when unavailable. Zero writes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/realm:realm-fathomThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Investigate anything. Code truth + vault context. Drift flagged.
Investigate anything. Code truth + vault context. Drift flagged.
/realm-fathom function:validateUser # named function
/realm-fathom class:UserService # named class
/realm-fathom system:PaymentPipeline # named subsystem
/realm-fathom "how does auth flow work" # freeform question
/realm-fathom validateUser # bare name (auto-detect type)
/realm-fathom "payment pipeline" # concept
/realm-fathom function:validateUser
→ Live: signature, flow, callers, error paths
→ Vault: why JWT, ADR refs, invariant notes
→ DRIFT flagged if vault says bool return but code returns Result<User>
/realm-fathom "how does the auth middleware chain work"
→ Investigator maps relevant files + functions end-to-end
→ Vault adds architectural intent, prior decisions
→ VERDICT: consolidated what + why
/realm-fathom class:PaymentService
→ Full class: responsibility, methods, deps from live code
→ Vault: why this abstraction exists, linked ADRs
| Source | Authoritative for |
|---|---|
Live code (cavecrew-investigator) | behavior, signatures, flow, callers, current state |
Vault (realm-agent-query) | why, ADR refs, architectural intent, invariant rationale |
| Conflict | flagged as VAULT DRIFT — never silently blended |
| Condition | Behavior |
|---|---|
.realm/realm-state.json missing | SOFT — proceed code-only, note vault unavailable |
| Vault initialized but no nodes match query | Note "no vault nodes" — proceed code-only |
| Entity not found in codebase | Flag "cannot locate in codebase" |
| Vault and code conflict on any fact | Flag VAULT DRIFT with both values |
| Trigger | Example |
|---|---|
| Understand how a function works before modifying it | /realm-fathom function:processPayment |
| Map a class before refactoring | /realm-fathom class:AuthMiddleware |
| Answer a freeform design question | /realm-fathom "how does session refresh work" |
| Audit: what vault says vs what code actually does | any vaulted entity |
/realm-flourish or /realm-manifest/realm-recall/realm-phase/realm-statusFrom invocation args:
function:X, class:X, system:X → extract entityType and entityNameentityType: freeform, entityName: "", use full arg as queryfreeform (investigator will auto-detect type)Read .realm/realm-state.json from current working directory:
vaultPath, projectSlug, projectDir → set vaultAvailable: truevaultAvailable: false
Vault not initialized — proceeding code-only. Run /realm-forge to enable architectural context.Spawn agent realm-agent-fathom with this prompt:
projectRoot: <absolute path to current working directory>
query: <full original query string, e.g. "function:validateUser" or "how does auth flow work">
entityType: <function|class|system|freeform>
entityName: <extracted name, or empty string if freeform>
vaultAvailable: <true|false>
vaultPath: <vaultPath or empty>
projectSlug: <projectSlug or empty>
projectDir: <projectDir or empty>
Investigate the query and return a consolidated fathom report.
Follow the full procedure in your instructions.
Wait for completion. Surface the agent's fathom report directly to the user.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub blackmo18/realm --plugin realm