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.
npx agentmods add skills/tiltely/lens/socraticnpx skills add Tiltely/lens --skill socraticgit clone --depth 1 https://github.com/Tiltely/lensWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00111 | $0.02168 |
| Opus 5 | $0.00056 | $0.01084 |
| Sonnet 5 | $0.00022 | $0.00434 |
| Haiku 4.5 | $0.00011 | $0.00217 |
Grade A, and why
socratic 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 3d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Socratic Discovery Orchestrator
Read first:
- ${CLAUDE_PLUGIN_ROOT}/core/protocol.md (how to ask; the four excavations)
- ${CLAUDE_PLUGIN_ROOT}/core/dossier.md (dossier lifecycle — you own creation/reset)
- ${CLAUDE_PLUGIN_ROOT}/core/registry.md (available lenses for the plan)
Mode: explicit argument wins ("audit"). Otherwise: starting new work → design; reviewing something already built → audit (confirm your inference in one line).
Flow — design mode
- Dossier: per dossier.md. FIRST run the branch gate (dossier.md "Branch
gate") — if on a base branch (
main/master/develop/trunk), STOP and offer to createlens/<goal-slug>, stay, or use a worktree, and WAIT; if already on a feature branch, proceed silently. THEN create the branch-scoped dossier at<toplevel>/.lens/dossiers/<branch-slug>--<hash>.md(goal + date +branch:header;.lens/git exclusion). No global reset — only this branch's file is written, so a concurrent session on another branch is untouched; if the legacy.lens-dossier.mdexists, offer the one-time migration (dossier.md). Run stack detection (core/stack-detection.md); recordstack:. - Socratic rounds (protocol.md rules — ONE question at a time; classify each
as fact vs intent first: fact questions get the five-rung evidence ladder
(protocol.md "Evidence before questions") — dossier, repo, org prior art, the
project's reachable knowledge systems, runtime truth — and arrive as confirmations
when evidence exists. Name the reachable knowledge-system roles ONCE here, before
Round A, so the rest of the dialogue knows which rungs exist):
- Round A — the goal: what does success look like? for whom? what is explicitly out of scope?
- Round B — caveats: what must be true for this to work? what constraints bound it?
- Round C — rabbit holes: which sub-problems look small but are not? Name each.
- Round D — blast radius: which systems/repos/platforms/people does this touch?
(API, web, mobile, DB, infra, third parties, docs, team.)
These four are SEEDS for the frontier (protocol.md "The frontier"), not a fixed
script: each answer may spawn new branches — add them to the
## frontiermind-map (a tree, tagged[status][stakes]) and work it DOWN by stakes, not by round order. Discovery ends per protocol.md "When discovery is done": drain by stakes (drop no-consequence, default LOW, defer real-but-later), and PROPOSE synthesis (showing the mind-map) once only LOW/deferred branches remain or answers stop spawning branches. The user can say "enough, synthesize" at any step — honor it. Append everything to the dossier as you go.
- Lens plan (build it once the frontier is empty or deferred). Every lens —
bundled or user-created — is a candidate; union the
lensrows from all sources, nearest-wins on lens name (project > global > bundled — a nearer definition overrides a farther one, like a nearer CLAUDE.md):- bundled
core/registry.md; - your global registry: resolve the foundry from the lens config
(first-readable-wins:
$LENS_CONFIG→~/.claude/lens.json→~/lens/lens.json; read itsfoundrykey), then read<foundry>/registry.mdand the lens bodies in<foundry>/lenses/<name>/SKILL.md. Skip silently if no config/registry exists. - project
<repo>/.lens/registry.md(+<repo>/.lens/lenses/) — if cwd is in a git repo (root viagit rev-parse --show-toplevel) and it exists. A lens is the (registry row + itsSKILL.md); nearest-wins selects BOTH from the level that defines the name. Pick the lenses whose triggers match what the rounds surfaced; for transparency tag each by origin — (bundled) / (yours) / (project). Present an ordered plan: lens → one-line reason. Let the user prune or reorder.
- bundled
- Execute the chain in this session, dispatching per lens:
- a BUNDLED lens → invoke its skill (
/lens:<name>); - a lens you created (global
<foundry>/lenses/<name>/SKILL.mdor project<repo>/.lens/lenses/<name>/SKILL.md) → READ its SKILL.md inline and run its battery here (same as how this orchestrator reads core/*.md). Single-writer rule holds: you write the dossier. Each lens reads the dossier and skips answered questions (printing skip lines).
- a BUNDLED lens → invoke its skill (
- Synthesis: render the final mind-map (the frontier tree — every node resolved or deferred); decisions made; open risks; the four excavations as a compact map; concrete action list. This is the DRAFT plan.
- Red-team the plan (MANDATORY): run the
adversarylens on the draft — read-inline${CLAUDE_PLUGIN_ROOT}/skills/adversary/SKILL.md(or invoke/lens:adversary). It first SUGGESTS plan mode and waits for the user, then attacks the plan (refutation, weakest decision, what discovery missed, reversibility, "first thing that worked"). Disposition every finding: revise a decision / reopen a frontier branch (→ back to step 2) / accept as explicit risk. The plan is FINAL only after it survives. Then write the final dossier state. (This step is not pruned — the adversarial pass reliably finds what discovery missed.) - Close: remind the user — after the implementation lands, run
/lens:socratic auditto verify it against this dossier, and /lens:retro after that (the SessionEnd hook has already queued this session if any lens ran).
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.
- 3d ago First seen · 124 lines · 111 tokens per session scan A f254fcdc9d6d
socratic is a skill published in the GitHub repository Tiltely/lens (5 stars, last pushed 24d ago), licensed MIT. It adds 111 tokens to every session and 2,168 once invoked, about $0.0006 per session on Opus 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-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…