$npx skillfedfor your agent

More Than Half of 13,728 Real-World Skills Hide a Critical Risk in Plain Prose

Notes on Semia: Auditing Agent Skills via Constraint-Guided Representation Synthesis (arXiv:2605.00314) — Hongbo Wen, Ying Li, Hanzhi Liu, Chaofan Shou, Yanju Chen, Yuan Tian, Yu Feng · May 2026

Note published · written by SkillFed’s research pipeline from the paper above · how these notes are made

AI-assisted notes · reviewed by SkillFed Skill security

Every agent skill is two artifacts stapled together: a structured half that declares callable actions, and a prose half that tells the agent when to fire them — prose that gets reinterpreted fresh, probabilistically, on every invocation. Static analyzers parse the structured half and ignore the prose; LLM-based auditors read the prose but can't reproducibly prove a tainted input reaches a dangerous sink. Semia lifts each skill into the Skill Description Language (SDL) — a Datalog fact base capturing triggers, data flow, authorization gates, and documented claims. It generates that fact base through Constraint-Guided Representation Synthesis (CGRS), a propose-validate-verbalize loop that keeps refining a candidate until it's both structurally sound and faithful to the source text. Once the facts exist, checks for indirect prompt injection, secret leakage, or a confused deputy become plain Datalog reachability queries.

Run against 13,728 real-world skills pulled from public marketplaces, Semia renders every one of them auditable and finds that more than half carry at least one critical semantic risk. On a 541-skill benchmark hand-labeled by two annotators (Cohen's kappa 0.83; 301 confirmed risky, 240 clean), Semia reaches 97.7% recall and 84.5% precision, an F1 of 90.6% — against 13.6% recall for VirusTotal-style signature scanning and 52.6% recall for the marketplace's own heuristic-plus-LLM scanner, ClawScan. Removing the SDL representation and falling back to a single LLM pass costs 19.9 F1 points; turning off the iterative refinement loop alone costs another 4.0, showing the structured intermediate representation is doing real work rather than dressing up an LLM's opinion. The same audit surfaced 17 exploitable zero-day vulnerabilities, confirmed and responsibly disclosed through the marketplace's maintainers.

Key numbers

Real-world skills audited13,728
Carry a critical semantic riskmore than half
Zero-days confirmed & disclosed17
Semia recall / precision (541-skill benchmark)97.7% / 84.5%
VirusTotal recall, same benchmark13.6%

Skills related to this research

laravel-testing This skill guides you through testing Laravel 13 applications with either Pest PHP 4 or PHPUnit 12, covering 24 rules across HTTP endpoints, model factories, database state verification, service mocking, and authentication patterns. It detects your project's testing framework automatically and provides syntax examples for both frameworks side-by-side, so you can write fast, readable tests regardless of which one you use.★ 58 design-system Design System converts visual references into two synchronized outputs: a YAML token spec in Google's design.md format for coding agents, and a self-contained HTML style guide for human review. Reads imagery, derives tokens for color, typography, spacing, and components, then generates both files as a single source of truth that never drifts.★ 168 bet-sizing Bet Sizing guides you through position sizing frameworks including the Kelly criterion for maximizing long-term wealth growth, fractional Kelly approaches for practical risk management, and risk budgeting methods. Learn to scale positions by volatility, set concentration limits, and weight bets by conviction strength.★ 159 Second Brain Query Query your personal wiki to find answers, discover relationships between topics, and synthesize knowledge from your collected sources. The skill searches your index and pages, follows internal links for context, and cites sources using wiki syntax. Save valuable analyses back to your wiki as synthesis pages to compound your knowledge over time.★ 643

Related notes

References

  1. Hongbo Wen, Ying Li, Hanzhi Liu, Chaofan Shou, Yanju Chen, Yuan Tian, Yu Feng — Semia: Auditing Agent Skills via Constraint-Guided Representation Synthesis (arXiv:2605.00314, 2026)
  2. Kai Greshake et al. — Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (2023)
  3. Umar Iqbal et al. — LLM Platform Security: Applying a Systematic Evaluation Framework to OpenAI's ChatGPT Plugins (2023/2024)