Skip to content

btnrv/swiftlys2-skills

v0.1.0GPL-3.0-only

Skills for building SwiftlyS2 plugins for Counter-Strike 2.

sws2-api-mcp

Look up SwiftlyS2 documentation, C# API declarations (methods, properties, events, enums, overloads, namespaces) and CS2 game data (schema fields, entity inputs and outputs, protobuf net messages, game event payloads, convars, Panorama CSS) through the SwiftlyS2 MCP. Use whenever creating, changing, reviewing or debugging a SwiftlyS2 plugin, before choosing any framework call, property, enum or game identifier, when an API name or signature is unknown or a build fails on one, and when the user asks whether SwiftlyS2 has something or mentions swiftlys2.net, apidocs, the schema viewer or the SwiftlyS2 MCP.

sws2-authoring

Create, extend, port or structure SwiftlyS2 C# plugins for Counter-Strike 2 (CS2). Covers the swplugin template, reusing existing framework methods and object properties, feature folders and partial classes, commands and permissions, events and game hooks, per-player state, network messages, convars, JSONC configuration, databases, shared plugin APIs, dependency injection, Steamworks, tests, build and publish. Use for any SwiftlyS2 or CS2 server plugin work, including porting from CounterStrikeSharp and reviewing plugin code for redundant IsValid/IsAlive/team checks, even if the user only says "make a plugin", "add a command", "clean this up" or describes a gameplay feature.

sws2-entity-management

Create, find, spawn, modify, track and remove CS2 entities in SwiftlyS2 plugins with Core.EntitySystem, including designer names, CreateEntityByDesignerName, CEntityKeyValues spawn values, DispatchSpawn, CHandle references, schema field changes, Despawn, and entity inputs and outputs. Use whenever a plugin spawns props, triggers, lights, beams, particles, weapons or other entities, iterates entities by class, keeps entity references across ticks or callbacks, fires an entity input, or cleans entities up on round or map end.

sws2-game-assets

Compile, package, precache and apply CS2 models, materials, textures, particles, sounds and UI resources used by SwiftlyS2 plugins, and inspect them with Source 2 Viewer and Source2Viewer-CLI (ValveResourceFormat). Use whenever a plugin needs an asset path, a sound event name, Core.Event.OnPrecacheResource, a custom player model, a Workshop addon or VPK, or emits a sound, or when the user mentions VPKs, vmdl, vmat, vpcf, vsndevts or other _c files, missing textures or ERROR models, decompiling or extracting CS2 files, Source 2 Viewer, S2V, VRF or Source2Viewer-CLI.

sws2-menus

Build SwiftlyS2 player menus with the component-based Core.Menu system (beta), including centre-HTML and chat menus, custom renderers, component renderers, custom components, key binds and menus.jsonc; also covers the deprecated Core.MenusAPI for existing code and migration. Use whenever a SwiftlyS2 plugin needs a menu, settings screen, shop, vote, picker, admin panel, submenu, WASD or key-driven navigation, or any interactive per-player selection, even if the user does not say "menu".

sws2-native-and-memory

Implement SwiftlyS2 native interop when no managed API covers a required CS2 operation, including gamedata signatures and offsets, Core.GameData, Core.Memory, virtual function tables, unmanaged function calls, function hooks and detours, KeyValues pointers and raw memory reads or writes. Use when the user mentions signatures, sigscans, offsets, vtables, detours, pointers, memory patching or gamedata files, when porting a native hook, or when a native call breaks after a CS2 update.

sws2-panorama-authoring

Author and troubleshoot CS2 custom HUDs with Panorama XML layouts and CSS styles, SwiftlyS2 per-player HUD state APIs and server-side button clicks through Core.Event.OnCustomHudClicked. Use whenever a SwiftlyS2 plugin needs an on-screen panel, overlay, scoreboard, timer, progress bar or clickable button beyond chat and CenterHTML, or when the user mentions Panorama, a custom HUD, vcss_c or layout files, Panorama CSS properties, or a HUD that does not show or update.

sws2-performance-profiler

Diagnose SwiftlyS2 plugin performance with the built-in sw profiler, Core.Profiler recordings, EventPipe .nettrace captures, timing scopes, and before-and-after comparison of CPU, allocation and callback cost. Use when a plugin or server is slow, lags, drops ticks, spikes in frame time, uses high CPU or memory, triggers frequent garbage collection, or when the user asks to profile, benchmark or optimize SwiftlyS2 code.

sws2-text-styling

Style and localize SwiftlyS2 player-facing text, including chat messages and prefixes with bracket color tokens such as [green], the actual CS2 chat palette, translations in resources/translations/*.jsonc with Core.Translation and Core.Localizer, CenterHTML markup, fonts and sizes, and escaping player-controlled text. Use whenever a plugin sends chat, center, alert or HTML messages, adds a prefix, colors or formats text, supports multiple languages, or when the user mentions SendChat, SendCenterHTML, translations or chat colors.

sws2-thread-management

Keep SwiftlyS2 game operations on the game thread while coordinating async/await, Task.Run, background I/O such as HTTP and database calls, Core.Scheduler NextTick and NextWorldUpdate callbacks, delays, repeating timers and their cancellation across disconnects, map changes and hot reloads. Use whenever plugin code awaits, starts a task, schedules or delays work, uses a timer, or hits a crash or exception from calling game APIs off the game thread.

sws2-traceray

Implement SwiftlyS2 collision traces and aim queries with Core.Trace, including line and hull traces, eye position and view angles for living players, dead players' observer pawns and spectator cameras, collision masks, ignored entities and hit results. Use whenever a plugin needs a raycast, line of sight, what a player is aiming or looking at, wall or ground checks, teleport-to-aim, hit position or surface normal, or distance to a surface.