analytics-clear

Reset all analytics data, removing tracking history and statistics.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "analytics-clear" with this command: npx skills add laurigates/claude-plugins/laurigates-claude-plugins-analytics-clear

/analytics:clear

Reset all analytics data, removing tracking history and statistics.

Context

Check if analytics data exists:

ANALYTICS_DIR="${HOME}/.claude-analytics"

if [[ -d "${ANALYTICS_DIR}" ]]; then SUMMARY_FILE="${ANALYTICS_DIR}/summary.json" if [[ -f "${SUMMARY_FILE}" ]]; then TOTAL=$(cat "${SUMMARY_FILE}" | jq -r '.total_invocations // 0') SINCE=$(cat "${SUMMARY_FILE}" | jq -r '.tracking_since // "unknown"') echo "Current analytics: ${TOTAL} invocations since ${SINCE}" fi else echo "No analytics data to clear." exit 0 fi

Parameters

  • $ARGS
  • Optional --confirm flag to skip confirmation

Execution

Clear analytics data:

ANALYTICS_DIR="${HOME}/.claude-analytics" CONFIRM="${ARGS}"

if [[ "${CONFIRM}" != "--confirm" ]]; then echo "⚠️ This will permanently delete all analytics data." echo "" echo "This includes:" echo " • All command/skill usage history" echo " • Success/failure statistics" echo " • Timing data" echo "" read -p "Are you sure? (yes/no): " RESPONSE

if [[ "${RESPONSE}" != "yes" ]]; then echo "Cancelled." exit 0 fi fi

echo "" echo "🗑️ Clearing analytics data..."

if [[ -d "${ANALYTICS_DIR}" ]]; then rm -rf "${ANALYTICS_DIR}" echo "✓ Analytics data cleared" echo "" echo "Analytics will start collecting again automatically." else echo "No analytics data found." fi

Post-actions

None. Analytics tracking will automatically restart on next command/skill usage.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ruff linting

No summary provided by upstream source.

Repository SourceNeeds Review
General

imagemagick-conversion

No summary provided by upstream source.

Repository SourceNeeds Review
General

jq json processing

No summary provided by upstream source.

Repository SourceNeeds Review