st-develop for Openclaw

A technical skill dedicated to developing, debugging, and porting the State Threads (ST) C coroutine library within the SRS ecosystem.

winlinvip
v1.0.0
Mar 5, 2026
0
116
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install st-develop

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install st-develop using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is st-develop?

The st-develop skill is a specialized toolset designed for engineers working on the State Threads (ST) library, which serves as the core concurrency model for the SRS (Simple Realtime Server). This skill facilitates deep-level manipulation of C coroutines, enabling agents to handle everything from high-level scheduler analysis to low-level assembly context switching. By leveraging Openclaw Skills, developers can ensure that the complex ST codebase is managed with precision, maintaining the high performance and stability required for real-time media streaming.

This skill is essential for tasks that involve modifying the ST source, adding support for new CPU architectures, or debugging intricate memory and synchronization issues. It enforces a strict workflow that includes loading a comprehensive knowledge base and running mandatory verification scripts to prevent regressions in the core SRS threading model.

st-develop Use Cases

  • Porting State Threads to new CPU architectures or operating systems using platform-specific assembly.
  • Debugging coroutine context switching and internal scheduler behaviors (sched, stk, sync).
  • Resolving complex memory issues detected by ASAN, Valgrind, or SEH.
  • Updating the srs-coroutines.md knowledge base to reflect changes in the concurrency model.
  • Developing and executing unit tests for TCP connections and coroutine lifecycle management.

How st-develop Works

  1. Dynamically resolves the SRS_ROOT directory by checking environment variables, workspace paths, or user input.
  2. Loads the mandatory srs-coroutines.md knowledge base to provide the AI agent with technical context.
  3. Retrieves the complete ST source tree, including core C files, headers, and platform assembly, to ensure no partial analysis occurs.
  4. Facilitates code modifications or debugging sessions within the 3rdparty/st-srs directory.
  5. Executes platform-specific build targets (e.g., linux-debug-utest) to compile the library and link unit tests.
  6. Runs the dedicated verification script to validate all changes against the existing SRS infrastructure via Openclaw Skills.

st-develop Setup

To use this skill, ensure your environment has access to the SRS repository. The skill dynamically resolves the project root, but you can explicitly set it for consistency.

# Optional: Define the SRS root path
export SRS_ROOT=~/git/srs

# Ensure the verification script is executable
chmod +x scripts/verify.sh

The skill requires the Google Test-based unit test suite located in trunk/3rdparty/st-srs/utest/ to be present for verification.

st-develop Data Schema & Taxonomy

The skill organizes its operations around the SRS source tree. Below is the metadata taxonomy and file organization:

Component Location Description
Knowledge Base memory/srs-coroutines.md Required technical documentation for ST internals.
Core Source trunk/3rdparty/st-srs/*.c Implementation of sched, sync, io, and event logic.
Platform ASM trunk/3rdparty/st-srs/md_*.S Assembly for Darwin, Linux, and Cygwin context switching.
Unit Tests trunk/3rdparty/st-srs/utest/ GTest files for coroutine and network validation.
Build System trunk/3rdparty/st-srs/Makefile Defines targets for debug, utest, and gcov builds.

st-develop Advanced Features

  • Multi-platform support for Darwin, Linux, and Cygwin64 build environments.
  • Automated GCOV integration for measuring code coverage during coroutine testing.
  • Dynamic path resolution to handle varying developer workspace configurations without hardcoding.
  • Full-stack source loading requirement to prevent errors during complex refactoring.
  • Integrated verification workflow through Openclaw Skills to maintain library integrity.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*