cx-instruction-taskflow-design

cx-instruction-taskflow-design is a skill for Gemini CLI from GoogleCloudPlatform/professional-services. It costs 51 tokens per session (1,878 once invoked), scanned A, original, Apache-2.0.

A rulebook for writing structured instructions and task flows for conversational agents in CX Agent Studio. It covers XML layouts, step-by-step actions, event triggers, and handoffs between agents.

In plain words
What is it for?
Use it to create instruction.txt files, design multi-step conversations, route work to child agents, and handle session closure.
Why use it?
It replaces loose prompt writing with a defined structure, making agent behavior and transfers easier to organize consistently.

Skill for Gemini CLI

Written for Gemini CLI: installed under .gemini/. Also seen: mentions subagents.

Good fit Use it to create instruction.txt files, design multi-step conversations, route work to child agents, and handle session closure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/googlecloudplatform/professional-services/cx-instruction-taskflow-design
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,090 stars · on GitHub

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/professional-services --skill cx-instruction-taskflow-design
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/professional-services

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-instruction-taskflow-design

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlecloudplatform/professional-services/cx-instruction-taskflow-design"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/professional-services/cx-instruction-taskflow-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,878 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.00051 $0.01878
Opus 5.5 $0.00020 $0.00751
Sonnet 5.5 $0.00010 $0.00376
Haiku 4.5 $0.00005 $0.00188

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

Security

Grade A, and why

cx-instruction-taskflow-design 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 25d 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-instruction-taskflow-design/SKILL.md · 158 lines

How it starts

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

CX Agent Studio Instruction & Taskflow Design: Comprehensive Guide and Best Practices

Overview

Agent instructions in CX Agent Studio use a specific structured prompt layout to achieve predictable, high-quality, and highly deterministic conversational behavior. Rather than loose prose, instructions are segmented into XML blocks that guide the LLM's role, constraints, subtasks, event triggers, and specific tool actions.

This guide establishes the definitive design system for writing instruction.txt files and engineering sub-agent coordination patterns.

Key capabilities covered:

  • Instruction XML Anatomy: Designing <role>, <constraints>, and <taskflow> tags.
  • Deterministic Flows: Setting up <subtask>, <step>, <trigger>, and <action> patterns.
  • The Single Conversation Illusion: Guidelines on silent handoffs and sub-agent handovers.
  • The Closure Specialist Pattern: Consolidating end-of-session summarization, backend storage, and termination.

Critical Rules (Always Apply)

[!IMPORTANT] These instructions strictly override base generative prompting behavior. Always adhere to these XML structural constraints.

  • Strict XML Hierarchy: Always structure instruction.txt using the parent tags: <role>, <constraints>, and <taskflow> at the root.
  • Actionable Tool Invocations: When referring to tools inside instruction actions, use the exact syntax: {@TOOL: tool_name}. Never use pseudo-code or hypothetical tool calls.
  • Strict Agent Handovers: When an agent needs to transfer context to a child/sub-agent, use the tag: <agent_handoff>{@AGENT: child_agent_name}</agent_handoff>.
  • Never Expose Sub-Agents: Maintain the "Single Consistent Persona" illusion. The user must never hear technical jargon like "transferring you," "sub-agent," or the internal names of agents (e.g., "Closure Specialist").
  • No Pseudo-Code in Prompts: Avoid generic placeholders (e.g., // handle auth here). Use verbatim natural instructions detailing exactly what the LLM must query or output.

Read the full file on GitHub · 158 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. 25d ago First seen · 158 lines · 51 tokens per session scan A ceabe444aa48

Subscribe to this mod's changes

cx-instruction-taskflow-design is a skill published in the GitHub repository GoogleCloudPlatform/professional-services (3,090 stars, last pushed 6d ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,878 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-instruction-taskflow-design compared with skills from other repositories

cx-instruction-taskflow-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cx-instruction-taskflow-designGoogleCloudPlatform/professional-servicesSkill3.1k6d agoApache-2.0A51Gemini CLI
securing-kubernetes-on-cloudxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A80Claude Code, Codex
implementing-gcp-binary-authorizationxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A39Claude Code, Codex
vertex-deployGoogleCloudPlatform/vertex-ai-samplesSkill8026d agoApache-2.0A0Claude Code, Codex
vertex-inferenceGoogleCloudPlatform/vertex-ai-samplesSkill8026d agoApache-2.0A0Claude Code, Codex
genai-sdkGoogleCloudPlatform/vertex-ai-samplesSkill8026d agoApache-2.0A73Claude Code, Codex
quality-flywheelGoogleCloudPlatform/vertex-ai-samplesSkill8026d agoApache-2.0A128Claude Code, Codex