Files
sglang/.claude/rules/modify-component-must-read.md

1.2 KiB

Must-Read Skills Before Modifying Components

Before modifying the following components, read the listed skill first.

  • Speculative decoding code (anything under python/sglang/srt/speculative/, related attention backends, scheduler accumulators, IPC fields, observability metrics, or CLI flags) → speculative-naming
  • Scheduler / TokenizerManager / ModelRunner __init__ (python/sglang/srt/managers/scheduler.py, python/sglang/srt/managers/tokenizer_manager.py, python/sglang/srt/model_executor/model_runner.py) → large-class-style
  • Any edit to a frozen core file (currently python/sglang/srt/model_executor/model_runner.py) → large-class-style
  • Environment variables (adding, renaming, or reviewing any SGLANG_* env var, migrating a legacy SGL_* alias, or touching python/sglang/srt/environ.py) → env-var-conventions
  • Scripted runtime (anything related to the scripted runtime) → scripted-runtime-notes