diagnose

diagnose is a skill for Claude Code from terrylica/cc-skills. It costs 33 tokens per session (942 once invoked), scanned A, original, MIT.

A read-only diagnostic report for the FloatingClock macOS app. It checks the installed or local app, its binary, code signature, running process, version information, and test status.

In plain words
What is it for?
Use it to investigate whether FloatingClock is installed, signed, running, and passing its tests.
Why use it?
It gathers common installation and health details in one report without changing the app or its settings.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the floating-clock plugin — 5 skills shipped together , and of cc-skills

Good fit Use it to investigate whether FloatingClock is installed, signed, running, and passing its tests.

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

Made for: Claude Code.

Or install floating-clock, the plugin that ships this one along with the rest of its 5 skills.

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/terrylica/cc-skills/diagnose/github.svg)](https://agentmods.dev/skills/terrylica/cc-skills/diagnose)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/diagnose"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/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/terrylica/cc-skills/diagnose"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/diagnose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 942 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 warn 7 Sept 2026
SkillSpector: 6 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 95
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • medium Rogue Agent · line 35
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 50
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 36
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 51
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 94
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00033 $0.00942
Opus 5 $0.00016 $0.00471
Sonnet 5 $0.00007 $0.00188
Haiku 4.5 $0.00003 $0.00094

Measured 5d ago against content hash 5327adbd17ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 5d 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.

plugins/floating-clock/skills/diagnose/SKILL.md · 99 lines

How it starts

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

/floating-clock:diagnose

Emit a one-page diagnostic summary.

Self-Evolving Skill: This skill improves through use. If a check is wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

Steps

Run a sequence of read-only checks. Safe to invoke at any time — does not modify files, does not touch NSUserDefaults.

PLUGIN_ROOT="$(cc-plugin-root floating-clock)"
APP_SYS="/Applications/FloatingClock.app"
APP_LOCAL="$PLUGIN_ROOT/build/FloatingClock.app"

echo "=== FloatingClock diagnostic ==="
echo

# Installed app
if [ -d "$APP_SYS" ]; then
  echo "[installed]  $APP_SYS"
  BIN="$APP_SYS/Contents/MacOS/floating-clock"
  if [ -x "$BIN" ]; then
    file "$BIN" | sed 's/^/             /'
    stat -f "             size: %z bytes" "$BIN"
  fi
  codesign -dv --verbose=0 "$APP_SYS" 2>&1 | sed 's/^/             /'
  /usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" \
    -c "Print :CFBundleVersion" "$APP_SYS/Contents/Info.plist" 2>/dev/null \
    | paste - - | sed 's/^/             version: /; s/\t/ · build /'
else
  echo "[installed]  not found (use /floating-clock:install)"
fi
echo

# Local build
if [ -d "$APP_LOCAL" ]; then
  echo "[local]      $APP_LOCAL"
  BIN="$APP_LOCAL/Contents/MacOS/floating-clock"
  if [ -x "$BIN" ]; then
    stat -f "             size: %z bytes" "$BIN"
  fi
  /usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" \
    -c "Print :CFBundleVersion" "$APP_LOCAL/Contents/Info.plist" 2>/dev/null \
    | paste - - | sed 's/^/             version: /; s/\t/ · build /'
else
  echo "[local]      not built (run: cd $PLUGIN_ROOT && make all)"
fi
echo

# Running process
PIDS=$(pgrep -f "FloatingClock.app/Contents/MacOS/floating-clock" 2>/dev/null)
if [ -n "$PIDS" ]; then
  echo "[process]    running · pid(s) $PIDS"
  ps -o pid,rss,%cpu,etime -p $PIDS | tail -n +2 | sed 's/^/             /'
else
  echo "[process]    not running"
fi
echo

# Current profile (if defaults exist)
ACTIVE=$(defaults read com.terryli.floating-clock ActiveProfile 2>/dev/null)
if [ -n "$ACTIVE" ]; then
  echo "[profile]    active: $ACTIVE"
else
  echo "[profile]    defaults not initialized (run the app first)"
fi
echo

# Test-suite status (quick — just runs existing test binary, skips rebuild)
TEST_BIN="$PLUGIN_ROOT/build/test_session"
if [ -x "$TEST_BIN" ]; then
  echo "[tests]      running cached test binary…"
  "$TEST_BIN" 2>&1 | tail -1 | sed 's/^/             /'
else
  echo "[tests]      build/test_session not found (run: cd $PLUGIN_ROOT && make check)"
fi

echo
echo "=== diagnostic complete ==="

Read the full file on GitHub · 99 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. 5d ago First seen · 99 lines · 33 tokens per session scan A 5327adbd17ec

Subscribe to this mod's changes

diagnose is a skill published in the GitHub repository terrylica/cc-skills (72 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 942 once invoked, about $0.0002 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-09-05.

Related

Other skills, from other repositories

debug-systematic

Systematic 4-phase debugging methodology for complex, intermittent, or mysterious issues. Use when investigating bugs, race conditions, or unexplained failures.

travisjneuman/.claude · 33 tokens

backpropagation

Trace runtime bugs back to spec gaps — identify missing acceptance criteria, update specs, generate regression tests, and detect patterns.

LucasDuys/forge · 27 tokens

investigate-root-cause

Use when encountering ANY bug, error, test failure, or unexpected behavior. Activate for keywords like "bug", "error", "failing", "broken", "doesn't work", "unexpected", "crash", "exception", "TypeError", "undefined", stack traces, or any error message. Also trigger when tests fail unexpectedly, when behavior differs…

duthaho/claudekit · 121 tokens

evidence-driven-debugging

Use during active debugging when you have a hypothesis to test or need to instrument a running system. Activate for keywords like "debug", "instrument", "log", "trace", "breakpoint", "what's happening at runtime", "production behavior". Pair to investigate-root-cause for the doing-it phase. Always record what you…

duthaho/claudekit · 87 tokens

map-codebase

Use when entering an unfamiliar codebase or area, before making non-trivial changes, when onboarding to a new system, or when planning a refactor that touches multiple modules. Activate for keywords like "explore", "map", "find where", "trace", "how does X work", "what calls Y", "scope of change". Produces an…

duthaho/claudekit · 112 tokens

github-actions-silent-failures

Diagnose GitHub Actions workflows that fail silently — a reusable-workflow run that shows zero jobs and no logs (startupfailure), a gh-aw cross-repo import that mis-resolves when the source repo is literally named .github, and self-hosted-runner traps (a shared-tmp race across containers, docker exec landing as an…

dryvist/claude-code-plugins · 113 tokens