raptor-strategy
RAPTOR v4.0.0 — Hot Streak Follower, senpi_runtime_helpers migration. Finds ELITE/RELIABLE quality traders currently winning weekly, identifies their strongest position, confirms SM alignment, applies whale entry-price discipline (5% threshold — skip if asset has already run in whale's favor post-entry). Plumbing-only migration from v3.4; thesis preserved verbatim including v3.4 nested-positions parser fix.
What this skill does
# RAPTOR v4.0.0 — Hot Streak Follower (helpers-native)
## v4.0.0 (2026-05-12) — plumbing-only migration
NO thesis change. v3.4 quality-first pipeline, whale entry-discipline 5% threshold, nested-positions parser, scoring weights, conviction-tier leverage all preserved verbatim. Migration: mcporter → SenpiClient, scanner-side `create_position` → producer `push_signal()`, openclaw cron → producer_daemon, Python state files for daily cap → `runtime.yaml risk.guard_rails`, MARKET exits → FEE_OPTIMIZED_LIMIT.
Find traders who are already winning big right now, confirm they're quality (ELITE or RELIABLE on TCS), figure out what bet is driving their streak, check the smart money crowd agrees, and piggyback the same trade.
## v3.0 — why the complete rewrite
**RAPTOR v2.1 traded zero times since deployment.** Root cause:
v2.1 used `leaderboard_get_momentum_events` as the primary signal source and dereferenced three fields on each event — `concentration`, `top_positions`, and `trader_tags`. **All three are `null` on blocked events.** And blocked events are ~100% of tier 2 events in normal market conditions (820/820 tier 2 events over a 44-hour window in one recent sample were all blocked — either `trader_cooldown_active` or `system_cooldown_active`).
Per the senpi guide for `leaderboard_get_momentum_events`:
> Blocked events are equally valid momentum signals. The blocking only affects notification delivery, not signal quality. Events with `top_positions: null` (blocked events without position data) will not match any asset filter.
v2.1's filter chain silently dropped every blocked event before ever reaching the SM alignment check. Raptor was mathematically incapable of producing a signal regardless of market conditions.
## v3.0 architecture
v3.0 replaces `leaderboard_get_momentum_events` with a multi-step pipeline that uses populated data sources:
```
1. leaderboard_get_top(limit=30)
→ top 30 traders by 4h delta PnL (populated data, not blocked)
2. Local filter: delta_pnl ≥ $2M (tier 1 threshold)
→ narrows to currently active hot streaks
3. discovery_get_top_traders(addresses=[...], consistency=["ELITE","RELIABLE"])
→ single batch call filters to quality traders and attaches labels
4. Per quality trader: leaderboard_get_trader_positions(address)
→ per-market delta PnL breakdown with real data
5. Pick the strongest position by |delta_pnl|, compute concentration locally
6. leaderboard_get_markets → SM alignment check on each candidate
7. Score and execute the best candidate via create_position (self-executing)
```
API cost per scan: 1 (top) + 1 (classify) + up to 10 (positions) + 1 (SM) = ~13 calls/scan. Higher than v2.1's 2 calls/scan, but v2.1 was zero trades/month and v3.0 actually produces signals.
## Scoring model
| Component | Max | Gate |
|---|---|---|
| TCS consistency | 3 | ELITE/RELIABLE required |
| Delta PnL tier | 3 | ≥$2M required |
| Concentration | 2 | ≥0.40 required |
| SM alignment strength | 2 | ≥2% SM, ≥10 traders, direction match required |
| 4h + 1h price confirmation | 2 | — |
| 15m velocity freshness | +1/-1 | — |
**Hard gates before scoring:** ELITE/RELIABLE consistency, ≥$500k position delta PnL, ≥40% concentration, SM alignment with matching direction.
**Default minScore to trade:** 6. Tunable via `config/raptor-config.json`.
## Leverage tiers
Conviction-scaled:
- Score 6-7: **7x**
- Score 8-9: **8x**
- Score 10+: **10x**
## Fleet-standard guardrails
- **Self-executing** — scanner calls `create_position` directly via mcporter, matching the Wolverine/Phoenix pattern. No external action layer required.
- **Dynamic daily cap** (fleet PR #176) — P&L-aware entry cap: 12 trades/day if +5% PnL, down to 0 trades (HARD STOP) at -25% drawdown.
- **Auto-cancel stale resting orders** (fleet PR #177) — `has_resting_orders()` cancels any non-reduceOnly maker order older than 10 minutes so a stuck FEE_OPTIMIZED_LIMIT order never locks the scanner out.
- **Per-trader event dedupe** — won't re-enter the same (trader, asset) pair within 4 hours.
- **Per-asset cooldown** — 2-hour cooldown after a trade on any given coin.
## Runtime
- `runtime.yaml` added (was missing in v2.1)
- Standard Predators deployment: `position_tracker` scanner + rule-based action + DSL engine
- DSL tuned for follow-the-streak trades: hard_timeout 360 min, wide phase 2 tiers to let winners compound
## Configuration
All thresholds live in `config/raptor-config.json`:
- `hotStreak.minDeltaPnl` — minimum 4h delta PnL to consider a trader (default $2M)
- `hotStreak.tier2Threshold` / `tier3Threshold` — scoring tier thresholds ($5.5M / $10M)
- `hotStreak.topTraderLimit` — how many from leaderboard_get_top to pull (default 30)
- `hotStreak.minConcentration` — minimum position concentration (default 0.40)
- `smAlignment.minSmPct` / `minSmTraders` — SM consensus strength gates
- `dedupe.eventDedupeHours` — trader-asset dedupe window (default 4h)
- `dedupe.perAssetCooldownMinutes` — asset cooldown after any trade (default 120 min)
- `entry.minScore` — score floor to fire an entry (default 6)
## Deployment
Agents on v2.1 should pull the v3.0 package and restart. The v3.0 repo package includes:
- `raptor/runtime.yaml` (NEW)
- `raptor/SKILL.md` (NEW)
- `raptor/config/raptor-config.json` (NEW)
- `raptor/scripts/raptor_config.py` (NEW — was missing in v2.1 even though scanner imported it)
- `raptor/scripts/raptor-scanner.py` (REWRITTEN)
Pull command:
```bash
curl -s https://raw.githubusercontent.com/Senpi-ai/senpi-skills/main/raptor/scripts/raptor-scanner.py -o /data/workspace/skills/raptor-strategy/scripts/raptor-scanner.py
curl -s https://raw.githubusercontent.com/Senpi-ai/senpi-skills/main/raptor/scripts/raptor_config.py -o /data/workspace/skills/raptor-strategy/scripts/raptor_config.py
curl -s https://raw.githubusercontent.com/Senpi-ai/senpi-skills/main/raptor/config/raptor-config.json -o /data/workspace/skills/raptor-strategy/config/raptor-config.json
```
Then verify with a single manual run:
```bash
python3 /data/workspace/skills/raptor-strategy/scripts/raptor-scanner.py
```
Expected: clean exit, `_raptor_version: "3.0"` in output JSON. If `leaderboard_get_top` returns data and there's at least one ELITE/RELIABLE hot trader, the scanner may emit a candidate signal or fire a trade on the first run.
---
## Skill Attribution
When creating a strategy, include `skill_name` and `skill_version` in the call. See `references/skill-attribution.md` for details.
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.