Skip to content
Documentation
Skill

/lap

LAP CLI -- compile, search, and manage API specs for AI agents. Use when working with API specifications (OpenAPI, GraphQL, AsyncAPI, Protobuf, Postman), compiling specs to LAP format, searching the LAP registry, generating skills from API specs, or publishing APIs. Commands:

From plugin
lap
3492 skills1 command

Claude Code

$ npx -y skills add Lap-Platform/LAP --skill lap --agent claude-code

SKILL.md

lap.SKILL.md
name: lap
description: "LAP CLI -- compile, search, and manage API specs for AI agents. Use when working with API specifications (OpenAPI, GraphQL, AsyncAPI, Protobuf, Postman), compiling specs to LAP format, searching the LAP registry, generating skills from API specs, or publishing APIs. Commands: init, compile, search, get, skill, skill-install, skill-batch, publish, login, logout, whoami."
user-invocable: true
version: 1.0.0
metadata:
  openclaw:
    emoji: "\u26A1"
    requires:
      anyBins: ["npx", "lapsh"]
    install:
      - id: node
        kind: node
        package: "@lap-platform/lapsh"
        bins: ["lapsh"]
        label: "Install LAP CLI (npm)"

LAP CLI

Compile, search, and manage API specs for AI agents.

Command Resolution

Detect the available CLI binary once per session:

# Prefer global install, fall back to npx
if command -v lapsh &>/dev/null; then
  LAP_CMD="lapsh"
else
  LAP_CMD="npx @lap-platform/lapsh"
fi

Use `$LAP_CMD` (or the resolved form) for all commands below.

---

Agent Flow -- Consuming APIs

Use this flow when a user needs to find, download, or work with an API.

1. Discover

lapsh search <query> [--tag <tag>] [--sort relevance|popularity|date] [--limit <n>]

Search the LAP registry. Results show name, endpoint count, compression ratio, and a `[skill]` marker for installable skills.

# Find payment APIs sorted by popularity
lapsh search payment --sort popularity

# JSON output for scripting
lapsh search payment --json | jq '.results[] | select(.has_skill) | .name'

2. Acquire

**Option A -- Install a skill** (if `[skill]` marker present):

lapsh skill-install <name> --target claude
# Installs to ~/.claude/skills/<name>/

**Option B -- Download the spec**:

lapsh get <name> -o <name>.lap
lapsh get <name> --lean -o <name>.lean.lap

**Option C -- Compile a local spec**:

lapsh compile <spec-file> -o output.lap
lapsh compile <spec-file> -o output.lean.lap --lean

Supported formats: OpenAPI (YAML/JSON), GraphQL (SDL), AsyncAPI, Protobuf, Postman, Smithy. Format is auto-detected.

3. Use

Once you have a `.lap` file, read it directly -- LAP is designed for AI consumption. Key markers:

| Marker | Meaning | |--------|---------| | `@api` | API name, version, base URL | | `@endpoint` | HTTP method + path | | `@param` | Parameter (query, path, header) | | `@body` | Request body schema | | `@response` | Response status + schema | | `@required` | Required fields | | `@error` | Error response |

---

Publisher Flow -- Publishing APIs

Use this flow when a user wants to compile, package, and publish an API spec.

1. Authenticate

lapsh login
lapsh whoami        # verify

2. Compile

lapsh compile spec.yaml -o spec.lap
lapsh compile spec.yaml -o spec.lean.lap --lean

3. Generate Skill

# Basic skill (Layer 1 -- mechanical)
lapsh skill spec.yaml -o skills/ --no-ai

# AI-enhanced skill (Layer 2 -- requires claude CLI)
lapsh skill spec.yaml -o skills/ --ai

# Generate and install directly
lapsh skill spec.yaml --install

4. Publish

lapsh publish spec.yaml --provider stripe.com
lapsh publish spec.yaml --provider stripe.com --name charges --source-url https://...
lapsh publish spec.yaml --provider stripe.com --skill          # include skill
lapsh publish spec.yaml --provider stripe.com --skill --skill-ai  # with AI skill

5. Verify

lapsh search <name>   # confirm it appears in registry

6. Batch Operations

# Generate skills for all specs in a directory
lapsh skill-batch specs/ -o skills/

---

Quick Reference

Core Commands

| Command | Description | |---------|-------------| | `compile <spec>` | Compile API spec to LAP format |

Registry Commands

| Command | Description | |---------|-------------| | `search <query>` | Search the LAP registry | | `get <name>` | Download a LAP spec | | `publish <spec>` | Compile and publish to registry | | `login` | Authenticate via GitHub OAuth | | `logout` | Revoke token | | `whoami` | Show authenticated user |

Setup

| Command | Description | |---------|-------------| | `init --target claude` | Set up LAP for Claude Code | | `init --target cursor` | Set up LAP for Cursor |

Skill Commands

| Command | Description | |---------|-------------| | `skill <spec>` | Generate Claude Code skill from spec | | `skill-batch <dir>` | Batch generate skills | | `skill-install <name> --target claude` | Install skill from registry to Claude Code |

---

Error Recovery

| Problem | Fix | |---------|-----| | `command not found: lapsh` | `npm install -g @lap-platform/lapsh` or use `npx @lap-platform/lapsh` | | `Not authenticated` | Run `lapsh login` first | | `Format detection failed` | Pass `-f openapi` (or graphql, asyncapi, protobuf, postman, smithy) | | `403 Forbidden` on get | Spec may be private or registry may block without User-Agent -- update lapsh | | `YAML parse error` | Check spec is valid YAML/JSON -- use a linter first | | `Layer 2 requires claude` | Install Claude CLI or use `--no-ai` for Layer 1 skills | | `Provider required` | `publish` needs `--provider <domain>` (e.g., `--provider stripe.com`) |

---

Environment Variables

| Variable | Purpose | Default | |----------|---------|---------| | `LAP_REGISTRY` | Override registry URL | `https://registry.lap.sh` |

---

References

  • [{baseDir}/references/agent-flow.md](references/agent-flow.md) -- Extended agent workflow with examples
  • [{baseDir}/references/publisher-flow.md](references/publisher-flow.md) -- Extended publisher workflow with examples
  • [{baseDir}/references/command-reference.md](references/command-reference.md) -- Complete command reference with all flags
Read more
@lap-platform
Ships withlap

Agent-Native API specs. Verified, compressed, ready to install. Without API documentation, LLM agents hallucinate endpoints, invent parameters, and guess auth flows -- scoring just 0.399 accuracy in blind tests. LAP fixes this.

Stars on GitHub

Momentum

stars in total
349
Star history of Lap-Platform/LAP on GitHub, a chart by star-history.com

Other skills on lap.

codex

codex

LAP CLI -- compile, search, and manage API specs for AI agents. Use when working with API specifications (OpenAPI, GraphQL,…

@lap-platform@lap-platformInstall Skill

More skills from other plugins.

context7-cli

context7-cli

Use the ctx7 CLI to fetch library documentation and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…

@upstash@upstashInstall Skill
docs-components

docs-components

Comprehensive MDX component patterns (Note, Pitfall, DeepDive, Recipes, etc.) for all documentation types. Authoritative source…

reactdev11d12k
@reactjs@reactjsInstall Skill
codebase-wiki

codebase-wiki

How to work in a Codebase Wiki project (the `codebase-wiki` starter pack): an agent-authored, source-grounded wiki of the…

@inkeep@inkeepInstall Skill

Questions about lap.

Which coding agents can use lap?
lap installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.