lexq-execution

lexq-execution is a skill for Claude Code, Codex from lexq-io/lexq-cli. It costs 0 tokens per session (2,272 once invoked), scanned A, original, Apache-2.0.

A guide to observing LexQ after business rules are deployed. LexQ evaluates incoming facts against live rules and records results such as successes, no matches, and errors.

In plain words
What is it for?
Use it to list and filter execution history, inspect statistics and failure logs, and review deployments by trace, policy group, version, status, or date.
Why use it?
It helps you see what happened in production, investigate failed evaluations, and check deployment state instead of treating rule execution as a black box.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lexq-io/lexq-cli/lexq-execution
Any agent
npx skills add lexq-io/lexq-cli --skill lexq-execution
Clone the repo
git clone --depth 1 https://github.com/lexq-io/lexq-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lexq-execution

README.md
[![agentmods](https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-execution.svg)](https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-execution)
Your own site
<a href="https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-execution"><img src="https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-execution.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,272 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02272
Opus 5 $0.00000 $0.01136
Sonnet 5 $0.00000 $0.00454
Haiku 4.5 $0.00000 $0.00227

Measured 4d ago against content hash a2161078805c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lexq-execution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lexq-execution/SKILL.md · 276 lines

How it starts

The opening of the file, as written. The whole thing — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LexQ CLI — Execution & Monitoring

Prerequisite: Read lexq-shared/SKILL.md first.

Overview

Once policies are deployed, the engine evaluates incoming facts against live rules. This skill covers observing production behavior: execution history, statistics, failure logs, and deployment state.

1. Execution History

List Executions

lexq history list --page 0 --size 20

Filter options:

Flag Description Example
--trace-id <id> Filter by trace ID --trace-id abc123
--group-id <id> Filter by policy group --group-id <gid>
--version-id <id> Filter by version --version-id <vid>
--status <status> Filter by status --status SUCCESS
--start-date <date> Start date (ISO) --start-date 2025-01-01
--end-date <date> End date (ISO) --end-date 2025-01-31

Execution Statuses

Status Meaning
SUCCESS At least one rule matched and actions executed
NO_MATCH No rules matched — or the version was not evaluated at all (e.g. outside its effective dates)
ERROR Engine error during evaluation
TIMEOUT Execution exceeded time limit

A version outside its effective date range is filtered before evaluation, so no per-rule trace is produced for it. If a rule you expect never appears in decisionTraces, check the version's effectiveFrom / effectiveTo with lexq versions get.

Get Execution Detail

Read the full file on GitHub · 276 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 276 lines · 0 tokens per session scan A a2161078805c

Subscribe to this mod's changes

lexq-execution is a skill published in the GitHub repository lexq-io/lexq-cli (0 stars, last pushed 6d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,272 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.