Migrate Core Code to Submodules
tinyhumansai/openhuman
Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.
Produces a ready-to-run ast-grep command or reusable YAML lint/codemod rule, validated against positive and negative fixtures.
$ npx skills add hylarucoder/hai-stack --skill hai-ast-grep -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install hylarucoder/hai-stack hai-ast-grep --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/hylarucoder/hai-stack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/hai-ast-grep .claude/skills/hai-ast-grep && rm -rf skills-srcUse ~/.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/
Install the "hai-ast-grep" agent skill from https://github.com/hylarucoder/hai-stack/tree/main/skills/hai-ast-grep into .claude/skills/hai-ast-grep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hai-ast-grep", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/hylarucoder/hai-stack/tree/main/skills/hai-ast-grepType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add hylarucoder/hai-stack --skill hai-ast-grep -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install hylarucoder/hai-stack hai-ast-grep --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hylarucoder/hai-stack.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/hai-ast-grep .agents/skills/hai-ast-grep && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "hai-ast-grep" agent skill from https://github.com/hylarucoder/hai-stack/tree/main/skills/hai-ast-grep into .agents/skills/hai-ast-grep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hai-ast-grep", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hylarucoder/hai-stack --skill hai-ast-grep -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install hylarucoder/hai-stack hai-ast-grep --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hylarucoder/hai-stack.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/hai-ast-grep .cursor/skills/hai-ast-grep && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "hai-ast-grep" agent skill from https://github.com/hylarucoder/hai-stack/tree/main/skills/hai-ast-grep into .cursor/skills/hai-ast-grep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hai-ast-grep", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/hylarucoder/hai-stack.git --path skills/hai-ast-grep--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add hylarucoder/hai-stack --skill hai-ast-grep -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install hylarucoder/hai-stack hai-ast-grep --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hylarucoder/hai-stack.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/hai-ast-grep .gemini/skills/hai-ast-grep && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "hai-ast-grep" agent skill from https://github.com/hylarucoder/hai-stack/tree/main/skills/hai-ast-grep into .gemini/skills/hai-ast-grep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hai-ast-grep", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install hylarucoder/hai-stack hai-ast-grepInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add hylarucoder/hai-stack --skill hai-ast-grep -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/hylarucoder/hai-stack.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/hai-ast-grep .github/skills/hai-ast-grep && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "hai-ast-grep" agent skill from https://github.com/hylarucoder/hai-stack/tree/main/skills/hai-ast-grep into .github/skills/hai-ast-grep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hai-ast-grep", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hylarucoder/hai-stack --skill hai-ast-grep -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install hylarucoder/hai-stack hai-ast-grep --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hylarucoder/hai-stack.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/hai-ast-grep .opencode/skills/hai-ast-grep && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "hai-ast-grep" agent skill from https://github.com/hylarucoder/hai-stack/tree/main/skills/hai-ast-grep into .opencode/skills/hai-ast-grep/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hai-ast-grep", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
hai-ast-grepProduces a ready-to-run ast-grep command or reusable YAML lint/codemod rule, validated against positive and negative fixtures.
Hai Ast Grep is an agent skill from hylarucoder/hai-stack. Produces a ready-to-run ast-grep command or reusable YAML lint/codemod rule, validated against positive and negative fixtures. Use when search or rewrite depends on syntax structure: finding all call shapes, avoiding regex matches in comments/strings, batch-changing signatures, or enforcing a structural rule(结构化搜索、批量改写、写 lint 规则). Do not use for plain-text replacement or type-semantic refactors that require a compiler/type checker.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `SKILL.zh_CN.md`, `references/common-patterns.md` and `references/output-template.md`).
It sits in Development, covering Linting and formatting, Code migrations and Refactoring.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a6c7ed2. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and yaml).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Hai Ast Grep loads about 1.5k tokens when it runs, and up to ~3.4k if it reads all its reference files. Until then it costs about 112 tokens; SKILL.md has 654 words of instructions outside code blocks.
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.
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.
Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 654 words (~1,535 tokens).
“ast-grep uses tree-sitter to parse code into AST, enabling precise pattern matching. Reach for it whenever a search or refactor depends on syntax structure: one-off searches and rewrites run straight from the CLI, reusable lint/codemod rules are written in YAML…”
SKILL.md and 5 other files (references) in skills/hai-ast-grep of hylarucoder/hai-stack.
Open the folder on GitHubat commit a6c7ed2
Hai Ast Grep 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Hai Ast Grep this skillhylarucoder/hai-stack | 383 | — | ~1.5k | Automated safety check: Pass | Custom licence | |
| Migrate Core Code to Submodulestinyhumansai/openhuman | 42k | — | ~2.6k | Automated safety check: Pass | GPL-3.0 | |
| ast-grep Structural Searchcode-yeongyu/oh-my-openagent | 70k | — | ~3.3k | Automated safety check: Pass | MIT | |
| Rust Best Practicesfarm-fe/farm | 5.6k | 3 repos | ~1.1k | Automated safety check: Pass | MIT | |
| File Good First BugBrowserWorks/waterfox-android | 379 | 2 repos | ~2k | Automated safety check: Pass | Custom licence | |
| ast-grep Codemod Referencewarp-drive-data/warp-drive | 3.2k | — | ~2.6k | Automated safety check: Pass | MIT |
tinyhumansai/openhuman
Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.
code-yeongyu/oh-my-openagent
Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.
farm-fe/farm
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.
BrowserWorks/waterfox-android
A skill your agent uses when the user wants to file good-first-bugs in Bugzilla for Firefox.
warp-drive-data/warp-drive
Reference for writing and debugging TypeScript and JavaScript codemods with @ast-grep/napi: parsing, node queries, meta-variables, rule objects and editing.
JCarterJohnson/vibecoded-design-tells
Strips the tells that make source code read as AI-generated and forces code that fits the project instead of the model's default average.
hylarucoder/hai-stack
Verify a defined software change against requirements and produce a proportional, evidence-backed acceptance report with specification precedence, scope boundaries, requirement-to-evidence…
hylarucoder/hai-stack
Reformats and restructures a README or similar Markdown project document without changing its factual content, voice, or scope, then summarizes formatting-only edits.
hylarucoder/hai-stack
Turns supplied content into self-contained HTML and PNG in two modes: card for one shareable frame(知识卡、信息卡、金句卡、封面、把要点做成一张图), report for multi-section documents(可视化报告、HTML 汇报页、PRD/计划/评审做成网页).
hylarucoder/hai-stack
Reviews a code change for correctness, security, maintainability, architecture, performance, and verification gaps, or performs a local code-smell review.
hylarucoder/hai-stack
Audits an entity model field by field: what should exist, what exists now, where each value belongs (column, config, computed runtime value, or removal), and what must migrate.
hylarucoder/hai-stack
Challenges an overly conservative, incremental, or compatibility-led proposal with a bold target model, a concrete kill/merge/split list, materially different options, and a falsifiable first proof…
Categories
Produces a ready-to-run ast-grep command or reusable YAML lint/codemod rule, validated against positive and negative fixtures. Hai Ast Grep is an agent skill from hylarucoder/hai-stack. Produces a ready-to-run ast-grep command or reusable YAML lint/codemod rule, validated against positive and negative fixtures.
Hai Ast Grep fits situations like: rewrite depends on syntax structure: finding all call shapes; avoiding regex matches in comments/strings; batch-changing signatures; enforcing a structural rule(结构化搜索、批量改写、写 lint 规则).
Run `npx skills add hylarucoder/hai-stack --skill hai-ast-grep -a claude-code`. Or copy the skill folder (skills/hai-ast-grep in hylarucoder/hai-stack) into .claude/skills/hai-ast-grep in your project. Claude Code loads it when a task matches its description.
Run `npx skills add hylarucoder/hai-stack --skill hai-ast-grep -a codex`. Or copy the skill folder (skills/hai-ast-grep in hylarucoder/hai-stack) into .agents/skills/hai-ast-grep in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hylarucoder/hai-stack --skill hai-ast-grep -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hai-ast-grep, .gemini/skills/hai-ast-grep, .github/skills/hai-ast-grep and .opencode/skills/hai-ast-grep in your project.
SKILL.md names no scripts, command-line tools or credentials: Hai Ast Grep is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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.
Hai Ast Grep has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.
About 1.5k tokens (SKILL.md is roughly 6.1k 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 1.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Hai Ast Grep: Migrate Core Code to Submodules (tinyhumansai/openhuman, 42k stars), ast-grep Structural Search (code-yeongyu/oh-my-openagent, 70k stars), Rust Best Practices (farm-fe/farm, 5.6k stars) and File Good First Bug (BrowserWorks/waterfox-android, 379 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
hylarucoder (a GitHub user) maintains it in hylarucoder/hai-stack, which has 383 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on October 5, 2026.
Source: hylarucoder/hai-stack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.