A powerful AI tool that analyzes your codebase to automatically generate VS Code snippet definitions for repetitive patterns.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install snippet-gen
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install snippet-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Snippet Generator is a specialized utility designed to eliminate the manual effort required to create and maintain editor shortcuts. By scanning your existing source code, the tool identifies frequently used patterns—such as component structures, custom hooks, and utility functions—and transforms them into intelligent VS Code snippets. This tool is a key part of the Openclaw Skills collection, enabling developers to maintain high coding standards and speed without the overhead of manual configuration.
The tool focuses on making your workflow as frictionless as possible. Instead of manually writing JSON definitions for your snippets, this generator uses AI to understand the context of your code, providing intuitive prefixes and functional placeholders. This ensures that every generated snippet is immediately useful and fits naturally into your existing development environment.
To start using this tool within the Openclaw Skills ecosystem, ensure you have Node.js 18 or higher installed. The tool requires an OpenAI API key to process patterns. You can run it without installation using npx:
# Set your environment variable
export OPENAI_API_KEY='your_api_key_here'
# Analyze your source directory
npx ai-snippet ./src/
For additional configuration options and command-line arguments, you can access the help menu:
npx ai-snippet --help
The Snippet Generator produces standard VS Code snippet objects. The output is organized into a JSON structure that maps to the following metadata taxonomy:
| Attribute | Description |
|---|---|
| prefix | The short trigger sequence that activates the snippet in the editor. |
| body | The template code, featuring ${1:default} style placeholders for tab navigation. |
| description | A concise summary of the snippet's purpose generated via AI analysis. |
| scope | (Optional) Restricts the snippet to specific file types like TypeScript or JSX. |
Loading
Automatically generates Jest snapshot tests for React components by analyzing props and rendering logic.

Seed Gen is an AI-driven CLI tool that generates realistic, contextually appropriate database seed data directly from your schema files.

A CLI tool that converts natural language descriptions into fully-formed SQL schemas for PostgreSQL, MySQL, and SQLite.

An AI-driven CLI utility that roasts your code with humor while providing legitimate fixes for technical debt and anti-patterns.

A CLI tool that automatically converts technical markdown content into platform-specific social media posts for Twitter, LinkedIn, and Reddit.

A developer-centric tool that automatically adapts your technical content into platform-specific social media posts.








































