agentsclimarketplace

Openlayer

Skill openlayer-ai/openlayer-skills/skills/openlayer

Use when integrating, instrumenting, evaluating, or testing an app with Openlayer — the AI evaluation and observability platform. Covers BOTH modes: (1) MONITORING/live — add tracing to LLM or agent code with the openlayer Python or TypeScript SDK (@trace, trace_openai / trace_anthropic / trace_litellm / trace_bedrock and the LangChain callback), publish inference rows, enrich traces with user/session context, metadata, and guardrails; and (2) DEVELOPMENT/offline — author openlayer.json + tests.json, push commits with the Openlayer CLI or MCP, gate CI/CD, and run the fix-loop on failing rows. Also covers creating tests (the prebuilt catalog, thresholds), inference pipelines, and programmatic data access. Trigger when the user mentions Openlayer, OPENLAYER_API_KEY, OPENLAYER_INFERENCE_PIPELINE_ID, openlayer.json, tests.json, an inference pipeline, "openlayer push", openlayer-mcp, trace_openai / trace_anthropic, Openlayer guardrails, or LLM evals.From its SKILL.md

Install
npx -y skills add openlayer-ai/openlayer-skills --skill openlayer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.3 KB, as published. Nobody here has run it

Openlayer

This skill helps you integrate apps with Openlayer correctly and fast — instrumenting code for live monitoring, setting up offline evals, creating tests and guardrails, gating CI/CD, and accessing data.

Core Principles

Follow these for ALL Openlayer work:

  1. Docs-first. NEVER implement from memory — the SDKs, CLI, MCP, and test catalog change often. Resolve the current API from the docs before writing code. See references/docs-access.md.
  2. Use the latest versions. Install/upgrade openlayer (PyPI) / openlayer (npm) to latest; don't downgrade to match an old snippet. See references/sdk-upgrade.md.
  3. Identify the mode FIRST — this is the primary routing decision:
    • Monitoring (live): the user is shipping real traffic and wants traces/observability and continuous tests on production data → references/monitoring-instrumentation.md.
    • Development (offline): the user wants to evaluate a model/app version against datasets before shipping, with results gating a commit/PR → references/development-setup.md.
    • Unsure? Ask one question: "Do you want to evaluate live production traffic, or test a version offline before shipping?" Many teams eventually use both.
  4. Minimal footprint. Wrap existing clients and decorate existing functions — don't rewrite app logic.
  5. Never hardcode keys. Use env vars: OPENLAYER_API_KEY, OPENLAYER_BASE_URL (self-hosted/local only — the SDKs need it to include /v1, unlike the CLI profile URL; see references/cli.md), OPENLAYER_INFERENCE_PIPELINE_ID, OPENLAYER_DISABLE_PUBLISH. Don't ask the user to paste keys into chat — have them set the env var or a .env. Keys: Workspace settings → API keys.
  6. Debugging is not rebuilding. When something already set up isn't working, diagnose before editing — most failures are an unset env var, a base URL, or an app that never loaded its env file, not wrong instrumentation. Start from references/troubleshooting.md.

Data access (the "API" plane)

When you need to read or modify Openlayer data programmatically, use this tiered fallback. Details and the SDK resource map are in references/data-access.md.

  1. SDK (default). Use the typed client: Openlayer(api_key=...) (Python) or new Openlayer({ apiKey }) (TS).
  2. Raw REST via the OpenAPI as a last resort.

(If the Openlayer MCP server happens to be connected, prefer its tools — covered in a separate skill.)

The Openlayer CLI is NOT the data-access tool — it is the development/push workflow tool (openlayer push, validate, export, …). See references/cli.md.

Documentation access

Openlayer docs at docs.openlayer.com are agent-friendly:

  • Index: fetch https://docs.openlayer.com/llms.txt — every page listed as [title](url.md): description.
  • Read a page as markdown: append .md to any docs URL (e.g. https://docs.openlayer.com/monitoring/instrument.md).
  • Search: the search_openlayer_docs MCP tool, and a hosted docs MCP at docs.openlayer.com/mcp.

Preference order: search (when topic is fuzzy) → llms.txt lookup → fetch the specific .md. See references/docs-access.md.

Use case specific references

If the user wants to…Read
Debug a setup that isn't working (no traces, push/413, auth, base URL)references/troubleshooting.md
Add live tracing / observability to codereferences/monitoring-instrumentation.md
Monitor or evaluate a traditional / tabular ML model (scikit-learn, XGBoost, regression/classification)references/traditional-ml.md
Set up offline evals (openlayer.json / tests.json)references/development-setup.md
Create or choose tests / thresholdsreferences/tests.md
Add runtime guardrails (block/redact PII, injection)references/guardrails.md
Author a custom metricreferences/custom-metrics.md
Set up compliance frameworks / governancereferences/governance.md
Route LLM calls through the Openlayer Gatewayreferences/gateway.md
Subscribe to platform events via webhooksreferences/webhooks.md
Publish or stream inference rows directlyreferences/data-streaming.md
Gate CI/CD on eval resultsreferences/ci-cd.md
Query data programmaticallyreferences/data-access.md
Install/use the Openlayer CLIreferences/cli.md
Find or fetch docsreferences/docs-access.md
Install or upgrade the SDKreferences/sdk-upgrade.md

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.