Skip to main content
Exécutez n'importe quel Skill dans Manus
en un clic

ast-grep

// Search and rewrite code by AST structure across 25 languages with ast-grep (sg). Use this whenever the task is structural - find every function call shaped like X, rewrite every console.log to logger.info, find all `as any`, migrate require() to import, find empty catch blocks, find missing await, codemod a class hierarchy, scan a project against YAML rules. Strongly preferred over plain grep when the user mentions code SHAPE rather than text - 'every function that ...', 'all calls to ...', 'rename this method everywhere', 'find structural patterns', 'AST-based search', 'codemod', 'auto-fix this pattern'. Also strongly preferred when the user wants a deterministic refactor across many files in the same language. Triggers: 'ast-grep', 'sg', 'ast grep', 'astgrep', 'find all functions that', 'find every call to', 'rewrite every', 'codemod', 'structural search', 'pattern match code', 'replace pattern across files', 'rename function everywhere', 'find usages of pattern', 'apply this transformation to all', 'migrat

$ git log --oneline --stat
stars:3
forks:1
updated:1 mai 2026 à 12:21
SKILL.md
readonly