cxas-autolabel-rules

cxas-autolabel-rules is a skill for Claude Code, Codex from GoogleCloudPlatform/cxas-scrapi. It costs 60 tokens per session (1,014 once invoked), scanned A, original, Apache-2.0.

A configuration tool for automatically adding labels to Contact Center AI conversations. The labels are metadata—extra information attached to a conversation—based on rules written in Common Expression Language, a condition syntax.

In plain words
What is it for?
Use it to define, validate, and synchronize rules that classify conversations by areas such as billing or technical support.
Why use it?
It turns business classification logic into repeatable rules, so conversations can be grouped without labeling each one by hand.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Good fit Use it to define, validate, and synchronize rules that classify conversations by areas such as billing or technical support.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/googlecloudplatform/cxas-scrapi/cxas-autolabel-rules
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 GoogleCloudPlatform/cxas-scrapi --skill cxas-autolabel-rules
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/cxas-scrapi

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 cxas-autolabel-rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlecloudplatform/cxas-scrapi/cxas-autolabel-rules/github.svg)](https://agentmods.dev/skills/googlecloudplatform/cxas-scrapi/cxas-autolabel-rules)
Your own site
<a href="https://agentmods.dev/skills/googlecloudplatform/cxas-scrapi/cxas-autolabel-rules"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/cxas-scrapi/cxas-autolabel-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.

agentmods 80×15 button for cxas-autolabel-rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlecloudplatform/cxas-scrapi/cxas-autolabel-rules"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/cxas-scrapi/cxas-autolabel-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,014 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00060 $0.01014
Opus 5.5 $0.00024 $0.00406
Sonnet 5.5 $0.00012 $0.00203
Haiku 4.5 $0.00006 $0.00101

Measured 3mo ago against content hash 358c8d470e9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cxas-autolabel-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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sync_rules.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/cxas-autolabel-rules/SKILL.md · 133 lines

How it starts

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

CCAI Insights Autolabeling Rules Skill

This skill guides you in authoring, refining, validating, and synchronizing Contact Center AI (CCAI) Insights Autolabeling Rules.

Autolabeling rules enrich ingested conversations with custom key-value metadata evaluated via Common Expression Language (CEL).


1. Overview & Declarative YAML Schema

Rules are defined declaratively in autolabel_rules.yaml:

version: "1.0"
project_id: "your-gcp-project-id"
location: "us-central1"

autolabeling_rules:
  - rule_id: "agent_domain"
    display_name: "Agent Domain Classifier"
    label_key: "agent_domain"
    label_key_type: "LABEL_KEY_TYPE_CUSTOM"
    active: true
    conditions:
      - condition: "containsSubAgent(conversation, 'billing_specialist')"
        value: "'billing'"
      - condition: "containsSubAgent(conversation, 'tech_support')"
        value: "'tech_support'"
      - condition: ""
        value: "'general'"

Core Schema Requirements

  1. rule_id: Unique alphanumeric identifier (snake_case or kebab-case).
  2. label_key: The metadata key name to attach to conversation.labels.
  3. conditions: Ordered array of conditions evaluated top-to-bottom.
    • condition: CEL boolean expression (e.g. conversation.duration > 300).
    • value: CEL expression or quoted string literal (e.g. 'vip', 'escalated').
    • Mandatory Fallback: The final condition in every rule MUST be condition: "" to act as the default fallback value.

2. Common Expression Language (CEL) Authoring Rules

Refer to the CEL Cookbook for full syntax and function references.

Built-in Helper Functions

  • Sub-Agent / Flow Detection:
    containsSubAgent(conversation, "billing_subagent")
    
  • Session Parameter Matching:
    hasSessionParam(conversation, "authenticated", "true")
    
  • Sentiment Analysis:
    hasCallerSentiment(conversation, "NEGATIVE")
    
  • Turn & Duration Checks:
    conversation.duration > 300 && conversation.turnCount >= 10
    

Read the full file on GitHub · 133 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 133 lines · 60 tokens per session scan A 358c8d470e9e

Subscribe to this mod's changes

cxas-autolabel-rules is a skill published in the GitHub repository GoogleCloudPlatform/cxas-scrapi (121 stars, last pushed yesterday), licensed Apache-2.0. It adds 60 tokens to every session and 1,014 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-30.

Related

cxas-autolabel-rules compared with skills from other repositories

cxas-autolabel-rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cxas-autolabel-rulesGoogleCloudPlatform/cxas-scrapiSkill121yesterdayApache-2.0A60Claude Code, Codex
imagegenopenai/codexSkill137kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144kyesterdayMITA95Claude Code