Agent skill

Ast Grep Practice

by mizchi in mizchi/skills

Operate ast-grep as a project lint tool. An agent skill from mizchi/skills.

No licenceAuto-check passedDevelopment

Install Ast Grep Practice

skills CLI
$ npx skills add mizchi/skills --skill ast-grep-practice -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mizchi/skills ast-grep-practice --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mizchi/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/ast-grep-practice .claude/skills/ast-grep-practice && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ast-grep-practice
GitHub stars
359
Token cost
~4.6k tokens
SKILL.md length
1,255 words
Files
7 (incl. references)
Skills in repo
69
Repo updated
First seen
Licence
None found

At a glance

Operate ast-grep as a project lint tool. An agent skill from mizchi/skills.

  • Works in 5 steps: Write the test file under rule-tests/… → Write the rule under rules/ (Green) → Verify with ast-grep test… → …
  • Writing rules ast-grep can express but general-purpose linters cannot
  • SKILL.md covers Installation, Quick Start, Principles and Choosing between ast-grep and…, plus 8 more sections
  • Calls npm, npx and cargo

What it does

Ast Grep Practice is an agent skill from mizchi/skills. Operate ast-grep as a project lint tool. Covers sgconfig.yml, fix/rewrite rules, constraints, transform, testing, and CI. Use when writing rules ast-grep can express but general-purpose linters cannot.

Its SKILL.md is about 4.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `README.md`, `SKILL-ja.md` and `references/cli.md`).

It sits in Development, covering Linting and formatting and Brand voice and tone. The repository describes itself as: Agent skills by mizchi, distributed via APM.

When your agent uses it

  • Writing rules ast-grep can express but general-purpose linters cannot
  • Tasks that involve Linting and formatting
  • Tasks that involve Brand voice and tone

Example prompts

  • “/ast-grep-practice”

Requirements

  • Python 3
  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Write the test file under rule-tests/ (Red)
  2. Write the rule under rules/ (Green)
  3. Verify with ast-grep test --skip-snapshot-tests
  4. Generate snapshots with ast-grep test -U
  5. Review the snapshots and commit

What it can do on your machine

Read from SKILL.md and the folder at commit 62f5808. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • npx
    • cargo
    • brew

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • ast-grep.github.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ast Grep Practice loads about 4.6k tokens when it runs, and up to ~9.6k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 1,255 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~4.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~9.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,255 words (~4,556 tokens).

“Complement general-purpose lint tools (ESLint, oxlint, Biome, clippy, etc.) with ast-grep for patterns they cannot express. Always prefer reproducible static rules over natural-language prompts.”

— opening of SKILL.md by mizchi
name
ast-grep-practice

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (references) in ast-grep-practice of mizchi/skills.

  • SKILL.md
  • README.md
  • SKILL-ja.md
  • references/cli.md
  • references/kind-catalog.md
  • references/rule-yaml.md
  • references/testing.md

Open the folder on GitHubat commit 62f5808

Compare with similar skills

Ast Grep Practice next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ast Grep Practice compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ast Grep Practice this skillmizchi/skills359—~4.6kAutomated safety check: PassNone
Minimizing Ty Ecosystem Changesastral-sh/ruff50k—~4.6kAutomated safety check: PassMIT
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.3k—~2.2kAutomated safety check: PassMIT
Babysit PR To Pass CIsgl-project/sglang37k2 repos~3kAutomated safety check: PassApache-2.0
Rust Best Practicesfarm-fe/farm5.6k3 repos~1.1kAutomated safety check: PassMIT
Summarise Ecosystem Resultsastral-sh/ruff50k—~2.2kAutomated safety check: PassMIT

Similar skills

  • Official

    A skill your agent uses when a user says "minimize this ty ecosystem change", "reproduce this ecosystem result", "investigate a primer difference", "investigate a mypyprimer difference"…

    50k GitHub stars~4.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub stars~2.2k tokensUpdated 28 days ago
    DevelopmentAuto-check passed
  • Babysit PR To Pass CI

    sgl-project/sglang

    Start and persistently pursue a goal to babysit an SGLang pull request until selected GitHub Actions workflows pass on the latest PR head.

    37k GitHub starsUsed in 2 repos~3k tokens
    DevelopmentAuto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    A skill your agent uses when a user says "summarise ecosystem results", "summarize this ty ecosystem report", "what changed in this ecosystem run?", or asks to summarise or summarize ty ecosystem…

    50k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Go Pedantry

    chromedp/chromedp

    This skill should be used when the user is writing Go code and needs guidance on Go-specific pedantry: error wrapping with fmt.Errorf and %w, interface design (accept interfaces return structs)…

    13k GitHub stars~3.7k tokensUpdated 3 days ago
    DevelopmentAuto-check passed

