invalidate-local-plugin

unsafe9's avatarfrom unsafe9

Stop the lingo server and delete the local plugin cache directory so Claude Code downloads the current version again on restart. Use this for testing plugin updates during development.

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 7, 2026

When & Why to Use This Skill

The Invalidate Local Plugin skill is a specialized utility designed to streamline the development and testing lifecycle of Claude Code plugins. It automates the technical process of stopping the lingo server and purging the local plugin cache, ensuring that developers can force a fresh download of their latest plugin versions for immediate verification and debugging.

Use Cases

  • Plugin Development Iteration: Quickly test new code changes by forcing Claude Code to fetch the most recent version of a plugin instead of using stale cached files.
  • Troubleshooting Sync Issues: Resolve deployment or update errors where the local environment fails to recognize a new plugin version due to persistent cache data.
  • Automated Workflow Integration: Use the skill to reset the local environment state as part of a larger testing suite or development script to ensure consistent results.
nameinvalidate-local-plugin
descriptionStop the lingo server and delete the local plugin cache directory so Claude Code downloads the current version again on restart. Use this for testing plugin updates during development.

Invalidate Local Plugin Cache

Purpose

This skill helps with plugin development by:

  1. Stopping the running lingo server (via pm2)
  2. Deleting the local plugin cache directory
  3. Allowing you to restart Claude Code to test fresh plugin downloads

Usage

Run the invalidation script:

./invalidate-local-plugin.sh

After Running

Guide user:

  1. Exit Claude Code
  2. Restart Claude Code
  3. The plugin will be re-downloaded from the configured source

Notes

  • The plugin cache is located at ~/.claude/plugins/
  • This only removes the lingo plugin directory, not other cached plugins
  • The server will need to be restarted after Claude Code restarts (handled automatically by SessionStart hook)