/diagnose
Description
Vérifie l'état de l'environnement RTK et suggère des corrections.
Installation
claude install-skill https://github.com/rtk-ai/rtk README
model: haiku description: RTK environment diagnostics - Checks installation, hooks, version, command routing
/diagnose
Vérifie l'état de l'environnement RTK et suggère des corrections.
Quand utiliser
- undefined
Exécution
1. Vérifications parallèles
Lancer ces commandes en parallèle :
# RTK installation check
which rtk && rtk --version || echo "❌ RTK not found in PATH"
# Git status (verify working directory)
git status --short && git branch --show-current
# Hook configuration check
if [ -f ".claude/hooks/rtk-rewrite.sh" ]; then
echo "✅ OK: rtk-rewrite.sh hook present"
# Check if hook is executable
if [ -x ".claude/hooks/rtk-rewrite.sh" ]; then
echo "✅ OK: hook is executable"
else
echo "⚠️ WARNING: hook not executable (chmod +x needed)"
fi
else
echo "❌ MISSING: rtk-rewrite.sh hook"
fi
# Hook rtk-suggest.sh check
if [ -f ".claude/hooks/rtk-suggest.sh" ]; then
echo "✅ OK: rtk-suggest.sh hook present"
if [ -x ".claude/hooks/rtk-suggest.sh" ]; then
echo "✅ OK: hook is executable"
else
echo "⚠️ WARNING: hook not executable (chmod +x needed)"
fi
else
echo "❌ MISSING: rtk-suggest.sh hook"
fi
# Claude Code context check
if [ -n "$CLAUDE_CODE_HOOK_BASH_TEMPLATE" ]; then
echo "✅ OK: Running in Claude Code context"
echo " Hook env var set: CLAUDE_CODE_HOOK_BASH_TEMPLATE"
else
echo "⚠️ WARNING: Not running in Claude Code (hooks won't activate)"
echo " CLAUDE_CODE_HOOK_BASH_TEMPLATE not set"
fi
# Test command routing (dry-run)
if command -v rtk >/dev/null 2>&1; then
# Test if rtk gain works (validates install)
if rtk --help | grep -q "gain"; then
echo "✅ OK: rtk gain available"
else
echo "❌ MISSING: rtk gain command (old version or wrong binary)"
fi
else
echo "❌ RTK binary not found"
fi
2. Validate token analytics
# Run rtk gain to verify analytics work
if command -v rtk >/dev/null 2>&1; then
echo ""
echo "📊 Token Savings (last 5 commands):"
rtk gain --history 2>&1 | head -8 || echo "⚠️ rtk gain failed"
else
echo "⚠️ Cannot test rtk gain (binary not installed)"
fi
3. Quality checks (if in RTK repo)
# Only run if we're in RTK repository
if [ -f "Cargo.toml" ] && grep -q 'name = "rtk"' Cargo.toml 2>/dev/null; then
echo ""
echo "🦀 RTK Repository Quality Checks:"
# Check if cargo fmt passes
if carg
Related Skills
next.js
| The React Framework | 138360 | 1503 | 1 |
Development community sharing-skills
skill for guidance.
Development community root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development community Template Skill
Minimal skeleton for a new skill project structure.
Development community Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THIS PRODUCT. ---
Development official Claude API
When code imports anthropic/@anthropic-ai/sdk/claude_agent_sdk, or user asks to use Claude APIBuild apps with the Claude API or Anthropic SDK
Development official Related Agents
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
Contributing to nanobot
Thank you for being here. nanobot is built with a simple belief: good tools should feel calm, clear, and humane. We care deeply about useful features, but we also believe in achieving more with less:
Key exports from each phase
for summary in .planning/phases/*/*-SUMMARY.md; do echo "=== $summary ===" grep -A 10 "Key Files\|Exports\|Provides" "$summary" 2>/dev/null done