LaserData Cloud
CLI

Claude Code Skills

Install Claude Code skills that discover resources and propose laser commands

View as Markdownllms.txt

The laser-cli-claude skill pack lets Claude Code translate requests into laser commands. Its 21 skills follow the Console's areas: the organization, workspaces, deployments and their tabs, agents and agent sessions, streams, queries, and consumer filters. Source is available at github.com/laserdata/laser-cli-claude.

Install

Bundled with the CLI (one shot)

If laser is not installed, install the binary and skills together:

curl -fsSL https://cli.laserdata.cloud/install.sh | sh -s -- --with-cc-skills

The installer runs cli.laserdata.cloud/claude.sh after installing the binary. Re-running updates both in place and replaces each skill directory. See installer flags for the full list.

/plugin marketplace add laserdata/laser-cli-claude
/plugin install cli@laser

Script (skills only)

curl -fsSL https://cli.laserdata.cloud/claude.sh | sh

The script downloads the latest bundle and copies each skill directory, <name>/SKILL.md, to ~/.claude/skills/, removing flat skill files that older releases left there. Run it again to update. Use these environment variables to change the destination:

LASER_CLAUDE_DEST=~/my-skills ./claude.sh
LASER_CLAUDE_REF=v0.0.1 ./claude.sh   # pin to a tag

Manual

git clone https://github.com/laserdata/laser-cli-claude.git
cp -R laser-cli-claude/skills/* ~/.claude/skills/

Prerequisites

curl -fsSL https://cli.laserdata.cloud/install.sh | sh
laser auth login
laser workspace use main

Each skill runs laser commands. It stops with an error if the binary is missing from $PATH or no signed-in context is available. Agents and CI need no saved context: they set LD_API_KEY, and LD_WORKSPACE and LD_DEPLOYMENT for the scope.

Skills

Slash commandPurpose
/laser-onboardFirst-run setup: installs the binary, has you run laser auth login in your own terminal, checks laser auth status and laser org key whoami, and selects the workspace and deployment with workspace use and deployment use.
/laser-contextNamed contexts with their key, organization, workspace, and deployment scope: list, show, create, switch, rename, delete, sign out, and how -w and -d resolve.
/laser-workspaceThe workspace overview with workspace show, recent changes with activity, the organization structure, find, and creating, updating, and deleting workspaces and environments.
/laser-deployTurns a request like "spin up Iggy in eu-west-1 on the Standard tier" into deployment create managed, create starter, or create byoc after create options and create preview, then follows with deployment watch. Also lists, shows, scopes, and seeds deployments, changes them under deployment settings (rename, move, data access, metadata sync, plan, retention, spend limit) with --wait, and deletes them.
/laser-troubleshootReads health, metrics, heartbeats, readiness, throughput, logs, activity, and tasks under deployment monitor, plus access rules and the network, and returns a health report with one concrete next step.
/laser-snapshotDiagnostic snapshots with deployment monitor snapshot: list, create, download, and delete.
/laser-backupStorage volume backups with deployment settings backup: list, show, create, restore, and delete.
/laser-configVersioned configurations with deployment settings config (versions, schema, create, activate, delete) and runtimes with deployment settings runtime (start, stop, restart, upgrade).
/laser-connectorsConnectors with deployment connector (catalog, add, show, delete) and materialization backends with deployment backend (embedded, Postgres, VeloDB).
/laser-accessAccess rules with deployment connect access-rule on chosen protocols and with an expiry, the network, VPC peering, and private endpoints through AWS PrivateLink or GCP Private Service Connect.
/laser-credentialsConnection details with deployment connect show: the ld-admin login with the password masked, the root login in its place with --root for a key that holds deployment:manage, rotation with deployment connect credentials rotate, and when the data access proxy or --direct applies.
/laser-clusterThe deployment's cluster, connected clients, users, governance roles, whoami, and capabilities.
/laser-streamsStreams, topics, partitions, consumer groups, reading and sending messages, and dead letters.
/laser-agentsAgents, agent sessions with their timeline, state, and links, conversations, memory, and knowledge graphs.
/laser-queryquery run with filters or SQL, projections, writer schemas, forks, and key-value namespaces.
/laser-filtersConsumer filters: validate, test, and preview a filter first, then register, revise, and bind it, with operation ids for safe retries.
/laser-iamThe organization, its settings, members, invitations, roles, API keys, and cloud accounts under org.
/laser-billingBilling with org billing: recipient, payment method, credits, invoices and their PDFs, usage reports, and marketplace agreements.
/laser-channelNotification channels for the organization or a workspace with org notification: channels, subscriptions to event types, delivered notifications, and the event types.
/laser-auditThe organization audit log with org audit list, filtered by time window, workspace, environment, deployment, member, author, API key, event types, or correlation id.
/laser-debugMaps errors and exit codes, reads the local debug log, and explains the platform headers (ld-request, idempotency-key, idempotent-replayed, link, retry-after) and the application/problem+json envelope (RFC 7807).

Built-in Guardrails

Each skill follows these rules:

  • Retrieve current compute profiles, regions, and organization details through laser deployment create options tiers, laser deployment create options regions, and laser org show.
  • Display the exact command before any change and wait for your approval.
  • Use -o json and parse structured responses.
  • Read credentials through laser and its keyring support instead of placing API keys in commands.
  • Require typed approval for deletion, restoration, and spend-limit changes, and add --yes only after you approve, because the CLI refuses a destructive command without it when no terminal is attached. Protected resources also require a one-time code.
  • Hand commands that print a secret once, such as laser org key create and laser deployment connect show --reveal, to you to run in your own terminal, so the secret never enters the chat.

Examples

To create a starter deployment, ask:

"Set up a starter Iggy for me to play with."

/laser-deploy asks for AWS or GCP and presents a region, us-east-1 by default on AWS. It shows the laser deployment create starter command and waits for approval. It then follows the deployment with laser deployment watch until it is ready.

To investigate a deployment, ask:

"events-prod looks unhealthy."

/laser-troubleshoot events-prod finds the deployment by name. It reads health, heartbeats, metrics, recent log lines, recent activity, and active access rules. It presents a summary and the most likely cause on one screen.

To add a firewall rule, ask:

"Allow my home IP to hit events-prod."

/laser-access finds your public IP and confirms it with you. It displays laser deployment connect access-rule add -d events-prod --name home --cidr 203.0.113.7/32 --protocol tcp --protocol http with your address and only the protocols your client uses, and waits for approval before applying it.

On this page