How mobiusquant/openmobius-skill works
OpenMobius-skill is an AI-agent trading-analysis skill combining scoped, attributable knowledge Q&A with supported current-market analysis, annotation, and chart generation. The principal workflow resolves intent and analytical scope, checks capabilities, retrieves knowledge, then—when supported and needed—uses market data and structural analysis to produce a grounded answer or chart. The README documents the routing and feature branches; source excerpts show retrieval and embedding internals, but not the market-data implementation, so those links are documented rather than inferred from unsampled code.
Main entry points: SKILL.md Capability gate · retriever.py Scoped retrieval · renderer.js Chart renderer · kb_retrieve.py Retrieval interface
Components 18
Intent and routing
- Skill instructions
SKILL.md - Intent and scope
SKILL.md - Capability gate
SKILL.md - Knowledge registry
knowledge_base/schemas
Knowledge retrieval
- Retrieval interface
scripts/kb_retrieve.py - Scoped retrieval
scripts/_lib/retriever.py - School projections
scripts/_lib/knowledge_v2.py - Knowledge cards
knowledge_base - Query embeddings
scripts/_lib/embedder.py
Market analysis
- Market data
- K-line analysis
scripts/kb_klines.py - Image annotation
scripts/kb_draw_annotation.py
Charts and annotations
- Chart renderer
scripts/chart_render/renderer.js - Chart primitives
scripts/chart_render/rectangle_primitive.js
Other components
- User
- Host AI agent
- Playwright
- Grounded answer
Connections 22
- User → Host AI agent: asks
README.md - Host AI agent → Skill instructions: uses
README.md - Skill instructions → Intent and scope: resolves intent
README.md - Intent and scope → Capability gate: checks capability
README.md - Capability gate → Knowledge registry: reads capabilities
README.md - Capability gate → Retrieval interface: routes Q&A
README.md - Retrieval interface → Scoped retrieval: queries
scripts/kb_retrieve.py - Scoped retrieval → School projections: loads projections
scripts/_lib/retriever.py - School projections → Knowledge cards: projects cards
- Scoped retrieval → Knowledge cards: searches
scripts/_lib/retriever.py - Scoped retrieval → Query embeddings: embeds query
- Capability gate → Market data: requests fresh data
README.md - Market data → K-line analysis: supplies series
- Capability gate → K-line analysis: runs analysis
README.md - User → Image annotation: provides chart
README.md - Capability gate → Image annotation: routes annotation
README.md - Capability gate → Chart renderer: requests chart
README.md - Chart renderer → Chart primitives: uses primitives
- Chart renderer → Playwright: renders with
README.md - Retrieval interface → Host AI agent: returns evidence
scripts/kb_retrieve.py - Host AI agent → Grounded answer: synthesizes
README.md - Chart renderer → Grounded answer: produces chart
README.md