Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
antinomyhq avatar

Test Reasoning

  • 4 installs
  • 7.5k repo stars
  • Updated August 5, 2026
  • antinomyhq/forge

test-reasoning is a Claude Code skill that validates ReasoningConfig fields are serialized into the correct provider-specific JSON sent to OpenRouter, Anthropic, GitHub Copilot, and Codex.

About

This skill validates that reasoning parameters are serialized correctly and sent to provider APIs. A developer working on the forge CLI runs it to verify that ReasoningConfig fields map to the right provider-specific JSON for OpenRouter, Anthropic, GitHub Copilot, and Codex. The bundled script builds forge, captures each outgoing HTTP request body, and asserts the expected JSON fields per provider and model.

  • Validates ReasoningConfig serialization into provider-specific JSON for OpenRouter, Anthropic, GitHub Copilot, and Codex
  • Runs a bundled script that builds forge, captures the outgoing HTTP body, and asserts the expected fields
  • Documents a per-provider/model test matrix and skips unconfigured providers automatically

Test Reasoning by the numbers

  • 4 all-time installs (skills.sh)
  • Ranked #1,631 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

test-reasoning capabilities & compatibility

Capabilities
testing · serialization testing
Works with
openai · anthropic · github
Use cases
testing
From the docs

What test-reasoning says it does

Validates that `ReasoningConfig` fields are correctly serialized into provider-specific JSON for OpenRouter, Anthropic, GitHub Copilot, and Codex.
SKILL.md
Tests for unconfigured providers are skipped automatically.
SKILL.md
npx skills add https://github.com/antinomyhq/forge --skill test-reasoning

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs4
repo stars7.5k
Last updatedAugust 5, 2026
Repositoryantinomyhq/forge

What it does

Verify that reasoning-config fields serialize to the correct provider-specific JSON across OpenRouter, Anthropic, Copilot, and Codex.

Who is it for?

Regression-testing reasoning-parameter serialization across LLM providers

When should I use this skill?

Asked to test reasoning serialization, run reasoning tests, or verify reasoning config fields

What you get

Each provider/model combination is confirmed to receive the correct reasoning JSON fields, with invalid effort rejected at parse time.

  • Pass/fail assertions of reasoning JSON fields per provider/model

By the numbers

  • test matrix covers 4 providers (OpenRouter, Anthropic, GitHub Copilot, Codex)

Files

SKILL.mdMarkdownGitHub ↗

Test Reasoning Serialization

Validates that ReasoningConfig fields are correctly serialized into provider-specific JSON for OpenRouter, Anthropic, GitHub Copilot, and Codex.

Quick Start

Run all tests with the bundled script:

./scripts/test-reasoning.sh

The script builds forge in debug mode, runs each provider/model combination, captures the outgoing HTTP request body via FORGE_DEBUG_REQUESTS, and asserts the correct JSON fields.

Running a Single Test Manually

FORGE_DEBUG_REQUESTS="forge.request.json" \
FORGE_SESSION__PROVIDER_ID=<provider_id> \
FORGE_SESSION__MODEL_ID=<model_id> \
FORGE_REASONING__EFFORT=<effort> \
target/debug/forge -p "Hello!"

Then inspect .forge/forge.request.json for the expected fields.

Test Coverage

ProviderModelConfig fieldsExpected JSON field
open_routeropenai/o4-mini`effort: none\minimal\
open_routeropenai/o4-minimax_tokens: 4000reasoning.max_tokens
open_routeropenai/o4-minieffort: high + exclude: truereasoning.effort + .exclude
open_routeropenai/o4-minienabled: truereasoning.enabled
open_routeranthropic/claude-opus-4-5max_tokens: 4000reasoning.max_tokens
open_routermoonshotai/kimi-k2max_tokens: 4000reasoning.max_tokens
open_routermoonshotai/kimi-k2effort: highreasoning.effort
open_routerminimax/minimax-m2max_tokens: 4000reasoning.max_tokens
open_routerminimax/minimax-m2effort: highreasoning.effort
anthropicclaude-opus-4-6`effort: low\medium\
anthropicclaude-3-7-sonnet-20250219enabled: true + max_tokens: 8000thinking.type + budget_tokens
github_copiloto4-mini`effort: none\minimal\
codexgpt-5.1-codex`effort: none\minimal\
codexgpt-5.1-codexeffort: medium + exclude: truereasoning.summary = "concise"
all providersone model eacheffort: invalidnon-zero exit, no request written

Tests for unconfigured providers are skipped automatically. Invalid-effort tests run regardless of credentials — the rejection happens at config parse time before any provider interaction.

References

Related skills

FAQ

Which providers does it cover?

OpenRouter, Anthropic, GitHub Copilot, and Codex, each with specific model and expected-JSON-field combinations.

How does it capture the request?

It sets FORGE_DEBUG_REQUESTS to capture the outgoing HTTP request body into .forge/forge.request.json and asserts the expected fields.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.