diagnose

diagnose is a skill for Claude Code from thettwe/nyann. It costs 202 tokens per session (1,206 once invoked), scanned A, original, MIT.

A read-only diagnostic bundle for nyann, a repository setup and maintenance tool. It collects version, system, repository, Git, hook, and nyann configuration details while hiding access tokens in URLs.

In plain words
What is it for?
It helps prepare support requests and bug reports when nyann behaves unexpectedly or stops working in a repository.
Why use it?
It gathers the evidence maintainers need to investigate a problem without requiring you to collect several outputs by hand.

Skill for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the nyann plugin — 41 skills, 41 commands, 3 hooks shipped together

Good fit It helps prepare support requests and bug reports when nyann behaves unexpectedly or stops working in a repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thettwe/nyann/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 thettwe/nyann --skill diagnose
Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann

Made for: Claude Code.

Or install nyann, the plugin that ships this one along with the rest of its 41 skills, 41 commands, 3 hooks.

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/thettwe/nyann/diagnose.svg)](https://agentmods.dev/skills/thettwe/nyann/diagnose)
Your own site
<a href="https://agentmods.dev/skills/thettwe/nyann/diagnose"><img src="https://agentmods.dev/badge/skills/thettwe/nyann/diagnose.svg" alt="Measured on agentmods" height="20"></a>
Per session 202 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,206 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.
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.00202 $0.01206
Opus 5 $0.00101 $0.00603
Sonnet 5 $0.00040 $0.00241
Haiku 4.5 $0.00020 $0.00121

Measured 8d ago against content hash 4c5095a4abaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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 · 88 lines

How it starts

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

diagnose

Read-only support bundle. Aggregates everything a maintainer needs to reproduce or pinpoint a nyann bug into one paste-friendly output.

When to trigger

  • User reports nyann broke on their repo and wants to file a bug
  • User asks for a "support bundle", "diagnostic dump", or wants to know what to include in an issue
  • User says nyann is misbehaving and wants help collecting evidence

What gets bundled

bin/diagnose.sh collects, in one structured JSON object:

  • nyann_version — from .claude-plugin/plugin.json
  • hostuname -srm, bash version, jq/git/gh versions
  • repobin/explain-state.sh --json output (stack, profile, branching, hooks, CLAUDE.md, recent commits)
  • healthbin/doctor.sh --json output (drift report + health score)
  • gitgit config --list lines + git status --porcelain, with embedded URL credentials redacted via nyann::redact_url
  • hook_files — first 8 KB of .git/hooks/pre-commit, .git/hooks/commit-msg, .husky/pre-commit, .husky/commit-msg, .pre-commit-config.yaml (each null when absent)
  • nyann_config~/.claude/nyann/preferences.json + team_profile_sources[] with URLs redacted
  • prereqsbin/check-prereqs.sh --json

Every field flows through redaction. The bundle is safe to paste into a public GitHub issue.

Execution flow

Phase 1: Explain what diagnose collects

Tell the user: "I'll run bin/diagnose.sh against this repo. It collects state, drift, hooks, and configuration into one bundle. URL credentials and tokens are redacted before output."

Phase 2: Run the bundle

Run bin/diagnose.sh --target . --json (default mode is human-readable; --json for the paste-into-issue version).

If the user wants to share publicly, suggest:

  • Pipe to a file: bin/diagnose.sh --target . --json > nyann-diagnose-$(date +%Y%m%d).json
  • OR use the human-readable mode (bin/diagnose.sh --target .) for a quick eyeball summary

Phase 3: Surface the obvious problems

Read the full file on GitHub · 88 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. 8d ago First seen · 88 lines · 202 tokens per session scan A 4c5095a4abaf

Subscribe to this mod's changes

diagnose is a skill published in the GitHub repository thettwe/nyann (6 stars, last pushed 9d ago), licensed MIT. It adds 202 tokens to every session and 1,206 once invoked, about $0.0010 per session on Opus 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-08-31.