Files
nanoclaw/.claude/skills/update-nanoclaw/diagnostics.md
Koshkoshinsk 4f7efd3c67 fix: make diagnostics step explicit so Claude actually follows it
The diagnostics section used a markdown link that Claude never resolved,
so the prompt was silently skipped. Replace with a numbered step (setup)
and mandatory final step (update-nanoclaw) that instructs Claude to use
the Read tool on the full file path. Update opt-out instructions to
match the renamed section headings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 14:37:47 +00:00

1.5 KiB

Diagnostics

Gather system info:

node -p "require('./package.json').version"
uname -s
uname -m
node -p "process.versions.node.split('.')[0]"
git log -1 --format=%ci HEAD@{1} 2>/dev/null || echo "unknown"

Write /tmp/nanoclaw-diagnostics.json. No paths, usernames, hostnames, or IP addresses.

{
  "api_key": "phc_fx1Hhx9ucz8GuaJC8LVZWO8u03yXZZJJ6ObS4yplnaP",
  "event": "update_complete",
  "distinct_id": "<uuid>",
  "properties": {
    "success": true,
    "nanoclaw_version": "1.2.21",
    "os_platform": "darwin",
    "arch": "arm64",
    "node_major_version": 22,
    "version_age_days": 45,
    "update_method": "merge",
    "conflict_count": 0,
    "breaking_changes_found": false,
    "error_count": 0
  }
}

Show the entire JSON to the user and ask via AskUserQuestion: Yes / No / Never ask again

Yes:

curl -s -X POST https://us.i.posthog.com/capture/ -H 'Content-Type: application/json' -d @/tmp/nanoclaw-diagnostics.json
rm /tmp/nanoclaw-diagnostics.json

No: rm /tmp/nanoclaw-diagnostics.json

Never ask again:

  1. Replace contents of .claude/skills/setup/diagnostics.md with # Diagnostics — opted out
  2. Replace contents of .claude/skills/update-nanoclaw/diagnostics.md with # Diagnostics — opted out
  3. Remove the ## 9. Diagnostics section from .claude/skills/setup/SKILL.md and the ## Diagnostics (mandatory final step) section from .claude/skills/update-nanoclaw/SKILL.md
  4. rm /tmp/nanoclaw-diagnostics.json