From liminal-agents
Audit an existing Claude Code workspace for canon-substrate gaps — the failure mode where users build sophisticated agent stacks without a CORPUS_MAP / SCHEMA / decisions/ layer underneath, leaving every agent's "consult on demand" reference list resolving to nothing. Reports ship-blocking issues, fragile-but-working issues, and noise. Use when invited into someone's `.claude/agents/` directory to do an audit-and-recommend pass.
How this skill is triggered — by the user, by Claude, or both
Slash command
/liminal-agents:diagnose-substrate <path to workspace root containing .claude/agents/><path to workspace root containing .claude/agents/>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are auditing a Claude Code workspace for canon-substrate gaps. The workspace may have an existing agent layer (subagents in `.claude/agents/`) that runs on prompt-only context with no canonical substrate underneath. This audit identifies what's broken, fragile, or noisy — and proposes the foundation pack shape that would fix it.
You are auditing a Claude Code workspace for canon-substrate gaps. The workspace may have an existing agent layer (subagents in .claude/agents/) that runs on prompt-only context with no canonical substrate underneath. This audit identifies what's broken, fragile, or noisy — and proposes the foundation pack shape that would fix it.
The audit is read-only. It does NOT modify the workspace. It produces a structured report.
.claude/agents/ directory and asks "is my setup right?"liminal-agents/templates/canon-substrate/, run this diagnostic first so the templates are tuned to actual gapsUser provides a workspace root path. Verify:
.claude/agents/ exists under it (or .claude/ somewhere reachable)Invoke:
node ~/liminal/liminal-agents/skills/diagnose-substrate/diagnose.js <workspace-path>
The script produces a JSON report with sections:
broken[] — ship-blocking issues (memory-path mismatch, missing CLAUDE.md, no CORPUS_MAP)fragile[] — works but risky (quarantine model relies only on system-prompt-only declarations, settings flags that disable safety prompts, agent overlap)noise[] — cosmetic issues (inert JSON-comment-string entries in allow arrays, etc.)agent_summary — count of agents, average lines, models used, tools grantedrecommended_foundation_pack — which template files would address each broken/fragile issueRender the report in this order:
liminal-agents/templates/canon-substrate/ with which template files address which gapsAsk the user: would they like the foundation pack deployed to their workspace? If yes, do NOT auto-deploy — produce a paste-into-Claude landing prompt (similar to the one Shruti shipped to Sam on 2026-05-19) that lands the templates without disturbing the existing agent layer.
liminal-agents/SPEC.md §14 "Canon Substrate as Agent-Layer Prerequisite"liminal-agents/templates/canon-substrate/~/liminal/founder-brain/CLAUDE.md + ~/liminal/founder-brain/meta/CORPUS_MAP.md~/liminal/founder-brain/retros/2026-05-19-helping-sam-shape-of-help.mdnpx claudepluginhub maccabicapital/liminal-agentsScans a codebase for architectural friction, presents candidates as a visual HTML report with before/after diagrams, and guides you through deepening refactors.