بنقرة واحدة
add-signal
End-to-end workflow for adding a new predictive signal to the market maker
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
End-to-end workflow for adding a new predictive signal to the market maker
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
State persistence, prior transfer, and warmup lifecycle. Read when working on checkpoint/, adding new checkpoint fields, debugging cold starts or stale priors, or understanding serde(default) requirements and backward compatibility rules.
Documents auto_derive.rs first-principles parameter derivation from capital and exchange metadata. Use when onboarding new assets, debugging parameter mismatches, understanding why gamma/max_position/target_liquidity have their values, or adding new derived parameters.
WebSocket management, event loop, rate limiting, reconnection, recovery, metrics, and order execution infrastructure. Use when working on orchestrator/, infra/, messages/, core/, fills/, or execution/ modules, debugging connectivity or order placement, adding message handlers, or investigating stale data and latency issues.
Documents the 9 learning feedback loops, SpreadBandit Thompson Sampling, adaptive ensemble, confidence tracking, and baseline tracker. Use when debugging learning behavior, tuning reward attribution, investigating model weight decay, or understanding how fills translate into parameter updates.
Layered risk system with monitors, circuit breakers, kill switch, and position guards. Use when working on risk/, safety/, or monitoring/ modules, debugging position limits, emergency shutdowns, spread widening, or adding new risk monitors. Covers RiskMonitor trait, severity escalation, and defense-first architecture.
Documents the additive spread composition pipeline from GLFT optimal through to final bid/ask prices. Use when debugging wide spreads, investigating spread component contributions, tuning defensive behavior, or understanding why quotes are wider than expected. Critical for incident triage.
| name | add-signal |
| description | End-to-end workflow for adding a new predictive signal to the market maker |
| disable-model-invocation | true |
| context | fork |
| agent | general-purpose |
| argument-hint | [signal-name] [prediction-target] |
| allowed-tools | Read, Grep, Glob, Edit, Write, Bash |
Step-by-step process for adding a new predictive signal. Follow measurement-before-modeling: define what you're predicting, log it, measure baseline, then build.
Before writing code, answer:
Create a new file in src/market_maker/estimator/:
// src/market_maker/estimator/my_signal.rs
pub struct MySignalEstimator {
// State for online estimation
// Use EWMA, rolling windows, or Bayesian updates
}
impl MySignalEstimator {
pub fn new(config: MySignalConfig) -> Self { ... }
/// Update with new market data. Called on every relevant event.
pub fn update(&mut self, data: &MarketData) { ... }
/// Get current signal value, normalized to a useful range.
/// Document units in the return type or name.
pub fn signal_value(&self) -> f64 { ... }
/// Confidence in the signal (0.0 = no data, 1.0 = fully warmed up)
pub fn confidence(&self) -> f64 { ... }
}
_bps suffix for basis point values_s suffix for seconds#[serde(default)] to any checkpoint fields for backward compatwarmup_observations: usize counterAdd the module to src/market_maker/estimator/mod.rs:
pub mod my_signal;
pub use my_signal::MySignalEstimator;
src/market_maker/strategy/signal_integration.rs is the central hub. Add your signal:
update() in the appropriate update methodcompute_signals() or equivalentIMPORTANT: Only the strategy teammate edits signal_integration.rs in team mode. Others propose changes via messages.
In src/market_maker/calibration/model_gating.rs:
should_use_model() returns trueEnsure your signal's predictions are logged for calibration:
PredictionRecord in checkpoint/prediction systemIn src/market_maker/calibration/:
# Must pass
cargo clippy -- -D warnings
cargo test --lib
# Check signal compiles and integrates
cargo build
estimator/mod.rssignal_integration.rs#[serde(default)]