deliberation-tester

Guide test-driven development for AI deliberation features with pytest and mock adapters.

1|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/OmarTheGrey/Council-Of-HAL --skill deliberation-tester-omarthegrey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deliberation-tester
Source: https://github.com/OmarTheGrey/Council-Of-HAL/tree/main/.claude/skills/deliberation-tester
Command: npx skills add https://github.com/OmarTheGrey/Council-Of-HAL --skill deliberation-tester-omarthegrey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developing complex AI deliberation systems requires rigorous testing to ensure reliability and correctness. This skill provides a structured Test-Driven Development (TDD) approach to build robust AI features, minimizing bugs and accelerating development cycles.

Core Features & Use Cases

  • TDD Workflow: Guides you through the red-green-refactor cycle for AI features, ensuring tests are written before code.
  • Mocking Strategies: Learn to mock adapters, subprocesses, and HTTP responses for efficient and isolated unit testing.
  • Integration Testing: Patterns for testing real adapter invocations and using VCR for consistent HTTP test replays.
  • Use Case: You're adding a new HTTP adapter for a local LLM. This skill helps you write failing tests first, then implement the adapter, ensuring it works correctly and reliably before deployment.

Quick Start

Explain the TDD workflow for developing a new AI deliberation feature, focusing on how to write a failing unit test for a new adapter.

Frequently Asked Questions about deliberation-tester

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write tests before implementing AI deliberation features?

Test-driven development for AI deliberation starts with writing a failing unit test that specifies the expected behavior of your feature—such as a new adapter or convergence detector—before writing implementation code. This red-green-refactor workflow ensures your feature meets requirements and integrates correctly with voting and transcript systems.

What's the best way to test AI adapters in isolation?

Mock adapters and HTTP responses using pytest fixtures and mock libraries to test adapter logic without invoking real external services. This approach isolates unit tests, accelerates test execution, and allows you to simulate failures and edge cases in your CLI and HTTP adapter implementations.

How do I organize pytest tests for deliberation components?

Organize tests into three layers: unit tests for individual components like adapters and decision graph nodes, integration tests for real adapter invocations and multi-component workflows, and end-to-end tests for complete deliberation cycles. This structure ensures coverage across voting, transcript, and convergence detection logic.

Can I test HTTP adapter responses consistently without external services?

Use VCR cassettes to record and replay HTTP responses during testing. This technique captures real adapter responses once, then replays them in subsequent test runs, ensuring consistent and reproducible integration tests without depending on external LLM services or network availability.

Why should I write tests for new deliberation adapters before implementation?

Writing failing tests first clarifies expected behavior, prevents implementation rework, and catches bugs early. For adapters serving voting systems or transcript handling, test-first development ensures reliability, reduces debugging cycles, and validates that new adapters integrate correctly with existing deliberation components.