Skip to content

code-yeongyu/oh-my-openagent / packages/shared-skills/skills/ast-grep

ast-grep

Unverified

Searches and rewrites code by AST shape across 25 languages. Use when the target is a syntax pattern (every call/class/import shaped like X, a codemod, a YAML rule) rather than literal text; for plain strings, comments, or filenames, use rg.

FileKindSize
.gitignoreother343 B
AGENTS.mdmarkdown3.1 KB
LICENSEother1.0 KB
README.mdmarkdown7.7 KB
SKILL.mdskill md13.6 KB
SOURCEother125 B
install.ps1script7.2 KB
install.shexecutablescript7.5 KB
references/cli.mdmarkdown7.2 KB
references/install.mdmarkdown5.7 KB
references/patterns.mdmarkdown5.8 KB
references/pitfalls.mdmarkdown9.0 KB
references/recipes.mdmarkdown8.2 KB
references/sgconfig.mdmarkdown6.3 KB
references/yaml-rules.mdmarkdown11.2 KB
scripts/ast_grep_helper.pyexecutablescript26.8 KB
tests/smoke.ps1script5.6 KB
tests/smoke.shexecutablescript7.6 KB

.gitignore

View on GitHub
# Python bytecode
__pycache__/
*.py[cod]
*$py.class

# Editor / OS
.DS_Store
.vscode/
.idea/
*.swp
*.swo

# Test / scratch artifacts
scratch/
.ast-grep-helper-cache/
/tmp/ast-grep-skill-*

# Local config
.ast-grep-skill.json
.ast-grep-skill/

# Cached binary (from install.sh fallback download)
bin/sg
bin/ast-grep
bin/sg.exe
bin/ast-grep.exe
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall