| name | diagnose |
| description | Print a compact health report for FloatingClock. Covers binary info, code-sign status, running process, and test-suite status. Use when a user. |
| allowed-tools | Bash |
/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
if [ -d "$APP_SYS" ]; then
echo "[installed] $APP_SYS"
BIN="$APP_SYS/Contents/MacOS/floating-clock"
if [ -x "" ];
file | sed
-f
codesign -dv --verbose=0 2>&1 | sed
/usr/libexec/PlistBuddy -c \
-c 2>/dev/null \
| - - | sed
[ -d ];
BIN=
[ -x ];
-f
/usr/libexec/PlistBuddy -c \
-c 2>/dev/null \
| - - | sed
PIDS=$(pgrep -f 2>/dev/null)
[ -n ];
ps -o pid,rss,%cpu,etime -p | -n +2 | sed
ACTIVE=$(defaults com.terryli.floating-clock ActiveProfile 2>/dev/null)
[ -n ];
TEST_BIN=
[ -x ];
2>&1 | -1 | sed