Quickstart

From javimosch/supercli · View interactive version

Quickstart is an AI agent skill from the GitHub repository javimosch/supercli. Use this skill when the user wants to search code structurally using AST patterns, perform linting, or rewrite code automatically across multiple files.

How to use this skill

Skill file

ast-grep Plugin

AST-based code structural search, lint, and rewriting.

Commands

Search

Rewrite

Lint

Usage Examples

Installation

npm install --global @ast-grep/cli
# or
cargo install ast-grep
# or
brew install ast-grep

Examples

# Search for AST pattern
ast-grep --pattern 'const $X = $Y' --lang ts

# Rewrite code
ast-grep --pattern '$A && $A()' --lang ts --rewrite '$A?.()'

# Run lint
ast-grep lint

# Scan directory
ast-grep scan src/

Key Features

-批量 code rewriting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.