
Skill
clear-configs
remove local agentic analytics configuration files
Description
Remove the local config files written by first-time setup (bucket.json and the agentic-analytics AWS profile). Leaves the events cache alone. Use when the user wants to start setup over, entered the wrong bucket name, or asks to reset/clear the plugin's configuration.
SKILL.md
Clear local configs
Removes two things to put the user back at first-run state:
${XDG_CONFIG_HOME:-~/.config}/agentic-analytics/bucket.json– runtime config init writes.- The
agentic-analyticsprofile in~/.aws/credentialsand~/.aws/config– the AWS creds the user set up viaaws configure.
Leaves the data lake at ${AGENTIC_ANALYTICS_DATA_DIR:-~/.local/share/agentic-analytics}/ (DPL parquet + catalog.duckdb, and the plugin's venv/) alone. Re-pulling DPL is slow; the lake is data, not config. To rebuild it, run /agentic-analytics:refresh-cache instead.
After running this, the init flow walks the user through setup again from scratch (asks for the bucket, walks them through aws configure).
Output discipline
This is a one-shot housekeeping flow. Output the verbatim line below at the start, run the script, then stop. Don't narrate the script output.
Steps
- Resolve the plugin root. The snippet below assumes
$plugin_rootis set in that shell invocation:plugin_root="${CLAUDE_PLUGIN_ROOT:-${CURSOR_PLUGIN_ROOT:-<plugin-root>}}" plugin_python="${AGENTIC_ANALYTICS_VENV:-${AGENTIC_ANALYTICS_DATA_DIR:-$HOME/.local/share/agentic-analytics}/venv}/bin/python" [ -x "$plugin_python" ] || plugin_python="python3"<plugin-root>is the plugin's install directory – the directory two levels above this SKILL.md file. In a dev checkout of the source repo that'splugin/.$plugin_pythonis the plugin's isolated venv (created by the init flow at$AGENTIC_ANALYTICS_DATA_DIR/venv, default~/.local/share/agentic-analytics/venv); it falls back topython3if the venv doesn't exist yet. - Announce. Output verbatim:
Clearing local agentic-analytics configs. Events cache stays put.
- Run the script. It prints what was cleared (or
(nothing to clear)if everything was already gone):"$plugin_python" "$plugin_root/scripts/clear_configs.py"
More skills from the agentic-analytics repository
View all 7 skillsconversions-report
generate conversion attribution reports
May 23AnalyticsReportingSalesgetting-started
set up agentic-analytics plugin
Jul 24AnalyticsDocumentationReferenceidentify-employees
filter internal employee traffic from reports
Jul 24AnalyticsData CleaningOperationsrefresh-cache
clear and rebuild local data cache
Jul 24CachingDebuggingPerformancestaircase-report
generate staircase audience relationship reports
Jul 24AnalyticsCustomer SuccessReportingupdate-cache
update local agentic analytics data cache
Jul 24CachingData AnalysisOperations
More from Automattic
View publisherannotate
collect visual feedback with browser annotation tools
studio
May 6FrontendProductivityUX CopyUX Designblock-content
write editable WordPress block markup
studio
May 27Block EditorCSSHTMLWordPresshosting-plans-helper
provide WordPress.com hosting plan information
studio
Jul 2PricingReferenceWordPressliberate
migrate websites to WordPress
studio
Jul 9CMSMigrationWeb DevelopmentWordPressneed-for-speed
run frontend performance audits for WordPress sites
studio
May 6AuditFrontendPerformanceWordPressplugin-recommendations
recommend WordPress plugins for site features
studio
May 27Content CreationPlugin DevelopmentWordPress