lsap-api-design — community lsap-api-design, community, ide skills

v1.0.0

About this Skill

Ideal for AI Coding Agents requiring structured interaction with Language Servers via the LSAP protocol Guide for designing and implementing new LSAP APIs. Use when adding new capabilities to LSAP (definitions, references, rename, etc.) or when asking how to add new features to the LSAP protocol. Provid

lsp-client lsp-client
[12]
[0]
Updated: 2/27/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Locale and body language aligned
Review Score
7/11
Quality Score
42
Canonical Locale
en
Detected Body Locale
en

Ideal for AI Coding Agents requiring structured interaction with Language Servers via the LSAP protocol Guide for designing and implementing new LSAP APIs. Use when adding new capabilities to LSAP (definitions, references, rename, etc.) or when asking how to add new features to the LSAP protocol. Provid

Core Value

Empowers agents to design and interact with LSAP APIs using a three-layered architecture, including schema, capability, and LSP layers, leveraging Pydantic for request/response models and Markdown templates for output

Ideal Agent Persona

Ideal for AI Coding Agents requiring structured interaction with Language Servers via the LSAP protocol

Capabilities Granted for lsap-api-design

Designing new APIs for Language Server Agent Protocol
Implementing business logic and LSP orchestration for custom capabilities
Generating Markdown-first outputs with semantic anchoring via Locate

! Prerequisites & Limits

  • Requires understanding of LSAP protocol and Language Server architecture
  • Python-based implementation with Pydantic and lsp-client library dependencies

Why this page is reference-only

  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is lsap-api-design?

Ideal for AI Coding Agents requiring structured interaction with Language Servers via the LSAP protocol Guide for designing and implementing new LSAP APIs. Use when adding new capabilities to LSAP (definitions, references, rename, etc.) or when asking how to add new features to the LSAP protocol. Provid

How do I install lsap-api-design?

Run the command: npx killer-skills add lsp-client/LSAP/lsap-api-design. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for lsap-api-design?

Key use cases include: Designing new APIs for Language Server Agent Protocol, Implementing business logic and LSP orchestration for custom capabilities, Generating Markdown-first outputs with semantic anchoring via Locate.

Which IDEs are compatible with lsap-api-design?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for lsap-api-design?

Requires understanding of LSAP protocol and Language Server architecture. Python-based implementation with Pydantic and lsp-client library dependencies.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add lsp-client/LSAP/lsap-api-design. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use lsap-api-design immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

lsap-api-design

Install lsap-api-design, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

LSAP API Design

Guide for adding new APIs to LSAP. Study existing code as needed.

Architecture

Three layers:

  1. Schema (src/lsap/schema/): Request/Response models (Pydantic), Markdown templates
  2. Capability (src/lsap/capability/): Business logic, LSP orchestration
  3. LSP (lsp-client library): Raw protocol operations

Key Principles: Agent-cognitive design, Markdown-first output, semantic anchoring via Locate, composed capabilities

Reference Implementations

Study these before implementing:

  • Simple: src/lsap/schema/definition.py + src/lsap/capability/definition.py
  • Paginated: src/lsap/schema/reference.py + src/lsap/capability/reference.py
  • Multi-mode: src/lsap/schema/rename.py + src/lsap/capability/rename.py
  • Complex: src/lsap/schema/symbol.py + src/lsap/capability/symbol.py

Implementation Steps

1. Define Schema (src/lsap/schema/<name>.py)

See src/lsap/schema/definition.py for complete example.

Key components:

  • Request Model: Inherit from Request, LocateRequest, or PaginatedRequest
  • Response Model: Inherit from Response or PaginatedResponse
  • Markdown Template: Liquid template in model_config.json_schema_extra["markdown"]

Template basics (see docs/liquid_cheatsheet.md):

  • Conditionals: {% if items.size == 0 %}...{% endif %}
  • Loops: {% for item in items %}...{% endfor %}
  • Filters: {{ mode | capitalize }}, {{ path | join: "." }}

2. Implement Capability (src/lsap/capability/<name>.py)

See src/lsap/capability/definition.py for complete example.

Pattern:

python
1from attrs import define 2from .abc import Capability 3 4@define 5class MyCapability(Capability[MyRequest, MyResponse]): 6 async def __call__(self, req: MyRequest) -> MyResponse | None: 7 # 1. Locate position (if needed) 8 if not (loc_resp := await self.locate(req)): 9 return None 10 11 # 2. Call LSP operations via ensure_capability() 12 # 3. Process results (use asyncer.create_task_group for parallelism) 13 # 4. Return response (or None on failure)

Important: Return None on failure, not empty response.

3. Register Exports

Add to src/lsap/capability/__init__.py and src/lsap/schema/__init__.py

4. Add Tests

See tests/test_definition.py for examples. Must test: success case, not found case.

5. Add Documentation

Create schema/<name>.md with usage examples.

Common Patterns

Pagination

See src/lsap/capability/reference.py for complete pattern with PaginationCache and paginate().

Reading Code Context

python
1from lsap.utils.document import DocumentReader 2 3content = await self.client.read_file(file_path) 4reader = DocumentReader(content) 5snippet = reader.read(context_range, trim_empty=True)

Symbol Information

python
1from lsap.utils.symbol import symbol_at 2 3symbols = await ensure_capability( 4 self.client, WithRequestDocumentSymbol 5).request_document_symbol_list(file_path) 6 7if symbols and (match := symbol_at(symbols, position)): 8 symbol_path, symbol = match

LSP Capability Check

python
1from lsap.utils.capability import ensure_capability 2 3result = await ensure_capability( 4 self.client, 5 WithRequestReferences, 6 error="Fallback instructions if not supported" 7).request_references(file_path, position)

Common Utilities

See src/lsap/utils/ for implementations.

Path handling:

  • client.from_uri(uri) - Returns relative path by default
  • client.from_uri(uri, relative=False) - Returns absolute path

Position conversion:

  • Position.from_lsp(lsp_pos) - LSP (0-based) → LSAP (1-based)
  • lsap_pos.to_lsp() - LSAP (1-based) → LSP (0-based)

Hover content:

  • clean_hover_content(hover.value) - Removes LSP formatting artifacts

Checklists

Files to create:

  • src/lsap/schema/<name>.py
  • src/lsap/capability/<name>.py
  • tests/test_<name>.py
  • schema/<name>.md

Files to update:

  • src/lsap/schema/__init__.py
  • src/lsap/capability/__init__.py

Must verify:

  • Returns None on failure (not empty response)
  • Uses ensure_capability() for LSP operations
  • Concurrent operations use semaphores
  • Tests cover success and failure cases
  • docs/locate_design.md - Position resolution patterns
  • docs/liquid_cheatsheet.md - Template syntax
  • CONTRIBUTING.md - Development workflow

Related Skills

Looking for an alternative to lsap-api-design or another community skill for your workflow? Explore these related open-source skills.

View All

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
AI

flags

Logo of vercel
vercel

The React Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Developer