Agent skill · Audited from source
Lean Ctx
skill · yvgude/lean-ctxApache-2.0 licenceAudited 8 Oct 2026 · source 59459b0c857a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 59459b0c857a and observed network access and no hard-coded secrets. What it does: Pick the right lean-ctx tool for reading, searching, understanding and running code with fewer tokens and fewer round trips. Use when lean-ctx MCP tools (ctx_*) are available or when a command output, file read or…
Cite
Cite this page
ModelsAtlas. “Lean Ctx (yvgude/lean-ctx)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/yvgude/lean-ctx
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkDeclared2 observations
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 1 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (1)
INFOSupply chainprompt.pipe_to_shell · SKILL.md:76
which lean-ctx || curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
- Why
- No further detail recorded for this rule.
- Fix
- —
Audit 0.4.1 · source sha 59459b0c857a · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisheryvgude GitHub userOwner of the repository this skill is read from
- Source folderyvgude/lean-ctx/skills/lean-ctxThe exact folder we audited
- LicenceApache-2.0As the repository states it
- Commit pinned for this verdict59459b0c857aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Pick the right lean-ctx tool for reading, searching, understanding and running code with fewer tokens and fewer round trips. Use when lean-ctx MCP tools (ctx_*) are available or when a command output, file read or…
---
name: lean-ctx
description: Pick the right lean-ctx tool for reading, searching, understanding and running code with fewer tokens and fewer round trips. Use when lean-ctx MCP tools (ctx_*) are available or when a command output, file read or search would be large.
---
# LeanCTX — Context Gateway for AI Systems
Control what your AI can see. LeanCTX Engine provides local context selection,
supported access and content controls, and evidence of observed context operations
for existing agents: Select → Control → Prove. Recovery depends on source or
archive availability and access permissions. LeanCTX SDK is the separate
integration surface for applications.
lean-ctx shapes context before it reaches you: cached reads, compressed shell
output, focused search, recovery to exact source. Two rules beat every detail:
1. **Fewer round trips beat smaller outputs.** One call that answers the
question is cheaper than three small ones. Never add a call just to save a
few hundred tokens.
2. **Never wait by polling.** Do not loop `sleep` + status checks (see below).
## Intent → tool
| You want to... | Call |
|---|---|
| Understand how something works (unknown location) | `ctx_compose(task)` — ranked files + source in one call; use it FIRST instead of search→read→read |
| Find the exact definition of a symbol | `ctx_search(action="symbol", name=...)` |
| Find code by meaning | `ctx_search(action="semantic", query=...)` |
| Find a text/regex pattern | `ctx_search(pattern=..., path=...)` |
| Who calls X / what calls X makes | `ctx_callgraph(action="callers"|"callees", symbol=...)` |
| Read a file you will edit | `ctx_read(path, mode="anchored")` → edit with `ctx_patch`, or the host's native edit tool |
| Read a file only for context | `ctx_read(path, mode="signatures"|"map")`; a range: `mode="lines:N-M"` |
| Re-check a file after editing | `ctx_read(path, mode="diff")` |
| Run a command (build, test, git, ...) | `ctx_shell(command)` — output is compressed |
| List files / directory shape | `ctx_glob(pattern)` / `ctx_tree(path, depth)` |
| Remember across sessions | `ctx_session(action="finding"|"decision"|"task", value=...)`; durable project facts: `ctx_knowledge(action="remember", ...)` |
Do not read or search through `ctx_shell` (`cat`, `sed -n`, `grep`, `rg`):
that bypasses the read cache and symbol index. Use `ctx_read` / `ctx_search`.
## Deferred tools (ToolSearch)
If the host lists lean-ctx tools by name only, load what the task needs in
**one** call, e.g. `select:mcp__lean-ctx__ctx_compose,mcp__lean-ctx__ctx_search,mcp__lean-ctx__ctx_read`.
Do not fall back to `ctx_shell` for everything because it happens to be loaded.
A tool named here that your tool list lacks (the default profile shows a
small core) is still callable: `ctx_call(name="ctx_knowledge", arguments={...})`.
`ctx_call(name="ctx_discover_tools", arguments={"query": "..."})` lists all of them.
## Long-running commands
- Prefer the host's own background execution that notifies on completion
(Claude Code: `Bash` with `run_in_background`, or `Monitor`). Start it, then
continue other work or end the turn — you will be told when it finishes.
- `ctx_shell(run_in_background=true)` jobs do not notify by themselves. Check
a job at most once when you actually need its result; never `sleep` in a loop.
## Truncated output
Compressed or archived output ends with a recovery handle. Fetch only the
slice you need: `ctx_expand(id, search=... | head=N | json_path=...)`, or
`ctx_read(path, raw=true)` for exact bytes. Do not re-run the command.
## Without MCP (CLI)
```bash
lean-ctx read <file> -m signatures # or map | diff | lines:N-M
lean-ctx grep <pattern> [path]
lean-ctx -c "<command>" # only where the shell is not already wrapped
lean-ctx raw "<command>" # exact, uncompressed output
```
## Setup
```bash
which lean-ctx || curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
lean-ctx setup # editor wiring, hooks, rules, this skill
lean-ctx doctor # verify
```
Docs: https://leanctx.com/docsExcerpt, first 4,125 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 59459b0
git clone https://github.com/yvgude/lean-ctx git -C lean-ctx checkout 59459b0c857a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 59459b0c857a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
59459b0c857a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/yvgude/lean-ctx/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All coding & review skills →yvgude/lean-ctx
Pick the right lean-ctx tool for reading, searching, understanding and running code with fewer tokens and fewer round trips. Use when lean-ctx MCP tools (ctx_*) are available or when a command output, file read or…
rtk-ai/rtk
Review RTK Rust code for idiomatic simplification. Detects over-engineering, unnecessary allocations, verbose patterns. Applies Rust idioms without changing behavior.
rtk-ai/rtk
Rust design patterns for RTK. Newtype, Builder, RAII, Trait Objects, State Machine. Applied to CLI filter modules. Use when designing new modules or refactoring existing ones.
rtk-ai/rtk
Issue triage: audit open issues, categorize, detect duplicates, cross-ref PRs, risk assessment, post comments. Args: "all" for deep analysis of all, issue numbers to focus (e.g. "42 57"), "en"/"fr" for language, no arg…
rtk-ai/rtk
CLI performance optimization - startup time, memory usage, token savings benchmarking
rtk-ai/rtk
Batch review des PRs RTK par ordre de complexité croissante (XS → S → M → L). Pour chaque PR : vérifie l'état (conflits, CLA, reviews), lit le diff complet, analyse le code en contexte, présente un résumé avec lien +…
Add this badge to your README
[](https://modelsatlas.com/skills/yvgude/lean-ctx/)
<a href="https://modelsatlas.com/skills/yvgude/lean-ctx/"><img src="https://modelsatlas.com/skills/yvgude/lean-ctx/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Lean Ctx
What does the Lean Ctx skill do?
Is Lean Ctx safe to install?
What can Lean Ctx access on my machine?
What do I need installed to use Lean Ctx?
Which assistants does Lean Ctx work with?
How current is this page?
Sources
- github.com/yvgude/lean-ctx/tree/main/skills/lean-ctx — the audited source at commit 59459b0c857a and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Lean Ctx skill do?
- Is Lean Ctx safe to install?
- What can Lean Ctx access on my machine?