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 agentmods add skills/lexq-io/lexq-cli/lexq-rulesnpx 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.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.03497 |
| Opus 5 | $0.00000 | $0.01749 |
| Sonnet 5 | $0.00000 | $0.00699 |
| Haiku 4.5 | $0.00000 | $0.00350 |
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 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.
How it starts
The opening of the file, as written. The whole thing — 420 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.
- 4d 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 (0 stars, last pushed 6d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 3,497 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.
Other skills, from other repositories
returns-refund-policy
Automate your return and refund process with configurable return windows, restocking fees, and rule-based approval logic for each product type.
specification-writing
Write the full patent specification from claims and invention disclosure. Use when user says "撰写说明书", "write specification", "写说明书", "patent description", or wants to draft the complete patent specification.
regulatory-research-fallback
Fallback workflow for regulatory research when web extraction tools fail on government PDFs.
x-scorecard
OpenSSF Scorecard for assessing open source project security. Check security best practices and compliance. Dependency: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.
memstack-business-gdpr
Use this skill when the user says 'GDPR', 'data protection', 'privacy compliance', 'DPA', 'DSAR', 'data subject request', 'cookie consent', 'privacy audit', 'CCPA', or asks 'do I need GDPR for this repo'. Scans the repository to detect what personal data is collected, classifies sensitivity, determines whether GDPR…
research
Research skill for LiteFlow ReAct agent tests.