majiayu000/spellbook / skills/sol-luna-router
sol-luna-router
VerifiedRoute substantial coding or repository-review work through a two-stage Sol commander/verifier and separate Luna Max CLI worker. Use when the user explicitly asks Sol to direct or supervise Luna, explicitly requests this router, needs an isolated auditable Luna-owned implementation with a Sol review loop, or asks to diagnose or measure the router itself. Do not use merely because a task involves coding, verification, progress reporting, or token saving. For small or straightforward tasks, keep work in Sol unless the user explicitly requests Luna; router configuration, usage, and efficiency questions should use read-only inspection without launching a worker.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.1 KB |
| agents/openai.yaml | config | 234 B |
| evals/transport-warning-benchmark-2026-08-12-task.md | markdown | 1.6 KB |
| evals/transport-warning-benchmark-2026-08-12.json | config | 5.1 KB |
| references/rate-card-2026-08-05.json | config | 548 B |
| references/run-log.md | markdown | 7.4 KB |
| references/transport-warning-benchmark-2026-08-12.md | markdown | 2.7 KB |
| scripts/analyze_run_log.py | script | 41.8 KB |
| scripts/run_luna_worker.py | script | 31.6 KB |
| scripts/test_analyze_run_log.py | script | 30.8 KB |
| scripts/test_benchmark_evidence.py | script | 38.8 KB |
| scripts/test_run_luna_worker.py | script | 35.5 KB |
| scripts/worker_events.py | script | 1.6 KB |
scripts/worker_events.py
View on GitHub#!/usr/bin/env python3
"""Parse Codex JSONL worker events without storing prompt or answer text."""
from __future__ import annotations
import json
def normalize_usage(usage: object) -> dict[str, int]:
if not isinstance(usage, dict):
return {}
return {
str(key): value
for key, value in usage.items()
if isinstance(value, int) and not isinstance(value, bool) and value >= 0
}
def extract_error(event: dict[str, object]) -> str:
error = event.get("error")
if isinstance(error, dict):
message = error.get("message")
if isinstance(message, str):
return message
return json.dumps(error, ensure_ascii=False, sort_keys=True)
if isinstance(error, str):
return error
message = event.get("message")
if isinstance(message, str):
return message
return json.dumps(event, ensure_ascii=False, sort_keys=True)
def partial_event_summary(stdout: str) -> tuple[str | None, int, dict[str, int]]:
thread_id: str | None = None
event_count = 0
usage: dict[str, int] = {}
for raw_line in stdout.splitlines():
try:
event = json.loads(raw_line)
except json.JSONDecodeError:
continue
if not isinstance(event, dict):
continue
event_count += 1
candidate = event.get("thread_id") if event.get("type") == "thread.started" else None
if isinstance(candidate, str) and candidate:
thread_id = candidate
normalized = normalize_usage(event.get("usage"))
if normalized:
usage = normalized
return thread_id, event_count, usage
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |