integrations/cursor/skills/laightdb-rolling-context/SKILL.md
Proactively loads relevant LaightDB context at the start of substantive work and persists concise rolling notes before wrapping up, using LaightDB MCP tools without waiting for the user to say "store" or "search". Use whenever this workspace has the LaightDB MCP server enabled and the user is doing multi-step implementation, debugging, or design that should survive across sessions.
npx skillsauth add gtrig/LaightDB laightdb-rolling-contextInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
search_context with a short query (repo name, ticket id, branch name, feature keyword, or path prefix) and detail of metadata or summary first; use full only when verbatim text is required.store_context with a stable collection (for example <repo-name>/rolling) and metadata keys such as topic, branch, or ticket so later searches hit reliably.search_context with those keywords (optional collection if the project uses one consistently).If this turn changed architecture, contracts, or left follow-ups, call store_context with a compact summary: what changed, what is uncertain, and suggested next steps. Skip storage for trivial one-line edits unless the user asked for persistence.
When relationships between stored items matter (dependencies, parent/child design), use link_context or graph_search as described in the main LaightDB MCP skill.
If hooks from integrations/cursor are installed:
sessionStart injects additional_context with a short policy: use LaightDB MCP for persistent memory, search_context at task start, store_context before ending substantive turns when worth preserving.beforeSubmitPrompt may add additional_context with LaightDB hits from the search_context MCP tool (streamable HTTP /mcp, not REST /v1/search). Treat injected lines as optional context; still call search_context / get_context when you need full control over the query or detail level.Do not rely on a stop hook with followup_message for storage reminders—older setups did that and Cursor could chain into repeated agent turns (infinite loops). End-of-turn store_context is driven by this skill and the sessionStart policy, not by stop.
tools
Vite/React UI for LaightDB: dashboard, search, and the 3D Explorer (/explorer) for context graphs and storage engine layout. Use when editing ui/src, Vite config, or REST client calls for graph overview / storage diagnostics.
tools
Build MCP servers using the official Go SDK (github.com/modelcontextprotocol/go-sdk/mcp). Use when implementing MCP tools, resources, server setup, transport configuration, or anything in internal/mcp/.
development
Build an LSM-tree storage engine in Go with WAL, MemTable, SSTables, bloom filters, and compaction. Use when implementing or modifying internal/storage/ components, writing the WAL, MemTable, SSTable, compaction, or the storage engine orchestrator.
tools
Proactively loads relevant LaightDB context at the start of substantive work and persists concise rolling notes before wrapping up, using LaightDB MCP tools without waiting for the user to say "store" or "search". Use whenever this workspace has the LaightDB MCP server enabled and the user is doing multi-step implementation, debugging, or design that should survive across sessions.