Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/automazeio/claude-code-for-power-usersWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/automazeio/claude-code-for-power-users/use-ast-grep)<a href="https://agentmods.dev/commands/automazeio/claude-code-for-power-users/use-ast-grep"><img src="https://agentmods.dev/badge/commands/automazeio/claude-code-for-power-users/use-ast-grep.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01080 |
| Opus 5 | $0.00000 | $0.00540 |
| Sonnet 5 | $0.00000 | $0.00216 |
| Haiku 4.5 | $0.00000 | $0.00108 |
Grade A, and why
use-ast-grep scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AST-Grep Integration Protocol for Cursor Agent
When to Use AST-Grep
Use ast-grep (if installed) instead of plain regex or text search when:
- Structural code patterns are involved (e.g., finding all function calls, class definitions, or method implementations)
- Language-aware refactoring is required (e.g., renaming variables, updating function signatures, or changing imports)
- Complex code analysis is needed (e.g., finding all usages of a pattern across different syntactic contexts)
- Cross-language searches are necessary (e.g., working with both Ruby and TypeScript in a monorepo)
- Semantic code understanding is important (e.g., finding patterns based on code structure, not just text)
AST-Grep Command Patterns
Basic Search Template:
ast-grep --pattern '$PATTERN' --lang $LANGUAGE $PATH
Common Use Cases
- Find function calls:
ast-grep --pattern 'functionName($$$)' --lang javascript . - Find class definitions:
ast-grep --pattern 'class $NAME { $$$ }' --lang typescript . - Find variable assignments:
ast-grep --pattern '$VAR = $$$' --lang ruby . - Find import statements:
ast-grep --pattern 'import { $$$ } from "$MODULE"' --lang javascript . - Find method calls on objects:
ast-grep --pattern '$OBJ.$METHOD($$$)' --lang typescript . - Find React hooks:
ast-grep --pattern 'const [$STATE, $SETTER] = useState($$$)' --lang typescript . - Find Ruby class definitions:
ast-grep --pattern 'class $NAME < $$$; $$$; end' --lang ruby .
Pattern Syntax Reference
$VAR— matches any single node and captures it$$$— matches zero or more nodes (wildcard)$$— matches one or more nodes- Literal code — matches exactly as written
Supported Languages
- javascript, typescript, ruby, python, go, rust, java, c, cpp, html, css, yaml, json, and more
Integration Workflow
Before using ast-grep:
- Check if ast-grep is installed:
If not, skip and fall back to regex/semantic search.
command -v ast-grep >/dev/null 2>&1 || echo "ast-grep not installed, skipping AST search" - Identify if the task involves structural code patterns or language-aware refactoring.
- Determine the appropriate language(s) to search.
- Construct the pattern using ast-grep syntax.
- Run ast-grep to gather precise structural information.
- Use results to inform code edits, refactoring, or further analysis.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 107 lines · 0 tokens per session scan A eca18d8111d0
use-ast-grep is a command published in the GitHub repository automazeio/claude-code-for-power-users (220 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,080 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
qa-changes
This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavior, and reporting…
doctor
Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…
fix
Universal debugging and fix application with semantic code analysis.
doctor
Badi configuration validation. Checks all Badi components and produces a diagnostic report.
gh-issue-use-cypress
Like /gh-issue-use-browser, but pinned to the Cypress MCP — use when your project runs the Cypress MCP for browser automation. Example — /gh-issue-use-cypress "Composer > Save" saving toasts failure but the record persists.
http-service
Build, review or debug a Bun HTTP service. Loads the http-service skill, then works the task through its workflow.