Nano Banana Pro
Agent skill for nano-banana-pro
This skill should be used when working with Scheme files in The Fold codebase. Use it to "get type information", "find definitions", "check for errors", "understand Scheme code", or when editing .ss files. Provides LSP-powered code intelligence for Scheme development.
Sign in to like and favorite skills
The Fold includes an LSP (Language Server Protocol) server that provides rich code intelligence for Scheme files. The MCP server exposes these capabilities as tools that can be used to understand and navigate Scheme code.
Use LSP tools for:
| Tool | Purpose | When to Use |
|---|---|---|
| Get type info at position | Before modifying a function to understand its signature |
| Go to symbol definition | When needing to read or modify a function's implementation |
| Find all usages | Before refactoring to understand impact |
| Search by name | When looking for a function but unsure of exact location |
| Check for errors | After editing to verify code correctness |
| Format code | When code needs consistent formatting |
| Combined lookup | One-stop info gathering (hover + def + refs) |
| Check LSP status | Troubleshooting LSP issues |
Before modifying a function, use
fold_lsp_hover to understand:
After editing, use
fold_lsp_diagnostics to:
Use
fold_lsp_lookup for comprehensive symbol analysis:
fold_lsp_references to find all usages of a symbolfold_lsp_diagnostics after each changeUse
fold_lsp_symbols when:
LSP tools use 0-indexed positions:
line: Line number starting from 0character: Column position starting from 0To find the position of a symbol in a file:
To understand what
vec3-add does:
fold_lsp_hover(file: "lattice/linalg/vec.ss", line: 42, character: 8)
Returns type signature and documentation if available.
To navigate to where
matrix-multiply is defined:
fold_lsp_definition(file: "lattice/linalg/matrix.ss", line: 100, character: 12)
Returns file path and line number of definition.
After editing a file, verify it's correct:
fold_lsp_diagnostics(file: "lattice/linalg/vec.ss")
Returns list of errors/warnings or "File looks clean!"
Find all functions related to "parse":
fold_lsp_symbols(query: "parse")
Returns matching function names with their locations.
LSP tools complement other The Fold tools:
lf, li, le): LSP provides position-specific info, lattice provides module-level discoveryfold_eval): LSP shows types, REPL executes codeLSP not responding:
fold_lsp_statusNo results:
Wrong results: