deliberation-tester

Generates a three-sentence embedding-optimized query from Skill Unit content.

1|1|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/blueman82/ai-counsel --skill deliberation-tester
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deliberation-tester
Source: https://github.com/blueman82/ai-counsel/tree/main/.claude/skills/deliberation-tester
Command: npx skills add https://github.com/blueman82/ai-counsel --skill deliberation-tester

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, pytest-asyncio, vcrpy.

What problem does it solve?

Ensuring the reliability and correctness of complex AI deliberation features, adapters, and convergence logic requires a systematic testing approach. This skill teaches Test-Driven Development (TDD) patterns to build robust AI features with confidence, reducing bugs and improving code quality.

Core Features & Use Cases

  • TDD Workflow: Master the red-green-refactor cycle for developing new AI features.
  • Mocking Strategies: Effectively mock adapters and subprocesses for fast, isolated unit tests.
  • HTTP Test Recording: Use VCR cassettes to record and replay HTTP responses, ensuring consistent and efficient integration tests for HTTP adapters.
  • Use Case: When adding a new YourCLIAdapter, first write a unit test that expects parse_output to correctly extract the model's response from raw CLI output. Then, implement the adapter to make the test pass, ensuring robust parsing logic.

Quick Start

To begin, write a failing unit test in tests/unit/test_new_feature.py for your new deliberation feature. Then, run pytest tests/unit/test_new_feature.py -v to verify it fails as expected.

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 for AI adapter parsing logic before implementing it?

Test-driven development for adapters starts by writing a failing unit test that expects your adapter's `parse_output` method to correctly extract the model response from raw CLI output. Run `pytest tests/unit/test_new_feature.py -v` to verify the test fails, then implement the adapter to make it pass, ensuring robust parsing logic from the start.

What's the best way to mock HTTP responses in pytest for integration tests?

Use VCR cassettes with vcrpy to record and replay HTTP responses. This approach ensures consistent, efficient integration tests for HTTP adapters by capturing real responses once and replaying them in subsequent test runs, eliminating flaky network dependencies.

How do I test async AI deliberation features with pytest?

Use pytest-asyncio to write and run async unit tests for your deliberation logic. This dependency enables the red-green-refactor cycle for async AI features, allowing you to test concurrent adapters and convergence logic reliably without blocking.

Can I use TDD patterns to build CLI adapters that parse model output?

Yes. TDD ensures your CLI adapter correctly extracts and parses model responses. Write a unit test first that validates `parse_output` behavior on sample CLI output, then implement the adapter to pass that test, reducing parsing bugs and improving reliability.

What testing approach ensures my AI adapter convergence logic is correct?

Apply TDD with mocked adapters and subprocesses for fast, isolated unit tests of convergence logic. Mock external dependencies to test how your deliberation feature handles adapter outputs, then use VCR cassettes for integration tests that verify end-to-end behavior without live HTTP calls.

Why use mocking strategies instead of real subprocess calls in adapter tests?

Mocking adapters and subprocesses isolates your tests from external dependencies, making them fast and deterministic. This allows you to test edge cases and failure scenarios reliably, while VCR cassettes handle HTTP responses for integration tests without introducing network brittleness.