← Explore all skills

SECURITY REVIEW / Trail of Bits

Slicing Code Context

Uses Trailmark to cut a bounded, graph-informed slice of source around a function, class, caller, callee, call path, entry point or line range and hands it to a smaller worker model that may only propose edits.

“Selects bounded, graph-informed source slices with Trailmark and delegates focused code analysis or patch-proposal work to a smaller subagent. Use when offloading function-, class-, caller-, callee-, call-path-, entrypoint-, or line-focused code tasks to constrained or locally hosted models without exposing the full repository.”

01 / THE REASONING

Why this made the selection.

  • Builds a deterministic Trailmark slice packet and gives a worker only the task and that packet; the worker may propose changes but not apply them.
  • The packet script requires Python 3.12+ and resolves Trailmark 0.5.x, and on unsupported_trailmark the skill says to install or select 0.5.x rather than silently use a different schema.

02 / THE REVIEW RECORD

What we actually inspected.

Source review has boundaries.
A clear record is more useful than a “safe” badge.

Material inspected

  • plugins/trailmark/skills/slicing-code-context/SKILL.md
  • plugins/trailmark/README.md (prerequisites and version notes)
  • plugins/trailmark/agents/code-slice-worker.md (host note)
  • README.md (installation and licence sections)
  • LICENSE
  • plugins/trailmark/skills/slicing-code-context/scripts/build_slice_packet.py

Our findings

  • Slicing Code Context's SKILL.md frontmatter declares no allowed-tools.
  • The packet comes from the bundled scripts/build_slice_packet.py, run with `uv run`, under a token budget (8192 by default), and is passed to the worker byte for byte.
  • It prefers the plugin agent trailmark:code-slice-worker, which defaults to Haiku and has no repository-reading or mutation tools.
  • Worker output whose cited file or range is absent from the packet is rejected.

Not established by this review

  • Not executed: it was not installed or run.
  • The Slicing Code Context skill and any bundled scripts were not run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

Add a skill to your workflow.

Upstream setup instructions ↗
  1. `/plugin marketplace add trailofbits/skills` (repository README) adds the whole Trail of Bits marketplace, not one skill.
  2. Install the `trailmark` plugin from `/plugin menu`; it bundles the Slicing Code Context skill with the other trailmark skills listed in the trailmark plugin README.
  3. This skill runs no `trailmark` CLI command: its scripts/build_slice_packet.py declares `trailmark>=0.5,<0.6` as inline script metadata and is run with `uv run`, which fetches that version.

Before you start

  • The Trailmark CLI, installed with `uv tool install trailmark` (trailmark plugin README)
  • uv
  • Python 3.12+ for the bundled build_slice_packet.py
  • A worker: the plugin's trailmark:code-slice-worker agent or an external model the user configures

04 / FOLLOW THE EVIDENCE

The source trail.

Our notes are separate from the original resource.
Check upstream before adopting a new version.

  1. https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/trailmark/skills/slicing-code-context/SKILL.md

    Supports: upstreamDescription, summary, whySelected, bestFor, limitations, access, review.findings

  2. trailmark plugin README ↗Checked

    https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/trailmark/README.md

    Supports: install.prerequisites, install.steps

  3. https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/trailmark/agents/code-slice-worker.md

    Supports: compatibility

  4. https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/README.md

    Supports: install.steps, license

  5. https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/LICENSE

    Supports: license

  6. https://raw.githubusercontent.com/trailofbits/skills/8e54050ae63c2f62224c35b1616efe71865b4777/plugins/trailmark/skills/slicing-code-context/scripts/build_slice_packet.py

    Supports: install.steps, access.permissions

Evidence & Ask