laurigates/claude-plugins49 installs
analytics-clear
Clear all analytics data and start fresh
How do I install this agent skill?
npx skills add https://github.com/laurigates/claude-plugins --skill analytics-clearIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a utility designed to clear local analytics data from a specific directory in the user's home folder. It uses standard bash commands and provides a confirmation prompt before deleting files. No malicious patterns or security risks were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
1/1 file flagged
What does this agent skill do?
/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--confirmflag 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.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/laurigates/claude-plugins/analytics-clear">View analytics-clear on skillZs</a>