collect-cli-fixtures

Community

Capture real AI protocol traces for testing

Authorrecca0120
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill solves the problem of flaky or incomplete fixture data when validating and extending the Claude/Gemini stream-json protocol, by ensuring test inputs come from real CLI output rather than hand-written samples.

Core Features & Use Cases

  • CLI protocol fixture capture: Records real NDJSON lines from --output-format stream-json (including interactive/control_request flows) into versionable .jsonl fixtures.
  • Targeted sanitization & validation: Ensures every fixture line is valid JSON, normalizes sensitive fields like session IDs, and checks for leaked API-key-like tokens.
  • Fixture placement for Summoner tests: Writes real vs synthetic fixtures into apps/summoner/src/__fixtures__/claude/real/ and .../synthetic/ to support fixture-driven TDD.

Quick Start

Run scripts/capture-fixture.sh with the desired fixture name (and optional prompt) to generate a new real CLI .jsonl trace for your protocol scenario.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: collect-cli-fixtures
Download link: https://github.com/recca0120/code-quest/archive/main.zip#collect-cli-fixtures

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.