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

Response Compliance

  • 11 installs
  • 81.3k repo stars
  • Updated August 5, 2026
  • lobehub/lobe-chat

Helps with ai & agent building tasks.

About

response-compliance is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

  • response-compliance
  • AI & Agent Building
  • AI-coding skill

Response Compliance by the numbers

  • 11 all-time installs (skills.sh)
  • +1 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #11,769 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/lobehub/lobe-chat --skill response-compliance

Add your badge

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

Listed on Skillselion
Installs11
repo stars81.3k
Last updatedAugust 5, 2026
Repositorylobehub/lobe-chat

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗

OpenResponses Compliance Test

Run the official OpenResponses compliance test suite against the local (or remote) Response API endpoint.

Quick Start

# From the openapi package directory
cd lobehub/packages/openapi

# Run all tests (dev mode, localhost:3010)
APP_URL=http://localhost:3010 bun run test:response-compliance -- \
  --auth-header "lobe-auth-dev-backend-api" --no-bearer --api-key 1

# Run specific tests only
APP_URL=http://localhost:3010 bun run test:response-compliance -- \
  --auth-header "lobe-auth-dev-backend-api" --no-bearer --api-key 1 \
  --filter basic-response,streaming-response

# Verbose mode (shows request/response details)
APP_URL=http://localhost:3010 bun run test:response-compliance -- \
  --auth-header "lobe-auth-dev-backend-api" --no-bearer --api-key 1 -v

# JSON output (for CI)
APP_URL=http://localhost:3010 bun run test:response-compliance -- \
  --auth-header "lobe-auth-dev-backend-api" --no-bearer --api-key 1 --json

Prerequisites

  • Dev server running with ENABLE_MOCK_DEV_USER=true in .env
  • The api/v1/responses route registered (via src/app/(backend)/api/v1/[[...route]]/route.ts)

Auth Modes

ModeFlags
Dev (mock user)--auth-header "lobe-auth-dev-backend-api" --no-bearer --api-key 1
API Key--api-key lb-xxxxxxxxxxxxxxxx
Custom--auth-header <name> --api-key <value>

Test IDs

Available --filter values:

IDDescriptionRelated Issue
basic-responseSimple text generation (non-streaming)LOBE-5858
streaming-responseSSE streaming lifecycle + eventsLOBE-5859
system-promptSystem role message handlingLOBE-5858
tool-callingFunction tool definition + call outputLOBE-5860
image-inputMultimodal image URL content
multi-turnConversation history via input itemsLOBE-5861

Environment Variables

VariableDefaultDescription
APP_URLhttp://localhost:3010Server base URL (auto-appends /api/v1)
API_KEYAPI key (alternative to --api-key flag)

How It Works

The script (lobehub/packages/openapi/scripts/compliance-test.sh) clones the official openresponses/openresponses repo into scripts/openresponses-compliance/ (gitignored) and runs its CLI test runner. First run clones; subsequent runs update from upstream.

Debugging Failures

1. Run with -v to see full request/response payloads 2. Common failure patterns:

  • "Failed to parse JSON": Auth failed, server returned HTML redirect
  • "Response has no output items": LLM execution not yet implemented
  • "Expected number, received null": Missing required field in response schema
  • "Invalid input": Zod validation on response schema — check field format

Key Files

  • Types: lobehub/packages/openapi/src/types/responses.type.ts
  • Service: lobehub/packages/openapi/src/services/responses.service.ts
  • Controller: lobehub/packages/openapi/src/controllers/responses.controller.ts
  • Route: lobehub/packages/openapi/src/routes/responses.route.ts
  • Test script: lobehub/packages/openapi/scripts/compliance-test.sh
  • Cloud route: src/app/(backend)/api/v1/[[...route]]/route.ts

Related skills

This week in AI coding

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

unsubscribe anytime.