More from mizchi/skills

All 69 skills in this repo
  • Publish Agent Skill

    mizchi/skills

    Package, publish, verify and update an agent skill through a Claude Code plugin marketplace, APM or the npx skills CLI.

    359 GitHub stars~1.7k tokensUpdated 7 days ago
    Auto-check passed
  • AI Index

    mizchi/skills

    Method and tooling for measuring how AI-generated a piece of prose reads, in Japanese or English.

    359 GitHub stars~3.6k tokensUpdated 7 days ago
    Auto-check passed
  • Cloudflare Deploy

    mizchi/skills

    Deploy applications and infrastructure to Cloudflare with the cf CLI and typed cloudflare.config.ts.

    359 GitHub stars~2.9k tokensUpdated 7 days ago
    Auto-check: notes
  • Review Image

    mizchi/skills

    Review screenshots or other images with OpenRouter vision models via bundled Deno scripts.

    359 GitHub stars~1.3k tokensUpdated 7 days ago
    Auto-check passed
  • Post-generation safety checks for sqlc-gen-moonbit + Cloudflare D1.

    359 GitHub stars~995 tokensUpdated 7 days ago
    Auto-check passed
  • Apm Usage

    mizchi/skills

    Reference for APM (Agent Package Manager) — apm.yml syntax, install / uninstall / update commands, target detection, lockfile workflow.

    359 GitHub stars~1.9k tokensUpdated 7 days ago
    Auto-check passed

Categories

Questions about Ast Grep Practice

What does Ast Grep Practice do?

Operate ast-grep as a project lint tool. An agent skill from mizchi/skills. Ast Grep Practice is an agent skill from mizchi/skills. Operate ast-grep as a project lint tool.

When should I use Ast Grep Practice?

Ast Grep Practice fits situations like: writing rules ast-grep can express but general-purpose linters cannot; tasks that involve Linting and formatting; tasks that involve Brand voice and tone.

How do I install Ast Grep Practice in Claude Code?

Run `npx skills add mizchi/skills --skill ast-grep-practice -a claude-code`. Or copy the skill folder (ast-grep-practice in mizchi/skills) into .claude/skills/ast-grep-practice in your project. Claude Code loads it when a task matches its description.

How do I install Ast Grep Practice in Codex?

Run `npx skills add mizchi/skills --skill ast-grep-practice -a codex`. Or copy the skill folder (ast-grep-practice in mizchi/skills) into .agents/skills/ast-grep-practice in your project. Codex loads it when a task matches its description.

Can I use Ast Grep Practice in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mizchi/skills --skill ast-grep-practice -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ast-grep-practice, .gemini/skills/ast-grep-practice, .github/skills/ast-grep-practice and .opencode/skills/ast-grep-practice in your project.

What does Ast Grep Practice need to run?

Going by SKILL.md and its folder, Ast Grep Practice needs the command-line tools its instructions call (npm, npx, cargo and brew). Our summary lists: Python 3; Node.js.

Does Ast Grep Practice access the network?

SKILL.md names 1 domain. As links in the text: ast-grep.github.io. This is read from the text; nothing was executed.

Is Ast Grep Practice safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ast Grep Practice use?

No licence was found for Ast Grep Practice or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Ast Grep Practice use?

About 4.6k tokens (SKILL.md is roughly 18k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.1k tokens, read only when the agent opens those files.

What are the alternatives to Ast Grep Practice?

Skills that share tags, products or a category with Ast Grep Practice: Minimizing Ty Ecosystem Changes (astral-sh/ruff, 50k stars), Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars), Babysit PR To Pass CI (sgl-project/sglang, 37k stars) and Rust Best Practices (farm-fe/farm, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ast Grep Practice?

mizchi (a GitHub user) maintains it in mizchi/skills, which has 359 GitHub stars. The repository holds 69 skills in this directory. The repository was last updated on October 2, 2026.

Source: mizchi/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.