SkillTrace: Multi-Trace Provenance Auditing for LLM-Agent Skill Reuse

Jialuo Chen, Minghe Wang, Lingqi Jiang, Jianan Ma, Xinhao Deng, Xiaohu Du, Ruixiao Lin, Yunhao Feng, Linkang Du, Jingyi WangarXiv 2026

TL;DR

SkillTrace is a novel provenance auditing framework designed to track the reuse, cloning, and adaptation of LLM-agent "skills" across marketplaces. By decomposing a skill into distinct textual, executable, and structural operational traces, it successfully uncovers sophisticated or partial reuse that traditional code clone detectors miss.

What Problem Does This Paper Address?

As LLM-agent ecosystems mature, capabilities are increasingly packaged into reusable "skills"—mixed-modality bundles containing natural language instructions, executable code snippets, tool APIs, and operational workflows. With the rise of public registries and marketplaces, developers frequently fork, adapt, or repackage these skills.

However, ensuring visibility into the provenance (the origin and history) of these skills is highly challenging. Traditional software clone detectors (like MOSS or JPlag) only look at uniform source code, while repository-level fingerprinting methods (like ssdeep) collapse everything into a single file similarity score. These methods fail when a derivative skill preserves only a high-value fragment—such as a carefully designed tool-orchestration workflow or a debugged support script—while completely rewriting the surrounding documentation and variable names. SkillTrace addresses this gap by providing a multi-trace auditing framework that can isolate exactly which part of a skill survived a transformation.

Methods

SkillTrace operates in a two-stage pipeline: Trace Extraction and Reuse Detection.

Fig. 1: SKILLTRACE at a glance. The auditor extracts Expression, Implementation, and Operational traces from reference and candidate skill packages. The Operational Trace is represented as a Skill Operational Graph (SOG) with Activation, Procedure, and Resource-Flow views. At audit time, cached traces are compared deterministically and SKILLTRACE emits an audit report.

1. Trace Extraction

For every skill package ingested into a registry, SkillTrace extracts three complementary provenance traces:

  • Expression Trace: Captures authored natural language choices (instructions, descriptions, examples) using deterministic tokenization.
  • Implementation Trace: Captures executable elements (inline code, shell commands, API call patterns) using a language-agnostic token representation.
  • Operational Trace: Captures host-aware execution design, represented as a Skill Operational Graph (SOG).

The SOG is a typed graph that models the skill's behavior across three distinct views: Activation (when and why it triggers), Procedure (how actions are sequenced and branched), and Resource-Flow (how tools, APIs, and data artifacts connect). An LLM is used only once during this ingestion phase to normalize the skill's mixed-modality content into the structured SOG schema.

Fig. 2: Example Skill Operational Graph (SOG) for a PDF form-filling skill (simplified).

2. Reuse Detection

At audit time, SkillTrace performs pairwise comparisons completely deterministically over the cached traces—requiring zero further LLM calls. It calculates individual similarity scores for each trace, normalizes them against thresholds calibrated on same-function strict negatives, and combines them using a MaxFusion rule (selecting the maximum calibrated score among the applicable traces).

Datasets

The authors evaluated SkillTrace using two primary datasets:

  • SKILLTRACE-BENCH: A newly introduced benchmark built from 100 real-world marketplace skill anchors. It includes 820 positive reuse pairs spanning various realistic modifications (repackaging, cross-modal porting, full LLM rewrites, and partial code/documentation lifting) and 751 negative controls (including independently developed skills that perform the exact same function).
  • Wild Audit Corpus: A large-scale dataset comprising 36,446 real-world skills scraped from public registries like SkillHub and ClawHub to evaluate scalability and real-world utility.

Key Insights and Ideas

  • Operational Logic as a Birthmark: While a reuser can easily paraphrase text or refactor code, completely rewriting the operational structure (how tools are orchestrated to solve a problem) is highly costly. Therefore, the structural logic captured by the SOG acts as an effective "operational birthmark" that survives heavy rewriting.
  • The Power of MaxFusion: Instead of averaging the similarity scores across text, code, and structure, taking the maximum calibrated score prevents localized evidence from being diluted. For instance, if a developer steals a complex script but wraps it in entirely new documentation, the high implementation score will still trigger an alert.
  • Amortized LLM Costs: By confining LLM usage strictly to the one-time generation of the SOG during ingestion, the framework eliminates the massive API costs and latency bottlenecks typically associated with using LLMs for pairwise comparisons.

Key Results

  • State-of-the-Art Detection: On SKILLTRACE-BENCH, SkillTrace-MaxFusion achieved an AUROC of 0.938 and an F1-score of 0.898, significantly outperforming repository-level baselines (RepoClone achieved an AUROC of 0.841).
  • Resilience to LLM Rewrites: In scenarios where skills were fully rewritten by an LLM (altering text and code tokens completely), traditional token Jaccard similarity dropped to a meager 0.156. However, SkillTrace's Operational Trace maintained a strong detection rate, allowing MaxFusion to catch 78% of these highly disguised clones.
  • Real-World Impact: When deployed on the wild corpus of 36,446 skills, SkillTrace successfully surfaced 3,030 partial source-level reuse candidates that traditional repository-level baselines completely under-prioritized or missed.
  • Efficiency: Pairwise scoring of cached traces took an average of just 105 ms per pair, proving that the framework can easily scale to audit hundreds of thousands of combinations in minutes.

Limitations and Future Work

While highly effective, the authors note that the SOG extraction can sometimes be noisy or overly coarse for very simple, generic skills (e.g., basic single-API wrappers), leading to potential false positives if not carefully calibrated. Additionally, SkillTrace is designed as a forensic triage tool to surface evidence for human review; it does not automatically adjudicate legal intent or copyright infringement.

Future work includes automating the threshold selection process and exploring how these multi-trace representations can be applied to adjacent registry tasks, such as skill quality assessment and trace-aware semantic skill search.

Summary updated

BibTeX
@misc{chen2026skilltrace,
  author = {Jialuo Chen and Minghe Wang and Lingqi Jiang and Jianan Ma and Xinhao Deng and Xiaohu Du and Ruixiao Lin and Yunhao Feng and Linkang Du and Jingyi Wang},
  title = {{SkillTrace: Multi-Trace Provenance Auditing for LLM-Agent Skill Reuse}},
  year = {2026},
  eprint = {2608.05204},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.05204},
}
Figure