Diagnose

Diagnose is a skill for Claude Code, Codex from wrg32786/aigent-os. It costs 57 tokens per session (1,546 once invoked), scanned A, original, MIT.

A diagnostic skill that investigates problems in an aigent-OS installation by checking its seven system layers, such as skills, hooks, daemons, stored context, and configuration.

In plain words
What is it for?
Use it to investigate missing skills, incomplete context, hooks that do not run, unresolved links, or behavior changes after updates.
Why use it?
It helps locate integration failures when something stopped working but no single code component clearly explains the symptom.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Good fit Use it to investigate missing skills, incomplete context, hooks that do not run, unresolved links, or behavior changes after updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wrg32786/aigent-os/diagnose
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wrg32786/aigent-os --skill diagnose
Clone the repo
git clone --depth 1 https://github.com/wrg32786/aigent-os

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Diagnose

README.md
[![agentmods](https://agentmods.dev/badge/skills/wrg32786/aigent-os/diagnose/github.svg)](https://agentmods.dev/skills/wrg32786/aigent-os/diagnose)
Your own site
<a href="https://agentmods.dev/skills/wrg32786/aigent-os/diagnose"><img src="https://agentmods.dev/badge/skills/wrg32786/aigent-os/diagnose/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Diagnose

Your own site · 80×15
<a href="https://agentmods.dev/skills/wrg32786/aigent-os/diagnose"><img src="https://agentmods.dev/badge/skills/wrg32786/aigent-os/diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01546
Opus 5.5 $0.00023 $0.00618
Sonnet 5.5 $0.00011 $0.00309
Haiku 4.5 $0.00006 $0.00155

Measured 1mo ago against content hash 63b57798e2d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Diagnose scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/diagnose/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagnose

Most failures in an aigent-OS install aren't bugs in any single component — they're integration failures across layers. /diagnose walks the stack with you so you don't have to.

When to use

  • "It used to work, now it doesn't"
  • Caddy isn't surfacing a skill you expect
  • /open produces incomplete context
  • Hooks not firing
  • Wikilinks not resolving
  • AI behavior changed unexpectedly after an update
  • Anything you can't immediately attribute to a single component

How to execute

Step 1 — Capture the symptom

Ask the user (or read from their prompt):

  • What were you trying to do?
  • What happened instead?
  • What did you expect?
  • What changed recently? (git pull, new skill installed, hook edit, kernel update)

Frame the symptom in one sentence. Example: "Caddy used to surface /channel-audit when I asked about YouTube performance, now it doesn't."

Step 2 — Walk the seven-layer stack

For each layer, ask: could this layer be responsible for the symptom? If yes, run the specific check. If no, move on.

LAYER 7 — Principal Configuration
   - system/00_identity.md customized?
   - system/14_decision_framework.md reflects current priorities?
   - vault/projects/ and vault/people/ populated?
   Check first if symptom involves AI giving wrong context or missing your situation.

LAYER 6 — Doctrine (vault/concepts/)
   - Has a relevant doctrine note been edited recently?
   - Are there standing rules that should be firing but aren't?
   Check if symptom is about AI behavior changing without you having edited the kernel.

LAYER 5 — Vault Content
   - Wikilinks resolve? (run /system-check Tier 4)
   - Heat index up to date?
   - Memory layer current?
   Check if symptom is "AI doesn't know about X" or "/open missed Y."

LAYER 4 — Daemons
   - Heat compute daemon ran recently?
   - Semantic search index fresh?
   - Caddy reindex daemon firing?
   Check if symptom is "skills not surfacing" or "search results stale."

LAYER 3 — Hooks
   - Settings.json wired?
   - Hook scripts executable?
   - Hook output going where you expect?
   Check if symptom is "automated behavior stopped."

LAYER 2 — Skills
   - skill-index.json valid?
   - Trigger keywords match the user's actual phrasing? (run /skill-audit Section 3)
   - Skill descriptions match what the skill does?
   - Caddy fired correctly? Run /caddy-explain on the recent prompt to see the deterministic scoring.
   - Caddy index drift? Run /caddy-audit to see if any indexed skills are missing from disk or vice versa.
   Check if symptom is "wrong skill firing" or "no skill firing."

LAYER 1 — Kernel
   - All 15 system docs present and unmodified?
   - CLAUDE.md loaded?
   - Authority matrix consistent with what you've authorized?
   Check last — kernel issues are rare but high-blast-radius.

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 161 lines · 57 tokens per session scan A 63b57798e2d2

Subscribe to this mod's changes

Diagnose is a skill published in the GitHub repository wrg32786/aigent-os (23 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 1,546 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

Other skills, from other repositories

skillify-meta-loop

Use when a recurring bug, support question, client incident, or manual task surfaces 2+ times, when a codified rule keeps getting violated despite being written down, when a teammate or client hits an issue anyone could hit, or when delivery/setup friction repeats. Triggers: "skillify this", "this keeps happening"…

mycelium-hq/ai-brain-starter · 111 tokens

diagnose

Use when an AI Brain vault needs a health check or something feels off: Claude ignores CLAUDE.md, journal entries missing from /weekly, hooks not firing, something broke after a git pull, a friend's install misbehaves, Obsidian crashes or pegs the CPU, a .claude/worktrees folder appeared, Granola/WhatsApp/Slack/Gmail…

mycelium-hq/ai-brain-starter · 110 tokens

error-recovery

A guide to detecting and recovering from failures in long-running AI agents. It covers API outages, bad tool calls, broken conversation state, stalled streams, repeated loops, retries, fallback models, and circuit breakers that stop repeated failure.

bojieli/ai-agent-book · 111 tokens

coding-agent-harness

A guide to building the surrounding system that lets an AI agent safely work on code. This system provides tools, rules, tests, feedback, permissions, and ways to undo changes.

bojieli/ai-agent-book · 106 tokens

graphify

Use when the user invokes /graphify or asks to build, update, or query a knowledge graph from a folder of files (code, docs, papers, notes, images). Triggers: 'map this codebase', 'graph my notes', 'what is connected across these files', 'community detection', 'GraphRAG', incremental graph update, Neo4j/SVG/GraphML…

mycelium-hq/ai-brain-starter · 111 tokens

insights

Use when the user types /weekly or /monthly, asks for a weekly or monthly journal review or retrospective, asks 'how was my week' or 'how was my month', or wants trends, anomalies, or patterns across recent journal entries. Also fires when regenerating an insight report for a past week or month. NOT for writing…

mycelium-hq/ai-brain-starter · 91 tokens