lexq-groups

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

A management system for policy groups: containers that hold versions of rules and control when those rules run. It also defines what happens when multiple groups apply at once.

In plain words
What is it for?
Use it to list, inspect, and create policy groups, manage their status, and configure activation, priority, execution limits, and A/B testing.
Why use it?
It provides a way to organize, activate, pause, archive, and deploy rule sets while controlling conflicts between them.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-groups.svg)](https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-groups)
Your own site
<a href="https://agentmods.dev/skills/lexq-io/lexq-cli/lexq-groups"><img src="https://agentmods.dev/badge/skills/lexq-io/lexq-cli/lexq-groups.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,065 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.02065
Opus 5 $0.00000 $0.01033
Sonnet 5 $0.00000 $0.00413
Haiku 4.5 $0.00000 $0.00206

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

Security

Grade A, and why

lexq-groups 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-groups/SKILL.md · 249 lines

How it starts

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

LexQ CLI — Policy Groups

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

Overview

A Policy Group is the top-level container. It holds versions (each containing rules), manages deployment state, and controls conflict resolution when multiple groups interact.

Status Lifecycle

From To Reversible
ACTIVE DISABLED yes — set status back to ACTIVE
DISABLED ACTIVE
ACTIVE ARCHIVED no
DISABLED ARCHIVED no
  • ACTIVE — executions are processed.
  • DISABLED — all executions are blocked. Use for emergency stop.
  • ARCHIVED — removed from execution. Reached only through lexq groups delete, not by setting status directly.

CRUD Commands

List Groups

lexq groups list --page 0 --size 20

Get Group Detail

lexq groups get --id <groupId>

Returns full detail including activationMode, activationStrategy, executionLimit, and A/B test state.

Create Group

lexq groups create --json '{
  "name": "discount-policy",
  "description": "VIP discount rules",
  "activationMode": "NONE",
  "activationStrategy": "HIGHEST_PRIORITY",
  "status": "ACTIVE"
}'

Required field: name

priority is assigned by the server, not by you — new groups are appended last. Change the order with lexq groups reorder. Priorities are 1-based (1 is highest).

Optional fields with defaults:

Field Default Description
activationMode NONE Conflict resolution mode
activationStrategy HIGHEST_PRIORITY Strategy within the mode. Currently the only value
executionLimit null Max rules that can fire
activationGroup null Logical group for cross-group conflict resolution
status ACTIVE Initial status

Read the full file on GitHub · 249 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 · 249 lines · 0 tokens per session scan A ee4dfbe8eded

Subscribe to this mod's changes

lexq-groups 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,065 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.