Cxas Loss Analysis

Retrieves non-contained CCAI Insights conversations (losses), uses agent intelligence to cluster them into common failure patterns, and generates a markdown report. Use when you need to analyze failure patterns and build targeted regression/evaluation reports.

117 stars 117 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add GoogleCloudPlatform/cxas-scrapi --skill cxas-loss-analysis
Manual install
git clone --depth 1 https://github.com/GoogleCloudPlatform/cxas-scrapi.git /tmp/cxas-scrapi
mkdir -p ~/.claude/skills
cp -r /tmp/cxas-scrapi/.agents/skills/cxas-loss-analysis ~/.claude/skills/cxas-loss-analysis

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Insights Loss Analysis & Report Generator

This skill instructs you (the AI Agent) to retrieve recent conversations from CCAI Insights, isolate escalated/non-contained sessions (losses), analyze their root causes to group them into failure patterns, and write a professional Markdown report.

---

## Execution Routine

Follow these steps in exact sequence:

### Step 1: Parameter Verification
Verify that the user has provided the following required parameters:
- `project_id`: GCP Project ID hosting Insights.
- `location`: Insights location (e.g., `us`).
- `app_id`: Target CXAS App ID (e.g., `db9ee866-28db-458b-b835-78137c974779`).
- `output_dir`: Directory where the final report and test cases will be saved.

And the following optional parameters if they wish to scope the analysis:
- `start_time`: RFC 3339 timestamp for start of time period (e.g., `2026-05-20T00:00:00Z`).
- `end_time`: RFC 3339 timestamp for end of time period (e.g., `2026-05-26T23:59:59Z`).
- `filter`: Custom API filter string to apply (overrides the default loss filter `-labels.sessionContained="true"`).
- `limit`: Maximum conversations to retrieve and process (default: 500).

### Step 2: Extract Loss Transcripts
Run the lightweight data-extraction script to dump the loss transcripts into chunked JSON files in your workspace.

**Command Template**:
Read the full skill on GitHub

Details

Skill name
cxas-loss-analysis
Path
.agents/skills/cxas-loss-analysis/SKILL.md
License
Apache-2.0
Repo updated
17 November 2026

FAQ

What does the Cxas Loss Analysis skill do?

Retrieves non-contained CCAI Insights conversations (losses), uses agent intelligence to cluster them into common failure patterns, and generates a markdown report. Use when you need to analyze failure patterns and build targeted regression/evaluation reports.

How do I install the Cxas Loss Analysis skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add GoogleCloudPlatform/cxas-scrapi --skill cxas-loss-analysis. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Cxas Loss Analysis popular?

It lives in GoogleCloudPlatform/cxas-scrapi, which has 117 GitHub stars and 117 forks.

Related skills

Adk Framework Ingestor

117

GoogleCloudPlatform/cxas-scrapi

Parsing and ingestion directives for the Python-based Agent Development Kit (ADK) conversational agent framework.

Software Development117

Cxas Agent Foundry

117

GoogleCloudPlatform/cxas-scrapi

End-to-end GECX/CXAS/CES conversational agent lifecycle -- build agents from requirements (PRD-to-agent), create and run evals (goldens, simulations, tool tests, callback tests), debug failures, and iterate to production quality. Use this skill whenever the user mentions GECX, CXAS, CES, SCRAPI, conversational agents, voice agents, audio agents, agent evals, pushing/pulling/linting agents, or agent instructions/callbacks/tools on the Google Customer Engagement Suite platform.

AI, LLMs & Agents117

Cxas Autolabel Rules

117

GoogleCloudPlatform/cxas-scrapi

Author, validate, and manage Contact Center AI (CCAI) Insights Autolabeling Rules. Use when users want to translate business labeling logic into CEL condition expressions, maintain declarative autolabel_rules.yaml configurations, or synchronize rules to GCP projects.

DevOps & Cloud117

Cxas Protocol Robust Extraction

117

GoogleCloudPlatform/cxas-scrapi

A robust methodology for LLM-based requirements gathering and high-fidelity artifact generation. Employs 'Divide, Conquer, and Verify' tactics using specialized subagents, iterative exhaustion loops, and batched execution to ensure zero data loss.

AI, LLMs & Agents117

Cxas Dfcx Migration

117

GoogleCloudPlatform/cxas-scrapi

Migrate Dialogflow CX (DFCX) agents to CXAS (Customer Experience Agent Studio) agents. Use this skill when the user mentions DFCX migration, migrating agents, converting DFCX to CXAS, porting agents, agent migration, or post-migration optimization/consolidation. Four independently runnable scripts: migrate.py (1:1), stage_1.py (variable dedup + consolidation), stage_2.py (instruction state machines + tool mocks + lint + report), stage_3.py (rewires consolidated topology from source dep graph; only needed when stage_1 ran consolidation). State persists between scripts via <target>_ir.json so ea

AI, LLMs & Agents117

Cxas Self Steering Agent

117

GoogleCloudPlatform/cxas-scrapi

Builds and refactors self-steering CXAS (CES, GECX) conversational agents for chat or voice, where the model runs the whole conversation like a contact center agent: one root agent, Jinja progressive disclosure (playbooks and tasks loaded through open_playbook and load_task, dynamic tool hiding) and deterministic actions (greeting, verbatim text, goodbye and live agent handoff through set_next_agent_actions). Ships a working sample agent to start from. Use when creating a new CXAS agent, adding playbooks, tasks or tools to an agent built this way, replacing a steering agent with sub-agents or

AI, LLMs & Agents117

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.