task-coverage-protocol

A supervised process for processing every file in a large requirements task. It divides the files into batches, tracks progress, and checks each batch before continuing.

In plain words
What is it for?
Use it when ingesting a directory with many files and when you need verified coverage of the complete file set.
Why use it?
It prevents context limits, memory pressure, and unfinished file processing from causing gaps in the final results.

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/googlecloudplatform/cxas-scrapi/task-coverage-protocol
Any agent
npx skills add GoogleCloudPlatform/cxas-scrapi --skill task-coverage-protocol
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/cxas-scrapi

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 762 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.00026 $0.00762
Opus 5 $0.00013 $0.00381
Sonnet 5 $0.00005 $0.00152
Haiku 4.5 $0.00003 $0.00076

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

Security

Grade A, and why

task-coverage-protocol 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.

The scan reads SKILL.md. This mod also ships 16 executable files (evals/cases/add_items_1032/setup.py, evals/cases/add_items_10423/setup.py, evals/cases/add_items_173/setup.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-cuj-report-generator/protocols/task-coverage-protocol/SKILL.md · 88 lines

How it starts

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

PROTOCOL: Supervisor-Driven Task Coverage Checklist

This protocol governs how you must handle large, repetitive, or multi-step requirements ingestion tasks to prevent context drift, avoid memory exhaustion, and guarantee 100% file coverage. Workloads are partitioned into sliced batches dynamically monitored by a decoupled supervisor.

Architectural Overview

Instead of attempting to list and process hundreds of files in a single conversation turn, tasks are executed asynchronously:

  1. The Ingestor Supervisor scans the directory, partitions the files, and outputs a structured batch directive.
  2. You (or parallel subagents) consume this directive, process only the assigned slice of files, and write the output files to the designated folder.
  3. The supervisor verifies and grades the outputs before queueing the next slice.

Execution Workflow

1. Scoped Scan & Scoping Setup

When instructed to ingest a requirements directory (e.g. "Ingest and parse all files in this folder"), you MUST launch the Supervisor script to initialize the task state:

python3 protocols/task-coverage-protocol/scripts/ingestor_supervisor.py \
  --source_dir="path/to/source" \
  --target_skill="path/to/cxas-cuj-report-generator/"

2. Consume the Handoff Directive

The supervisor will scan the target folder, slice the files into batch lists of size 10, and print a structured directive to standard output: SPAWN_BATCH_DIRECTIVE: {"spec_file": "/tmp/ingestor/batch_spec.json", "output_dir": "/tmp/ingestor/outputs/"}

Upon seeing this token, you MUST:

  1. Read the spec file /tmp/ingestor/batch_spec.json to retrieve the list of files, prompts, and expected output paths.
  2. Spawn fresh, parallel subagents (one per file or partition) using their respective prompt files (e.g., /tmp/ingestor/prompts/<file_name>_prompt.txt).
  3. Instruct the subagents to write their generated YAML transcripts directly to /tmp/ingestor/outputs/<file_name>_output.txt.

Read the full file on GitHub · 88 lines

Files

What ships with it

49 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. 2d ago First seen · 88 lines · 26 tokens per session scan A c6102e42c643

Subscribe to this mod's changes

task-coverage-protocol is a skill published in the GitHub repository GoogleCloudPlatform/cxas-scrapi (94 stars, last pushed 5d ago), licensed Apache-2.0. It adds 26 tokens to every session and 762 once invoked, about $0.0001 per session on Opus 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.