lexq-shared

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

A shared guide to LexQ, a policy execution service where business rules describe conditions and resulting actions. It explains concepts such as policy groups, rule versions, authentication, simulation, and testing rule versions against each other.

In plain words
What is it for?
Use it when signing in, setting the LexQ connection, creating policy groups and versions, defining rules, simulating changes, deploying them, or comparing rule versions.
Why use it?
It gives the background needed to use the other LexQ guides correctly and to manage rules without changing application code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when signing in, setting the LexQ connection, creating policy groups and versions, defining rules, simulating changes, deploying them, or comparing rule versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lexq-io/lexq-cli/lexq-shared
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.

Any agent
npx skills add lexq-io/lexq-cli --skill lexq-shared
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-shared

README.md
[![agentmods](https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-shared/github.svg)](https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-shared)
Your own site
<a href="https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-shared"><img src="https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-shared/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lexq-shared

Your own site · 80×15
<a href="https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-shared"><img src="https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-shared.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,354 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00053 $0.02354
Opus 5.5 $0.00021 $0.00942
Sonnet 5.5 $0.00011 $0.00471
Haiku 4.5 $0.00005 $0.00235

Measured 20d ago against content hash 556adfaf5906, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lexq-shared 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 20d 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-shared/SKILL.md · 183 lines

How it starts

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

LexQ CLI — Shared Context

Read this skill first. All other LexQ skills assume you have read this document.

What is LexQ?

LexQ is a policy execution engine. Customers define business rules (conditions → actions), deploy them to production, and execute them via API — all without touching application code. Core differentiators are pre-deploy simulation and A/B testing for rule versions.

Authentication

# Store your API key (persisted at ~/.lexq/config.json)
lexq auth login
# Enter your API Key: lexq_us_xxxxxxxxxxxxx

# Verify authentication
lexq auth whoami

Create the key with the Manage scope in the Console (Management → API Keys). An Execute only key is for calling the execution API from your application and does not work with this CLI.

The API key is passed as X-API-KEY header on every request. You can also override per-command:

lexq groups list --api-key lexq_us_override_key

Base URL: https://api.lexq.io/api/v1/partners (default). Override with --base-url.

Core Concepts

Concept Description Analogy
Policy Group A container for rule versions. Has a lifecycle status (ACTIVE / DISABLED / ARCHIVED). Git repository
Policy Version A snapshot of rules within a group. DRAFT → ACTIVE → EXPIRED; ARCHIVED if deleted after it was published. Git branch / commit
Policy Rule A condition + actions pair within a version. Evaluated in priority order. if-then statement
Fact Definition Input schema — declares available variables and their types (STRING, NUMBER, BOOLEAN, LIST_STRING, LIST_NUMBER). Function parameter
Deployment Promotes an ACTIVE version to live traffic. Supports rollback and scheduled arming. Production release
Dry Run Tests a single input against a DRAFT or ACTIVE version without side effects. Unit test
Simulation Batch-tests a version against historical execution data. Compares with a baseline. Integration test suite

Read the full file on GitHub · 183 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. 20d ago Changed · +5 lines · +53 tokens per session 556adfaf5906
  2. 21d ago Changed 1a141c435c76
  3. 25d ago Changed b615f56c3227
  4. 26d ago Changed · +3 lines fa1feb984725
  5. 1mo ago Changed · +3 lines 01fbe0cd22cb
  6. 2mo ago Changed · +5 lines 2b55e11a98ad
  7. 2mo ago Changed · +1 lines 62db67efdee6
  8. 3mo ago First seen · 166 lines · 0 tokens per session scan A 16b866e67d70

Subscribe to this mod's changes

lexq-shared is a skill published in the GitHub repository lexq-io/lexq-cli (1 stars, last pushed today), licensed Apache-2.0. It adds 53 tokens to every session and 2,354 once invoked, about $0.0002 per session on Opus 5.5. 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.

Related

lexq-shared compared with skills from other repositories

lexq-shared next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lexq-sharedlexq-io/lexq-cliSkill1todayApache-2.0A53Claude Code, Codex
printing-press-amendmvanhorn/cli-printing-pressSkill5.1ktodayMITA222Claude Code
groq-inferencesynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A77Claude Code, Codex
wikipediax-cmd/x-cmdSkill4.8k7d agoApache-2.0A49Claude Code, Codex
cvex-cmd/x-cmdSkill4.8k7d agoApache-2.0A49Claude Code, Codex
voidenVoidenHQ/voidenSkill1.9kyesterdayApache-2.0A28Claude Code, Codex
csharp-dotnetericrisco/rsc-harnessSkill6916d agoMITA89Claude Code, Codex