cx-knowledge-base-ingestion

cx-knowledge-base-ingestion is a skill for Gemini CLI from GoogleCloudPlatform/professional-services. It costs 48 tokens per session (1,883 once invoked), scanned A, original, Apache-2.0.

A guide for preparing Markdown documents for a searchable knowledge base. It formats the files, creates JSONL import records, and sends them to Google Cloud Discovery Engine, a service that searches documents for an AI agent.

In plain words
What is it for?
Use it to prepare Markdown files, convert them for indexing, build manifests, upload them to cloud storage, and start imports.
Why use it?
It reduces ingestion failures caused by missing metadata, invalid document formats, or incorrect import links.

Skill for Gemini CLI

Written for Gemini CLI: installed under .gemini/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uv run scripts/deploy_agent.sh --ingest-kb.

Good fit Use it to prepare Markdown files, convert them for indexing, build manifests, upload them to cloud storage, and start imports.

Compare 6 skills from other repositories ↓
About the project

Google Cloud Professional Services is a repository of example solutions and tools for building systems with Google Cloud products. Teams can use them as references or adapt them for workloads involving services such as GKE, BigQuery, Dataflow, and machine learning APIs. The catalogue entries are skills related to this repository.

GoogleCloudPlatform/professional-services · 3,086 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/professional-services
agentmods
npx agentmods add skills/googlecloudplatform/professional-services/cx-knowledge-base-ingestion

Made for: Gemini CLI.

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 cx-knowledge-base-ingestion

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlecloudplatform/professional-services/cx-knowledge-base-ingestion/github.svg)](https://agentmods.dev/skills/googlecloudplatform/professional-services/cx-knowledge-base-ingestion)
Your own site
<a href="https://agentmods.dev/skills/googlecloudplatform/professional-services/cx-knowledge-base-ingestion"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/professional-services/cx-knowledge-base-ingestion/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 cx-knowledge-base-ingestion

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlecloudplatform/professional-services/cx-knowledge-base-ingestion"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/professional-services/cx-knowledge-base-ingestion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,883 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.00048 $0.01883
Opus 5.5 $0.00019 $0.00753
Sonnet 5.5 $0.00010 $0.00377
Haiku 4.5 $0.00005 $0.00188

Measured 2d ago against content hash ace02982abfe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cx-knowledge-base-ingestion 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 2d 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.

examples/asop-studio/.gemini/skills/cx-knowledge-base-ingestion/SKILL.md · 168 lines

How it starts

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

CX Agent Studio Knowledge Base Ingestion: Comprehensive Guide and Best Practices

Overview

CX Agent Studio integrates with Vertex AI Search (VAIS) / Discovery Engine to provide Retrieval-Augmented Generation (RAG) capabilities. Raw domain knowledge is authored locally as Markdown documents (.md) under the data/data_store/ folder, processed into compliant HTML content, and cataloged inside a JSONL manifest before being ingested into the Discovery Engine Data Store.

This skill details the file preparation rules, manifest schemas, and ingestion execution workflows.

Key capabilities covered:

  • Document Formatting Guidelines: Structuring frontmatter metadata fields.
  • Markdown-to-HTML Processing: Understanding manifest conversion.
  • Discovery Engine JSONL Catalog Schema: Formulating the compilation entries.
  • GCS Upload & API Ingestion Commands: Executing local imports dynamically.

Critical Rules (Always Apply)

[!IMPORTANT] Discovery Engine ingestion will reject files that fail schema metadata matching or are processed with invalid manifest links.

  • YAML Frontmatter is Mandatory: Every Markdown file in data/data_store/ must begin with a standard YAML frontmatter block enclosing a title and a nested metadata dictionary.
  • Brand Codes Match Constraints: The brand_code defined in the frontmatter metadata block must match the global brand variables (e.g. cymbal) used by the routing agents to ensure documents filter correctly during search tool executions.
  • Single JSONL Manifest Entry per Document: The documents.jsonl manifest must represent each HTML document as an individual JSON line containing the id, structData (extracted metadata), and content (GCS URI location).
  • Ensure GCS URI Alignment: The URI references inside documents.jsonl must point to the final destination bucket folder location in Google Cloud Storage (e.g. gs://YOUR-BUCKET/data_store/ingestion/doc.html).

Ingestion Flow Pipeline

Read the full file on GitHub · 168 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. 2d ago First seen · 168 lines · 48 tokens per session scan A ace02982abfe

Subscribe to this mod's changes

cx-knowledge-base-ingestion is a skill published in the GitHub repository GoogleCloudPlatform/professional-services (3,086 stars, last pushed 2d ago), licensed Apache-2.0. It adds 48 tokens to every session and 1,883 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-11-05.

Related

cx-knowledge-base-ingestion compared with skills from other repositories

cx-knowledge-base-ingestion next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cx-knowledge-base-ingestionGoogleCloudPlatform/professional-servicesSkill3.1k2d agoApache-2.0A48Gemini CLI
markitdownK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA62Claude Code, Codex
agents-llamaindexdavila7/claude-code-templatesSkill33kyesterdayMITA72Claude Code, Codex
xberg-picking-a-formatxberg-io/xbergSkill9.5kyesterdayMITA51Claude Code
kb-retrieverConardLi/garden-skillsSkill14k12d agoMITA105Claude Code, Codex
azure-aimicrosoft/skillsSkill3.2kyesterdayMITA66Claude Code
azure-ai-contentunderstanding-pybenjaminasterA/antigravity-awesome-skillsSkill461yesterdayMITA0Claude Code, Codex