lens-debug

lens-debug is a skill for Codex from stark-ai-de/agent-skills. It costs 44 tokens per session (1,441 once invoked), scanned A, original, Apache-2.0.

A diagnostic tool for examining recorded coding-agent runs through Lens. It uses evidence from traces—records of an agent's steps—to explain failures, unexpected requests, delays, token use, or cost.

In plain words
What is it for?
Use it to investigate one run or compare selected runs using their recorded steps and setup details.
Why use it?
It helps find the smallest supported explanation for a problem without changing the agent or examining unrelated sessions.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to investigate one run or compare selected runs using their recorded steps and setup details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stark-ai-de/agent-skills/lens-debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add stark-ai-de/agent-skills --skill lens-debug
Clone the repo
git clone --depth 1 https://github.com/stark-ai-de/agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lens-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/stark-ai-de/agent-skills/lens-debug/github.svg)](https://agentmods.dev/skills/stark-ai-de/agent-skills/lens-debug)
Your own site
<a href="https://agentmods.dev/skills/stark-ai-de/agent-skills/lens-debug"><img src="https://agentmods.dev/badge/skills/stark-ai-de/agent-skills/lens-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lens-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/stark-ai-de/agent-skills/lens-debug"><img src="https://agentmods.dev/badge/skills/stark-ai-de/agent-skills/lens-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,441 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01441
Opus 5.5 $0.00018 $0.00576
Sonnet 5.5 $0.00009 $0.00288
Haiku 4.5 $0.00004 $0.00144

Measured 12d ago against content hash d834a1bc6118, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lens-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/lens_read.py, tests/test_lens_read.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

incubator/skills/engineering-workflows/lens-debug/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lens Debug

Goal

Read evidence. Explain the smallest supported fix. Do not change the agent.

This is an opt-in incubator skill. It neither installs telemetry nor starts paid investigations. Invoke the bundled reader with Python 3.11+ on Linux, WSL, or macOS; native Windows credential ACL handling is not qualified.

When to use

Use on explicit requests to explain agent failures, unexpected calls, latency, token usage or cost from Lens evidence, or to compare specified recorded runs.

When not to use

Do not use to install tracing, build an application, mutate configuration, run paid investigations, or read unrelated customer sessions. Do not run implicitly.

Inputs to inspect

Use the user's approved gateway base, private scoped read-key path, selected trace ID plus trace_ref or a bounded time window, and the question to answer. For comparisons, inspect commit/runtime/model/setup labels and acceptance tests.

Workflow

Choose a route

Request Route
Explain one failure or slow session Read the selected trace and its steps.
Compare calls, cost, or performance Read bounded runs; use schema-backed SQL only when necessary.
Check whether evidence is available Verify endpoint/credential type and a bounded listing; report gaps.

For a clear request, announce the selected route and proceed within its scope. For a bare skill invocation or request for options, show all three routes; do not infer permission to read unrelated traces or change configuration.

Safety rules

Use the user's approved HTTPS LiteLLM gateway base, not the Lens ingestion URL. Use an existing user-owned LiteLLM virtual key authorized for these traces. TRACE_READ is not a key type; LENS_READ_KEY_FILE only selects its private file. A separate read key is optional. A tracing key cannot authorize gateway content reads; never request a master/admin key. Verify ownership and team sharing before reusing an inference key. Missing access is not permission to broaden it.

Read the full file on GitHub · 139 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +9 lines d834a1bc6118
  2. 13d ago First seen · 130 lines · 44 tokens per session scan A 2c6bd28a2792

Subscribe to this mod's changes

lens-debug is a skill published in the GitHub repository stark-ai-de/agent-skills (8 stars, last pushed 2d ago), licensed Apache-2.0. It adds 44 tokens to every session and 1,441 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

Related

lens-debug compared with skills from other repositories

lens-debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lens-debugstark-ai-de/agent-skillsSkill82d agoApache-2.0A44Codex
team-diagnosetikalk/adlc-team-skillsSkill147todayMITA51Claude Code, Codex
diagnosing-recordingfelipesauer/mnemaSkill425d agoApache-2.0A35Claude Code
claim-checkingfelipesauer/mnemaSkill425d agoApache-2.0A34Claude Code, Codex
senmu-build-assuranceSenMuShare/senmu-buildosSkill219d agoApache-2.0A43Claude Code, Codex
bug-triagesananthanarayan/skilldropSkill2yesterdaynoneA99Claude Code
postmortem-generatorsananthanarayan/skilldropSkill2yesterdaynoneA139Claude Code