← ClaudeAtlas

termdock-astlisted

Use the Termdock AST API to locate symbols, dependencies, callers/callees, or impact before exploring unknown code. Skip when the user gives an exact file path or only needs a literal string search.
termdock/termdock-issues · ★ 160 · Data & Documents · score 76
Install: claude install-skill termdock/termdock-issues
# Termdock AST API ## When to Use This Skill **Use AST API first when:** - The user asks "where is X", "who calls X", "what does X call", or "what depends on X" - You need a file path or symbol ownership before editing - You expect a change to touch multiple files or affect behavior - You are about to run broad search without a known target **Skip AST API when:** - The user provides an exact file path or a snippet to edit - The task is doc-only or config-only (SKILL.md, README, settings) - You only need a literal-string search **Default rule:** Use AST for discovery and impact; skip it for known-file edits. **If API is unavailable:** Fall back to `rg`/`rg --files` and note the limitation. --- ## Quick Start ### Step 1: Get Workspace ID (Required First) ```bash curl -s 'http://localhost:3033/api/workspaces' | jq '.data.workspaces[0].id' ``` Save this ID for all subsequent calls. ### Step 2: Choose Your Query Type | Goal | API | Example | |------|-----|---------| | Find symbol by name | `/api/search` | "Where is UserService?" | | See file imports/exports | `/api/graph/deps` | "What does this file import?" | | Find callers | `/api/graph/callers` | "Who calls this function?" | | Find callees | `/api/graph/calls` | "What does this function call?" | | Impact analysis | `/api/impact` | "What breaks if I change this?" | --- ## API Reference ### 1. Search Symbols ```bash curl 'http://localhost:3033/api/search?q=<name>&workspace=<wsId>&limit=10' ``` **Response fields:** -