ast-grep

Read-only CLI search with sg or ast-grep . AST-aware grep for code exploration and SWE tasks.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ast-grep" with this command: npx skills add anntnzrb/agents/anntnzrb-agents-ast-grep

ast-grep

Overview

Read-only CLI search with sg or ast-grep . AST-aware grep for code exploration and SWE tasks.

Quick start

  • Prefer sg . Fallback ast-grep run . Last resort: nix run nixpkgs#ast-grep -- run

  • Example: sg -p 'console.log($MSG)' -l ts src

  • Files only: sg -p 'console.log($$$)' -l ts --files-with-matches src

Guardrails

  • Read-only: never use --rewrite , -r , --update-all , or --interactive

  • Stdin requires --lang

Resources

  • reference.md : flags, strictness, selectors, output formats

  • cookbook/ : troubleshooting and recipes

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

python

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

golang

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

summarize

No summary provided by upstream source.

Repository SourceNeeds Review