get_smart_skeleton_context
Retrieve full source for a focus file or symbol with compact AST signatures for its imports and callers, so LLMs edit code with surrounding context while cutting token use.
Instructions
Focus-aware dynamic skeletonizer. Returns the full, unpruned implementation of the focus file (or specific focus symbol), surrounded by ultra-compact T-3 AST signatures for all 1st-degree outbound imports and inbound callers. Solves the 'Lost in the Middle' problem while saving 95%+ tokens.
Behavior:
Read-only: Traverses local AST dependencies; does not mutate files.
Idempotent: Returns identical focus + skeleton bundles for the same codebase state.
100% Offline: Local AST parsing and signature reduction.
Usage Guidelines:
When to use: Run when editing a specific file to provide the LLM with full implementation context plus compact interface skeletons of adjacent modules.
Sibling Routing: For repository-wide context, use 'get_project_context_tree'. For symbol index without file contents, use 'generate_repo_map'.
Returns: Structured Markdown with full focus file source code and 1st-degree AST skeletons for imported and caller modules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus_file | Yes | Target file path to focus on and retain with full implementation. | |
| focus_symbol | No | Optional specific function or class name within focus_file to isolate. | |
| project_root | No | Root directory of the repository (default: current directory). | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |