Ledda Skill
Connect to Ledda's LLM observability platform to search traces, inspect errors, compare runs, and analyze costs — from any AI coding agent.
User-Invocable Skills
/ledda onboarding
Set up Ledda credentials for this project.
When the user runs /ledda onboarding:
- Look for a credentials block in the user's message. The block contains ini-formatted sections like:
[account-42]
api_key = ldda_ak_...
account_name = Production
base_url = https://app.ledda.ai- Write the credentials to
.ledda/.credentialsin the project root. If the file already exists, ask the user if they want to overwrite or merge. - Add
.ledda/to the project's.gitignoreif not already present. - Confirm which accounts were configured by listing account names.
/ledda
Search and debug LLM traces using Ledda's API.
When the user runs /ledda (with or without a follow-up question):
- Read
.ledda/.credentialsto discover available accounts and their API keys.
- If .ledda/.credentials doesn't exist, tell the user to run onboarding from the Ledda UI first (Settings > AI Agent Integration).
- Check the documentation version:
- Call GET <base_url>/docs/version (no auth needed) to get the current content hash. - Check if .ledda/<hash>/ directory exists locally. - If not, fetch the latest docs: - GET <base_url>/docs/md/reference → save to .ledda/<hash>/reference.md - GET <base_url>/docs/md/guide → save to .ledda/<hash>/guide.md
- Read the cached documentation files (
.ledda/<hash>/guide.mdand.ledda/<hash>/reference.md) to understand available API endpoints. - Help the user with their request using the Ledda API:
- Use the appropriate account's API key as a Bearer token: Authorization: Bearer <api_key> - If the user doesn't specify an account and there's only one, use it - If there are multiple accounts, ask which one to use (or let them specify by name) - Follow the guide for common workflows (searching, filtering, comparing traces)
Authentication
All Ledda API calls (except /docs/*) require a Bearer token:
Authorization: Bearer ldda_ak_your_key_hereEach API key is scoped to a single account. Use the key matching the account the user wants to query.
Credentials File Format
The .ledda/.credentials file uses ini format. See references/credentials-format.md for details.