ProductivityOfficial · trailofbits

Trailmark Summary skill for Claude

Runs a Trailmark summary analysis on a codebase. Returns auto-detected languages, entry point count, and dependency list.

When Claude uses it

Use when vivisect or galvanize needs a quick structural overview. Triggers: trailmark summary, code summary, structural overview.

Trailmark Summary SKILL.md

The full skill file from trailofbits/skills (CC-BY-SA-4.0).

Trailmark Summary

Runs trailmark analyze --language auto --summary on a target directory. This is a v0.2-safe workflow; do not require Trailmark 0.4.0 just to produce a summary.

When to Use

  • Vivisect Phase 0 needs a quick structural overview before decomposition
  • Galvanize Phase 1 needs detected languages and entry point count
  • Quick orientation on an unfamiliar codebase before deeper analysis

When NOT to Use

  • Full structural analysis with all passes needed (use trailmark-structural)
  • Detailed code graph queries (use the main trailmark skill directly)
  • You need hotspot scores or taint data (use trailmark-structural)

Rationalizations to Reject

RationalizationWhy It's WrongRequired Action
"I can read the code manually instead"Manual reading misses parser-based language detection, dependency data, and entry point enumerationInstall and run trailmark
"Language detection doesn't matter"Wrong language selection produces empty or partial analysisUse Trailmark's parser-based detection or --language auto
"Partial output is good enough"Missing any of the three required outputs (detected languages, entry points, dependencies) means incomplete analysisVerify all three are present
"Tool isn't installed, I'll skip it"This skill exists specifically to run trailmarkReport the installation gap instead of skipping

Usage

The target directory is passed via the args parameter.

Execution

Step 1: Check that trailmark is available.

trailmark analyze --help 2>/dev/null || \
  uv run trailmark analyze --help 2>/dev/null

If neither command works, report "trailmark is not installed" and return. Do NOT run pip install, uv pip install, git clone, or any install command. The user must install trailmark themselves.

Optionally record the version if the installed build supports it:

trailmark --version 2>/dev/null || uv run trailmark --version 2>/dev/null || true

Do not fail if the version command is missing; older v0.2.x builds may still support the summary workflow.

Step 2: Detect languages with Trailmark's parse API.

python3 - "{args}" <<'PY'
import json
import sys

try:
    from trailmark.parse import detect_languages  # canonical location since 0.3.x
except ModuleNotFoundError:
    # v0.2.x predates trailmark.parse; the same function lives in query.api
    from trailmark.query.api import detect_languages

print(json.dumps(detect_languages(sys.argv[1])))
PY

If the import fails, rerun the same snippet with uv run --with trailmark python - "{args}". If the result is [], report "Trailmark found no supported languages under target" and return.

Step 3: Run the summary with auto-detection.

trailmark analyze --language auto --summary {args} 2>&1 || \
  uv run trailmark analyze --language auto --summary {args} 2>&1

Step 4: Verify the output.

The output must include ALL THREE of:

  1. Detected languages from Step 2
  2. Entrypoints: line from the summary output
  3. Dependencies: line from the summary output

If any are missing, report the gap. Do not fabricate output.

Return the detected language list plus the full Trailmark summary output. If a version string was available, include it in the returned metadata.

How to install Trailmark Summary

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit trailofbits/skills/plugins/trailmark/skills/trailmark-summary#main ~/.claude/skills/trailmark-summary

Codex

npx degit trailofbits/skills/plugins/trailmark/skills/trailmark-summary#main ~/.codex/skills/trailmark-summary

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Trailmark Summary skill do?

Runs a Trailmark summary analysis on a codebase. Returns auto-detected languages, entry point count, and dependency list. Use when vivisect or galvanize needs a quick structural overview. Triggers: trailmark summary, code summary, structural overview.

+How do I install Trailmark Summary in Claude Code?

Copy the skill folder into ~/.claude/skills/trailmark-summary, for example with "npx degit trailofbits/skills/plugins/trailmark/skills/trailmark-summary#main ~/.claude/skills/trailmark-summary". Claude Code loads it automatically and uses it when a task matches.

+Does Trailmark Summary work with ChatGPT or Codex?

Yes. Trailmark Summary uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/trailmark-summary. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Trailmark Summary free?

Trailmark Summary is published on GitHub by trailofbits under the CC-BY-SA-4.0 license, which allows free use.

Related productivity skills

  1. Handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    mattpocock/skills★ 327k
  2. Notebooklm

    Use for anything in Google NotebookLM: querying notebooks, adding sources, generating Audio or Video Overviews, reports, flashcards or…

    alirezarezvani/claude-skills★ 30k
  3. Teach

    Teach the user a new skill or concept, within this workspace.

    mattpocock/skills★ 327k
  4. Cover Letter Generator

    Create personalized, compelling cover letters from resume and job description

    Paramchoudhary/ResumeSkills★ 3.2k
  5. Sred Project Organizer

    Official

    Take a list of projects and their related documentation, and organize them into the SRED format for submission.

    getsentry/skills★ 1.2k
  6. Sred Work Summary

    Official

    Go back through the previous year of work and create a Notion doc that groups relevant links into projects that can then be documented as…

    getsentry/skills★ 1.2k
  7. Notion Apps

    Set up and scaffold Notion Apps with the Notion Apps SDK and `ntn`; use when starting a Notion App project.

    makenotion/skills★ 184
  8. Notion Skills Usage

    Use the notion-skills CLI to manage AI agent skills from one or more Notion-backed workspace stores.

    brianlovin/notion-skills★ 79
  9. Obsidian Cli

    Interact with Obsidian using the official CLI to read, search, create, and manage notes, daily notes, tasks, properties, and more.

    jykim/claude-obsidian-skills★ 52

See all productivity skills →

More skills from trailofbits

  1. Trailmark Variant Neighborhood

    Official

    Expands one confirmed or suspected vulnerability into a Trailmark graph neighborhood of variant candidates by finding sibling functions,…

    trailofbits/skills★ 8.3k
  2. Validate Bug

    Official

    Use when a bug PoC package needs an independent rerun and judgment before patching.

    trailofbits/skills★ 8.3k
  3. Variant Analysis

    Official

    Hunts for the other instances of a bug already found — the variants of one root cause across a codebase.

    trailofbits/skills★ 8.3k

All skills by trailofbits →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.