xiaohongshu
xiaohongshu
fold-lsp
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.
Full skill instructions
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 |
|---|---|---|
fold_lsp_hover | Get type info at position | Before modifying a function to understand its signature |
fold_lsp_definition | Go to symbol definition | When needing to read or modify a function's implementation |
fold_lsp_references | Find all usages | Before refactoring to understand impact |
fold_lsp_symbols | Search by name | When looking for a function but unsure of exact location |
fold_lsp_diagnostics | Check for errors | After editing to verify code correctness |
fold_lsp_format | Format code | When code needs consistent formatting |
fold_lsp_lookup | Combined lookup | One-stop info gathering (hover + def + refs) |
fold_lsp_status | 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:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience