What problem does it solve?
Delegating code analysis to small or locally hosted models usually means either dumping the whole repository into the prompt or hand-picking snippets that miss critical context. This Skill selects bounded, call-graph-informed source slices with Trailmark and packages them into a deterministic packet, so a constrained worker model receives exactly the code it needs and nothing more.
Core Features & Use Cases
- Graph-informed slicing: Select code by neighborhood, upstream/downstream callers, shortest call paths, or entrypoint-to-target paths using Trailmark's static analysis graph.
- Deterministic budgeted packets: Emit JSON or Markdown slice packets with a strict estimated-token budget, omission records, and an untrusted-source notice that neutralizes prompt injection inside sliced code.
- Verified delegation workflow: Delegate the task plus packet to a subagent, validate the worker's JSON response against the packet, and permit at most one focused context expansion.
- Use Case: Ask a small local model to explain
Auth.verify and list its assumptions; the coordinator builds an 8K-token neighborhood packet, passes it verbatim to the worker, and verifies every cited line before accepting the answer.
Quick Start
Ask the assistant to use the slicing-code-context skill to have a small worker model explain a specific function, providing only a bounded Trailmark slice packet of that function and its immediate callers and callees.