← Back to list

ast-query
by tylermorganme
⭐ 0🍴 0📅 Jan 16, 2026
SKILL.md
name: ast-query description: Query TypeScript codebase structure. Use when asking "what does X contain?", "where is X defined?", "what calls X?", or exploring type/interface/function definitions. Answers structural questions by parsing actual code.
AST Query
Query TypeScript code structure without reading files manually.
Usage
# What fields does an interface have?
node crop-api/scripts/ast-query.js "Plan"
# Find a function signature
node crop-api/scripts/ast-query.js "validatePlan"
# Find all matching definitions
node crop-api/scripts/ast-query.js "Bed"
# Find what calls a function
node crop-api/scripts/ast-query.js "validatePlan" --callers
Output
Compact, greppable format:
interface: Plan (src/lib/entities/plan.ts:45)
id: string
schemaVersion: number
metadata: PlanMetadata
beds: Record<string, Bed>
cropCatalog: Record<string, CropConfig>
plantings: Planting[]
When to Use
- Understanding type structure before modifying code
- Finding where something is defined
- Checking function signatures
- Discovering related types (query "Bed" finds Bed, BedSpanInfo, getBedLength, etc.)
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon