write-sglang-test

Automate SGLang CI/UT test setup with standardized templates and fixtures.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/togethercomputer/xorl-sglang --skill write-sglang-test-togethercomputer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-sglang-test
Source: https://github.com/togethercomputer/xorl-sglang/tree/main/.claude/skills/write-sglang-test
Command: npx skills add https://github.com/togethercomputer/xorl-sglang --skill write-sglang-test-togethercomputer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams standardize and automate the creation and maintenance of SGLang CI/UT tests, ensuring consistent testing practices across projects.

Core Features & Use Cases

  • Establishes a consistent test structure in test/registered/ with module-level registrations
  • Provides server fixture reuse and guidance for robust end-to-end validation
  • Documents best practices for writing, organizing, and running CI/UT tests in SGLang projects

Quick Start

Create a new SKILL.md with the required frontmatter and place tests under test/registered following the documented conventions.

Frequently Asked Questions about write-sglang-test

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

FAQPage Schema
How do I structure CI tests for SGLang projects?

SGLang CI tests are structured under the test/registered directory using module-level registration calls and standardized templates to ensure consistent end-to-end validation across suites.

How do I reuse server fixtures across SGLang test suites?

Server fixtures are reused across SGLang test suites by following established setup and teardown patterns, enabling reliable end-to-end validation without duplicating server initialization code.

What is a CustomTestCase in SGLang testing?

CustomTestCase is a required base class for SGLang CI/UT tests that enforces proper setup and teardown patterns, ensuring functional requirements and reliable test execution are met.

Do I need to register SGLang tests at the module level?

Yes, module-level registration calls are enforced for SGLang CI tests to maintain a consistent test structure and enable automated discovery within the test/registered directory.

What's the best way to automate SGLang CI/UT test creation?

Automating SGLang CI/UT test creation is best done by using standardized templates and fixtures that enforce CustomTestCase inheritance, module-level registration, and proper setup/teardown patterns.

Can I use my own test organization patterns for SGLang CI?

SGLang CI testing enforces a specific structure requiring tests under test/registered with module-level registrations and CustomTestCase inheritance to maintain consistent validation practices.