lexq-recipes

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

A set of complete LexQ examples for building policies from the command line. One example applies different discounts according to payment amount and customer tier.

In plain words
What is it for?
Use it as a starting point for creating a policy group and version, registering input facts, adding prioritized rules, and applying tiered discount actions.
Why use it?
It turns the separate LexQ concepts and commands into a concrete sequence that can be copied and adapted.

Skill for Claude CodeCodex

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

Good fit Use it as a starting point for creating a policy group and version, registering input facts, adding prioritized rules, and applying tiered discount actions.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-recipes/github.svg)](https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-recipes)
Your own site
<a href="https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-recipes"><img src="https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-recipes/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-recipes

Your own site · 80×15
<a href="https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-recipes"><img src="https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-recipes.svg" alt="Reviewed on agentmods" width="80" 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 4,358 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.00000 $0.04358
Opus 5 $0.00000 $0.02179
Sonnet 5 $0.00000 $0.00872
Haiku 4.5 $0.00000 $0.00436

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

Security

Grade A, and why

lexq-recipes 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 8d 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-recipes/SKILL.md · 479 lines

How it starts

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

LexQ CLI — Recipes

Prerequisite: Read lexq-shared/SKILL.md first. Each recipe is a complete, copy-paste workflow.

Recipe 1: Tiered Discount Policy

Goal: Apply different discounts based on payment amount.

# 1. Create group
lexq groups create --json '{
  "name": "tiered-discount",
  "description": "Apply discount based on payment amount tiers"
}'
# → Save the group ID

# 2. Create DRAFT version
lexq versions create --group-id <gid> --json '{"commitMessage": "Initial tiered discount"}'
# → Save the version ID

# 3. Register facts (skip if already exist)
lexq facts create --key paymentAmount --name "Payment Amount" --type NUMBER --required
lexq facts create --key customerTier --name "Customer Tier" --type STRING

# 4. Add rules — creation order becomes priority order (first created = priority 1 = highest)
lexq rules create --group-id <gid> --version-id <vid> --json '{
  "name": "Premium Tier - 20%",
  "condition": {
    "type": "SINGLE",
    "field": "paymentAmount",
    "operator": "GREATER_THAN_OR_EQUAL",
    "value": 500000,
    "valueType": "NUMBER"
  },
  "actions": [{
    "type": "MUTATE_FACT",
    "parameters": {
      "targetVar": "paymentAmount",
      "method": "PERCENTAGE",
      "operator": "SUB",
      "operand": 20,
      "rounding": { "mode": "HALF_UP", "scale": 0 }
    }
  }]
}'

lexq rules create --group-id <gid> --version-id <vid> --json '{
  "name": "Gold Tier - 10%",
  "condition": {
    "type": "GROUP",
    "operator": "AND",
    "children": [
      { "type": "SINGLE", "field": "paymentAmount", "operator": "GREATER_THAN_OR_EQUAL", "value": 100000, "valueType": "NUMBER" },
      { "type": "SINGLE", "field": "paymentAmount", "operator": "LESS_THAN", "value": 500000, "valueType": "NUMBER" }
    ]
  },
  "actions": [{
    "type": "MUTATE_FACT",
    "parameters": {
      "targetVar": "paymentAmount",
      "method": "PERCENTAGE",
      "operator": "SUB",
      "operand": 10,
      "rounding": { "mode": "HALF_UP", "scale": 0 }
    }
  }]
}'

lexq rules create --group-id <gid> --version-id <vid> --json '{
  "name": "Base Tier - 5%",
  "condition": {
    "type": "SINGLE",
    "field": "paymentAmount",
    "operator": "GREATER_THAN_OR_EQUAL",
    "value": 30000,
    "valueType": "NUMBER"
  },
  "actions": [{
    "type": "MUTATE_FACT",
    "parameters": {
      "targetVar": "paymentAmount",
      "method": "PERCENTAGE",
      "operator": "SUB",
      "operand": 5,
      "rounding": { "mode": "HALF_UP", "scale": 0 }
    }
  }]
}'

# 5. Validate
lexq analytics dry-run --version-id <vid> --debug --json '{"facts":{"paymentAmount":600000}}'
# Expected: mutatedFacts.paymentAmount = 480000, generatedVariables.paymentAmount__delta = -120000

lexq analytics dry-run --version-id <vid> --debug --json '{"facts":{"paymentAmount":200000}}'
# Expected: mutatedFacts.paymentAmount = 180000, generatedVariables.paymentAmount__delta = -20000

# 6. Deploy
lexq deploy publish --group-id <gid> --version-id <vid> --memo "Tiered discount v1"
lexq deploy live --group-id <gid> --version-id <vid> --memo "Go live"

Read the full file on GitHub · 479 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. 8d ago First seen · 479 lines · 0 tokens per session scan A c1e54b5d2b65

Subscribe to this mod's changes

lexq-recipes is a skill published in the GitHub repository lexq-io/lexq-cli (0 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 4,358 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.

Related

Other skills, from other repositories

daiso-cli

A command-line interface for searching Daiso and related Korean shopping, store, food, cinema, and convenience-store data through the Daiso project. It can return structured JSON for searches and comparisons.

hmmhmmhm/daiso-mcp · 135 tokens

goofish-publish-item

A workflow for publishing second-hand items on Xianyu, a Chinese marketplace for used goods. It turns an item description and images into a category, title, listing text, and a ready-to-submit listing.

fancyboi999/goofish-cli · 151 tokens

goofish-reply-buyer

A Chinese-language workflow for handling buyer messages on Xianyu, a Chinese second-hand marketplace. It reviews conversations, classifies buyer intent, and drafts replies according to the seller’s rules, but waits for human approval before sending.

fancyboi999/goofish-cli · 160 tokens

goofish-shop-diagnosis

A read-only diagnostic workflow for Xianyu shops and listings. It compares how a shop’s items appear in marketplace search with their stored details to investigate visibility and sales problems.

fancyboi999/goofish-cli · 149 tokens

booking-cli

Searches Booking.com from the terminal via cli-web-booking — find hotels, apartments, and hostels by destination, dates, and guests; get property details by slug; resolve destination names to IDs. Use when the user asks about Booking.com, hotel search, accommodation prices, property ratings, or comparing places to…

ItamarZand88/CLI-Anything-WEB · 80 tokens

amazon-cli

Searches Amazon from the terminal via cli-web-amazon — product search, product details by ASIN, Best Sellers by category, and autocomplete suggestions. Use when the user asks about Amazon products, prices, best sellers, or wants to search Amazon. Prefer cli-web-amazon over fetching the website. No auth required.

ItamarZand88/CLI-Anything-WEB · 67 tokens