claude-code-ultimate-guide/examples/scripts/check-claude.sh
Florian BRUNIAUX 19110eba22 feat(docs): add comprehensive data privacy documentation v3.2.0
- Create guide/data-privacy.md with retention policies (5y/30d/0)
- Add privacy notice to README.md
- Add section 2.6 "Data Flow & Privacy" to ultimate-guide.md
- Add Golden Rule #7 to cheatsheet.md (know what's sent)
- Add Phase 0.5 Privacy Awareness to onboarding-prompt.md
- Add privacy checks to audit-prompt.md
- Add PRIVACY CHECK section to audit-scan.sh (human + JSON)
- Add privacy reminder to check-claude.sh
- Create privacy-warning.sh SessionStart hook

Addresses user awareness of Anthropic data retention and opt-out options.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 20:42:19 +01:00

44 lines
1.1 KiB
Bash

#!/bin/bash
echo -e "\n=== Claude Code Health Check ==="
echo -e "\n--- Node & npm ---"
node --version
npm --version
echo -e "\n--- Claude Installation ---"
which claude
if [ $? -eq 0 ]; then
echo "✓ Claude found in PATH"
else
echo "✗ Claude not in PATH"
fi
echo -e "\n--- Running Claude Doctor ---"
if claude doctor; then
echo "✓ Claude doctor completed"
else
echo "✗ Claude doctor failed"
fi
echo -e "\n--- API Key Status ---"
if [ -n "$ANTHROPIC_API_KEY" ]; then
echo "✓ ANTHROPIC_API_KEY is set"
else
echo "✗ ANTHROPIC_API_KEY not set"
fi
echo -e "\n--- Privacy Reminder ---"
echo "⚠️ Your prompts and file contents are sent to Anthropic"
echo " Default retention: 5 years (training) | Opt-out: 30 days"
echo " → Disable training: https://claude.ai/settings/data-privacy-controls"
echo -e "\n--- MCP Servers ---"
claude mcp list
echo -e "\n--- Config Location ---"
if [ -f ~/.claude.json ]; then
echo "✓ Config found at: ~/.claude.json"
else
echo "⚠ No config file at: ~/.claude.json"
fi
echo -e "\n=== Health Check Complete ==="