Atlas / Skills / nvxtien / context-slice

context-sliceSAFE

skills/nvxtien/context-slice

Reduce the context before sending it to the LLM

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
—
Hosts
1 documented
License
MIT
Stars
0
01

Overview

Reduce the context before sending it to the LLM

Read from source at commit 29542e0daae8OBSERVED · 2026-10-10
02

Host compatibility

What the documentation claims. We have not run a compatibility test.

HostStatusNotes
claude-codementioned
03

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: context-slice
description: Use before reading source files to understand, implement, or explain something in a Java, TypeScript/TSX, JavaScript, Python, Rust, or Go repository. Serves a budget-bounded, relevance-ranked slice of the codebase (target symbol plus ranked callers/callees) through MCP tools instead of whole-file reads, shrinking how much context window the task consumes.
---

# Context Slice

Context Slice is an MCP server that indexes a repository's symbols and call
graph (via Tree-sitter, no LLM involved) and serves a compact, explainable
slice of it — not whole files. Prefer its tools over `Read`/`Grep` on source
files whenever the task is about a specific symbol, function, class, or
behavior in a supported repository, so the model spends tokens on the
relevant code instead of re-reading entire files to find it.

**Supported languages:** Java, TypeScript, TSX, JavaScript, Python, Rust, Go.
For any other language, or a question with no clear target symbol (e.g.
"what does this project do overall"), fall back to normal file reading.

## When to call Context Slice

Call Context Slice automatically when the request requires understanding the
checked-out codebase, such as finding a symbol, tracing callers, explaining a
flow, fixing a bug, implementing a change, reviewing a module, or inspecting
the current Git diff. Do not call it for general programming questions,
commands that do not require code understanding (such as formatting or
committing), or when the relevant code is already fully available in context.

Before reading source files, use `ToolSearch` to load the deferred Context
Slice tools. Then call `context.preview` before using Bash, grep, Read, or
other direct file tools. Fall back to direct file tools only when Context Slice
cannot answer, the repository is unsupported, or the tool is unavailable.

## Workflow

1. **Start with `context.preview`** for any implementation or explanation
   task: `{ task: "<the task in the user's own words>" }`. It returns a
   selected target symbol, its rendered body, ranked direct callers/callees
   included under the token budget, inclusion/omission explanations, and any
   unresolved calls. Read the explanations — they say _why_ each piece was
   included, and what was left out and why.
2. **Do not assume an unresolved call has a concrete implementation.**
   Tree-sitter analysis cannot prove runtime dispatch (reflection, DI
   proxies, framework-generated code, Python/Go dynamic dispatch). An
   unresolved call in the result means exactly that — unresolved, not
   "has no implementation."
3. **Drill in with the other tools once you know the target symbol's id or
   name:**
   - `context.symbol` — read one symbol as `signature` / `skeleton` / `body`
     / `full` source. Use the smallest `detail` level that answers the
     question; only use `full` when the exact source text matters.
   - `context.callers` — bounded-depth callers of a symbol (`depth` 1-5).
   - `context.slice` — a strict-budget slice centered on one symbol instead
     of a task description.
   - `context.search` — find candidate symbols by name/text when you don't
     yet know the exact target.
   - `context.diff` — a `git diff` under a strict token budget, when the
     task is about recent changes.
4. **Only fall back to `Read`/`Grep` on raw source files** when: the
   language isn't supported, the repository has no index yet and a quick
   one-off answer is needed, or a tool result's explanation says the
   information isn't in the index (e.g. a file outside the checked-out
   source, or an unresolved dynamic call you must manually verify).

## Notes

- The index lives in `.context-slice/` inside the target repository and
  refreshes automatically on every tool call — changed files are never
  served stale, and there is no separate "build the index" step to run
  first.
- Every tool call targets the project Claude Code currently has open
  (`CONTEXT_SLICE_ROOT`), not the context-slice plugin's own source.
- All tool output is structural (symbols, call edges, source text) derived
  from the repository itself — never benchmark answers, expected results, or
  anything from outside the checked-out source.
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (0)

No findings outside the package's declared scope.

Gates applied: no_behavioural_pass.

Audited 2026-10-10 · audit v0.4.1 · source sha 29542e0daae8full audit observations/trust-audit/skill/nvxtien__context-slice.json · Report an issue / request a re-scan
05

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-1029542e0daae8SAFEB89first audit
06

Questions

What does the context-slice skill do?

Reduce the context before sending it to the LLM

Is context-slice safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can context-slice access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

Which assistants does context-slice work with?

Its documentation mentions claude-code. That is what the text claims, not a compatibility test we ran.

How current is this page?

The grade is for one exact copy of the source (29542e0daae8), read on 2026-10-10. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement