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.
npx skills add lexq-io/lexq-cli --skill lexq-rulesgit clone --depth 1 https://github.com/lexq-io/lexq-cliWrote 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.
[](https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-rules)<a href="https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-rules"><img src="https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-rules/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.
<a href="https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-rules"><img src="https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.04152 |
| Opus 5.5 | $0.00029 | $0.01661 |
| Sonnet 5.5 | $0.00015 | $0.00830 |
| Haiku 4.5 | $0.00007 | $0.00415 |
Grade A, and why
lexq-rules 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 454 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LexQ CLI — Policy Rules
Prerequisite: Read
lexq-shared/SKILL.mdfirst.
Overview
A Policy Rule is a condition → actions pair within a version. Rules are evaluated in priority order — lower number wins, and priorities are 1-based (1 is highest). When a rule's condition matches the input facts, its actions fire.
priority is assigned by the server, not by you. New rules are appended last. Use
lexq rules reorder to change the order.
Rule Structure
{
"name": "VIP 10% Discount",
"condition": {
...
},
"actions": [
...
],
"mutexGroup": null,
"mutexMode": "NONE",
"mutexStrategy": "HIGHEST_PRIORITY",
"mutexLimit": null,
"isEnabled": true
}
Condition Syntax
Conditions use a tree structure with two node types: SINGLE and GROUP.
SINGLE Condition
{
"type": "SINGLE",
"field": "paymentAmount",
"operator": "GREATER_THAN_OR_EQUAL",
"value": 100000,
"valueType": "NUMBER"
}
GROUP Condition (logical combinator)
{
"type": "GROUP",
"operator": "AND",
"children": [
{
"type": "SINGLE",
"field": "customerTier",
"operator": "EQUALS",
"value": "VIP",
"valueType": "STRING"
},
{
"type": "SINGLE",
"field": "paymentAmount",
"operator": "GREATER_THAN",
"value": 50000,
"valueType": "NUMBER"
}
]
}
Operators
Operators are constrained by the left fact's type. Using one outside its type is rejected
by the server — check lexq facts list before choosing.
| Fact type | Allowed operators |
|---|---|
STRING |
EQUALS, NOT_EQUALS, CONTAINS, IN, NOT_IN |
NUMBER |
EQUALS, NOT_EQUALS, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, IN, NOT_IN |
BOOLEAN |
EQUALS, NOT_EQUALS |
LIST_STRING / LIST_NUMBER |
HAS_ANY, HAS_ALL, HAS_NONE |
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.
- 5d ago Changed · -2 lines 599b0f94b518
- 7d ago Changed · +1 lines 1f0f7eaa3c22
- 19d ago Changed · +19 lines a4c9b0a07c3b
- 20d ago Changed · +5 lines · +73 tokens per session edecc27483e3
- 1mo ago Changed · +4 lines af2cc7c4efa3
- 1mo ago Changed · +7 lines e167ba22d6d8
- 3mo ago First seen · 420 lines · 0 tokens per session scan A 3f7c96eb96ef
lexq-rules is a skill published in the GitHub repository lexq-io/lexq-cli (1 stars, last pushed today), licensed Apache-2.0. It adds 73 tokens to every session and 4,152 once invoked, about $0.0003 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.
lexq-rules compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lexq-ruleslexq-io/lexq-cli | Skill | 1 | today | Apache-2.0 | A | 73 | Claude Code, Codex |
| fda-databasesynthetic-sciences/openscience | Skill | 4.5k | 2d ago | Apache-2.0 | A | 43 | Claude Code, Codex |
| uspto-databasesynthetic-sciences/openscience | Skill | 4.5k | 2d ago | Apache-2.0 | A | 40 | Claude Code, Codex |
| atmos-aws-compliancecloudposse/atmos | Skill | 1.4k | today | Apache-2.0 | A | 42 | Claude Code |
| x-scorecardx-cmd/x-cmd | Skill | 4.8k | 7d ago | Apache-2.0 | A | 57 | Claude Code, Codex |
| open-weightsericrisco/rsc-harness | Skill | 691 | 6d ago | MIT | A | 146 | Claude Code, Codex |
| hiringericrisco/rsc-harness | Skill | 691 | 6d ago | MIT | A | 82 | Claude Code, Codex |