[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AWZKTHBT7CHX490ZKXBTJ4":3,"skill-same:01M7AWZKTHBT7CHX490ZKXBTJ4":50},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7AWZKTHBT7CHX490ZKXBTJ4","ast-grep",null,"Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.","pomazanbohdan\u002Fvida-stack-lite","pomazanbohdan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F696713?v=4","01M7AWZD3J5Z7XNSRMK0KMGW59","Pomazan Bohdan","01M7AWZD4NSWFJHMB4BEQFWG2Q",0,"MIT","https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fast-grep\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ast-grep\ndescription: Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.\n---\n\n# ast-grep Code Search\n\n## Overview\n\nThis skill helps translate natural language queries into ast-grep rules for structural code search. ast-grep uses Abstract Syntax Tree (AST) patterns to match code based on its structure rather than just text, enabling powerful and precise code search across large codebases.\n\n## When to Use This Skill\n\nUse this skill when users:\n- Need to search for code patterns using structural matching (e.g., \"find all async functions that don't have error handling\")\n- Want to locate specific language constructs (e.g., \"find all function calls with specific parameters\")\n- Request searches that require understanding code structure rather than just text\n- Ask to search for code with particular AST characteristics\n- Need to perform complex code queries that traditional text search cannot handle\n\n## General Workflow\n\nFollow this process to help users write effective ast-grep rules:\n\n### Step 1: Understand the Query\n\nClearly understand what the user wants to find. Ask clarifying questions if needed:\n- What specific code pattern or structure are they looking for?\n- Which programming language?\n- Are there specific edge cases or variations to consider?\n- What should be included or excluded from matches?\n\n### Step 2: Create Example Code\n\nWrite a simple code snippet that represents what the user wants to match. Save this to a temporary file for testing.\n\n**Example:**\nIf searching for \"async functions that use await\", create a test file:\n\n```javascript\n\u002F\u002F test_example.js\nasync function example() {\n  const result = await fetchData();\n  return result;\n}\n```\n\n### Step 3: Write the ast-grep Rule\n\nTranslate the pattern into an ast-grep rule. Start simple and add complexity as needed.\n\n**Key principles:**\n- Always use `stopBy: end` for relational rules (`inside`, `has`) to ensure search goes to the end of the direction\n- Use `pattern` for simple structures\n- Use `kind` with `has`\u002F`inside` for complex structures\n- Break complex queries into smaller sub-rules using `all`, `any`, or `not`\n\n**Example rule file (test_rule.yml):**\n```yaml\nid: async-with-await\nlanguage: javascript\nrule:\n  kind: function_declaration\n  has:\n    pattern: await $EXPR\n    stopBy: end\n```\n\nSee `references\u002Frule_reference.md` for comprehensive rule documentation.\n\n### Step 4: Test the Rule\n\nUse ast-grep CLI to verify the rule matches the example code. There are two main approaches:\n\n**Option A: Test with inline rules (for quick iterations)**\n```bash\necho \"async function test() { await fetch(); }\" | ast-grep scan --inline-rules \"id: test\nlanguage: javascript\nrule:\n  kind: function_declaration\n  has:\n    pattern: await \\$EXPR\n    stopBy: end\" --stdin\n```\n\n**Option B: Test with rule files (recommended for complex rules)**\n```bash\nast-grep scan --rule test_rule.yml test_example.js\n```\n\n**Debugging if no matches:**\n1. Simplify the rule (remove sub-rules)\n2. Add `stopBy: end` to relational rules if not present\n3. Use `--debug-query` to understand the AST structure (see below)\n4. Check if `kind` values are correct for the language\n5. For zero matches from `run --pattern` (not rules), see the \"Zero Matches?\" tip below\n\n### Step 5: Search the Codebase\n\nOnce the rule matches the example code correctly, search the actual codebase:\n\n**For simple pattern searches:**\n```bash\nast-grep run --pattern 'console.log($ARG)' --lang javascript \u002Fpath\u002Fto\u002Fproject\n```\n\n**For complex rule-based searches:**\n```bash\nast-grep scan --rule my_rule.yml \u002Fpath\u002Fto\u002Fproject\n```\n\n**For inline rules (without creating files):**\n```bash\nast-grep scan --inline-rules \"id: my-rule\nlanguage: javascript\nrule:\n  pattern: \\$PATTERN\" \u002Fpath\u002Fto\u002Fproject\n```\n\n## ast-grep CLI Commands\n\n### Inspect Code Structure (--debug-query)\n\nDump the AST structure to understand how code is parsed:\n\n```bash\nast-grep run --pattern 'async function example() { await fetch(); }' \\\n  --lang javascript \\\n  --debug-query=cst\n```\n\n**Available formats:**\n- `cst`: Concrete Syntax Tree (shows all nodes including punctuation)\n- `ast`: Abstract Syntax Tree (shows only named nodes)\n- `pattern`: Shows how ast-grep interprets your pattern\n\n**Use this to:**\n- Find the correct `kind` values for nodes\n- Understand the structure of code you want to match\n- Debug why patterns aren't matching\n\n**Example:**\n```bash\n# See the structure of your target code\nast-grep run --pattern 'class User { constructor() {} }' \\\n  --lang javascript \\\n  --debug-query=cst\n\n# See how ast-grep interprets your pattern\nast-grep run --pattern 'class $NAME { $$$BODY }' \\\n  --lang javascript \\\n  --debug-query=pattern\n```\n\n### Test Rules (scan with --stdin)\n\nTest a rule against code snippet without creating files:\n\n```bash\necho \"const x = await fetch();\" | ast-grep scan --inline-rules \"id: test\nlanguage: javascript\nrule:\n  pattern: await \\$EXPR\" --stdin\n```\n\n**Add --json for structured output:**\n```bash\necho \"const x = await fetch();\" | ast-grep scan --inline-rules \"...\" --stdin --json\n```\n\n### Search with Patterns (run)\n\nSimple pattern-based search for single AST node matches:\n\n```bash\n# Basic pattern search\nast-grep run --pattern 'console.log($ARG)' --lang javascript .\n\n# Search specific files\nast-grep run --pattern 'class $NAME' --lang python \u002Fpath\u002Fto\u002Fproject\n\n# JSON output for programmatic use\nast-grep run --pattern 'function $NAME($$$)' --lang javascript --json .\n```\n\n**When to use:**\n- Simple, single-node matches\n- Quick searches without complex logic\n- When you don't need relational rules (inside\u002Fhas)\n\n### Reading `--json` Output\n\n`--json` prints a bare JSON **array** of matches (no `matches` wrapper). For pattern `foo($ARG, $$$REST)`:\n\n```json\n[{\n  \"text\": \"foo(\\\"value\\\", 1, 2)\",\n  \"file\": \"src\u002Fapp.js\",\n  \"range\": { \"start\": { \"line\": 41, \"column\": 10 }, \"end\": { \"line\": 41, \"column\": 27 } },\n  \"metaVariables\": {\n    \"single\": { \"ARG\": { \"text\": \"\\\"value\\\"\" } },\n    \"multi\": { \"REST\": [ { \"text\": \"1\" }, { \"text\": \"2\" } ] }\n  }\n}]\n```\n\n`scan --json` uses the same schema.\n\n(Each match also includes `lines` and `language`.) `range.start.line` is 0-based. Named metavariables (`$ARG`) land in `single`, list metavariables (`$$$REST`) in `multi` as a list (empty if nothing captured). Extract with jq:\n\n```bash\nast-grep run --pattern 'foo($ARG)' --lang javascript --json . \\\n  | jq -r '.[] | \"\\(.file):\\(.range.start.line + 1): \\(.metaVariables.single.ARG.text)\"'\n```\n\n### Search with Rules (scan)\n\nYAML rule-based search for complex structural queries:\n\n```bash\n# With rule file\nast-grep scan --rule my_rule.yml \u002Fpath\u002Fto\u002Fproject\n\n# With inline rules\nast-grep scan --inline-rules \"id: find-async\nlanguage: javascript\nrule:\n  kind: function_declaration\n  has:\n    pattern: await \\$EXPR\n    stopBy: end\" \u002Fpath\u002Fto\u002Fproject\n\n# JSON output\nast-grep scan --rule my_rule.yml --json \u002Fpath\u002Fto\u002Fproject\n```\n\n**When to use:**\n- Complex structural searches\n- Relational rules (inside, has, precedes, follows)\n- Composite logic (all, any, not)\n- When you need the power of full YAML rules\n\n**Tip:** For relational rules (inside\u002Fhas), always add `stopBy: end` to ensure complete traversal.\n\n## Tips for Writing Effective Rules\n\n### Always Use stopBy: end\n\nFor relational rules, always use `stopBy: end` unless there's a specific reason not to:\n\n```yaml\nhas:\n  pattern: await $EXPR\n  stopBy: end\n```\n\nThis ensures the search traverses the entire subtree rather than stopping at the first non-matching node.\n\n### Start Simple, Then Add Complexity\n\nBegin with the simplest rule that could work:\n1. Try a `pattern` first\n2. If that doesn't work, try `kind` to match the node type\n3. Add relational rules (`has`, `inside`) as needed\n4. Combine with composite rules (`all`, `any`, `not`) for complex logic\n\n### Use the Right Rule Type\n\n- **Pattern**: For simple, direct code matching (e.g., `console.log($ARG)`)\n- **Kind + Relational**: For complex structures (e.g., \"function containing await\")\n- **Composite**: For logical combinations (e.g., \"function with await but not in try-catch\")\n\n### Debug with AST Inspection\n\nWhen rules don't match:\n1. Use `--debug-query=cst` to see the actual AST structure\n2. Check if metavariables are being detected correctly\n3. Verify the node `kind` matches what you expect\n4. Ensure relational rules are searching in the right direction\n\n### Zero Matches? Patterns Match Whole AST Nodes\n\n`run --pattern` matches complete AST nodes, not text substrings, so zero matches can mean \"code absent\" or \"pattern has the wrong node shape\":\n\n- Qualified paths are whole nodes: `env::var($ENV)` does NOT match `std::env::var(\"X\")`. Try both bare and fully-qualified forms, or use `$$$` to absorb extra intermediate nodes.\n- To tell them apart: test the pattern on a snippet known to contain the code, and inspect how ast-grep parsed it with `--debug-query=pattern` (works for `run`, not just `scan`\u002Frules). For zero matches from rules instead, follow the Step 4 debugging checklist.\n\n### Escaping in Inline Rules\n\nWhen using `--inline-rules`, escape metavariables in shell commands:\n- Use `\\$VAR` instead of `$VAR` (shell interprets `$` as variable)\n- Or use single quotes: `'$VAR'` works in most shells\n\n**Example:**\n```bash\n# Correct: escaped $\nast-grep scan --inline-rules \"rule: {pattern: 'console.log(\\$ARG)'}\" .\n\n# Or use single quotes\nast-grep scan --inline-rules 'rule: {pattern: \"console.log($ARG)\"}' .\n```\n\n## Common Use Cases\n\n### Find Functions with Specific Content\n\nFind async functions that use await:\n```bash\nast-grep scan --inline-rules \"id: async-await\nlanguage: javascript\nrule:\n  all:\n    - kind: function_declaration\n    - has:\n        pattern: await \\$EXPR\n        stopBy: end\" \u002Fpath\u002Fto\u002Fproject\n```\n\n### Find Code Inside Specific Contexts\n\nFind console.log inside class methods:\n```bash\nast-grep scan --inline-rules \"id: console-in-class\nlanguage: javascript\nrule:\n  pattern: console.log(\\$\\$\\$)\n  inside:\n    kind: method_definition\n    stopBy: end\" \u002Fpath\u002Fto\u002Fproject\n```\n\n### Find Code Missing Expected Patterns\n\nFind async functions without try-catch:\n```bash\nast-grep scan --inline-rules \"id: async-no-trycatch\nlanguage: javascript\nrule:\n  all:\n    - kind: function_declaration\n    - has:\n        pattern: await \\$EXPR\n        stopBy: end\n    - not:\n        has:\n          pattern: try { \\$\\$\\$ } catch (\\$E) { \\$\\$\\$ }\n          stopBy: end\" \u002Fpath\u002Fto\u002Fproject\n```\n\n## Resources\n\n### references\u002F\nContains detailed documentation for ast-grep rule syntax:\n- `rule_reference.md`: Comprehensive ast-grep rule documentation covering atomic rules, relational rules, composite rules, and metavariables\n\nLoad these references when detailed rule syntax information is needed.\n","# ast-grep Code Search\n\n## Overview\n\nThis skill helps translate natural language queries into ast-grep rules for structural code search. ast-grep uses Abstract Syntax Tree (AST) patterns to match code based on its structure rather than just text, enabling powerful and precise code search across large codebases.\n\n## When to Use This Skill\n\nUse this skill when users:\n- Need to search for code patterns using structural matching (e.g., \"find all async functions that don't have error handling\")\n- Want to locate specific language constructs (e.g., \"find all function calls with specific parameters\")\n- Request searches that require understanding code structure rather than just text\n- Ask to search for code with particular AST characteristics\n- Need to perform complex code queries that traditional text search cannot handle\n\n## General Workflow\n\nFollow this process to help users write effective ast-grep rules:\n\n### Step 1: Understand the Query\n\nClearly understand what the user wants to find. Ask clarifying questions if needed:\n- What specific code pattern or structure are they looking for?\n- Which programming language?\n- Are there specific edge cases or variations to consider?\n- What should be included or excluded from matches?\n\n### Step 2: Create Example Code\n\nWrite a simple code snippet that represents what the user wants to match. Save this to a temporary file for testing.\n\n**Example:**\nIf searching for \"async functions that use await\", create a test file:\n\n```javascript\n\u002F\u002F test_example.js\nasync function example() {\n  const result = await fetchData();\n  return result;\n}\n```\n\n### Step 3: Write the ast-grep Rule\n\nTranslate the pattern into an ast-grep rule. Start simple and add complexity as needed.\n\n**Key principles:**\n- Always use `stopBy: end` for relational rules (`inside`, `has`) to ensure search goes to the end of the direction\n- Use `pattern` for simple structures\n- Use `kind` with `has`\u002F`inside` for complex structures\n- Break complex queries into smaller sub-rules using `all`, `any`, or `not`\n\n**Example rule file (test_rule.yml):**\n```yaml\nid: async-with-await\nlanguage: javascript\nrule:\n  kind: function_declaration\n  has:\n    pattern: await $EXPR\n    stopBy: end\n```\n\nSee `references\u002Frule_reference.md` for comprehensive rule documentation.\n\n### Step 4: Test the Rule\n\nUse ast-grep CLI to verify the rule matches the example code. There are two main approaches:\n\n**Option A: Test with inline rules (for quick iterations)**\n```bash\necho \"async function test() { await fetch(); }\" | ast-grep scan --inline-rules \"id: test\nlanguage: javascript\nrule:\n  kind: function_declaration\n  has:\n    pattern: await \\$EXPR\n    stopBy: end\" --stdin\n```\n\n**Option B: Test with rule files (recommended for complex rules)**\n```bash\nast-grep scan --rule test_rule.yml test_example.js\n```\n\n**Debugging if no matches:**\n1. Simplify the rule (remove sub-rules)\n2. Add `stopBy: end` to relational rules if not present\n3. Use `--debug-query` to understand the AST structure (see below)\n4. Check if `kind` values are correct for the language\n5. For zero matches from `run --pattern` (not rules), see the \"Zero Matches?\" tip below\n\n### Step 5: Search the Codebase\n\nOnce the rule matches the example code correctly, search the actual codebase:\n\n**For simple pattern searches:**\n```bash\nast-grep run --pattern 'console.log($ARG)' --lang javascript \u002Fpath\u002Fto\u002Fproject\n```\n\n**For complex rule-based searches:**\n```bash\nast-grep scan --rule my_rule.yml \u002Fpath\u002Fto\u002Fproject\n```\n\n**For inline rules (without creating files):**\n```bash\nast-grep scan --inline-rules \"id: my-rule\nlanguage: javascript\nrule:\n  pattern: \\$PATTERN\" \u002Fpath\u002Fto\u002Fproject\n```\n\n## ast-grep CLI Commands\n\n### Inspect Code Structure (--debug-query)\n\nDump the AST structure to understand how code is parsed:\n\n```bash\nast-grep run --pattern 'async function example() { await fetch(); }' \\\n  --lang javascript \\\n  --debug-query=cst\n```\n\n**Available formats:**\n- `cst`: Concrete Syntax Tree (shows all nodes including punctuation)\n- `ast`: Abstract Syntax Tree (shows only named nodes)\n- `pattern`: Shows how ast-grep interprets your pattern\n\n**Use this to:**\n- Find the correct `kind` values for nodes\n- Understand the structure of code you want to match\n- Debug why patterns aren't matching\n\n**Example:**\n```bash\n# See the structure of your target code\nast-grep run --pattern 'class User { constructor() {} }' \\\n  --lang javascript \\\n  --debug-query=cst\n\n# See how ast-grep interprets your pattern\nast-grep run --pattern 'class $NAME { $$$BODY }' \\\n  --lang javascript \\\n  --debug-query=pattern\n```\n\n### Test Rules (scan with --stdin)\n\nTest a rule against code snippet without creating files:\n\n```bash\necho \"const x = await fetch();\" | ast-grep scan --inline-rules \"id: test\nlanguage: javascript\nrule:\n  pattern: await \\$EXPR\" --stdin\n```\n\n**Add --json for structured output:**\n```bash\necho \"const x = await fetch();\" | ast-grep scan --inline-rules \"...\" --stdin --json\n```\n\n### Search with Patterns (run)\n\nSimple pattern-based search for single AST node matches:\n\n```bash\n# Basic pattern search\nast-grep run --pattern 'console.log($ARG)' --lang javascript .\n\n# Search specific files\nast-grep run --pattern 'class $NAME' --lang python \u002Fpath\u002Fto\u002Fproject\n\n# JSON output for programmatic use\nast-grep run --pattern 'function $NAME($$$)' --lang javascript --json .\n```\n\n**When to use:**\n- Simple, single-node matches\n- Quick searches without complex logic\n- When you don't need relational rules (inside\u002Fhas)\n\n### Reading `--json` Output\n\n`--json` prints a bare JSON **array** of matches (no `matches` wrapper). For pattern `foo($ARG, $$$REST)`:\n\n```json\n[{\n  \"text\": \"foo(\\\"value\\\", 1, 2)\",\n  \"file\": \"src\u002Fapp.js\",\n  \"range\": { \"start\": { \"line\": 41, \"column\": 10 }, \"end\": { \"line\": 41, \"column\": 27 } },\n  \"metaVariables\": {\n    \"single\": { \"ARG\": { \"text\": \"\\\"value\\\"\" } },\n    \"multi\": { \"REST\": [ { \"text\": \"1\" }, { \"text\": \"2\" } ] }\n  }\n}]\n```\n\n`scan --json` uses the same schema.\n\n(Each match also includes `lines` and `language`.) `range.start.line` is 0-based. Named metavariables (`$ARG`) land in `single`, list metavariables (`$$$REST`) in `multi` as a list (empty if nothing captured). Extract with jq:\n\n```bash\nast-grep run --pattern 'foo($ARG)' --lang javascript --json . \\\n  | jq -r '.[] | \"\\(.file):\\(.range.start.line + 1): \\(.metaVariables.single.ARG.text)\"'\n```\n\n### Search with Rules (scan)\n\nYAML rule-based search for complex structural queries:\n\n```bash\n# With rule file\nast-grep scan --rule my_rule.yml \u002Fpath\u002Fto\u002Fproject\n\n# With inline rules\nast-grep scan --inline-rules \"id: find-async\nlanguage: javascript\nrule:\n  kind: function_declaration\n  has:\n    pattern: await \\$EXPR\n    stopBy: end\" \u002Fpath\u002Fto\u002Fproject\n\n# JSON output\nast-grep scan --rule my_rule.yml --json \u002Fpath\u002Fto\u002Fproject\n```\n\n**When to use:**\n- Complex structural searches\n- Relational rules (inside, has, precedes, follows)\n- Composite logic (all, any, not)\n- When you need the power of full YAML rules\n\n**Tip:** For relational rules (inside\u002Fhas), always add `stopBy: end` to ensure complete traversal.\n\n## Tips for Writing Effective Rules\n\n### Always Use stopBy: end\n\nFor relational rules, always use `stopBy: end` unless there's a specific reason not to:\n\n```yaml\nhas:\n  pattern: await $EXPR\n  stopBy: end\n```\n\nThis ensures the search traverses the entire subtree rather than stopping at the first non-matching node.\n\n### Start Simple, Then Add Complexity\n\nBegin with the simplest rule that could work:\n1. Try a `pattern` first\n2. If that doesn't work, try `kind` to match the node type\n3. Add relational rules (`has`, `inside`) as needed\n4. Combine with composite rules (`all`, `any`, `not`) for complex logic\n\n### Use the Right Rule Type\n\n- **Pattern**: For simple, direct code matching (e.g., `console.log($ARG)`)\n- **Kind + Relational**: For complex structures (e.g., \"function containing await\")\n- **Composite**: For logical combinations (e.g., \"function with await but not in try-catch\")\n\n### Debug with AST Inspection\n\nWhen rules don't match:\n1. Use `--debug-query=cst` to see the actual AST structure\n2. Check if metavariables are being detected correctly\n3. Verify the node `kind` matches what you expect\n4. Ensure relational rules are searching in the right direction\n\n### Zero Matches? Patterns Match Whole AST Nodes\n\n`run --pattern` matches complete AST nodes, not text substrings, so zero matches can mean \"code absent\" or \"pattern has the wrong node shape\":\n\n- Qualified paths are whole nodes: `env::var($ENV)` does NOT match `std::env::var(\"X\")`. Try both bare and fully-qualified forms, or use `$$$` to absorb extra intermediate nodes.\n- To tell them apart: test the pattern on a snippet known to contain the code, and inspect how ast-grep parsed it with `--debug-query=pattern` (works for `run`, not just `scan`\u002Frules). For zero matches from rules instead, follow the Step 4 debugging checklist.\n\n### Escaping in Inline Rules\n\nWhen using `--inline-rules`, escape metavariables in shell commands:\n- Use `\\$VAR` instead of `$VAR` (shell interprets `$` as variable)\n- Or use single quotes: `'$VAR'` works in most shells\n\n**Example:**\n```bash\n# Correct: escaped $\nast-grep scan --inline-rules \"rule: {pattern: 'console.log(\\$ARG)'}\" .\n\n# Or use single quotes\nast-grep scan --inline-rules 'rule: {pattern: \"console.log($ARG)\"}' .\n```\n\n## Common Use Cases\n\n### Find Functions with Specific Content\n\nFind async functions that use await:\n```bash\nast-grep scan --inline-rules \"id: async-await\nlanguage: javascript\nrule:\n  all:\n    - kind: function_declaration\n    - has:\n        pattern: await \\$EXPR\n        stopBy: end\" \u002Fpath\u002Fto\u002Fproject\n```\n\n### Find Code Inside Specific Contexts\n\nFind console.log inside class methods:\n```bash\nast-grep scan --inline-rules \"id: console-in-class\nlanguage: javascript\nrule:\n  pattern: console.log(\\$\\$\\$)\n  inside:\n    kind: method_definition\n    stopBy: end\" \u002Fpath\u002Fto\u002Fproject\n```\n\n### Find Code Missing Expected Patterns\n\nFind async functions without try-catch:\n```bash\nast-grep scan --inline-rules \"id: async-no-trycatch\nlanguage: javascript\nrule:\n  all:\n    - kind: function_declaration\n    - has:\n        pattern: await \\$EXPR\n        stopBy: end\n    - not:\n        has:\n          pattern: try { \\$\\$\\$ } catch (\\$E) { \\$\\$\\$ }\n          stopBy: end\" \u002Fpath\u002Fto\u002Fproject\n```\n\n## Resources\n\n### references\u002F\nContains detailed documentation for ast-grep rule syntax:\n- `rule_reference.md`: Comprehensive ast-grep rule documentation covering atomic rules, relational rules, composite rules, and metavariables\n\nLoad these references when detailed rule syntax information is needed.\n",{"name":5,"description":7},"main","4abdda0e1970c182a97f95a00bd19fd43fc7209f",".agents\u002Fskills\u002Fast-grep","https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite","https:\u002F\u002Fgithub.com\u002Fpomazanbohdan","2026-11-09 20:47:45",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add pomazanbohdan\u002Fvida-stack-lite --skill ast-grep",{"tool":36,"command":37},"bunx","bunx skills add pomazanbohdan\u002Fvida-stack-lite --skill ast-grep",{"tool":39,"command":40},"pnpm","pnpm dlx skills add pomazanbohdan\u002Fvida-stack-lite --skill ast-grep","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fast-grep\u002FSKILL.md",true,[44],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Frule_reference.md","REFERENCE","参考文档",10697,"https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fast-grep\u002Freferences\u002Frule_reference.md",[51,58,64,70,76,81],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7AX0HMW52Y5FRJ49R2GFTGF","vp-setup","Synthetic fixture for manifest resource checks.","https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite\u002Fblob\u002Fmain\u002Fpackages\u002Fpowers\u002Ftests\u002Ffixtures\u002Fmanifest-build\u002Fskills\u002Fvp-setup\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7AX0E63W9SPMGFC85NPY7CR","vp-mode","https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite\u002Fblob\u002Fmain\u002Fpackages\u002Fpowers\u002Ftests\u002Ffixtures\u002Fmanifest-build\u002Fskills\u002Fvp-mode\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AX0BFXVXQGPAV81JW5WXW0","vida-bootstrap","https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite\u002Fblob\u002Fmain\u002Fpackages\u002Fpowers\u002Ftests\u002Ffixtures\u002Fmanifest-build\u002Fskills\u002Fvida-bootstrap\u002FSKILL.md",[],[],{"skillNo":71,"name":53,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7AX07RG8MH3EYSGTY9MF5J6","Initialize or refresh the Vida Powers methodology profile in a project instruction file, runtime config, or project config, including model lanes and unresolved groups.","https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite\u002Fblob\u002Fmain\u002Fpackages\u002Fpowers\u002Fskills\u002Fvp-setup\u002FSKILL.md",[],[],{"skillNo":77,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7AX0402P5HDPNZ63KTY0RA4","https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite\u002Fblob\u002Fmain\u002Fpackages\u002Fpowers\u002Fskills\u002Fvp-mode\u002FSKILL.md",[],[],{"skillNo":82,"name":66,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7AX02HTX66JCVTAB1GMJXAH","https:\u002F\u002Fgithub.com\u002Fpomazanbohdan\u002Fvida-stack-lite\u002Fblob\u002Fmain\u002Fpackages\u002Fpowers\u002Fskills\u002Fvida-bootstrap\u002FSKILL.md",[],[]]