[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77ZZYA45XHBS04SBJX9ZXKV":3,"skill-same:01M77ZZYA45XHBS04SBJX9ZXKV":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M77ZZYA45XHBS04SBJX9ZXKV","cxc-ast-grep",null,"Use for AST search and codemods. Triggers: ast-grep, sg, function\u002Fcall\u002Fclass\u002Fimport, empty catch, missing await, YAML rules.","lidge-jun\u002Fcodexclaw","lidge-jun","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F243035832?v=4","01M77ZYSKV8Z3ATX74SGTVT60X","JUN","01M77ZYSMFY8RQFKCVFHFBPQA9",54,"MIT","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fast-grep\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fast-grep\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cxc-ast-grep\ndescription: \"Use for AST search and codemods. Triggers: ast-grep, sg, function\u002Fcall\u002Fclass\u002Fimport, empty catch, missing await, YAML rules.\"\nmetadata:\n  short-description: \"AST-aware structural search + deterministic codemods (ast-grep\u002Fsg) across 25 languages.\"\n---\n\n# ast-grep\n\n`sg` (also installed as `ast-grep`) is an **AST-aware search and rewrite tool**\nacross 25 languages. It treats your pattern as code, parses it the same way it\nparses your project, and matches structurally. Reach for it whenever the question\ndepends on **code shape** rather than text bytes.\n\nThis skill ships a Python wrapper at `scripts\u002Fast_grep_helper.py` and an install\nreference at `references\u002Finstall.md`. The helper adds offline pattern validation,\nthe two-pass write trick, and binary auto-resolution. Use it as the default entry\npoint.\n\n## rg first — do not use ast-grep for ordinary grep\n\nPlain filename, literal text, regex, comment, and simple callsite searches use\n`rg` \u002F `rg --files` first. ast-grep is for syntax-tree questions only. The test:\n\"does the answer depend on the language's syntax tree, or just on the file's\nbytes?\" Tree → ast-grep. Bytes → `rg`.\n\nFor a whole-repo structure OVERVIEW (which files own which symbols, ranked), use\n`cxc map` (repo-map skill) instead; ast-grep is for shape SEARCH within known scope.\n\n## When to use this skill\n\n- \"Find every function that takes a `Request` parameter.\"\n- \"Rewrite every `console.log(x)` to `logger.info(x)`.\"\n- \"Strip every `as any` cast.\"\n- \"Replace `require(...)` with `import` across the repo.\"\n- \"Find empty catch blocks\" \u002F \"find missing `await`.\"\n- \"Apply this codemod across these 200 files.\"\n- \"Run our YAML lint rules and surface violations.\"\n\n## Three things to internalize\n\n### 1. ast-grep is NOT regex\nThe wildcards are `$VAR` (one AST node) and `$$$` (zero or more nodes). Regex\nsyntax (`|`, `.*`, `\\w`, `[a-z]`) fails silently — the helper's `validate`\nsubcommand catches the common misuses offline before you run a search.\n\n### 2. Always preview before you write\n`replace` is a dry-run by default and prints the would-change diff. Add `--apply`\nonly after you have inspected the preview. The helper runs a two-pass write (JSON\nmatch pass, then a separate `--update-all` pass) because ast-grep ignores\n`--update-all` when `--json` is set.\n\n### 3. Language matters\nPass `--lang` so the correct parser is used; the same pattern parses differently\nacross languages. `langs` lists the 25 supported languages with extensions.\n\n## Verification loop (MUST)\n\nNever trust a pattern you have not seen match. The loop:\n\n1. `validate PATTERN --lang LANG` — offline sanity check (catches regex syntax and\n   other common misuses; it can NOT catch every silent miss — see step 3).\n2. `search PATTERN --lang LANG` — read the match list: is the COUNT plausible, and do\n   2-3 spot-checked sites look right?\n3. **0 matches where you expected some = pattern bug first**, not \"no occurrences\".\n   The two reproduced causes: a glued metavariable (`use$HOOK(...)` — a metavar must\n   be a whole token) and a pattern that does not parse as ONE node (`catch ($E) {}`).\n   Consult `references\u002Fpatterns.md` (verified examples + pitfalls) and refine.\n4. `replace PATTERN REWRITE` — inspect the dry-run diff for every file, or at minimum\n   every distinct shape in it.\n5. Only then `--apply`. Never `--apply` a pattern whose match list you have not read.\n\n## Helper usage\n\n```\nast_grep_helper.py search PATTERN [PATH...] [--lang LANG] [--globs GLOB ...] [-C N]\nast_grep_helper.py replace PATTERN REWRITE [PATH...] [--lang LANG] [--apply]\nast_grep_helper.py scan [PATH...] --rule RULE_FILE [--apply]   # rule file via --rule, NOT positional\nast_grep_helper.py validate PATTERN [--lang LANG]   # offline pattern check\nast_grep_helper.py langs                            # list languages\nast_grep_helper.py doctor                           # binary availability + version\nast_grep_helper.py install                          # lazy-provision sg\n```\n\nVerified per-language pattern examples (call rewrite, cast strip, CJS→ESM, empty\ncatch, bare except, relational YAML rules) and the reproduced pitfall table live in\n`references\u002Fpatterns.md` — read it before writing a non-trivial pattern.\n\n## Binary resolution + lazy provisioning\n\nThe helper resolves `sg` in priority order: `CODEXCLAW_AST_GREP_SG_PATH`\noverride (`OMO_AST_GREP_SG_PATH` fallback) → codexclaw runtime\n(`$CODEX_HOME\u002Fruntime\u002Fast-grep` or `~\u002F.codexclaw\u002Fruntime\u002Fast-grep`) → a cached\nbinary under the skill `bin\u002F` → `PATH` → Homebrew defaults. When `sg` is missing,\n`doctor`\u002F`install` exit with a clear install hint rather than crashing. See\n`references\u002Finstall.md`. Provisioning is lazy, evidence-bound, and idempotent.\n\n## Notes\n\n- On-demand skill (`allow_implicit_invocation: false`); reached by trigger or\n  `dev`-hub routing.\n- No MCP server, no daemon, no workspace side-effects — this honors the core\n  no-server contract. LSP and codegraph are deferred to a separate, isolated\n  post-MVP extension and are deliberately not shipped here.\n","# ast-grep\n\n`sg` (also installed as `ast-grep`) is an **AST-aware search and rewrite tool**\nacross 25 languages. It treats your pattern as code, parses it the same way it\nparses your project, and matches structurally. Reach for it whenever the question\ndepends on **code shape** rather than text bytes.\n\nThis skill ships a Python wrapper at `scripts\u002Fast_grep_helper.py` and an install\nreference at `references\u002Finstall.md`. The helper adds offline pattern validation,\nthe two-pass write trick, and binary auto-resolution. Use it as the default entry\npoint.\n\n## rg first — do not use ast-grep for ordinary grep\n\nPlain filename, literal text, regex, comment, and simple callsite searches use\n`rg` \u002F `rg --files` first. ast-grep is for syntax-tree questions only. The test:\n\"does the answer depend on the language's syntax tree, or just on the file's\nbytes?\" Tree → ast-grep. Bytes → `rg`.\n\nFor a whole-repo structure OVERVIEW (which files own which symbols, ranked), use\n`cxc map` (repo-map skill) instead; ast-grep is for shape SEARCH within known scope.\n\n## When to use this skill\n\n- \"Find every function that takes a `Request` parameter.\"\n- \"Rewrite every `console.log(x)` to `logger.info(x)`.\"\n- \"Strip every `as any` cast.\"\n- \"Replace `require(...)` with `import` across the repo.\"\n- \"Find empty catch blocks\" \u002F \"find missing `await`.\"\n- \"Apply this codemod across these 200 files.\"\n- \"Run our YAML lint rules and surface violations.\"\n\n## Three things to internalize\n\n### 1. ast-grep is NOT regex\nThe wildcards are `$VAR` (one AST node) and `$$$` (zero or more nodes). Regex\nsyntax (`|`, `.*`, `\\w`, `[a-z]`) fails silently — the helper's `validate`\nsubcommand catches the common misuses offline before you run a search.\n\n### 2. Always preview before you write\n`replace` is a dry-run by default and prints the would-change diff. Add `--apply`\nonly after you have inspected the preview. The helper runs a two-pass write (JSON\nmatch pass, then a separate `--update-all` pass) because ast-grep ignores\n`--update-all` when `--json` is set.\n\n### 3. Language matters\nPass `--lang` so the correct parser is used; the same pattern parses differently\nacross languages. `langs` lists the 25 supported languages with extensions.\n\n## Verification loop (MUST)\n\nNever trust a pattern you have not seen match. The loop:\n\n1. `validate PATTERN --lang LANG` — offline sanity check (catches regex syntax and\n   other common misuses; it can NOT catch every silent miss — see step 3).\n2. `search PATTERN --lang LANG` — read the match list: is the COUNT plausible, and do\n   2-3 spot-checked sites look right?\n3. **0 matches where you expected some = pattern bug first**, not \"no occurrences\".\n   The two reproduced causes: a glued metavariable (`use$HOOK(...)` — a metavar must\n   be a whole token) and a pattern that does not parse as ONE node (`catch ($E) {}`).\n   Consult `references\u002Fpatterns.md` (verified examples + pitfalls) and refine.\n4. `replace PATTERN REWRITE` — inspect the dry-run diff for every file, or at minimum\n   every distinct shape in it.\n5. Only then `--apply`. Never `--apply` a pattern whose match list you have not read.\n\n## Helper usage\n\n```\nast_grep_helper.py search PATTERN [PATH...] [--lang LANG] [--globs GLOB ...] [-C N]\nast_grep_helper.py replace PATTERN REWRITE [PATH...] [--lang LANG] [--apply]\nast_grep_helper.py scan [PATH...] --rule RULE_FILE [--apply]   # rule file via --rule, NOT positional\nast_grep_helper.py validate PATTERN [--lang LANG]   # offline pattern check\nast_grep_helper.py langs                            # list languages\nast_grep_helper.py doctor                           # binary availability + version\nast_grep_helper.py install                          # lazy-provision sg\n```\n\nVerified per-language pattern examples (call rewrite, cast strip, CJS→ESM, empty\ncatch, bare except, relational YAML rules) and the reproduced pitfall table live in\n`references\u002Fpatterns.md` — read it before writing a non-trivial pattern.\n\n## Binary resolution + lazy provisioning\n\nThe helper resolves `sg` in priority order: `CODEXCLAW_AST_GREP_SG_PATH`\noverride (`OMO_AST_GREP_SG_PATH` fallback) → codexclaw runtime\n(`$CODEX_HOME\u002Fruntime\u002Fast-grep` or `~\u002F.codexclaw\u002Fruntime\u002Fast-grep`) → a cached\nbinary under the skill `bin\u002F` → `PATH` → Homebrew defaults. When `sg` is missing,\n`doctor`\u002F`install` exit with a clear install hint rather than crashing. See\n`references\u002Finstall.md`. Provisioning is lazy, evidence-bound, and idempotent.\n\n## Notes\n\n- On-demand skill (`allow_implicit_invocation: false`); reached by trigger or\n  `dev`-hub routing.\n- No MCP server, no daemon, no workspace side-effects — this honors the core\n  no-server contract. LSP and codegraph are deferred to a separate, isolated\n  post-MVP extension and are deliberately not shipped here.\n",{"name":5,"metadata":25,"description":7},{"short-description":26},"AST-aware structural search + deterministic codemods (ast-grep\u002Fsg) across 25 languages.","main","e413b144ffa0617093d158a0dde101601bcadee9","plugins\u002Fcodexclaw\u002Fskills\u002Fast-grep",11,"https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw","https:\u002F\u002Flidge-jun.github.io\u002Fcodexclaw\u002F","https:\u002F\u002Fgithub.com\u002Flidge-jun","https:\u002F\u002Ftrygoat.ai","Building GOAT (trygoat.ai): run coding agents on any model, any machine. Creator of OpenCodex (18K★). Korea University.","2026-11-09 12:57:23",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add lidge-jun\u002Fcodexclaw --skill cxc-ast-grep",{"tool":43,"command":44},"bunx","bunx skills add lidge-jun\u002Fcodexclaw --skill cxc-ast-grep",{"tool":46,"command":47},"pnpm","pnpm dlx skills add lidge-jun\u002Fcodexclaw --skill cxc-ast-grep","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fast-grep\u002FSKILL.md",true,[51,57,61,65,69],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"agents\u002Fopenai.yaml","REFERENCE","参考文档",152,"https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fast-grep\u002Fagents\u002Fopenai.yaml",{"path":58,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":16},"LICENSE","许可证",1068,{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Finstall.md",1533,"https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fast-grep\u002Freferences\u002Finstall.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fpatterns.md",3463,"https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fast-grep\u002Freferences\u002Fpatterns.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fast_grep_helper.py","SCRIPT","脚本",27256,"https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fast-grep\u002Fscripts\u002Fast_grep_helper.py",[76,83,90,97,104,111],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":20},"01M78033YWB99B1Y92JY0CFTV1","cxc-worktree-guardian","Use for Codex-app worktrees. Triggers: worktree, rename worktree, detached HEAD, ~\u002F.codex\u002Fworktrees, 워크트리, 워크트리 이름, 새 워크트리, 브랜치랑 워크트리.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fworktree-guardian\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":20},"01M780318BPTTTEVJ9XJMH52N9","cxc-skill-hub","Deprecated alias. Use cxc-dev.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fskill-hub\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":20},"01M7802WKVM3GWAS4P92YZBMKF","cxc-search","Use for web\u002Fcurrent lookups. Triggers: search, look up, latest, news, prices, docs, status, X\u002FTwitter, deep research, 검색, 검색해, 찾아봐, 찾아줘, 알아봐, 웹검색, 딥리서치, 심층 조사.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fsearch\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M7802RE0M30FANF56N0SZRY3","cxc-repo-map","Use for repo structure and symbol maps. Triggers: repo map, codebase overview, architecture map, 와꾸.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Frepo-map\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M7802MXVMFKWM5742TNYW6WJ","cxc-remote","Use for Telegram\u002FDiscord bridge setup. Triggers: remote, messenger, pairing, tokens, webhooks, 텔레그램 연결, 디스코드 연결, 메신저 연결, 봇 연결, 원격, 페어링.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Fremote\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M7802HB0C7HMRE4JSP9KXCR7","cxc-recall","Use for past-session context recovery. Triggers: recall, last time, previous session, chat search, memory search, 그때, 지난번, 저번 세션, 예전에 했던, 기억나?, 리콜, 지난 세션, 이전 작업, 뭐였지, 어떻게 했었지.","https:\u002F\u002Fgithub.com\u002Flidge-jun\u002Fcodexclaw\u002Fblob\u002Fmain\u002Fplugins\u002Fcodexclaw\u002Fskills\u002Frecall\u002FSKILL.md",[],[]]