Skip to content
Diagnosis · Automation

ast-grep

Use ast-grep (sg) for AST-aware code search and rewrite across 25 languages.

Connecting the steps of a workflow

Works with
ClaudeChatGPTGeminiClaude CodeCodexCursorCopilotGemini CLI
Setup
One command
Best in a coding tool, where its scripts can run.
Contains
Instructions + 5 scripts
PowerShell, shell and Python.
Maintained
Last change 4 Oct 2026
On the repository’s main branch.

What it does

sg (also installed as ast-grep) is an AST-aware search and rewrite tool across 25 languages. It treats your pattern as code, parses it the same way it parses your project, and matches structurally. It is the right tool whenever your question depends on code shape rather than text bytes.

What it can touch

  • Includes 5 scripts

    Your AI can run these when the skill is used — on your computer in a coding tool (which asks first unless you have told it not to), or in the AI’s own sandbox in Claude and ChatGPT.

    How we know

    Found in the skill’s folder: install.ps1, install.sh, scripts/ast_grep_helper.py, tests/smoke.ps1….

  • Mentions an outside service

    The instructions point your AI at these sites or APIs. Anything it sends there leaves your computer.

    How we know

    Web addresses in the SKILL.md, excluding GitHub and documentation sites: ast-grep.github.io.

  • Uses terminal commands

    It shows your AI commands to run. In a coding agent that means your terminal; in a chat app it usually can’t.

    How we know

    The SKILL.md contains shell code blocks.

  • Asks for administrator rights

    Some of its commands use sudo or "run as administrator". Those can change anything on your computer.

    How we know

    Seen in its code. Read 2026-10-05, commit 9d2b45e.

  • 5 smaller things worth knowing

    Contains commands that delete or overwrite; Edits your shell start-up file. Usually legitimate — listed so nothing is hidden.

    How we know

    Contains commands that delete or overwrite — install.ps1 line 188; Contains commands that delete or overwrite — install.sh line 197; Edits your shell start-up file — references/cli.md line 196; Contains commands that delete or overwrite — tests/smoke.ps1 line 14; Contains commands that delete or overwrite — tests/smoke.sh line 26. Read 2026-10-05, commit 9d2b45e.

    install.ps1, line 188 ↗install.sh, line 197 ↗references/cli.md, line 196 ↗tests/smoke.ps1, line 14 ↗tests/smoke.sh, line 26 ↗
  • No serious risk pattern found

    Launch7’s automated check read all 18 text files in this skill and matched none of its serious risk patterns. This is not a guarantee: a check like this can miss new or disguised tricks, and the author can change the files after the check.

    How we know

    Read 2026-10-05, commit 9d2b45e by pipeline/trust/analyze.py — 40+ patterns for hidden text, prompt injection, downloads that run, credential access and more. It reads; it never runs the skill.

  • Recently maintained

    Its repository has had changes recently.

    How we know

    Last push to code-yeongyu/lazycodex: 2026-10-04 (1 days before the scan).

Read automatically from the skill’s own files on GitHub on 5 Oct 2026. Launch7 does not run or manually review skills: this lists what the check saw, and nothing here means “safe”. How we check

Add it to your AI

Partly. Upload it in Claude’s settings — the instructions work; the scripts need the full folder.

  1. Built in your browser from the SKILL.md on GitHub — nothing passes through Launch7.

  2. In Claude, open Customize → Skills, press +, then Create skill → Upload a skill, and choose the .zip.

  3. Make sure code execution is switched on (Settings → Capabilities). Skills need it.

  4. Start a new chat and ask for the job in your own words — Claude picks the skill up when it fits.

This skill ships 5 scripts beside its instructions. The download here is the SKILL.md alone — enough for the instructions, not for the parts that run code. Use the command route, or take the full folder from the repository.

How Claude does this: support.claude.com · checked 28 Sep 2026 · “Supported” means documented by the vendor; Launch7 has not run it end to end

More from code-yeongyu

All from this publisher →
  • coding-agent-sessions

    MUST USE when asked to find, read, list, search, inspect, fetch, export, or reconstruct coding-agent sessions across Codex, Claude Code/Desktop, OpenCode,…

    code-yeongyuIncludes 17 scripts
  • data-scientist

    Expert data processing specialist with intelligent DuckDB/Polars selection for maximum performance.

    code-yeongyuIncludes 5 scripts
  • frontend

    MUST USE for frontend/web UI/UX/visual work: building, styling, redesigning pages/components, React setup, performance audits, visual QA, taste, and…

    code-yeongyuIncludes 4 scripts
  • full-output-enforcement

    Overrides default LLM truncation behavior.

    code-yeongyuIts code sends data over the internet
  • git-master

    MUST USE whenever a task needs a commit or git-history investigation.

    code-yeongyuRuns terminal commands