Upload folder using huggingface_hub
Browse files- README.md +69 -5
- app.py +279 -0
- assets/logo.png +0 -0
- assets/logo.svg +8 -0
- assets/partners/SOURCES.md +12 -0
- assets/partners/coinbase.png +0 -0
- assets/partners/ixs.png +0 -0
- assets/partners/openserv.svg +1 -0
- assets/partners/robinhood.svg +1 -0
- requirements.txt +5 -0
- seeri/__init__.py +1 -0
- seeri/pipeline.py +337 -0
- seeri/prompts.py +106 -0
- seeri/serv.py +111 -0
- seeri/skill_loader.py +130 -0
- seeri/sources.py +460 -0
- skill/SKILL.md +65 -0
- skill/article-synthesis.md +46 -0
- skill/domains/agentkit-base.md +28 -0
- skill/domains/ixs-rwa-vaults.md +32 -0
- skill/domains/memecoin-markets/SKILL.md +134 -0
- skill/domains/memecoin-markets/chapters/ch01-introduction-purpose.md +46 -0
- skill/domains/memecoin-markets/chapters/ch02-core-technical-concepts.md +60 -0
- skill/domains/memecoin-markets/chapters/ch03-types-of-coins-value.md +55 -0
- skill/domains/memecoin-markets/chapters/ch04-how-to-find-good-trades.md +53 -0
- skill/domains/memecoin-markets/chapters/ch05-kols-influencers-trust.md +52 -0
- skill/domains/memecoin-markets/chapters/ch06-trading-platforms-tools.md +53 -0
- skill/domains/memecoin-markets/chapters/ch07-reading-charts.md +55 -0
- skill/domains/memecoin-markets/chapters/ch08-reading-the-market.md +53 -0
- skill/domains/memecoin-markets/chapters/ch09-trade-execution.md +57 -0
- skill/domains/memecoin-markets/chapters/ch10-psychology-of-trading.md +56 -0
- skill/domains/memecoin-markets/chapters/ch11-life-money-perspective.md +52 -0
- skill/domains/memecoin-markets/chapters/ch12-staying-safe-in-crypto.md +57 -0
- skill/domains/memecoin-markets/chapters/ch13-your-first-steps.md +57 -0
- skill/domains/memecoin-markets/cheatsheet.md +76 -0
- skill/domains/memecoin-markets/glossary.md +99 -0
- skill/domains/memecoin-markets/patterns.md +76 -0
- skill/domains/robinhood-chain.md +45 -0
- skill/evidence-grid.md +55 -0
- skill/hackathon-submission.md +62 -0
- skill/reasoning-serv.md +78 -0
- skill/research-workflow.md +66 -0
- skill/resources.md +37 -0
- skill/source-map.md +39 -0
- sync_skill.sh +8 -0
README.md
CHANGED
|
@@ -1,13 +1,77 @@
|
|
| 1 |
---
|
| 2 |
title: Seeri
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.28.0
|
| 8 |
-
python_version: '3.13'
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: Seeri
|
| 3 |
+
emoji: 🔎
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 6.28.0
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
tags:
|
| 11 |
+
- mcp-server-track
|
| 12 |
+
- research
|
| 13 |
+
- openserv
|
| 14 |
+
- robinhood-chain
|
| 15 |
---
|
| 16 |
|
| 17 |
+
# Seeri
|
| 18 |
+
|
| 19 |
+
Seeri is a verifiable deep-research MCP server for onchain questions. It decomposes a question into sub-claims, gathers evidence from block explorers, market data, and the web, then grades every claim with SERV Reasoning so each conclusion carries an auditable confidence rating. When no SERV key is configured it runs the same pipeline with deterministic local heuristics and labels the output accordingly.
|
| 20 |
+
|
| 21 |
+
## Tools
|
| 22 |
+
|
| 23 |
+
| Tool | What it does |
|
| 24 |
+
| --- | --- |
|
| 25 |
+
| `deep_research` | Full research pipeline: decompose, gather, classify, grade, synthesize. Returns a markdown report. |
|
| 26 |
+
| `deep_research_json` | Same pipeline, returns the full structured report as JSON. |
|
| 27 |
+
| `verify_claim` | Grades a single claim against gathered evidence. |
|
| 28 |
+
| `robinhood_token_dossier` | Blockscout/RPC identity, ticker-collision check across all same-ticker tokens, and GeckoTerminal pools for a Robinhood Chain token. |
|
| 29 |
+
| `protocol_snapshot` | DefiLlama TVL, chains, and category for a protocol or chain. |
|
| 30 |
+
| `web_evidence` | Web search with classified source list. |
|
| 31 |
+
|
| 32 |
+
## Connect to Claude
|
| 33 |
+
|
| 34 |
+
**Claude.ai / Desktop (custom connector):**
|
| 35 |
+
|
| 36 |
+
```
|
| 37 |
+
https://pima5-seeri.hf.space/gradio_api/mcp/
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
SSE transport:
|
| 41 |
+
|
| 42 |
+
```
|
| 43 |
+
https://pima5-seeri.hf.space/gradio_api/mcp/sse
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
**Claude Code:**
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
claude mcp add --transport http seeri https://pima5-seeri.hf.space/gradio_api/mcp/
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
**Cursor / other clients (via mcp-remote):**
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
npx mcp-remote https://pima5-seeri.hf.space/gradio_api/mcp/sse
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
## Environment variables
|
| 59 |
+
|
| 60 |
+
| Variable | Purpose |
|
| 61 |
+
| --- | --- |
|
| 62 |
+
| `SERV_API_KEY` | OpenServ SERV Reasoning API key. Required for SERV reasoning; without it the pipeline runs local heuristic grading and labels output `reasoning: local`. |
|
| 63 |
+
| `SERV_MODEL` | Model override. Defaults to `gpt-5.4-mini`. |
|
| 64 |
+
| `PORT` | HTTP port. Defaults to `7860`. |
|
| 65 |
+
|
| 66 |
+
## Run locally
|
| 67 |
+
|
| 68 |
+
```bash
|
| 69 |
+
cd mcp
|
| 70 |
+
./sync_skill.sh # vendors ../skill into mcp/skill (run after editing the skill)
|
| 71 |
+
uv venv && uv pip install -r requirements.txt
|
| 72 |
+
python app.py
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
The Gradio UI and the MCP endpoint (`/gradio_api/mcp/`) are served on the same port.
|
| 76 |
+
|
| 77 |
+
Educational research output. Not investment, legal, or tax advice.
|
app.py
ADDED
|
@@ -0,0 +1,279 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Seeri: verifiable deep research for anything onchain. Gradio UI + MCP server."""
|
| 2 |
+
|
| 3 |
+
import base64
|
| 4 |
+
import json
|
| 5 |
+
import mimetypes
|
| 6 |
+
import os
|
| 7 |
+
import re
|
| 8 |
+
|
| 9 |
+
import gradio as gr
|
| 10 |
+
|
| 11 |
+
from seeri import pipeline, serv, skill_loader, sources
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def deep_research(question: str, decision: str = "", domain: str = "auto", depth: str = "standard") -> str:
|
| 15 |
+
"""Run a full verifiable deep-research pass on an onchain question and return a markdown report.
|
| 16 |
+
|
| 17 |
+
Args:
|
| 18 |
+
question: The research question (e.g. a token, protocol, vault, or market claim).
|
| 19 |
+
decision: Optional decision this research informs.
|
| 20 |
+
domain: Domain pack hint: auto, robinhood-chain, agentkit-base, ixs-rwa-vaults, memecoin-markets, general.
|
| 21 |
+
depth: quick or standard.
|
| 22 |
+
"""
|
| 23 |
+
return pipeline.render_markdown(pipeline.deep_research(question, decision, domain, depth))
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def deep_research_json(question: str, decision: str = "", domain: str = "auto", depth: str = "standard") -> str:
|
| 27 |
+
"""Same as deep_research but returns the full structured report as a JSON string.
|
| 28 |
+
|
| 29 |
+
Args:
|
| 30 |
+
question: The research question.
|
| 31 |
+
decision: Optional decision this research informs.
|
| 32 |
+
domain: Domain pack hint: auto, robinhood-chain, agentkit-base, ixs-rwa-vaults, memecoin-markets, general.
|
| 33 |
+
depth: quick or standard.
|
| 34 |
+
"""
|
| 35 |
+
return json.dumps(pipeline.deep_research(question, decision, domain, depth), indent=2, default=str)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def verify_claim(claim: str, domain: str = "auto") -> str:
|
| 39 |
+
"""Verify a single claim against gathered evidence and return a graded markdown verdict.
|
| 40 |
+
|
| 41 |
+
Args:
|
| 42 |
+
claim: The claim to verify.
|
| 43 |
+
domain: Domain pack hint (auto detected if omitted).
|
| 44 |
+
"""
|
| 45 |
+
return pipeline.render_markdown(pipeline.verify_claim(claim, domain))
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def robinhood_token_dossier(ticker_or_address: str, network: str = "mainnet") -> str:
|
| 49 |
+
"""Token dossier on Robinhood Chain: Blockscout identity, ticker collisions, and GeckoTerminal pools.
|
| 50 |
+
|
| 51 |
+
Args:
|
| 52 |
+
ticker_or_address: Ticker symbol or 0x contract address.
|
| 53 |
+
network: mainnet or testnet.
|
| 54 |
+
"""
|
| 55 |
+
items = sources.robinhood_token(ticker_or_address, network)
|
| 56 |
+
addresses = [e.raw.get("address") for e in items if e.raw and e.raw.get("address")]
|
| 57 |
+
for addr in list(dict.fromkeys(addresses))[:3]:
|
| 58 |
+
items.extend(sources.geckoterminal_token("robinhood", addr))
|
| 59 |
+
if not items:
|
| 60 |
+
return f"No onchain evidence found for `{ticker_or_address}` on Robinhood Chain ({network})."
|
| 61 |
+
|
| 62 |
+
collision = next((e for e in items if e.id == "collision"), None)
|
| 63 |
+
token_items = [e for e in items if e.raw and e.raw.get("symbol") is not None]
|
| 64 |
+
lines = [f"# Token dossier: {ticker_or_address} ({network})", ""]
|
| 65 |
+
if collision:
|
| 66 |
+
lines += ["**TICKER COLLISION WARNING**", "", collision.excerpt, ""]
|
| 67 |
+
if token_items:
|
| 68 |
+
lines += ["## Contract identity", "",
|
| 69 |
+
"| symbol | name | address | decimals | total supply | pool | liquidity USD | 24h vol USD | explorer |",
|
| 70 |
+
"| --- | --- | --- | --- | --- | --- | --- | --- | --- |"]
|
| 71 |
+
for e in token_items:
|
| 72 |
+
r = e.raw or {}
|
| 73 |
+
addr = r.get("address", "")
|
| 74 |
+
supply = r.get("total_supply_human", r.get("total_supply", ""))
|
| 75 |
+
lines.append("| {} | {} | {} | {} | {} | {} | {} | {} | [link]({}) |".format(
|
| 76 |
+
r.get("symbol", ""), r.get("name", ""), addr,
|
| 77 |
+
r.get("decimals", ""), supply,
|
| 78 |
+
r.get("pool_name", ""), r.get("reserve_in_usd", ""),
|
| 79 |
+
r.get("volume_h24", ""), e.url))
|
| 80 |
+
lines.append("")
|
| 81 |
+
lines += ["## What this token represents", "",
|
| 82 |
+
"A matching ticker does not prove this is the official Stock Token. "
|
| 83 |
+
"Verify the issuer registry and contract provenance before treating any match as canonical.", "",
|
| 84 |
+
"## Evidence", ""]
|
| 85 |
+
for e in items:
|
| 86 |
+
lines += [f"### {e.title}", "", e.excerpt, "", f"Source: {e.url}", ""]
|
| 87 |
+
lines.append("Not investment, legal, or tax advice.")
|
| 88 |
+
return "\n".join(lines)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def protocol_snapshot(name: str) -> str:
|
| 92 |
+
"""DefiLlama snapshot for a protocol or chain: TVL, chains, category.
|
| 93 |
+
|
| 94 |
+
Args:
|
| 95 |
+
name: Protocol or chain name (e.g. uniswap, robinhood).
|
| 96 |
+
"""
|
| 97 |
+
items = sources.defillama_protocol(name)
|
| 98 |
+
if not items:
|
| 99 |
+
return f"No DefiLlama data found for `{name}`."
|
| 100 |
+
lines = [f"# DefiLlama snapshot: {name}", ""]
|
| 101 |
+
for e in items:
|
| 102 |
+
lines += [f"## {e.title}", "", e.excerpt, "", f"Source: {e.url}", ""]
|
| 103 |
+
lines.append("Not investment, legal, or tax advice.")
|
| 104 |
+
return "\n".join(lines)
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
def web_evidence(query: str, max_results: int = 6) -> str:
|
| 108 |
+
"""Search the web and return a classified source list for a query.
|
| 109 |
+
|
| 110 |
+
Args:
|
| 111 |
+
query: Search query.
|
| 112 |
+
max_results: Maximum number of sources to fetch (1-10).
|
| 113 |
+
"""
|
| 114 |
+
max_results = max(1, min(int(max_results), 10))
|
| 115 |
+
items = sources.web_search(query, max_results=max_results)
|
| 116 |
+
if not items:
|
| 117 |
+
return f"No sources found for `{query}`."
|
| 118 |
+
lines = [f"# Web evidence: {query}", ""]
|
| 119 |
+
for e in items:
|
| 120 |
+
lines.append(f"- `{e.id}` [{e.category}/{e.interest}/{e.freshness}] "
|
| 121 |
+
f"[{e.title[:80]}]({e.url})")
|
| 122 |
+
lines.append("")
|
| 123 |
+
lines.append("Not investment, legal, or tax advice.")
|
| 124 |
+
return "\n".join(lines)
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
def seeri_skill(file: str = "SKILL.md") -> str:
|
| 128 |
+
"""Read the Seeri research method.
|
| 129 |
+
|
| 130 |
+
Args:
|
| 131 |
+
file: Path within the skill, e.g. SKILL.md, research-workflow.md, domains/robinhood-chain.md.
|
| 132 |
+
"""
|
| 133 |
+
text = skill_loader.read_file(file)
|
| 134 |
+
if not text:
|
| 135 |
+
return f"No readable skill file at `{file}`. Try list_skill_files for valid paths."
|
| 136 |
+
return text
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
def list_skill_files() -> str:
|
| 140 |
+
"""List every markdown file in the loaded Seeri skill."""
|
| 141 |
+
files = skill_loader.list_files()
|
| 142 |
+
if not files:
|
| 143 |
+
return "Skill not found."
|
| 144 |
+
d = skill_loader.skill_dir()
|
| 145 |
+
return f"Skill at `{d}` ({len(files)} files):\n\n" + "\n".join(f"- {f}" for f in files)
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def _status() -> str:
|
| 149 |
+
if serv.available():
|
| 150 |
+
model = os.environ.get("SERV_MODEL", serv.DEFAULT_MODEL)
|
| 151 |
+
serv_line = f"SERV: connected ({model})"
|
| 152 |
+
else:
|
| 153 |
+
serv_line = "SERV: not configured, running local reasoning"
|
| 154 |
+
d = skill_loader.skill_dir()
|
| 155 |
+
skill_line = (f"Skill: loaded from {d} ({len(skill_loader.list_files())} files)"
|
| 156 |
+
if d else "Skill: NOT FOUND")
|
| 157 |
+
return f"{serv_line} | {skill_line}"
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
def _logo_html() -> str:
|
| 161 |
+
try:
|
| 162 |
+
with open(os.path.join(os.path.dirname(__file__), "assets", "logo.svg")) as f:
|
| 163 |
+
svg = f.read()
|
| 164 |
+
svg = re.sub(r'\s(width|height)="[^"]*"', "", svg, count=2)
|
| 165 |
+
svg = svg.replace("<svg", '<svg width="72" height="72"', 1)
|
| 166 |
+
return f'<div style="width:72px;height:72px">{svg}</div>'
|
| 167 |
+
except OSError:
|
| 168 |
+
return ""
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
_ASSETS = os.path.join(os.path.dirname(__file__), "assets")
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
def _partner_img(filename: str, alt: str, dark: bool = False) -> str:
|
| 175 |
+
path = os.path.join(_ASSETS, "partners", filename)
|
| 176 |
+
try:
|
| 177 |
+
with open(path, "rb") as f:
|
| 178 |
+
b64 = base64.b64encode(f.read()).decode()
|
| 179 |
+
except OSError:
|
| 180 |
+
return alt
|
| 181 |
+
mime = mimetypes.guess_type(path)[0] or "image/png"
|
| 182 |
+
bg = "#0B1220" if dark else "#ffffff"
|
| 183 |
+
return (f'<span style="display:inline-flex;align-items:center;background:{bg};'
|
| 184 |
+
f'border:1px solid #e5e5e5;border-radius:6px;padding:4px 10px;height:36px">'
|
| 185 |
+
f'<img src="data:{mime};base64,{b64}" alt="{alt}" '
|
| 186 |
+
f'style="height:28px;width:auto;display:block"></span>')
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
def _partners_html() -> str:
|
| 190 |
+
robinhood = _partner_img("robinhood.svg", "Robinhood", dark=True)
|
| 191 |
+
openserv = _partner_img("openserv.svg", "OpenServ")
|
| 192 |
+
coinbase = _partner_img("coinbase.png", "Coinbase")
|
| 193 |
+
ixs = _partner_img("ixs.png", "IXS Finance")
|
| 194 |
+
return (
|
| 195 |
+
'<div style="display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0">'
|
| 196 |
+
'<span style="font-size:13px;color:#666">Reasoning by</span>'
|
| 197 |
+
'<a href="https://openserv.ai" target="_blank">' + openserv + "</a>"
|
| 198 |
+
'<span style="font-size:13px;color:#666;margin-left:14px">Research surfaces</span>'
|
| 199 |
+
'<a href="https://robinhood.com" target="_blank">' + robinhood + "</a>"
|
| 200 |
+
'<a href="https://www.coinbase.com" target="_blank">' + coinbase + "</a>"
|
| 201 |
+
'<a href="https://ixs.finance" target="_blank">' + ixs + "</a>"
|
| 202 |
+
"</div>"
|
| 203 |
+
)
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
with gr.Blocks(title="Seeri") as demo:
|
| 207 |
+
with gr.Row():
|
| 208 |
+
gr.HTML(_logo_html())
|
| 209 |
+
gr.Markdown(
|
| 210 |
+
"# Seeri\n"
|
| 211 |
+
"Verifiable deep research for anything onchain. Reasoning by SERV.\n\n"
|
| 212 |
+
+ _status()
|
| 213 |
+
)
|
| 214 |
+
gr.HTML(_partners_html())
|
| 215 |
+
with gr.Tab("Deep Research"):
|
| 216 |
+
with gr.Row():
|
| 217 |
+
q = gr.Textbox(label="Question", lines=2)
|
| 218 |
+
d = gr.Textbox(label="Decision (optional)")
|
| 219 |
+
with gr.Row():
|
| 220 |
+
dom = gr.Dropdown(["auto", "robinhood-chain", "agentkit-base", "ixs-rwa-vaults",
|
| 221 |
+
"memecoin-markets", "general"], value="auto", label="Domain")
|
| 222 |
+
dep = gr.Dropdown(["quick", "standard"], value="standard", label="Depth")
|
| 223 |
+
btn = gr.Button("Research", variant="primary")
|
| 224 |
+
out = gr.Markdown()
|
| 225 |
+
btn.click(deep_research, [q, d, dom, dep], out)
|
| 226 |
+
gr.Examples([["Is the HOOD Stock Token on Robinhood Chain trading at a premium to the underlying, and how deep is its liquidity?"],
|
| 227 |
+
["What does an IXS licensed RWA vault actually license, and who can deposit?"]],
|
| 228 |
+
inputs=q)
|
| 229 |
+
with gr.Tab("Deep Research (JSON)"):
|
| 230 |
+
jq = gr.Textbox(label="Question", lines=2)
|
| 231 |
+
jd = gr.Textbox(label="Decision (optional)")
|
| 232 |
+
jdom = gr.Dropdown(["auto", "robinhood-chain", "agentkit-base", "ixs-rwa-vaults",
|
| 233 |
+
"memecoin-markets", "general"], value="auto", label="Domain")
|
| 234 |
+
jdep = gr.Dropdown(["quick", "standard"], value="standard", label="Depth")
|
| 235 |
+
jbtn = gr.Button("Research (JSON)", variant="primary")
|
| 236 |
+
jout = gr.Code(language="json")
|
| 237 |
+
jbtn.click(deep_research_json, [jq, jd, jdom, jdep], jout)
|
| 238 |
+
with gr.Tab("Verify Claim"):
|
| 239 |
+
c = gr.Textbox(label="Claim", lines=2)
|
| 240 |
+
cdom = gr.Dropdown(["auto", "robinhood-chain", "agentkit-base", "ixs-rwa-vaults",
|
| 241 |
+
"memecoin-markets", "general"], value="auto", label="Domain")
|
| 242 |
+
cbtn = gr.Button("Verify", variant="primary")
|
| 243 |
+
cout = gr.Markdown()
|
| 244 |
+
cbtn.click(verify_claim, [c, cdom], cout)
|
| 245 |
+
gr.Examples([["Robinhood Chain mainnet is live and hosting stock tokens."]], inputs=c)
|
| 246 |
+
with gr.Tab("Token Dossier"):
|
| 247 |
+
t = gr.Textbox(label="Ticker or 0x address")
|
| 248 |
+
tn = gr.Dropdown(["mainnet", "testnet"], value="mainnet", label="Network")
|
| 249 |
+
tbtn = gr.Button("Fetch dossier", variant="primary")
|
| 250 |
+
tout = gr.Markdown()
|
| 251 |
+
tbtn.click(robinhood_token_dossier, [t, tn], tout)
|
| 252 |
+
gr.Examples([["HOOD", "mainnet"]], inputs=[t, tn])
|
| 253 |
+
with gr.Tab("Protocol Snapshot"):
|
| 254 |
+
p = gr.Textbox(label="Protocol or chain name")
|
| 255 |
+
pbtn = gr.Button("Snapshot", variant="primary")
|
| 256 |
+
pout = gr.Markdown()
|
| 257 |
+
pbtn.click(protocol_snapshot, p, pout)
|
| 258 |
+
gr.Examples([["uniswap"], ["ix swap"]], inputs=p)
|
| 259 |
+
with gr.Tab("Web Evidence"):
|
| 260 |
+
w = gr.Textbox(label="Query")
|
| 261 |
+
wn = gr.Slider(1, 10, value=6, step=1, label="Max results")
|
| 262 |
+
wbtn = gr.Button("Search", variant="primary")
|
| 263 |
+
wout = gr.Markdown()
|
| 264 |
+
wbtn.click(web_evidence, [w, wn], wout)
|
| 265 |
+
gr.Examples([["Robinhood Chain stock tokens"]], inputs=w)
|
| 266 |
+
with gr.Tab("Skill"):
|
| 267 |
+
gr.Markdown("The Seeri skill files that drive the method the tools apply.")
|
| 268 |
+
sf = gr.Textbox(label="File path within the skill", value="SKILL.md")
|
| 269 |
+
sbtn = gr.Button("Read skill file", variant="primary")
|
| 270 |
+
sout = gr.Markdown()
|
| 271 |
+
sbtn.click(seeri_skill, sf, sout)
|
| 272 |
+
lbtn = gr.Button("List skill files")
|
| 273 |
+
lout = gr.Markdown()
|
| 274 |
+
lbtn.click(list_skill_files, None, lout)
|
| 275 |
+
gr.Examples([["research-workflow.md"], ["domains/robinhood-chain.md"]], inputs=sf)
|
| 276 |
+
|
| 277 |
+
if __name__ == "__main__":
|
| 278 |
+
demo.launch(mcp_server=True, server_name="0.0.0.0",
|
| 279 |
+
server_port=int(os.environ.get("PORT", 7860)))
|
assets/logo.png
ADDED
|
assets/logo.svg
ADDED
|
|
assets/partners/SOURCES.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Partner logo sources
|
| 2 |
+
|
| 3 |
+
Official brand assets only. No file was vectorized, traced, redrawn, or edited.
|
| 4 |
+
|
| 5 |
+
| File | Source |
|
| 6 |
+
| --- | --- |
|
| 7 |
+
| robinhood.svg | Official wordmark, extracted verbatim from the inline SVG in the robinhood.com site header (`aria-label="Robinhood Logo"`). Fetched 2026-09-27. |
|
| 8 |
+
| openserv.svg | Official OpenServ wordmark (black variant) from the OpenServ media kit page, https://openserv.ai/media-kit (asset: https://framerusercontent.com/images/1pDLt8M6GRBwNh3Bt3I0903Mjok.svg). |
|
| 9 |
+
| coinbase.png | Official Coinbase GitHub organization avatar, https://github.com/coinbase.png (coinbase.com is Cloudflare-gated; org avatar used as last resort). |
|
| 10 |
+
| ixs.png | Official IXS Finance GitHub organization avatar, https://github.com/IXS-FINANCE.png. |
|
| 11 |
+
|
| 12 |
+
Note: robinhood.svg and openserv.svg are the light-on-dark (white/black) variants as published; robinhood.svg renders white, display it on a dark background.
|
assets/partners/coinbase.png
ADDED
|
assets/partners/ixs.png
ADDED
|
assets/partners/openserv.svg
ADDED
|
|
assets/partners/robinhood.svg
ADDED
|
|
requirements.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio[mcp]==6.28.0
|
| 2 |
+
httpx
|
| 3 |
+
openai
|
| 4 |
+
ddgs
|
| 5 |
+
pydantic
|
seeri/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"""Seeri: verifiable deep research for onchain questions. Reasoning by SERV."""
|
seeri/pipeline.py
ADDED
|
@@ -0,0 +1,337 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Seeri research pipeline: decompose, gather, classify, grade, synthesize."""
|
| 2 |
+
|
| 3 |
+
import json
|
| 4 |
+
import os
|
| 5 |
+
import re
|
| 6 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 7 |
+
from datetime import datetime, timezone
|
| 8 |
+
|
| 9 |
+
from . import prompts, serv, skill_loader, sources
|
| 10 |
+
|
| 11 |
+
_TICKER_STOP = {"A", "I", "IS", "ON", "THE", "AND", "OR", "TO", "OF", "IN", "IT", "AT",
|
| 12 |
+
"BY", "FOR", "RWA", "MCP", "API", "DEX", "TVL", "APY", "KYC", "US",
|
| 13 |
+
"USA", "NOT", "VS"}
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def _detect_domain(question: str) -> str:
|
| 17 |
+
return skill_loader.detect_domain(question)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def _tickers_and_addresses(question: str, domain: str = "auto") -> list[str]:
|
| 21 |
+
found = re.findall(r"\b0x[a-fA-F0-9]{40}\b", question)
|
| 22 |
+
found += re.findall(r"\$([A-Z]{2,6})\b", question)
|
| 23 |
+
if domain == "robinhood-chain":
|
| 24 |
+
found += [w for w in re.findall(r"\b[A-Z][A-Z0-9]{1,5}\b", question)
|
| 25 |
+
if w not in _TICKER_STOP]
|
| 26 |
+
return list(dict.fromkeys(found))[:3]
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def _fallback_decompose(question: str) -> dict:
|
| 30 |
+
return {
|
| 31 |
+
"sub_questions": [
|
| 32 |
+
{"id": "q1", "text": f"What is the current onchain and market state relevant to: {question}",
|
| 33 |
+
"why_it_matters": "Establishes base facts.", "source_categories": ["chain_state", "market_data"]},
|
| 34 |
+
{"id": "q2", "text": f"What do primary sources and project-reported materials claim about: {question}",
|
| 35 |
+
"why_it_matters": "Separates interested claims from independent evidence.", "source_categories": ["primary_docs"]},
|
| 36 |
+
{"id": "q3", "text": f"What do independent news and social sources say about: {question}",
|
| 37 |
+
"why_it_matters": "Corroborates or contradicts primary claims.", "source_categories": ["news", "social"]},
|
| 38 |
+
{"id": "q4", "text": f"Are there regulatory or structural risks bearing on: {question}",
|
| 39 |
+
"why_it_matters": "Surfaces non-market failure modes.", "source_categories": ["regulatory"]},
|
| 40 |
+
{"id": "q5", "text": f"What evidence is missing to answer: {question}",
|
| 41 |
+
"why_it_matters": "Defines the gaps that cap confidence.", "source_categories": ["news"]},
|
| 42 |
+
],
|
| 43 |
+
"highest_stakes": "q1",
|
| 44 |
+
"search_queries": [question, f"{question} onchain data", f"{question} official documentation"],
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def _fallback_decompose_with_domain(question: str, domain: str) -> dict:
|
| 49 |
+
plan = _fallback_decompose(question)
|
| 50 |
+
for row in skill_loader.domain_output_rows(domain):
|
| 51 |
+
if len(plan["sub_questions"]) >= 8:
|
| 52 |
+
break
|
| 53 |
+
plan["sub_questions"].append({
|
| 54 |
+
"id": f"q{len(plan['sub_questions'])+1}",
|
| 55 |
+
"text": f"Domain grid row '{row}': what is the current value/state relevant to: {question}",
|
| 56 |
+
"why_it_matters": "Required output row in the domain pack.",
|
| 57 |
+
"source_categories": ["chain_state", "market_data"],
|
| 58 |
+
})
|
| 59 |
+
return plan
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
def _fallback_grade(claim_id: str, claim: str, evidence: list[sources.Evidence]) -> dict:
|
| 63 |
+
independent = [e for e in evidence if e.interest == "independent"]
|
| 64 |
+
confidence = "high" if len(independent) >= 2 else ("medium" if evidence else "low")
|
| 65 |
+
return {
|
| 66 |
+
"id": claim_id, "claim": claim, "confidence": confidence,
|
| 67 |
+
"basis": f"Local heuristic: {len(independent)} independent evidence items.",
|
| 68 |
+
"supporting": [e.id for e in evidence],
|
| 69 |
+
"contradicting": [],
|
| 70 |
+
"contradictions": "",
|
| 71 |
+
"gaps": [] if evidence else ["no evidence was gathered"],
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def _serv_client(domain: str = "general"):
|
| 76 |
+
return serv.ServClient(domain) if serv.available() else None
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
def _skill_meta(domain: str) -> dict:
|
| 80 |
+
d = skill_loader.skill_dir()
|
| 81 |
+
rel = skill_loader.DOMAIN_FILES.get(domain)
|
| 82 |
+
return {"dir": d, "method_files": [f for f in skill_loader.METHOD_FILES if d],
|
| 83 |
+
"domain_pack": rel if (d and rel and os.path.isfile(os.path.join(d, rel))) else None}
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
def deep_research(question: str, decision: str = "", domain: str = "auto", depth: str = "standard") -> dict:
|
| 87 |
+
"""Full research pipeline. Returns a report dict."""
|
| 88 |
+
domain = _detect_domain(question) if domain == "auto" else domain
|
| 89 |
+
client = _serv_client(domain)
|
| 90 |
+
reasoning = "serv" if client else "local"
|
| 91 |
+
|
| 92 |
+
# 1. Decompose
|
| 93 |
+
if client:
|
| 94 |
+
res = client.reason("decompose", prompts.DECOMPOSE.format(
|
| 95 |
+
question=question, decision=decision or "general research", domain=domain))
|
| 96 |
+
plan = res["data"] or _fallback_decompose_with_domain(question, domain)
|
| 97 |
+
else:
|
| 98 |
+
plan = _fallback_decompose_with_domain(question, domain)
|
| 99 |
+
sub_questions = plan.get("sub_questions") or _fallback_decompose(question)["sub_questions"]
|
| 100 |
+
queries = plan.get("search_queries") or [question]
|
| 101 |
+
max_q = 3 if depth == "quick" else 6
|
| 102 |
+
|
| 103 |
+
# 2. Gather evidence (concurrent): domain fetchers first so chain_state/market_data lead.
|
| 104 |
+
fetchers = []
|
| 105 |
+
if domain == "robinhood-chain":
|
| 106 |
+
for tok in _tickers_and_addresses(question, domain):
|
| 107 |
+
fetchers.append(lambda tok=tok: sources.robinhood_token(tok))
|
| 108 |
+
named = re.findall(r"\b(?:protocol|on|in|for|of)\s+([A-Z][A-Za-z0-9\-]{2,})\b", question)
|
| 109 |
+
for name in named[:2]:
|
| 110 |
+
if len(name) > 2:
|
| 111 |
+
fetchers.append(lambda name=name: sources.defillama_protocol(name))
|
| 112 |
+
for q in queries[:max_q]:
|
| 113 |
+
fetchers.append(lambda q=q: sources.web_search(q, max_results=4))
|
| 114 |
+
evidence: list[sources.Evidence] = []
|
| 115 |
+
with ThreadPoolExecutor(max_workers=6) as pool:
|
| 116 |
+
for result in pool.map(lambda f: f(), fetchers):
|
| 117 |
+
evidence.extend(result)
|
| 118 |
+
for i, e in enumerate(evidence):
|
| 119 |
+
e.id = f"e{i+1}"
|
| 120 |
+
if e.category in ("chain_state", "market_data"):
|
| 121 |
+
e.relevance = 0.8
|
| 122 |
+
|
| 123 |
+
# 3. Classify (concurrent)
|
| 124 |
+
if client:
|
| 125 |
+
def _classify(ev):
|
| 126 |
+
res = client.reason("classify_source", prompts.CLASSIFY_SOURCE.format(
|
| 127 |
+
url=ev.url, title=ev.title, excerpt=ev.excerpt[:800], question=question))
|
| 128 |
+
d = res["data"] or {}
|
| 129 |
+
ev.category = d.get("category", ev.category)
|
| 130 |
+
ev.interest = d.get("interest", ev.interest)
|
| 131 |
+
ev.freshness = d.get("freshness", ev.freshness)
|
| 132 |
+
try:
|
| 133 |
+
ev.relevance = float(d.get("relevance", 0.0) or 0.0)
|
| 134 |
+
except (TypeError, ValueError):
|
| 135 |
+
pass
|
| 136 |
+
with ThreadPoolExecutor(max_workers=6) as pool:
|
| 137 |
+
list(pool.map(_classify, evidence[:16]))
|
| 138 |
+
for e in evidence:
|
| 139 |
+
if e.category in ("chain_state", "market_data"):
|
| 140 |
+
e.relevance = max(e.relevance, 0.8)
|
| 141 |
+
|
| 142 |
+
# 4. Grade each sub-question (concurrent)
|
| 143 |
+
relevant = [e for e in evidence
|
| 144 |
+
if e.relevance >= 0.3 or e.category in ("chain_state", "market_data")] or evidence
|
| 145 |
+
ev_payload = json.dumps([e.model_dump(exclude={"raw"}) for e in relevant], default=str)
|
| 146 |
+
|
| 147 |
+
def _grade(i, sq):
|
| 148 |
+
fid = sq.get("id", f"q{i+1}")
|
| 149 |
+
if client:
|
| 150 |
+
res = client.reason("grade_claim", prompts.GRADE_CLAIM.format(
|
| 151 |
+
claim=sq["text"], evidence=ev_payload))
|
| 152 |
+
g = res["data"] or {}
|
| 153 |
+
return {
|
| 154 |
+
"id": fid, "claim": sq["text"],
|
| 155 |
+
"confidence": g.get("confidence", "low"), "basis": g.get("basis", ""),
|
| 156 |
+
"supporting": g.get("supporting", []), "contradicting": g.get("contradicting", []),
|
| 157 |
+
"contradictions": g.get("contradictions", ""), "gaps": g.get("gaps", []),
|
| 158 |
+
}
|
| 159 |
+
return _fallback_grade(fid, sq["text"], relevant)
|
| 160 |
+
|
| 161 |
+
with ThreadPoolExecutor(max_workers=6) as pool:
|
| 162 |
+
findings = list(pool.map(lambda t: _grade(*t), enumerate(sub_questions)))
|
| 163 |
+
|
| 164 |
+
# 5. Synthesize
|
| 165 |
+
if client:
|
| 166 |
+
res = client.reason("synthesize", prompts.SYNTHESIZE.format(
|
| 167 |
+
question=question, decision=decision or "general research", domain=domain,
|
| 168 |
+
findings=json.dumps(findings, default=str)))
|
| 169 |
+
synthesis = res["data"] or {}
|
| 170 |
+
else:
|
| 171 |
+
synthesis = {
|
| 172 |
+
"thesis": "Insufficient graded evidence to form a defensible thesis in local mode. "
|
| 173 |
+
"Configure SERV_API_KEY for full reasoning.",
|
| 174 |
+
"confidence": "low",
|
| 175 |
+
"key_findings": [f"[{f['id']}] {f['claim']} (confidence: {f['confidence']})" for f in findings],
|
| 176 |
+
"caveats": ["Local heuristic grading only; no SERV reasoning was run."],
|
| 177 |
+
"what_would_change_my_mind": ["Primary source confirmation plus independent corroboration."],
|
| 178 |
+
"next_checks": ["Re-run with SERV_API_KEY set for full grading."],
|
| 179 |
+
}
|
| 180 |
+
synthesis.setdefault("thesis", "")
|
| 181 |
+
synthesis.setdefault("confidence", "low")
|
| 182 |
+
|
| 183 |
+
if client:
|
| 184 |
+
validated = [a for a in client.audit if a.get("validated")]
|
| 185 |
+
if not validated:
|
| 186 |
+
reasoning = "local"
|
| 187 |
+
errs = [a.get("error") for a in client.audit if a.get("error")]
|
| 188 |
+
synthesis.setdefault("caveats", [])
|
| 189 |
+
synthesis["caveats"] = list(synthesis["caveats"]) + [
|
| 190 |
+
f"SERV unavailable: {errs[0] if errs else 'all reasoning calls failed'}"]
|
| 191 |
+
synthesis.setdefault("thesis", "")
|
| 192 |
+
if not synthesis["thesis"]:
|
| 193 |
+
synthesis["thesis"] = ("Insufficient graded evidence to form a defensible thesis. "
|
| 194 |
+
"SERV reasoning was unavailable.")
|
| 195 |
+
synthesis["confidence"] = "low"
|
| 196 |
+
|
| 197 |
+
audit = {"calls": 0, "prompt_tokens": 0, "completion_tokens": 0, "per_step": []}
|
| 198 |
+
if client:
|
| 199 |
+
audit["per_step"] = client.audit
|
| 200 |
+
audit["calls"] = len(client.audit)
|
| 201 |
+
audit["prompt_tokens"] = sum(a["prompt_tokens"] for a in client.audit)
|
| 202 |
+
audit["completion_tokens"] = sum(a["completion_tokens"] for a in client.audit)
|
| 203 |
+
|
| 204 |
+
return {
|
| 205 |
+
"question": question, "decision": decision, "domain": domain,
|
| 206 |
+
"reasoning": reasoning, "model": client.model if client else None,
|
| 207 |
+
"sub_questions": sub_questions,
|
| 208 |
+
"evidence": [e.model_dump() for e in evidence],
|
| 209 |
+
"findings": findings, "synthesis": synthesis, "audit": audit,
|
| 210 |
+
"skill": _skill_meta(domain),
|
| 211 |
+
"generated_at": datetime.now(timezone.utc).isoformat(),
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def verify_claim(claim: str, domain: str = "auto") -> dict:
|
| 216 |
+
"""Grade a single claim against gathered evidence."""
|
| 217 |
+
domain = _detect_domain(claim) if domain == "auto" else domain
|
| 218 |
+
evidence = sources.web_search(claim, max_results=5)
|
| 219 |
+
if domain == "robinhood-chain":
|
| 220 |
+
for tok in _tickers_and_addresses(claim, domain):
|
| 221 |
+
evidence.extend(sources.robinhood_token(tok))
|
| 222 |
+
client = _serv_client(domain)
|
| 223 |
+
if client:
|
| 224 |
+
for ev in evidence[:12]:
|
| 225 |
+
res = client.reason("classify_source", prompts.CLASSIFY_SOURCE.format(
|
| 226 |
+
url=ev.url, title=ev.title, excerpt=ev.excerpt[:800], question=claim))
|
| 227 |
+
d = res["data"] or {}
|
| 228 |
+
ev.interest = d.get("interest", ev.interest)
|
| 229 |
+
try:
|
| 230 |
+
ev.relevance = float(d.get("relevance", 0.0) or 0.0)
|
| 231 |
+
except (TypeError, ValueError):
|
| 232 |
+
pass
|
| 233 |
+
res = client.reason("grade_claim", prompts.GRADE_CLAIM.format(
|
| 234 |
+
claim=claim,
|
| 235 |
+
evidence=json.dumps([e.model_dump(exclude={"raw"}) for e in evidence], default=str)))
|
| 236 |
+
grade = res["data"]
|
| 237 |
+
reasoning, model = "serv", client.model
|
| 238 |
+
if not any(a.get("validated") for a in client.audit):
|
| 239 |
+
reasoning = "local"
|
| 240 |
+
errs = [a.get("error") for a in client.audit if a.get("error")]
|
| 241 |
+
grade = grade or {}
|
| 242 |
+
grade.setdefault("basis", "")
|
| 243 |
+
grade["basis"] = (grade["basis"] +
|
| 244 |
+
f" SERV unavailable: {errs[0] if errs else 'all calls failed'}").strip()
|
| 245 |
+
if not grade.get("confidence"):
|
| 246 |
+
grade = _fallback_grade("c1", claim, evidence)
|
| 247 |
+
grade["basis"] += f" SERV unavailable: {errs[0] if errs else 'all calls failed'}"
|
| 248 |
+
audit = {"calls": len(client.audit),
|
| 249 |
+
"prompt_tokens": sum(a["prompt_tokens"] for a in client.audit),
|
| 250 |
+
"completion_tokens": sum(a["completion_tokens"] for a in client.audit),
|
| 251 |
+
"per_step": client.audit}
|
| 252 |
+
else:
|
| 253 |
+
grade = _fallback_grade("c1", claim, evidence)
|
| 254 |
+
reasoning, model = "local", None
|
| 255 |
+
audit = {"calls": 0, "prompt_tokens": 0, "completion_tokens": 0, "per_step": []}
|
| 256 |
+
return {
|
| 257 |
+
"question": claim, "decision": "", "domain": domain,
|
| 258 |
+
"reasoning": reasoning, "model": model, "sub_questions": [],
|
| 259 |
+
"evidence": [e.model_dump() for e in evidence],
|
| 260 |
+
"findings": [grade],
|
| 261 |
+
"synthesis": {"thesis": grade.get("basis", ""), "confidence": grade.get("confidence", "low"),
|
| 262 |
+
"key_findings": [], "caveats": [], "what_would_change_my_mind": [],
|
| 263 |
+
"next_checks": []},
|
| 264 |
+
"audit": audit, "skill": _skill_meta(domain),
|
| 265 |
+
"generated_at": datetime.now(timezone.utc).isoformat(),
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
def render_markdown(report: dict) -> str:
|
| 270 |
+
"""Render a report dict as markdown."""
|
| 271 |
+
s = report.get("synthesis", {})
|
| 272 |
+
reasoning = report.get("reasoning", "local")
|
| 273 |
+
model = report.get("model") or "none"
|
| 274 |
+
skill = report.get("skill") or {}
|
| 275 |
+
pack = skill.get("domain_pack")
|
| 276 |
+
if pack:
|
| 277 |
+
base = pack.rsplit("/", 1)[-1]
|
| 278 |
+
pack_name = pack.rsplit("/", 2)[-2] if base == "SKILL.md" else base.removesuffix(".md")
|
| 279 |
+
else:
|
| 280 |
+
pack_name = None
|
| 281 |
+
method_line = (f"**Method:** Seeri skill (domain pack: {pack_name or 'none'})"
|
| 282 |
+
if skill.get("dir") else "**Method:** built-in fallbacks (skill not found)")
|
| 283 |
+
lines = [
|
| 284 |
+
f"# Seeri Research Report",
|
| 285 |
+
f"",
|
| 286 |
+
f"**Question:** {report.get('question', '')}",
|
| 287 |
+
f"**Domain:** {report.get('domain', 'auto')} | **Confidence:** {s.get('confidence', 'low')} | "
|
| 288 |
+
f"**Reasoning:** {reasoning} ({model})",
|
| 289 |
+
method_line,
|
| 290 |
+
f"",
|
| 291 |
+
f"## Thesis",
|
| 292 |
+
f"",
|
| 293 |
+
s.get("thesis", ""),
|
| 294 |
+
f"",
|
| 295 |
+
f"## Key Findings",
|
| 296 |
+
f"",
|
| 297 |
+
]
|
| 298 |
+
for kf in s.get("key_findings", []):
|
| 299 |
+
lines.append(f"- {kf}")
|
| 300 |
+
lines += ["", "## Evidence Grid", "", "| id | claim | confidence | supporting | gaps |",
|
| 301 |
+
"| --- | --- | --- | --- | --- |"]
|
| 302 |
+
for f in report.get("findings", []):
|
| 303 |
+
sup = ", ".join(f.get("supporting", []))
|
| 304 |
+
gaps = "; ".join(f.get("gaps", []))
|
| 305 |
+
claim = str(f.get("claim", "")).replace("|", "\\|")[:120]
|
| 306 |
+
lines.append(f"| {f.get('id', '')} | {claim} | {f.get('confidence', '')} | {sup} | {gaps} |")
|
| 307 |
+
checklist = s.get("domain_checklist") or []
|
| 308 |
+
if checklist:
|
| 309 |
+
lines += ["", "## Domain checklist", "",
|
| 310 |
+
"| row | status | findings |", "| --- | --- | --- |"]
|
| 311 |
+
for row in checklist:
|
| 312 |
+
ids = ", ".join(row.get("finding_ids", []))
|
| 313 |
+
lines.append(f"| {row.get('row','')} | {row.get('status','')} | {ids} |")
|
| 314 |
+
lines += ["", "## Sources", ""]
|
| 315 |
+
for e in report.get("evidence", []):
|
| 316 |
+
lines.append(f"- `{e['id']}` [{e.get('category','?')}/{e.get('interest','?')}/{e.get('freshness','?')}] "
|
| 317 |
+
f"[{e.get('title','')[:80]}]({e.get('url','')})")
|
| 318 |
+
lines += ["", "## Caveats", ""]
|
| 319 |
+
for c in s.get("caveats", []):
|
| 320 |
+
lines.append(f"- {c}")
|
| 321 |
+
open_qs = s.get("open_questions") or []
|
| 322 |
+
if open_qs:
|
| 323 |
+
lines += ["", "## Open questions", ""]
|
| 324 |
+
for o in open_qs:
|
| 325 |
+
lines.append(f"- {o}")
|
| 326 |
+
lines += ["", "## What would change my mind", ""]
|
| 327 |
+
for w in s.get("what_would_change_my_mind", []):
|
| 328 |
+
lines.append(f"- {w}")
|
| 329 |
+
lines += ["", "## Next checks", ""]
|
| 330 |
+
for n in s.get("next_checks", []):
|
| 331 |
+
lines.append(f"- {n}")
|
| 332 |
+
a = report.get("audit", {})
|
| 333 |
+
lines += ["", "---",
|
| 334 |
+
f"Audit: {a.get('calls', 0)} SERV calls, {a.get('prompt_tokens', 0)} prompt / "
|
| 335 |
+
f"{a.get('completion_tokens', 0)} completion tokens.",
|
| 336 |
+
"Not investment, legal, or tax advice."]
|
| 337 |
+
return "\n".join(lines)
|
seeri/prompts.py
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""System and step prompts sent to SERV Reasoning.
|
| 2 |
+
|
| 3 |
+
Every request carries SYSTEM_CORE plus the Seeri skill method (loaded from skill/ at runtime)
|
| 4 |
+
and the domain pack for the subject. The skill files are the method; these prompts only wrap them.
|
| 5 |
+
"""
|
| 6 |
+
|
| 7 |
+
SYSTEM_CORE = (
|
| 8 |
+
"You are Seeri, a verifiable research analyst. You follow the Seeri skill method supplied below exactly: "
|
| 9 |
+
"its intake, workflow, source categories, confidence rules, boundaries, and the domain pack's verify-first "
|
| 10 |
+
"list, traps, and required grid rows. You reason over evidence supplied to you. "
|
| 11 |
+
"You never invent facts, numbers, sources, or URLs. If evidence is missing you say so and lower confidence. "
|
| 12 |
+
"Label project-reported and interested-party claims. Never give investment, legal, or tax advice. "
|
| 13 |
+
"Return only the JSON schema requested, with no prose before or after it."
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
SYSTEM_WITH_SKILL = """{core}
|
| 17 |
+
|
| 18 |
+
=== SEERI SKILL METHOD (skill/) ===
|
| 19 |
+
{method}
|
| 20 |
+
|
| 21 |
+
=== DOMAIN PACK: {domain} ===
|
| 22 |
+
{domain_pack}
|
| 23 |
+
=== END SKILL ==="""
|
| 24 |
+
|
| 25 |
+
DECOMPOSE = """Apply Step 1 (Decompose) and Step 2 (Assign Sources) of the skill's research workflow.
|
| 26 |
+
|
| 27 |
+
Question: {question}
|
| 28 |
+
Decision this informs: {decision}
|
| 29 |
+
Domain: {domain}
|
| 30 |
+
|
| 31 |
+
Return JSON:
|
| 32 |
+
{{
|
| 33 |
+
"sub_questions": [
|
| 34 |
+
{{"id": "q1", "text": "...", "evidence_type": "market data|protocol mechanics|regulatory|competitive|user demand|technical|counterargument|operational", "why_it_matters": "...", "source_categories": ["chain_state", "market_data"]}}
|
| 35 |
+
],
|
| 36 |
+
"highest_stakes": "q1",
|
| 37 |
+
"search_queries": ["...", "..."]
|
| 38 |
+
}}
|
| 39 |
+
|
| 40 |
+
Rules: 5 to 8 sub-questions, each targeting one evidence type from the workflow list. Include at least one counterargument sub-question.
|
| 41 |
+
If the domain pack lists required grid rows ("Output Additions"), make sure the sub-questions cover them.
|
| 42 |
+
source_categories must be drawn from [chain_state, price_feed, market_data, primary_docs, regulatory, news, social]; use at least three distinct categories across the set.
|
| 43 |
+
search_queries are 3 to 6 short web queries that would surface primary sources first (per the source map)."""
|
| 44 |
+
|
| 45 |
+
CLASSIFY_SOURCE = """Apply the skill's source map and Step 4 (Evaluate) to this source.
|
| 46 |
+
|
| 47 |
+
URL: {url}
|
| 48 |
+
Title: {title}
|
| 49 |
+
Excerpt: {excerpt}
|
| 50 |
+
|
| 51 |
+
Return JSON:
|
| 52 |
+
{{
|
| 53 |
+
"category": "chain_state|price_feed|market_data|primary_docs|regulatory|news|social|unknown",
|
| 54 |
+
"interest": "independent|interested|project_reported",
|
| 55 |
+
"freshness": "current|recent|stale|undated",
|
| 56 |
+
"relevance": 0.0,
|
| 57 |
+
"key_facts": ["..."],
|
| 58 |
+
"domain_trap": "name a trap from the domain pack this source could trigger, or empty string"
|
| 59 |
+
}}
|
| 60 |
+
|
| 61 |
+
relevance is 0 to 1 for the question: {question}. key_facts are verbatim or near-verbatim facts from the excerpt only."""
|
| 62 |
+
|
| 63 |
+
GRADE_CLAIM = """Apply the skill's confidence rules (evidence-grid.md) to grade this claim.
|
| 64 |
+
|
| 65 |
+
Claim: {claim}
|
| 66 |
+
|
| 67 |
+
Evidence items (JSON list): {evidence}
|
| 68 |
+
|
| 69 |
+
Return JSON:
|
| 70 |
+
{{
|
| 71 |
+
"confidence": "high|medium|low",
|
| 72 |
+
"basis": "one or two sentences naming which evidence items support the grade",
|
| 73 |
+
"supporting": ["evidence ids"],
|
| 74 |
+
"contradicting": ["evidence ids"],
|
| 75 |
+
"contradictions": "describe any conflict between items, or empty string",
|
| 76 |
+
"triangulated": true,
|
| 77 |
+
"gaps": ["what is missing to raise confidence"]
|
| 78 |
+
}}
|
| 79 |
+
|
| 80 |
+
Confidence rules: high requires a recent primary source plus independent corroboration across two source categories and no unresolved contradiction.
|
| 81 |
+
Medium is one strong source or multiple interested sources. Low is stale, indirect, contradicted, or incentive-heavy evidence.
|
| 82 |
+
triangulated is true only if supporting evidence spans at least two different categories.
|
| 83 |
+
If the evidence list is empty, confidence is low and gaps must say no evidence was gathered."""
|
| 84 |
+
|
| 85 |
+
SYNTHESIZE = """Apply Step 5 (Synthesize) of the skill's research workflow.
|
| 86 |
+
|
| 87 |
+
Question: {question}
|
| 88 |
+
Decision this informs: {decision}
|
| 89 |
+
Domain: {domain}
|
| 90 |
+
Graded findings (JSON list): {findings}
|
| 91 |
+
|
| 92 |
+
Return JSON:
|
| 93 |
+
{{
|
| 94 |
+
"thesis": "two to four sentences, defensible from the findings only",
|
| 95 |
+
"confidence": "high|medium|low",
|
| 96 |
+
"key_findings": ["one line each, with the finding id in brackets"],
|
| 97 |
+
"domain_checklist": [{{"row": "required grid row from the domain pack", "status": "verified|partial|missing", "finding_ids": ["q1"]}}],
|
| 98 |
+
"caveats": ["..."],
|
| 99 |
+
"what_would_change_my_mind": ["specific observable evidence"],
|
| 100 |
+
"open_questions": ["..."],
|
| 101 |
+
"next_checks": ["concrete next verification steps"]
|
| 102 |
+
}}
|
| 103 |
+
|
| 104 |
+
Overall confidence cannot exceed the confidence of the highest-stakes finding.
|
| 105 |
+
domain_checklist must list every required grid row from the domain pack's Output Additions (empty list for general domain).
|
| 106 |
+
Respect every item in the skill's Boundaries section. Do not introduce any fact not present in the findings."""
|
seeri/serv.py
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""SERV Reasoning client. Thin wrapper over the OpenServ inference API."""
|
| 2 |
+
|
| 3 |
+
import json
|
| 4 |
+
import os
|
| 5 |
+
import re
|
| 6 |
+
import threading
|
| 7 |
+
|
| 8 |
+
from . import skill_loader
|
| 9 |
+
from .prompts import SYSTEM_CORE, SYSTEM_WITH_SKILL
|
| 10 |
+
|
| 11 |
+
SERV_BASE_URL = "https://inference-api.openserv.ai/v1"
|
| 12 |
+
DEFAULT_MODEL = "gpt-5.4-mini"
|
| 13 |
+
MAX_COMPLETION_TOKENS = 6000
|
| 14 |
+
RETRY_PREFIX = ("This is a research methodology task about publicly available "
|
| 15 |
+
"onchain data. ")
|
| 16 |
+
_REFUSAL_RE = re.compile(r"^(i can't|i cannot|i'm unable|i am unable)", re.IGNORECASE)
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def available() -> bool:
|
| 20 |
+
"""Return True when SERV_API_KEY is configured."""
|
| 21 |
+
return bool(os.environ.get("SERV_API_KEY"))
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def _is_refusal(content: str) -> bool:
|
| 25 |
+
text = (content or "").strip()
|
| 26 |
+
return len(text) < 20 or bool(_REFUSAL_RE.match(text))
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
class ServClient:
|
| 30 |
+
"""Calls SERV Reasoning for each pipeline step and records an audit trail."""
|
| 31 |
+
|
| 32 |
+
def __init__(self, domain: str = "general") -> None:
|
| 33 |
+
from openai import OpenAI
|
| 34 |
+
|
| 35 |
+
self.model = os.environ.get("SERV_MODEL", DEFAULT_MODEL)
|
| 36 |
+
self.skill_loaded = bool(skill_loader.skill_dir())
|
| 37 |
+
self.system = SYSTEM_WITH_SKILL.format(
|
| 38 |
+
core=SYSTEM_CORE,
|
| 39 |
+
method=skill_loader.method_context(),
|
| 40 |
+
domain=domain,
|
| 41 |
+
domain_pack=skill_loader.domain_context(domain) or "(general: no domain pack)",
|
| 42 |
+
)
|
| 43 |
+
self.client = OpenAI(base_url=SERV_BASE_URL, api_key=os.environ["SERV_API_KEY"])
|
| 44 |
+
self.audit: list[dict] = []
|
| 45 |
+
self.errors: int = 0
|
| 46 |
+
self._lock = threading.Lock()
|
| 47 |
+
|
| 48 |
+
def reason(self, step: str, user_prompt: str) -> dict:
|
| 49 |
+
"""Run one SERV reasoning step and return the parsed JSON object."""
|
| 50 |
+
last_error = None
|
| 51 |
+
for attempt in range(2):
|
| 52 |
+
prompt = user_prompt if attempt == 0 else (
|
| 53 |
+
RETRY_PREFIX + user_prompt + "\n\nReturn valid JSON only.")
|
| 54 |
+
try:
|
| 55 |
+
content, pt, ct = self._call(prompt)
|
| 56 |
+
except Exception as e:
|
| 57 |
+
last_error = str(e)[:200]
|
| 58 |
+
self._record(step, 0, 0, False, last_error)
|
| 59 |
+
continue
|
| 60 |
+
if _is_refusal(content):
|
| 61 |
+
last_error = f"refusal: {content.strip()[:80]}"
|
| 62 |
+
self._record(step, pt, ct, False, last_error)
|
| 63 |
+
continue
|
| 64 |
+
parsed = _parse_json(content)
|
| 65 |
+
self._record(step, pt, ct, parsed is not None,
|
| 66 |
+
None if parsed is not None else "json_parse_failed")
|
| 67 |
+
if parsed is not None:
|
| 68 |
+
return {"data": parsed, "validated": True}
|
| 69 |
+
last_error = "json_parse_failed"
|
| 70 |
+
return {"data": {}, "validated": False, "error": last_error}
|
| 71 |
+
|
| 72 |
+
def _record(self, step: str, pt: int, ct: int, validated: bool, error) -> None:
|
| 73 |
+
entry = {"step": step, "model": self.model, "prompt_tokens": pt,
|
| 74 |
+
"completion_tokens": ct, "validated": validated}
|
| 75 |
+
if error:
|
| 76 |
+
entry["error"] = error
|
| 77 |
+
with self._lock:
|
| 78 |
+
self.audit.append(entry)
|
| 79 |
+
if not validated:
|
| 80 |
+
self.errors += 1
|
| 81 |
+
|
| 82 |
+
def _call(self, user_prompt: str):
|
| 83 |
+
resp = self.client.chat.completions.create(
|
| 84 |
+
model=self.model,
|
| 85 |
+
temperature=0.2,
|
| 86 |
+
max_completion_tokens=MAX_COMPLETION_TOKENS,
|
| 87 |
+
messages=[
|
| 88 |
+
{"role": "system", "content": self.system},
|
| 89 |
+
{"role": "user", "content": user_prompt},
|
| 90 |
+
],
|
| 91 |
+
)
|
| 92 |
+
usage = resp.usage
|
| 93 |
+
pt = getattr(usage, "prompt_tokens", 0) or 0
|
| 94 |
+
ct = getattr(usage, "completion_tokens", 0) or 0
|
| 95 |
+
return resp.choices[0].message.content or "", pt, ct
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def _parse_json(text: str):
|
| 99 |
+
text = text.strip()
|
| 100 |
+
text = re.sub(r"^```(?:json)?\s*", "", text)
|
| 101 |
+
text = re.sub(r"\s*```$", "", text)
|
| 102 |
+
try:
|
| 103 |
+
return json.loads(text)
|
| 104 |
+
except (json.JSONDecodeError, TypeError):
|
| 105 |
+
match = re.search(r"\{.*\}", text, re.DOTALL)
|
| 106 |
+
if match:
|
| 107 |
+
try:
|
| 108 |
+
return json.loads(match.group(0))
|
| 109 |
+
except json.JSONDecodeError:
|
| 110 |
+
return None
|
| 111 |
+
return None
|
seeri/skill_loader.py
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Loads the Seeri skill (skill/ directory) so the MCP server reasons with the skill's own method.
|
| 2 |
+
|
| 3 |
+
The skill files are the source of truth. This module reads them at runtime and hands them to
|
| 4 |
+
SERV as method context, so a change to the skill changes how the server researches.
|
| 5 |
+
"""
|
| 6 |
+
|
| 7 |
+
import os
|
| 8 |
+
import re
|
| 9 |
+
from functools import lru_cache
|
| 10 |
+
|
| 11 |
+
# Repo layout: <root>/skill and <root>/mcp/seeri/skill_loader.py. Vendored copy for the Space: <mcp>/skill.
|
| 12 |
+
_HERE = os.path.dirname(os.path.abspath(__file__))
|
| 13 |
+
_CANDIDATES = [
|
| 14 |
+
os.environ.get("SEERI_SKILL_DIR", ""),
|
| 15 |
+
os.path.join(_HERE, "..", "skill"),
|
| 16 |
+
os.path.join(_HERE, "..", "..", "skill"),
|
| 17 |
+
]
|
| 18 |
+
|
| 19 |
+
METHOD_FILES = ["SKILL.md", "research-workflow.md", "source-map.md", "evidence-grid.md", "reasoning-serv.md"]
|
| 20 |
+
SYNTHESIS_FILES = ["article-synthesis.md"]
|
| 21 |
+
|
| 22 |
+
DOMAIN_FILES = {
|
| 23 |
+
"robinhood-chain": "domains/robinhood-chain.md",
|
| 24 |
+
"agentkit-base": "domains/agentkit-base.md",
|
| 25 |
+
"ixs-rwa-vaults": "domains/ixs-rwa-vaults.md",
|
| 26 |
+
"memecoin-markets": "domains/memecoin-markets/SKILL.md",
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
# Domain keyword routing, mirrors the "Domain Packs" section of SKILL.md.
|
| 30 |
+
DOMAIN_KEYWORDS = {
|
| 31 |
+
"robinhood-chain": r"robinhood|\bhood\b|stock token",
|
| 32 |
+
"agentkit-base": r"agentkit|\bbase\b|coinbase",
|
| 33 |
+
"ixs-rwa-vaults": r"\bixs\b|\brwa\b|vault|treasur",
|
| 34 |
+
"memecoin-markets": r"pump|memecoin|meme coin|launch|bundl|snipe",
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def skill_dir() -> str | None:
|
| 39 |
+
for c in _CANDIDATES:
|
| 40 |
+
if c and os.path.isfile(os.path.join(c, "SKILL.md")):
|
| 41 |
+
return os.path.abspath(c)
|
| 42 |
+
return None
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def _read(rel: str) -> str:
|
| 46 |
+
d = skill_dir()
|
| 47 |
+
if not d:
|
| 48 |
+
return ""
|
| 49 |
+
try:
|
| 50 |
+
with open(os.path.join(d, rel), encoding="utf-8") as f:
|
| 51 |
+
return f.read()
|
| 52 |
+
except OSError:
|
| 53 |
+
return ""
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
def _strip_frontmatter(text: str) -> str:
|
| 57 |
+
return re.sub(r"\A---\n.*?\n---\n", "", text, flags=re.DOTALL)
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def detect_domain(text: str) -> str:
|
| 61 |
+
t = text.lower()
|
| 62 |
+
for name, pattern in DOMAIN_KEYWORDS.items():
|
| 63 |
+
if re.search(pattern, t):
|
| 64 |
+
return name
|
| 65 |
+
return "general"
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
@lru_cache(maxsize=None)
|
| 69 |
+
def method_context() -> str:
|
| 70 |
+
"""The skill's core method: SKILL.md, workflow, source map, evidence grid, SERV rules."""
|
| 71 |
+
parts = []
|
| 72 |
+
for rel in METHOD_FILES:
|
| 73 |
+
body = _strip_frontmatter(_read(rel)).strip()
|
| 74 |
+
if body:
|
| 75 |
+
parts.append(f"<!-- skill/{rel} -->\n{body}")
|
| 76 |
+
return "\n\n".join(parts)
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
@lru_cache(maxsize=None)
|
| 80 |
+
def domain_context(domain: str) -> str:
|
| 81 |
+
"""The domain pack for a subject area, or empty for general."""
|
| 82 |
+
rel = DOMAIN_FILES.get(domain)
|
| 83 |
+
if not rel:
|
| 84 |
+
return ""
|
| 85 |
+
body = _strip_frontmatter(_read(rel)).strip()
|
| 86 |
+
return f"<!-- skill/{rel} -->\n{body}" if body else ""
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
@lru_cache(maxsize=None)
|
| 90 |
+
def synthesis_context() -> str:
|
| 91 |
+
parts = [_strip_frontmatter(_read(rel)).strip() for rel in SYNTHESIS_FILES]
|
| 92 |
+
return "\n\n".join(p for p in parts if p)
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def domain_output_rows(domain: str) -> list[str]:
|
| 96 |
+
"""Rows the domain pack says the evidence grid must include ("Output Additions" section)."""
|
| 97 |
+
ctx = domain_context(domain)
|
| 98 |
+
m = re.search(r"## Output Additions\n(.*?)(?:\n## |\Z)", ctx, flags=re.DOTALL)
|
| 99 |
+
if not m:
|
| 100 |
+
return []
|
| 101 |
+
text = m.group(1)
|
| 102 |
+
rows = re.search(r"rows for:\s*(.*?)(?:\.\s|\.$|\n\n)", text, flags=re.DOTALL)
|
| 103 |
+
if not rows:
|
| 104 |
+
return []
|
| 105 |
+
items = re.split(r",\s*(?![^()]*\))", rows.group(1).replace("\n", " "))
|
| 106 |
+
out = []
|
| 107 |
+
for i in items:
|
| 108 |
+
i = re.sub(r"^and\s+", "", i.strip(" ."))
|
| 109 |
+
if i:
|
| 110 |
+
out.append(i)
|
| 111 |
+
return out
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
def list_files() -> list[str]:
|
| 115 |
+
d = skill_dir()
|
| 116 |
+
if not d:
|
| 117 |
+
return []
|
| 118 |
+
out = []
|
| 119 |
+
for root, _, files in os.walk(d):
|
| 120 |
+
for fn in files:
|
| 121 |
+
if fn.endswith(".md"):
|
| 122 |
+
out.append(os.path.relpath(os.path.join(root, fn), d))
|
| 123 |
+
return sorted(out)
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
def read_file(rel: str) -> str:
|
| 127 |
+
rel = rel.strip().lstrip("/")
|
| 128 |
+
if ".." in rel.split("/") or not rel.endswith(".md"):
|
| 129 |
+
return ""
|
| 130 |
+
return _read(rel)
|
seeri/sources.py
ADDED
|
@@ -0,0 +1,460 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Evidence fetchers. All free, no API keys required."""
|
| 2 |
+
|
| 3 |
+
import re
|
| 4 |
+
import time
|
| 5 |
+
from datetime import datetime, timezone
|
| 6 |
+
from html.parser import HTMLParser
|
| 7 |
+
|
| 8 |
+
import httpx
|
| 9 |
+
from pydantic import BaseModel, Field
|
| 10 |
+
|
| 11 |
+
UA = "Seeri-Research/1.0 (+https://huggingface.co/spaces/pima5/seeri)"
|
| 12 |
+
TIMEOUT = httpx.Timeout(10.0)
|
| 13 |
+
|
| 14 |
+
ROBINHOOD_MAINNET = "https://robinhoodchain.blockscout.com/api/v2"
|
| 15 |
+
ROBINHOOD_TESTNET = "https://explorer.testnet.chain.robinhood.com/api/v2"
|
| 16 |
+
ROBINHOOD_CHAIN_ID = 4663
|
| 17 |
+
ROBINHOOD_EXPLORER = "https://robinhoodchain.blockscout.com"
|
| 18 |
+
ROBINHOOD_RPC = "https://rpc.mainnet.chain.robinhood.com"
|
| 19 |
+
GECKO_BASE = "https://api.geckoterminal.com/api/v2"
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
class Evidence(BaseModel):
|
| 23 |
+
"""A single piece of fetched evidence."""
|
| 24 |
+
|
| 25 |
+
id: str
|
| 26 |
+
url: str
|
| 27 |
+
title: str
|
| 28 |
+
excerpt: str
|
| 29 |
+
category: str = "unknown"
|
| 30 |
+
interest: str = "independent"
|
| 31 |
+
freshness: str = "undated"
|
| 32 |
+
relevance: float = 0.0
|
| 33 |
+
fetched_at: str = Field(default_factory=lambda: datetime.now(timezone.utc).isoformat())
|
| 34 |
+
raw: dict | None = None
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
class _TextExtractor(HTMLParser):
|
| 38 |
+
def __init__(self) -> None:
|
| 39 |
+
super().__init__()
|
| 40 |
+
self.parts: list[str] = []
|
| 41 |
+
self._skip = 0
|
| 42 |
+
|
| 43 |
+
def handle_starttag(self, tag, attrs):
|
| 44 |
+
if tag in ("script", "style", "noscript"):
|
| 45 |
+
self._skip += 1
|
| 46 |
+
|
| 47 |
+
def handle_endtag(self, tag):
|
| 48 |
+
if tag in ("script", "style", "noscript") and self._skip:
|
| 49 |
+
self._skip -= 1
|
| 50 |
+
|
| 51 |
+
def handle_data(self, data):
|
| 52 |
+
if not self._skip:
|
| 53 |
+
self.parts.append(data)
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
def _html_to_text(html: str) -> str:
|
| 57 |
+
parser = _TextExtractor()
|
| 58 |
+
try:
|
| 59 |
+
parser.feed(html)
|
| 60 |
+
except Exception:
|
| 61 |
+
pass
|
| 62 |
+
return re.sub(r"\s+", " ", " ".join(parser.parts)).strip()
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
def _get(url: str, **kwargs) -> httpx.Response:
|
| 66 |
+
return httpx.get(url, timeout=TIMEOUT, follow_redirects=True,
|
| 67 |
+
headers={"User-Agent": UA}, **kwargs)
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
_GT_CACHE: dict[str, tuple[float, object]] = {}
|
| 71 |
+
_GT_TTL = 300.0
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
def _gecko_get(path: str, params: dict | None = None):
|
| 75 |
+
"""GeckoTerminal GET with a 300s in-process cache and one 429 retry."""
|
| 76 |
+
url = f"{GECKO_BASE}{path}"
|
| 77 |
+
key = url + "?" + "&".join(f"{k}={v}" for k, v in sorted((params or {}).items()))
|
| 78 |
+
hit = _GT_CACHE.get(key)
|
| 79 |
+
if hit and time.time() - hit[0] < _GT_TTL:
|
| 80 |
+
return hit[1]
|
| 81 |
+
data = None
|
| 82 |
+
for attempt in range(2):
|
| 83 |
+
try:
|
| 84 |
+
r = _get(url, params=params)
|
| 85 |
+
if r.status_code == 429:
|
| 86 |
+
if attempt == 0:
|
| 87 |
+
time.sleep(2)
|
| 88 |
+
continue
|
| 89 |
+
break
|
| 90 |
+
if r.status_code == 200:
|
| 91 |
+
data = r.json()
|
| 92 |
+
break
|
| 93 |
+
except Exception:
|
| 94 |
+
break
|
| 95 |
+
if data is not None:
|
| 96 |
+
_GT_CACHE[key] = (time.time(), data)
|
| 97 |
+
return data
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def _rpc_call(method: str, params: list):
|
| 101 |
+
try:
|
| 102 |
+
r = httpx.post(ROBINHOOD_RPC, timeout=TIMEOUT,
|
| 103 |
+
json={"jsonrpc": "2.0", "id": 1, "method": method, "params": params})
|
| 104 |
+
if r.status_code == 200:
|
| 105 |
+
return r.json().get("result")
|
| 106 |
+
except Exception:
|
| 107 |
+
pass
|
| 108 |
+
return None
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
def _eth_call(address: str, selector: str):
|
| 112 |
+
return _rpc_call("eth_call", [{"to": address, "data": selector}, "latest"])
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def _decode_uint(hexdata) -> int | None:
|
| 116 |
+
if not hexdata or hexdata == "0x":
|
| 117 |
+
return None
|
| 118 |
+
try:
|
| 119 |
+
return int(hexdata, 16)
|
| 120 |
+
except (ValueError, TypeError):
|
| 121 |
+
return None
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
def _decode_abi_string(hexdata) -> str | None:
|
| 125 |
+
"""Decode an ABI-encoded string (or bytes32-style short string)."""
|
| 126 |
+
if not hexdata or hexdata == "0x":
|
| 127 |
+
return None
|
| 128 |
+
raw = hexdata[2:] if hexdata.startswith("0x") else hexdata
|
| 129 |
+
try:
|
| 130 |
+
if len(raw) >= 128:
|
| 131 |
+
strlen = int(raw[64:128], 16)
|
| 132 |
+
return bytes.fromhex(raw[128:128 + strlen * 2]).decode("utf-8", "replace")
|
| 133 |
+
if len(raw) == 64:
|
| 134 |
+
return bytes.fromhex(raw).rstrip(b"\x00").decode("utf-8", "replace")
|
| 135 |
+
strlen = int(raw[:64], 16)
|
| 136 |
+
return bytes.fromhex(raw[64:64 + strlen * 2]).decode("utf-8", "replace")
|
| 137 |
+
except (ValueError, IndexError):
|
| 138 |
+
return None
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
def _token_identity(address: str) -> dict | None:
|
| 142 |
+
"""ERC-20 identity via JSON-RPC eth_call/eth_getCode on Robinhood mainnet."""
|
| 143 |
+
code = _rpc_call("eth_getCode", [address, "latest"])
|
| 144 |
+
if not code or code == "0x":
|
| 145 |
+
return None
|
| 146 |
+
name = _decode_abi_string(_eth_call(address, "0x06fdde03")) or ""
|
| 147 |
+
symbol = _decode_abi_string(_eth_call(address, "0x95d89b41")) or ""
|
| 148 |
+
decimals = _decode_uint(_eth_call(address, "0x313ce567"))
|
| 149 |
+
supply = _decode_uint(_eth_call(address, "0x18160ddd"))
|
| 150 |
+
human = None
|
| 151 |
+
if supply is not None:
|
| 152 |
+
human = supply / (10 ** decimals) if decimals else float(supply)
|
| 153 |
+
return {"address": address, "name": name, "symbol": symbol,
|
| 154 |
+
"decimals": decimals, "total_supply": supply, "total_supply_human": human}
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
def web_search(query: str, max_results: int = 6) -> list[Evidence]:
|
| 158 |
+
"""DuckDuckGo text search, then fetch and strip each result page."""
|
| 159 |
+
try:
|
| 160 |
+
try:
|
| 161 |
+
from ddgs import DDGS
|
| 162 |
+
except ImportError:
|
| 163 |
+
from duckduckgo_search import DDGS
|
| 164 |
+
with DDGS() as ddgs:
|
| 165 |
+
hits = list(ddgs.text(query, max_results=max_results))
|
| 166 |
+
except Exception:
|
| 167 |
+
return []
|
| 168 |
+
def _fetch_excerpt(hit) -> str:
|
| 169 |
+
url = hit.get("href") or hit.get("link") or ""
|
| 170 |
+
try:
|
| 171 |
+
page = _get(url)
|
| 172 |
+
ct = page.headers.get("content-type", "")
|
| 173 |
+
if "text" in ct or "html" in ct:
|
| 174 |
+
text = _html_to_text(page.text)
|
| 175 |
+
if text:
|
| 176 |
+
return text[:1500]
|
| 177 |
+
except Exception:
|
| 178 |
+
pass
|
| 179 |
+
return hit.get("body") or ""
|
| 180 |
+
|
| 181 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 182 |
+
with ThreadPoolExecutor(max_workers=6) as pool:
|
| 183 |
+
excerpts = list(pool.map(_fetch_excerpt, hits))
|
| 184 |
+
out: list[Evidence] = []
|
| 185 |
+
for i, (hit, excerpt) in enumerate(zip(hits, excerpts)):
|
| 186 |
+
url = hit.get("href") or hit.get("link") or ""
|
| 187 |
+
out.append(Evidence(
|
| 188 |
+
id=f"web{i+1}", url=url, title=hit.get("title") or url, excerpt=excerpt[:1500],
|
| 189 |
+
category="news", interest="independent", freshness="undated",
|
| 190 |
+
))
|
| 191 |
+
return out
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
def _robinhood_blockscout(query: str, base: str) -> list[Evidence]:
|
| 195 |
+
out: list[Evidence] = []
|
| 196 |
+
tag = f"Robinhood Chain (chain id {ROBINHOOD_CHAIN_ID}, explorer {ROBINHOOD_EXPLORER})"
|
| 197 |
+
|
| 198 |
+
def ev(eid, url, title, excerpt, raw=None):
|
| 199 |
+
out.append(Evidence(id=eid, url=url, title=title,
|
| 200 |
+
excerpt=f"[{tag}] {excerpt}"[:1500],
|
| 201 |
+
category="chain_state", interest="independent",
|
| 202 |
+
freshness="current", raw=raw))
|
| 203 |
+
|
| 204 |
+
if re.fullmatch(r"0x[a-fA-F0-9]{40}", query.strip()):
|
| 205 |
+
addr = query.strip()
|
| 206 |
+
try:
|
| 207 |
+
r = _get(f"{base}/tokens/{addr}")
|
| 208 |
+
if r.status_code == 200:
|
| 209 |
+
d = r.json()
|
| 210 |
+
ev("rh_token", f"{ROBINHOOD_EXPLORER}/token/{addr}",
|
| 211 |
+
f"Token {d.get('name', '?')} ({d.get('symbol', '?')})",
|
| 212 |
+
f"name={d.get('name')} symbol={d.get('symbol')} decimals={d.get('decimals')} "
|
| 213 |
+
f"total_supply={d.get('total_supply')} holders={d.get('holders')} "
|
| 214 |
+
f"address={addr}", d)
|
| 215 |
+
except Exception:
|
| 216 |
+
pass
|
| 217 |
+
try:
|
| 218 |
+
r = _get(f"{base}/tokens/{addr}/counters")
|
| 219 |
+
if r.status_code == 200:
|
| 220 |
+
d = r.json()
|
| 221 |
+
ev("rh_counters", f"{ROBINHOOD_EXPLORER}/token/{addr}",
|
| 222 |
+
f"Token counters for {addr[:10]}...",
|
| 223 |
+
f"transfers={d.get('transfers_count')} holders={d.get('token_holders_count')}", d)
|
| 224 |
+
except Exception:
|
| 225 |
+
pass
|
| 226 |
+
try:
|
| 227 |
+
r = _get(f"{base}/addresses/{addr}")
|
| 228 |
+
if r.status_code == 200:
|
| 229 |
+
d = r.json()
|
| 230 |
+
ev("rh_address", f"{ROBINHOOD_EXPLORER}/address/{addr}",
|
| 231 |
+
f"Address {addr[:10]}...",
|
| 232 |
+
f"is_contract={d.get('is_contract')} balance={d.get('coin_balance')} "
|
| 233 |
+
f"tx_count={d.get('transactions_count', d.get('tx_count'))}", d)
|
| 234 |
+
except Exception:
|
| 235 |
+
pass
|
| 236 |
+
return out
|
| 237 |
+
|
| 238 |
+
try:
|
| 239 |
+
r = _get(f"{base}/search", params={"q": query})
|
| 240 |
+
if r.status_code != 200:
|
| 241 |
+
return out
|
| 242 |
+
data = r.json()
|
| 243 |
+
items = data.get("items", data if isinstance(data, list) else [])
|
| 244 |
+
tokens = [it for it in items if it.get("type") in ("token", None)
|
| 245 |
+
and (it.get("symbol") or it.get("name") or it.get("address"))]
|
| 246 |
+
note = f"{len(tokens)} tokens match this ticker. " if len(tokens) > 1 else ""
|
| 247 |
+
for i, it in enumerate(tokens[:8]):
|
| 248 |
+
addr = it.get("address") or it.get("address_hash") or ""
|
| 249 |
+
ev(f"rh_search{i+1}",
|
| 250 |
+
f"{ROBINHOOD_EXPLORER}/token/{addr}" if addr else ROBINHOOD_EXPLORER,
|
| 251 |
+
f"{it.get('name', '?')} ({it.get('symbol', '?')})",
|
| 252 |
+
f"{note}name={it.get('name')} symbol={it.get('symbol')} "
|
| 253 |
+
f"address={addr} type={it.get('type')} "
|
| 254 |
+
f"total_supply={it.get('total_supply')} holders={it.get('holders_count', it.get('holders'))}", it)
|
| 255 |
+
except Exception:
|
| 256 |
+
pass
|
| 257 |
+
return out
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
def _robinhood_gecko_pools(query: str) -> list[dict]:
|
| 261 |
+
"""Distinct base-token addresses + pool stats from GeckoTerminal search."""
|
| 262 |
+
data = _gecko_get("/search/pools", params={"query": query, "network": "robinhood"})
|
| 263 |
+
if not data:
|
| 264 |
+
return []
|
| 265 |
+
seen: dict[str, dict] = {}
|
| 266 |
+
for p in data.get("data", []):
|
| 267 |
+
a = p.get("attributes", {})
|
| 268 |
+
base_id = (p.get("relationships", {}).get("base_token", {})
|
| 269 |
+
.get("data", {}) or {}).get("id", "")
|
| 270 |
+
addr = base_id.split("_", 1)[1] if "_" in base_id else base_id
|
| 271 |
+
if not re.fullmatch(r"0x[a-fA-F0-9]{40}", addr or "") or addr in seen:
|
| 272 |
+
continue
|
| 273 |
+
seen[addr] = {
|
| 274 |
+
"address": addr,
|
| 275 |
+
"pool_name": a.get("name", "?"),
|
| 276 |
+
"pool_address": a.get("address", ""),
|
| 277 |
+
"reserve_in_usd": a.get("reserve_in_usd"),
|
| 278 |
+
"volume_h24": (a.get("volume_usd") or {}).get("h24"),
|
| 279 |
+
}
|
| 280 |
+
if len(seen) >= 6:
|
| 281 |
+
break
|
| 282 |
+
return list(seen.values())
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
def robinhood_token(query: str, network: str = "mainnet") -> list[Evidence]:
|
| 286 |
+
"""Token dossier on Robinhood Chain. Blockscout first; GeckoTerminal+RPC fallback."""
|
| 287 |
+
base = ROBINHOOD_TESTNET if network == "testnet" else ROBINHOOD_MAINNET
|
| 288 |
+
tag = f"Robinhood Chain (chain id {ROBINHOOD_CHAIN_ID}, explorer {ROBINHOOD_EXPLORER})"
|
| 289 |
+
|
| 290 |
+
out = _robinhood_blockscout(query, base)
|
| 291 |
+
if out or network == "testnet":
|
| 292 |
+
return out
|
| 293 |
+
|
| 294 |
+
# Mainnet fallback: Blockscout is Cloudflare-gated, use GeckoTerminal + RPC.
|
| 295 |
+
is_addr = bool(re.fullmatch(r"0x[a-fA-F0-9]{40}", query.strip()))
|
| 296 |
+
if is_addr:
|
| 297 |
+
addr = query.strip()
|
| 298 |
+
ident = _token_identity(addr)
|
| 299 |
+
if not ident:
|
| 300 |
+
return []
|
| 301 |
+
excerpt = (f"symbol={ident['symbol']} name={ident['name']} address={addr} "
|
| 302 |
+
f"decimals={ident['decimals']} totalSupply={ident['total_supply_human']} "
|
| 303 |
+
f"[{tag}]")
|
| 304 |
+
data = _gecko_get(f"/networks/robinhood/tokens/{addr}")
|
| 305 |
+
if data:
|
| 306 |
+
ga = data.get("data", {}).get("attributes", {})
|
| 307 |
+
excerpt += (f" price_usd={ga.get('price_usd')} fdv_usd={ga.get('fdv_usd')} "
|
| 308 |
+
f"volume_24h={(ga.get('volume_usd') or {}).get('h24')}")
|
| 309 |
+
ident.update({"price_usd": ga.get("price_usd"), "fdv_usd": ga.get("fdv_usd")})
|
| 310 |
+
return [Evidence(id="rh_token", url=f"{ROBINHOOD_EXPLORER}/token/{addr}",
|
| 311 |
+
title=f"{ident['name'] or '?'} ({ident['symbol'] or '?'}) on Robinhood Chain",
|
| 312 |
+
excerpt=excerpt[:1500], category="chain_state",
|
| 313 |
+
interest="independent", freshness="current", raw=ident)]
|
| 314 |
+
|
| 315 |
+
pools = _robinhood_gecko_pools(query)
|
| 316 |
+
from concurrent.futures import ThreadPoolExecutor
|
| 317 |
+
with ThreadPoolExecutor(max_workers=6) as pool:
|
| 318 |
+
idents = list(pool.map(lambda p: _token_identity(p["address"]), pools))
|
| 319 |
+
tokens = [(p, i) for p, i in zip(pools, idents) if i]
|
| 320 |
+
if not tokens:
|
| 321 |
+
return []
|
| 322 |
+
|
| 323 |
+
collision = ""
|
| 324 |
+
if len(tokens) > 1:
|
| 325 |
+
members = ", ".join(f"{i['symbol'] or '?'} ({i['address'][:10]}…)" for _, i in tokens[:3])
|
| 326 |
+
collision = (f"TICKER COLLISION: {len(tokens)} distinct tokens match '{query}' "
|
| 327 |
+
f"on Robinhood Chain: {members}, …. ")
|
| 328 |
+
full = ", ".join(f"{i['symbol'] or '?'} ({i['address']})" for _, i in tokens)
|
| 329 |
+
out.append(Evidence(
|
| 330 |
+
id="collision", url=ROBINHOOD_EXPLORER,
|
| 331 |
+
title=f"Ticker collision: {len(tokens)} tokens match '{query}'",
|
| 332 |
+
excerpt=f"TICKER COLLISION: {len(tokens)} distinct tokens match '{query}' "
|
| 333 |
+
f"on Robinhood Chain: {full}. "
|
| 334 |
+
"Verify the official issuer registry before treating any match as canonical.",
|
| 335 |
+
category="chain_state", interest="independent", freshness="current",
|
| 336 |
+
raw={"matches": [i for _, i in tokens]}))
|
| 337 |
+
for idx, (pool, ident) in enumerate(tokens):
|
| 338 |
+
excerpt = (collision +
|
| 339 |
+
f"symbol={ident['symbol']} name={ident['name']} address={ident['address']} "
|
| 340 |
+
f"decimals={ident['decimals']} totalSupply={ident['total_supply_human']} "
|
| 341 |
+
f"pool={pool['pool_name']} liquidity_usd={pool['reserve_in_usd']} "
|
| 342 |
+
f"volume_24h_usd={pool['volume_h24']} pools_seen={len(tokens)} [{tag}]")
|
| 343 |
+
out.append(Evidence(
|
| 344 |
+
id=f"rh_token{idx+1}", url=f"{ROBINHOOD_EXPLORER}/token/{ident['address']}",
|
| 345 |
+
title=f"{ident['name'] or '?'} ({ident['symbol'] or '?'}) on Robinhood Chain",
|
| 346 |
+
excerpt=excerpt[:1500], category="chain_state",
|
| 347 |
+
interest="independent", freshness="current",
|
| 348 |
+
raw={**ident, **pool}))
|
| 349 |
+
return out
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
def geckoterminal_token(network_slug: str, address: str) -> list[Evidence]:
|
| 353 |
+
"""Token info and top pools from GeckoTerminal."""
|
| 354 |
+
if network_slug == "robinhood":
|
| 355 |
+
slug = _gecko_slug()
|
| 356 |
+
if not slug:
|
| 357 |
+
return []
|
| 358 |
+
network_slug = slug
|
| 359 |
+
out: list[Evidence] = []
|
| 360 |
+
data = _gecko_get(f"/networks/{network_slug}/tokens/{address}")
|
| 361 |
+
if data:
|
| 362 |
+
a = data.get("data", {}).get("attributes", {})
|
| 363 |
+
out.append(Evidence(
|
| 364 |
+
id="gt_token",
|
| 365 |
+
url=f"https://www.geckoterminal.com/{network_slug}/tokens/{address}",
|
| 366 |
+
title=f"GeckoTerminal: {a.get('name', '?')} ({a.get('symbol', '?')})",
|
| 367 |
+
excerpt=f"price_usd={a.get('price_usd')} fdv={a.get('fdv_usd')} "
|
| 368 |
+
f"market_cap={a.get('market_cap_usd')} volume_24h={(a.get('volume_usd') or {}).get('h24')} "
|
| 369 |
+
f"network={network_slug}"[:1500],
|
| 370 |
+
category="market_data", interest="independent", freshness="current",
|
| 371 |
+
raw=a))
|
| 372 |
+
data = _gecko_get(f"/networks/{network_slug}/tokens/{address}/pools")
|
| 373 |
+
if data:
|
| 374 |
+
for i, p in enumerate(data.get("data", [])[:3]):
|
| 375 |
+
a = p.get("attributes", {})
|
| 376 |
+
out.append(Evidence(
|
| 377 |
+
id=f"gt_pool{i+1}",
|
| 378 |
+
url=f"https://www.geckoterminal.com/{network_slug}/pools/{a.get('address', p.get('id', ''))}",
|
| 379 |
+
title=f"Pool: {a.get('name', '?')}",
|
| 380 |
+
excerpt=f"pool={a.get('name')} reserve_usd={a.get('reserve_in_usd')} "
|
| 381 |
+
f"volume_24h={(a.get('volume_usd') or {}).get('h24')} "
|
| 382 |
+
f"price_change_24h={(a.get('price_change_percentage') or {}).get('h24')}"[:1500],
|
| 383 |
+
category="market_data", interest="independent", freshness="current",
|
| 384 |
+
raw=a))
|
| 385 |
+
return out
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
_GECKO_SLUG_CACHE: dict[str, str | None] = {}
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
def _gecko_slug() -> str | None:
|
| 392 |
+
if "robinhood" in _GECKO_SLUG_CACHE:
|
| 393 |
+
return _GECKO_SLUG_CACHE["robinhood"]
|
| 394 |
+
slug = "robinhood"
|
| 395 |
+
data = _gecko_get("/networks/robinhood")
|
| 396 |
+
if not data or not data.get("data"):
|
| 397 |
+
slug = None
|
| 398 |
+
try:
|
| 399 |
+
for page in range(1, 6):
|
| 400 |
+
d = _gecko_get("/networks", params={"page": page})
|
| 401 |
+
nets = (d or {}).get("data", [])
|
| 402 |
+
for n in nets:
|
| 403 |
+
if "robinhood" in (n.get("attributes", {}).get("name") or n.get("id", "")).lower():
|
| 404 |
+
slug = n["id"]
|
| 405 |
+
break
|
| 406 |
+
if slug or not nets:
|
| 407 |
+
break
|
| 408 |
+
except Exception:
|
| 409 |
+
pass
|
| 410 |
+
_GECKO_SLUG_CACHE["robinhood"] = slug
|
| 411 |
+
return slug
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
def defillama_protocol(name: str) -> list[Evidence]:
|
| 415 |
+
"""Protocol TVL/chains from DefiLlama, plus chain-TVL lookup."""
|
| 416 |
+
out: list[Evidence] = []
|
| 417 |
+
q = name.strip().lower()
|
| 418 |
+
try:
|
| 419 |
+
r = _get("https://api.llama.fi/protocols")
|
| 420 |
+
if r.status_code == 200:
|
| 421 |
+
protos = r.json()
|
| 422 |
+
match = next((p for p in protos if p.get("slug", "").lower() == q), None)
|
| 423 |
+
if not match:
|
| 424 |
+
match = next((p for p in protos
|
| 425 |
+
if q in p.get("name", "").lower() or q in p.get("slug", "").lower()), None)
|
| 426 |
+
if match:
|
| 427 |
+
slug = match["slug"]
|
| 428 |
+
d = _get(f"https://api.llama.fi/protocol/{slug}")
|
| 429 |
+
detail = d.json() if d.status_code == 200 else {}
|
| 430 |
+
tvl = detail.get("tvl")
|
| 431 |
+
if isinstance(tvl, list) and tvl:
|
| 432 |
+
tvl = tvl[-1].get("totalLiquidityUSD")
|
| 433 |
+
out.append(Evidence(
|
| 434 |
+
id="dl_protocol",
|
| 435 |
+
url=f"https://defillama.com/protocol/{slug}",
|
| 436 |
+
title=f"DefiLlama: {match.get('name', slug)}",
|
| 437 |
+
excerpt=f"name={match.get('name')} slug={slug} tvl={tvl or match.get('tvl')} "
|
| 438 |
+
f"chains={detail.get('chains') or match.get('chains')} "
|
| 439 |
+
f"category={match.get('category')}"[:1500],
|
| 440 |
+
category="market_data", interest="independent", freshness="current",
|
| 441 |
+
raw={"protocol": match}))
|
| 442 |
+
except Exception:
|
| 443 |
+
pass
|
| 444 |
+
try:
|
| 445 |
+
r = _get("https://api.llama.fi/v2/chains")
|
| 446 |
+
if r.status_code == 200:
|
| 447 |
+
chain = next((c for c in r.json()
|
| 448 |
+
if q in str(c.get("name", "")).lower()), None)
|
| 449 |
+
if chain:
|
| 450 |
+
out.append(Evidence(
|
| 451 |
+
id="dl_chain",
|
| 452 |
+
url=f"https://defillama.com/chain/{chain.get('name')}",
|
| 453 |
+
title=f"DefiLlama chain: {chain.get('name')}",
|
| 454 |
+
excerpt=f"chain={chain.get('name')} tvl={chain.get('tvl')} "
|
| 455 |
+
f"tokenSymbol={chain.get('tokenSymbol')}"[:1500],
|
| 456 |
+
category="market_data", interest="independent", freshness="current",
|
| 457 |
+
raw=chain))
|
| 458 |
+
except Exception:
|
| 459 |
+
pass
|
| 460 |
+
return out
|
skill/SKILL.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: seeri
|
| 3 |
+
description: Verifiable deep-research skill for any onchain or market question. Decomposes a messy question into sub-claims, maps sources by category, triangulates the highest-stakes claims, builds an evidence grid with confidence ratings, and synthesizes a defensible thesis. Uses SERV Reasoning for the reasoning steps when SERV_API_KEY is available. Use when researching a token, protocol, chain, RWA vault, tokenized asset, market move, or any claim that needs sourcing before someone acts on it.
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Seeri
|
| 7 |
+
|
| 8 |
+
Seeri turns an ambiguous question into research someone can defend: every claim is tied to a source category, every conclusion carries a confidence level, and every thesis states what would change it.
|
| 9 |
+
|
| 10 |
+
It is chain-agnostic and asset-agnostic. Research a Stock Token on Robinhood Chain, a lending protocol on Base, an RWA yield vault, a memecoin launch, or a regulatory headline with the same process. Domain packs add the specific data sources and failure modes for each area.
|
| 11 |
+
|
| 12 |
+
## Intake
|
| 13 |
+
|
| 14 |
+
Capture these before research:
|
| 15 |
+
|
| 16 |
+
- Original question, exactly as received
|
| 17 |
+
- Decision this informs
|
| 18 |
+
- Deadline
|
| 19 |
+
- Cost of being wrong
|
| 20 |
+
- Expected output (memo, article, thread, grid only, go/no-go)
|
| 21 |
+
|
| 22 |
+
If any field is blank and the answer cannot be safely inferred, ask for it or state the assumption.
|
| 23 |
+
|
| 24 |
+
## Route By Task
|
| 25 |
+
|
| 26 |
+
- Full research run: read [research-workflow.md](research-workflow.md)
|
| 27 |
+
- Source planning or claim checking: read [source-map.md](source-map.md)
|
| 28 |
+
- Findings grid, confidence, or contradictions: read [evidence-grid.md](evidence-grid.md)
|
| 29 |
+
- Article, thread, or memo: read [article-synthesis.md](article-synthesis.md)
|
| 30 |
+
- Using SERV Reasoning for decomposition, grading, and synthesis: read [reasoning-serv.md](reasoning-serv.md)
|
| 31 |
+
- Hackathon packaging: read [hackathon-submission.md](hackathon-submission.md)
|
| 32 |
+
- Mantle example and source links: read [resources.md](resources.md)
|
| 33 |
+
|
| 34 |
+
## Domain Packs
|
| 35 |
+
|
| 36 |
+
Load the pack that matches the subject. Each pack lists primary data sources, what to verify first, and the traps specific to that domain.
|
| 37 |
+
|
| 38 |
+
- Robinhood Chain, Stock Tokens, chain-native launches: read [domains/robinhood-chain.md](domains/robinhood-chain.md)
|
| 39 |
+
- Coinbase AgentKit, Base, agent wallets: read [domains/agentkit-base.md](domains/agentkit-base.md)
|
| 40 |
+
- IXS and licensed RWA yield vaults: read [domains/ixs-rwa-vaults.md](domains/ixs-rwa-vaults.md)
|
| 41 |
+
- Memecoins, attention markets, launch safety: read [domains/memecoin-markets/SKILL.md](domains/memecoin-markets/SKILL.md)
|
| 42 |
+
|
| 43 |
+
## Core Workflow
|
| 44 |
+
|
| 45 |
+
1. Preserve the messy question.
|
| 46 |
+
2. Decompose into 5-8 answerable sub-questions.
|
| 47 |
+
3. Assign at least three source categories.
|
| 48 |
+
4. Triangulate the highest-stakes claim through two source categories.
|
| 49 |
+
5. Build a findings grid with confidence and gaps.
|
| 50 |
+
6. Synthesize a thesis, caveats, and "what would change my mind."
|
| 51 |
+
7. Package the output for the requested format.
|
| 52 |
+
|
| 53 |
+
## Confidence Rules
|
| 54 |
+
|
| 55 |
+
- High: recent primary source plus independent corroboration, no unresolved contradiction.
|
| 56 |
+
- Medium: one strong source or multiple interested sources.
|
| 57 |
+
- Low: stale, indirect, contradicted, or incentive-heavy evidence.
|
| 58 |
+
|
| 59 |
+
## Boundaries
|
| 60 |
+
|
| 61 |
+
- Do not provide legal, tax, compliance, investment, or trading advice.
|
| 62 |
+
- Do not imply tokenized equities are direct ownership unless the source proves it.
|
| 63 |
+
- Do not invent traction, volume, holders, revenue, integrations, allocations, or regulatory approval.
|
| 64 |
+
- Label project-reported claims and interested-party claims clearly.
|
| 65 |
+
- Never present a model's reasoning output as a source. Reasoning organizes evidence; it does not create it.
|
skill/article-synthesis.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Article Synthesis
|
| 2 |
+
|
| 3 |
+
Use when turning findings into an article, memo, or X thread.
|
| 4 |
+
|
| 5 |
+
## Thesis Shape
|
| 6 |
+
|
| 7 |
+
Write the thesis as:
|
| 8 |
+
|
| 9 |
+
> [Actor/market] is shifting from [old bottleneck] to [new bottleneck], because [evidence], but [caveat].
|
| 10 |
+
|
| 11 |
+
Example:
|
| 12 |
+
|
| 13 |
+
> Mantle's RWA push is less about listing tokenized assets and more about building the distribution, execution, liquidity, and agent infrastructure those assets need to become usable markets.
|
| 14 |
+
|
| 15 |
+
## Article Outline
|
| 16 |
+
|
| 17 |
+
1. Hook: start with a concrete recent market move.
|
| 18 |
+
2. Thesis: state the position clearly.
|
| 19 |
+
3. Evidence: show the numbers and source categories.
|
| 20 |
+
4. Mechanism: explain why the move happened.
|
| 21 |
+
5. Landscape: compare what makes this actor different.
|
| 22 |
+
6. Caveat: name the strongest counterargument.
|
| 23 |
+
7. Next move: make a falsifiable call about what comes next.
|
| 24 |
+
|
| 25 |
+
## X Thread Format
|
| 26 |
+
|
| 27 |
+
Use 7-10 posts:
|
| 28 |
+
|
| 29 |
+
1. Thesis
|
| 30 |
+
2. Why now
|
| 31 |
+
3. Key data
|
| 32 |
+
4. Mechanism
|
| 33 |
+
5. Competitive distinction
|
| 34 |
+
6. Caveat
|
| 35 |
+
7. What comes next
|
| 36 |
+
8. Source note or chart note
|
| 37 |
+
|
| 38 |
+
## Required Ending
|
| 39 |
+
|
| 40 |
+
Include:
|
| 41 |
+
|
| 42 |
+
- Caveats and uncertainty
|
| 43 |
+
- What would change my mind
|
| 44 |
+
- Source list
|
| 45 |
+
|
| 46 |
+
Avoid hype language when the evidence is only medium confidence.
|
skill/domains/agentkit-base.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Domain Pack: Coinbase AgentKit and Base
|
| 2 |
+
|
| 3 |
+
Use this pack when the question involves an agent with a wallet, Coinbase AgentKit, the Coinbase Developer Platform, or an asset or protocol on Base.
|
| 4 |
+
|
| 5 |
+
## Primary Sources, In Order Of Trust
|
| 6 |
+
|
| 7 |
+
1. Chain state on Base: Basescan or Blockscout API, or `eth_call` against a Base RPC. Confirms contracts, balances, holders, transfers.
|
| 8 |
+
2. Coinbase Developer Platform docs and the AgentKit repository: the authority on what AgentKit can and cannot do (wallet providers, action providers, supported networks). Project-reported for adoption claims.
|
| 9 |
+
3. Market aggregators: DefiLlama (Base chain and protocol TVL), GeckoTerminal (pools). Indexers, not primary state.
|
| 10 |
+
4. Protocol docs and audits for anything the agent would touch (lending, DEX, bridges). Project-reported unless the audit is by a named third party.
|
| 11 |
+
5. Social and news: secondary.
|
| 12 |
+
|
| 13 |
+
## Verify First
|
| 14 |
+
|
| 15 |
+
- Custody model. Who holds the key: the developer, a CDP-managed wallet, or the user. This determines every risk statement that follows.
|
| 16 |
+
- Network. Base mainnet versus Base Sepolia. Testnet activity is not adoption.
|
| 17 |
+
- Action scope. Which action providers are enabled. An agent that can only read is a different risk class from one that can transfer.
|
| 18 |
+
- Spend controls. Whether any cap, allowlist, or confirmation gate exists. Absence is a finding.
|
| 19 |
+
|
| 20 |
+
## Traps
|
| 21 |
+
|
| 22 |
+
- Counting testnet transactions or faucet balances as usage.
|
| 23 |
+
- Treating a wallet address with activity as proof that an agent, rather than a person, controls it.
|
| 24 |
+
- Quoting AgentKit feature lists as if they were deployed integrations.
|
| 25 |
+
|
| 26 |
+
## Output Additions
|
| 27 |
+
|
| 28 |
+
Include grid rows for: custody model, network, enabled actions, spend controls, and the audit status of any protocol the agent interacts with.
|
skill/domains/ixs-rwa-vaults.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Domain Pack: IXS and Licensed RWA Yield Vaults
|
| 2 |
+
|
| 3 |
+
Use this pack when the question involves IXS Finance, a real-world-asset yield vault, tokenized credit or treasuries, or an agent allocating capital into a licensed vault.
|
| 4 |
+
|
| 5 |
+
## Primary Sources, In Order Of Trust
|
| 6 |
+
|
| 7 |
+
1. Vault contract state: balances, share price, deposits and withdrawals, from the explorer of the chain the vault lives on. The only proof of assets under management.
|
| 8 |
+
2. Issuer and licensing documents: the license, the jurisdiction, the regulator, the legal wrapper. Read the document; do not take the word "licensed" from a landing page.
|
| 9 |
+
3. Underlying asset attestations: custodian statements, proof-of-reserve reports, audits. Note the attestor, the date, and whether it is independent.
|
| 10 |
+
4. IXS docs and Agentic Vault API references: authoritative on mechanics (eligibility, KYC gates, redemption terms). Project-reported on yield and traction.
|
| 11 |
+
5. Market aggregators: DefiLlama RWA category, for relative size only.
|
| 12 |
+
6. Social and news: secondary.
|
| 13 |
+
|
| 14 |
+
## Verify First
|
| 15 |
+
|
| 16 |
+
- What "licensed" means here. Which entity, which regulator, which activity is licensed. A license to issue is not a license to advise.
|
| 17 |
+
- Who can deposit. KYC or accreditation gates decide whether the yield is reachable by the user asking.
|
| 18 |
+
- Where the yield comes from. Underlying asset, duration, credit quality. "Yield" with no named source is a low-confidence claim.
|
| 19 |
+
- Redemption terms. Lockups, notice periods, gates. Liquidity is part of the risk, not a footnote.
|
| 20 |
+
- Share price versus quoted APY. APY is a projection; share-price history is the fact.
|
| 21 |
+
|
| 22 |
+
## Traps
|
| 23 |
+
|
| 24 |
+
- Confusing the vault token's price on a DEX with the vault's net asset value.
|
| 25 |
+
- Quoting a target APY as a realized return.
|
| 26 |
+
- Treating an audit of the smart contract as an audit of the underlying asset.
|
| 27 |
+
|
| 28 |
+
## Output Additions
|
| 29 |
+
|
| 30 |
+
Include grid rows for: license (entity, regulator, jurisdiction), eligibility, yield source, redemption terms, attestation (attestor and date), and on-chain AUM.
|
| 31 |
+
|
| 32 |
+
Seeri never recommends an allocation. It reports what is verifiable and what is not.
|
skill/domains/memecoin-markets/SKILL.md
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: seeri-memecoin-markets
|
| 3 |
+
description: "Knowledge base from \"A Complete (Meme)coin Guide\" by Spyzer. Use when applying Spyzer's frameworks for memecoin trading, attention markets, on-chain research, risk management, trade psychology, crypto safety, and beginner onboarding."
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
<!-- argument-hint: [topic, framework name, or chapter number] -->
|
| 7 |
+
|
| 8 |
+
# A Complete (Meme)coin Guide
|
| 9 |
+
**Author**: Spyzer | **Pages**: ~132 | **Chapters**: 13 | **Generated**: 2026-07-02
|
| 10 |
+
|
| 11 |
+
## How to Use This Skill
|
| 12 |
+
|
| 13 |
+
- **Without arguments** - load the core frameworks for memecoin trading and risk.
|
| 14 |
+
- **With a topic** - ask about `bundling`, `vamping`, `scarcity brain`, `market structure`, `cold wallets`, or another indexed topic; read the relevant chapter before answering.
|
| 15 |
+
- **With chapter** - ask for `ch07` or `chapter 7`; load that specific chapter file.
|
| 16 |
+
- **Browse** - ask "what chapters do you have?" to see the full index.
|
| 17 |
+
|
| 18 |
+
When answering, keep the tone practical and risk-aware. This guide is educational material, not financial advice.
|
| 19 |
+
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
## Core Frameworks & Mental Models
|
| 23 |
+
|
| 24 |
+
**More informed tends to mean more profitable**: use every trade as an information problem before treating it as a price problem. Check narrative, supply, holders, social proof, chain data, market conditions, and your own psychology before sizing.
|
| 25 |
+
|
| 26 |
+
**Awareness is not learning**: knowing a rule does not mean you will obey it when money is moving. Convert painful mistakes into concrete rules, then rehearse those rules before the next similar moment.
|
| 27 |
+
|
| 28 |
+
**Attention drives value, but through different mechanisms**: memecoins run on raw attention; utility coins blend attention with product, revenue, buybacks, or burns; ownership coins point toward company valuation exposure. Match your time horizon and exit logic to the coin type.
|
| 29 |
+
|
| 30 |
+
**Attention arbitrage**: spot the gap between a narrative becoming viral and the market repricing the related coin. The edge is earliest when the public story is forming but crypto attention has not fully coordinated around the right asset.
|
| 31 |
+
|
| 32 |
+
**Canonical identity beats vague narrative**: a coin is less vulnerable to copies when the name, creator, launch surface, community, and discovery platforms all point at one obvious leader.
|
| 33 |
+
|
| 34 |
+
**Vamping risk**: when multiple coins compete for the same narrative, liquidity rotates to the version the market accepts as canonical. Avoid buying vague placeholder coins when the true name, source, or leader is still unresolved.
|
| 35 |
+
|
| 36 |
+
**Bundling is supply control, not automatically good or bad**: a bundled supply can stabilize a serious team or let insiders farm buyers. Judge intent and risk through cluster links, top-holder percentage, funding origin, chart shape, volume-to-market-cap, and wallet behavior.
|
| 37 |
+
|
| 38 |
+
**Do not borrow conviction**: KOLs, Telegram calls, fomo notifications, and wallet trackers should surface information, not make decisions. If you cannot explain why you are buying in two sentences, you are not ready to buy.
|
| 39 |
+
|
| 40 |
+
**Information streams compound**: build a private group, a filtered X feed, app/social notes, wallet monitoring, and on-chain sleuthing. A small trusted group sharing real theses beats a giant public channel.
|
| 41 |
+
|
| 42 |
+
**Thesis before entry**: write why you are buying, what would invalidate the thesis, and what would make you take profit before entering. A trade changes as new information arrives; keep asking whether you would buy the same size now.
|
| 43 |
+
|
| 44 |
+
**Market structure first**: ask whether price is going up, down, sideways, or transitioning. Higher highs and higher lows mean uptrend; lower highs and lower lows mean downtrend. A break of structure is one of the cleanest signals that conditions changed.
|
| 45 |
+
|
| 46 |
+
**Late confirmation beats early hope**: buying after a confirmed uptrend is often better than trying to catch a bottom in a downtrend. Being early is only useful when your information edge is real.
|
| 47 |
+
|
| 48 |
+
**Confluence over isolated signals**: a Fibonacci zone matters more when it aligns with prior support/resistance, trendlines, round numbers, volume, or narrative strength. One signal is possible; multiple signals become tradable.
|
| 49 |
+
|
| 50 |
+
**The risk dial**: in strong bull conditions, more risk can flow toward memecoins and fresh attention narratives. As conditions worsen, rotate toward utility, ownership, stable assets, or cash. Do less when the market gives less.
|
| 51 |
+
|
| 52 |
+
**Sizing should preserve the next decision**: size so a win matters and a loss does not damage your ability to trade normally tomorrow. Oversizing creates emotional debt; emotional debt creates revenge trades.
|
| 53 |
+
|
| 54 |
+
**Spreading kills returns**: too many small positions dilute winners and make follow-up impossible. Prefer concentrated conviction in the best-researched ideas you can actually monitor.
|
| 55 |
+
|
| 56 |
+
**Take profits gradually**: scale out as price moves in your favor instead of trying to time the top. If the money is life-changing, secure it now. A screen number is not freedom until it is protected.
|
| 57 |
+
|
| 58 |
+
**You are not trying to make the money back; you are trying to make money**: after a loss or fumble, identify the process failure, create a rule, detach from the old equity high, and trade the next setup cleanly.
|
| 59 |
+
|
| 60 |
+
**Fish & Monkey Methodology**: know your natural trader type. Fish prefer consistent compounding and smaller risk; monkeys prefer high-variance moonshots. Do not force yourself into a temperament that destroys your process.
|
| 61 |
+
|
| 62 |
+
**Scarcity brain**: financial pressure makes every trade feel like the only chance. Build a safety floor, trade from conviction instead of survival panic, and remember that opportunities are abundant.
|
| 63 |
+
|
| 64 |
+
**Only the paranoid survive**: crypto security is a habit. Use separate wallets, protect seed phrases offline, verify URLs, distrust unsolicited DMs, keep long-term holdings in cold storage, and never expose your full portfolio socially.
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
## Chapter Index
|
| 69 |
+
|
| 70 |
+
| # | Title | Key Frameworks |
|
| 71 |
+
|---|-------|----------------|
|
| 72 |
+
| [ch01](chapters/ch01-introduction-purpose.md) | Introduction & Purpose | awareness vs learning, education over onboarding by loss, profit-taking discipline |
|
| 73 |
+
| [ch02](chapters/ch02-core-technical-concepts.md) | Core Technical Concepts | blockchain basics, liquidity pools, slippage, LP safety, bundling detection |
|
| 74 |
+
| [ch03](chapters/ch03-types-of-coins-value.md) | Types of Coins & What Drives Value | attention arbitrage, coin categories, vamping, community coins, utility and ownership logic |
|
| 75 |
+
| [ch04](chapters/ch04-how-to-find-good-trades.md) | How to Find Good Trades | information infrastructure, group chats, independent thinking, thesis formation |
|
| 76 |
+
| [ch05](chapters/ch05-kols-influencers-trust.md) | KOLs, Influencers & Trust | track record over followers, paid deals, borrowed conviction, information streams |
|
| 77 |
+
| [ch06](chapters/ch06-trading-platforms-tools.md) | Trading Platforms & Tools | fomo workflow, Solscan sleuthing, wallet discovery, social-feed risk |
|
| 78 |
+
| [ch07](chapters/ch07-reading-charts.md) | Reading Charts | market structure, timeframe fit, Fibonacci retracements, confluence, invalidation |
|
| 79 |
+
| [ch08](chapters/ch08-reading-the-market.md) | Reading the Market | bull/bear diagnostics, risk dial, cycles within cycles, skill gap |
|
| 80 |
+
| [ch09](chapters/ch09-trade-execution.md) | Trade Execution | thesis before entry, position sizing, FOMO control, profit-taking, losses, journaling |
|
| 81 |
+
| [ch10](chapters/ch10-psychology-of-trading.md) | The Psychology of Trading | fish and monkey, scarcity brain, fumble spiral, accountability, optimism |
|
| 82 |
+
| [ch11](chapters/ch11-life-money-perspective.md) | Life, Money & Perspective | asymmetric bets, mortgage freedom, financial mediocrity, money as tool |
|
| 83 |
+
| [ch12](chapters/ch12-staying-safe-in-crypto.md) | Staying Safe in Crypto | custody layers, phishing defense, cold wallets, seed phrase storage, scam detection |
|
| 84 |
+
| [ch13](chapters/ch13-your-first-steps.md) | Your First Steps | setup sequence, X feed, Telegram group, paper trading, first withdrawal |
|
| 85 |
+
|
| 86 |
+
## Topic Index
|
| 87 |
+
|
| 88 |
+
- **Accountability habit** -> ch10, ch09
|
| 89 |
+
- **Attention arbitrage** -> ch03, ch04, ch08
|
| 90 |
+
- **Bear market behavior** -> ch08, ch09
|
| 91 |
+
- **Borrowed conviction** -> ch05, ch04, ch09
|
| 92 |
+
- **Bundling** -> ch02, ch03
|
| 93 |
+
- **Cold wallets** -> ch12, ch13
|
| 94 |
+
- **Community coins** -> ch03
|
| 95 |
+
- **Confluence** -> ch07, ch09
|
| 96 |
+
- **Cutting losses** -> ch09, ch10
|
| 97 |
+
- **Fibonacci retracements** -> ch07
|
| 98 |
+
- **Fish & Monkey Methodology** -> ch10
|
| 99 |
+
- **fomo app** -> ch06, ch13
|
| 100 |
+
- **Fumble spiral** -> ch10, ch09
|
| 101 |
+
- **Honeypots** -> ch02, ch12
|
| 102 |
+
- **Information deficiency edge** -> ch04, ch09
|
| 103 |
+
- **KOLs** -> ch05, ch04
|
| 104 |
+
- **Liquidity pools** -> ch02
|
| 105 |
+
- **Market structure** -> ch07, ch08
|
| 106 |
+
- **Memecoin categories** -> ch03
|
| 107 |
+
- **Mortgage freedom** -> ch11
|
| 108 |
+
- **On-chain sleuthing** -> ch02, ch06, ch12
|
| 109 |
+
- **Ownership coins** -> ch03, ch08
|
| 110 |
+
- **Paper trading** -> ch13
|
| 111 |
+
- **Phishing** -> ch12
|
| 112 |
+
- **Position sizing** -> ch09, ch10
|
| 113 |
+
- **Profit taking** -> ch09, ch11
|
| 114 |
+
- **Risk dial** -> ch08, ch09
|
| 115 |
+
- **Scarcity brain** -> ch10, ch11
|
| 116 |
+
- **Seed phrases** -> ch02, ch06, ch12, ch13
|
| 117 |
+
- **Slippage** -> ch02, ch09
|
| 118 |
+
- **Telegram groups** -> ch04, ch13
|
| 119 |
+
- **Trade journaling** -> ch09, ch13
|
| 120 |
+
- **Utility coins** -> ch03, ch08
|
| 121 |
+
- **Vamping** -> ch03
|
| 122 |
+
- **Wallet tracking** -> ch06, ch12
|
| 123 |
+
|
| 124 |
+
## Supporting Files
|
| 125 |
+
|
| 126 |
+
- [glossary.md](glossary.md) - key terms with chapter references.
|
| 127 |
+
- [patterns.md](patterns.md) - repeatable techniques, checks, and workflows.
|
| 128 |
+
- [cheatsheet.md](cheatsheet.md) - quick decision rules and trade/safety matrices.
|
| 129 |
+
|
| 130 |
+
---
|
| 131 |
+
|
| 132 |
+
## Scope & Limits
|
| 133 |
+
|
| 134 |
+
This skill covers the book content only and should be treated as educational trading notes. It does not provide financial, legal, tax, or security advice. Always verify current tools, platforms, fees, URLs, and regulations directly before acting.
|
skill/domains/memecoin-markets/chapters/ch01-introduction-purpose.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 1: Introduction & Purpose
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
The guide frames memecoin trading as an education problem first and a money problem second. Spyzer's main promise is not that the reader will make money, but that understanding the terrain reduces unnecessary tuition paid through avoidable losses.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Awareness vs learning**: knowing a lesson is not the same as applying it under pressure.
|
| 8 |
+
- When to use: after reading any rule about profit-taking, scams, sizing, or psychology.
|
| 9 |
+
- How: convert the lesson into a pre-trade checklist item or hard rule before the emotional moment arrives.
|
| 10 |
+
- **Education before exposure**: do not learn crypto only by losing money.
|
| 11 |
+
- When to use: before onboarding yourself or a friend into trading.
|
| 12 |
+
- How: build basic literacy on chains, LPs, wallets, scams, influencers, and psychology before deploying meaningful capital.
|
| 13 |
+
- **Money as life tool**: profits matter because they can buy time, safety, and optionality.
|
| 14 |
+
- When to use: when deciding whether to secure gains or keep pushing.
|
| 15 |
+
- How: compare the extra upside against the life improvement already available from taking profit.
|
| 16 |
+
|
| 17 |
+
## Key Concepts
|
| 18 |
+
- **DYOR**: do your own research; use outside information as prompts, not commands.
|
| 19 |
+
- **NFA**: not financial advice; you remain responsible for your own trades.
|
| 20 |
+
- **Roundtripping**: watching a large unrealized gain fall back because greed moved the exit target.
|
| 21 |
+
- **Referral incentives**: a creator can benefit from platform fees; treat disclosures as useful context, not proof of neutrality.
|
| 22 |
+
|
| 23 |
+
## Mental Models
|
| 24 |
+
- Use **battlefield terrain** when entering crypto: identify the ground, enemies, allies, traps, and tools before acting.
|
| 25 |
+
- Think of **knowledge as loss compression**: good education may not create profit, but it can reduce the number and size of beginner mistakes.
|
| 26 |
+
- Use **profit realism** when gains are meaningful: if the money can change your life now, do not let a future fantasy keep all of it at risk.
|
| 27 |
+
|
| 28 |
+
## Anti-patterns
|
| 29 |
+
- **Skipping non-trading lessons**: ignoring psychology and life context leaves the biggest failure modes untouched.
|
| 30 |
+
- **Waiting to learn through pain**: many crypto lessons are expensive when first encountered in the market.
|
| 31 |
+
- **Moving the exit target forever**: greed converts a good trade into a regret machine.
|
| 32 |
+
|
| 33 |
+
## Worked Example
|
| 34 |
+
A trader knows the rule to take profits on life-changing gains but keeps raising the number that would make them sell. The right reconstruction is a rule set before entry: define partial exits, secure a meaningful tranche after major upside, and treat the remaining position as optional upside rather than the whole dream.
|
| 35 |
+
|
| 36 |
+
## Key Takeaways
|
| 37 |
+
1. Read the whole system before putting serious money at risk.
|
| 38 |
+
2. Every trading rule needs a moment-specific behavior attached to it.
|
| 39 |
+
3. More informed does not guarantee profit, but uninformed trading reliably increases loss risk.
|
| 40 |
+
4. Profit-taking is not cowardice; it is the point of the game.
|
| 41 |
+
5. Keep the guide's advice in the category of education, not certainty.
|
| 42 |
+
|
| 43 |
+
## Connects To
|
| 44 |
+
- **Ch 9**: turns profit-taking and trade management into concrete process.
|
| 45 |
+
- **Ch 10**: explains why awareness often fails during emotional pressure.
|
| 46 |
+
- **Ch 11**: defines what money should actually be used to secure.
|
skill/domains/memecoin-markets/chapters/ch02-core-technical-concepts.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 2: Core Technical Concepts
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Memecoin trading sits on blockchain mechanics: wallets, liquidity pools, slippage, token authorities, and supply distribution. A trader who does not understand these mechanics is easy prey for avoidable scams and bad fills.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Blockchain as public logbook**: transactions are recorded into blocks, validated, and chained.
|
| 8 |
+
- When to use: when explaining why wallet activity and token history can be audited.
|
| 9 |
+
- How: follow transactions through explorers such as Solscan rather than relying on claims.
|
| 10 |
+
- **Liquidity pool equation**: price moves because buys and sells change the ratio of paired assets.
|
| 11 |
+
- When to use: when judging slippage, TVL, market cap, or sell impact.
|
| 12 |
+
- How: estimate whether the pool has enough depth to absorb your intended entry or exit.
|
| 13 |
+
- **LP safety check**: a token outside familiar launchpads needs basic authority and liquidity checks.
|
| 14 |
+
- When to use: before buying tokens not created through trusted launch infrastructure.
|
| 15 |
+
- How: check LP lock/burn status, mint authority, freeze authority, holder concentration, and known scanner results.
|
| 16 |
+
- **Bundling detection stack**: one wallet may control many wallets.
|
| 17 |
+
- When to use: before entering low-cap or fresh tokens.
|
| 18 |
+
- How: combine Bubblemaps clusters, top-holder percentage, fresh wallet icons, funding origin, chart shape, market-cap-to-volume, and fee data.
|
| 19 |
+
|
| 20 |
+
## Key Concepts
|
| 21 |
+
- **Blockchain**: public transaction database maintained by validators.
|
| 22 |
+
- **Wallet**: crypto account controlled by keys or seed phrase.
|
| 23 |
+
- **Token/Coin**: digital asset tradable on a chain.
|
| 24 |
+
- **Gas fee**: transaction cost paid to use the network.
|
| 25 |
+
- **Liquidity Pool (LP)**: paired assets that enable swaps.
|
| 26 |
+
- **Contract Address (CA)**: the unique token or pool identifier used to find the asset.
|
| 27 |
+
- **Market Cap (MC)**: token supply multiplied by token price.
|
| 28 |
+
- **Total Value Locked (TVL)**: value held inside a liquidity pool or protocol.
|
| 29 |
+
- **Slippage**: worse average execution caused by price moving during or because of the trade.
|
| 30 |
+
- **Mint authority**: permission to create more tokens.
|
| 31 |
+
- **Freeze authority**: permission that can restrict token movement.
|
| 32 |
+
- **Honeypot**: a token engineered to lure buys and trap or destroy buyers.
|
| 33 |
+
- **Bundling**: one entity controlling supply through multiple wallets.
|
| 34 |
+
|
| 35 |
+
## Mental Models
|
| 36 |
+
- Think of a liquidity pool as a **two-sided box**: pushing one asset in pulls the other out and changes the price.
|
| 37 |
+
- Use **pool depth before position size**: your position is only real if the pool can absorb both your entry and exit.
|
| 38 |
+
- Treat **fresh low-volume up-only charts** as suspicious until proven otherwise.
|
| 39 |
+
- Think of **bundles as hidden gravity**: if one actor controls enough supply, they decide when the chart falls.
|
| 40 |
+
|
| 41 |
+
## Anti-patterns
|
| 42 |
+
- **Ignoring authorities**: buying tokens with unsafe mint/freeze or LP control can make the chart irrelevant.
|
| 43 |
+
- **Confusing holder count with distribution**: many wallets can still be one operator.
|
| 44 |
+
- **Buying beautiful low-volume charts**: smooth up-only action with few holders often means coordinated manipulation.
|
| 45 |
+
- **Assuming a bundle is always bad**: supply control can be strategic for teams, but it must be priced as risk.
|
| 46 |
+
|
| 47 |
+
## Worked Example
|
| 48 |
+
A fresh token appears with a strong chart. Before buying, check whether the LP is locked, mint authority is disabled, and top holders are not clustered. If a single linked cluster controls a crushing share, funding origins match, volume is low relative to MC, and candles look mechanically uniform, the trade should be avoided or sized as extreme risk.
|
| 49 |
+
|
| 50 |
+
## Key Takeaways
|
| 51 |
+
1. Learn LP mechanics before trading low-cap coins.
|
| 52 |
+
2. Slippage is normal, but hidden sell impact can erase paper gains.
|
| 53 |
+
3. LP lock and disabled mint/freeze authority are baseline safety checks.
|
| 54 |
+
4. Bundling is the fastest way many on-chain traders lose money.
|
| 55 |
+
5. Use multiple signals for supply-control risk; no one tool is enough.
|
| 56 |
+
|
| 57 |
+
## Connects To
|
| 58 |
+
- **Ch 3**: supply and attention determine which coin category you are trading.
|
| 59 |
+
- **Ch 6**: uses Solscan and app tooling to inspect wallets and tokens.
|
| 60 |
+
- **Ch 12**: expands authority, phishing, and custody safety.
|
skill/domains/memecoin-markets/chapters/ch03-types-of-coins-value.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 3: Types of Coins & What Drives Value
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Coins rise for different reasons. The common thread is attention and value accrual, but memecoins, utility coins, and ownership coins require different research, time horizons, and exits.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Attention arbitrage**: profit from the lag between real-world or crypto-native attention and market repricing.
|
| 8 |
+
- When to use: when a viral animal, phrase, person, event, ecosystem launch, or cultural meme starts spreading.
|
| 9 |
+
- How: identify the canonical subject, verify the right coin, check supply risk, and act before attention fully coordinates.
|
| 10 |
+
- **Vamping risk**: a competing coin can steal the narrative if it becomes the recognized leader.
|
| 11 |
+
- When to use: when the token name, ticker, chain, launchpad, or source identity is ambiguous.
|
| 12 |
+
- How: wait for or find the canonical name/source, then compare liquidity and social coordination.
|
| 13 |
+
- **Coin-type fit**: match your trade logic to the asset category.
|
| 14 |
+
- When to use: before deciding how long to hold.
|
| 15 |
+
- How: ask whether the coin is raw meme attention, community conviction, utility/product value, or company valuation exposure.
|
| 16 |
+
- **Community conviction flywheel**: active communities can sustain attention beyond a one-off viral event.
|
| 17 |
+
- When to use: when evaluating longer-running memes.
|
| 18 |
+
- How: inspect whether members keep creating, raiding, onboarding, and posting even when price is down.
|
| 19 |
+
|
| 20 |
+
## Key Concepts
|
| 21 |
+
- **Viral memecoin**: coin tied to a fast-spreading external event or figure.
|
| 22 |
+
- **Celebrity memecoin**: token tied to a public figure's launch or presence.
|
| 23 |
+
- **CTO**: community takeover after original dev/team leaves.
|
| 24 |
+
- **Community coin**: coin whose durability comes from persistent social coordination.
|
| 25 |
+
- **Utility coin**: token with product, fees, burns, buybacks, access, or revenue mechanics.
|
| 26 |
+
- **Ownership coin**: tokenized exposure conceptually tied to company valuation or debt-like equity exposure.
|
| 27 |
+
- **Vamping**: liquidity and attention rotating from one narrative coin to a rival.
|
| 28 |
+
- **Canonical identity**: the coin the market accepts as the real representative of the narrative.
|
| 29 |
+
|
| 30 |
+
## Mental Models
|
| 31 |
+
- Use **attention first, mechanics second** for pure memecoins.
|
| 32 |
+
- Use **one-sentence undervaluation** for attention-driven utility trades: the easier the story is to explain, the faster lazy liquidity can move.
|
| 33 |
+
- Think of **pure memecoins as churn by design** unless they gain identity, distribution, or product gravity.
|
| 34 |
+
- Treat **community as compounding labor**: many small daily replies, posts, and DMs can create durable mindshare.
|
| 35 |
+
|
| 36 |
+
## Anti-patterns
|
| 37 |
+
- **Applying one category's logic to another**: memecoin holding logic can exit ownership coins too early; ownership logic can hold memecoins too long.
|
| 38 |
+
- **Buying a placeholder name**: vague tickers get vamped when the true name is found.
|
| 39 |
+
- **Confusing seriousness with value**: serious crypto developments can create better memecoin attention than whitepaper analysis.
|
| 40 |
+
- **Joining inactive communities**: a group that only posts when price rises is not durable.
|
| 41 |
+
|
| 42 |
+
## Worked Example
|
| 43 |
+
A viral animal appears online, but the first token uses a generic placeholder name. Research reveals the animal's actual name from the source site. A second token with the real name launches at a lower market cap and starts attracting people who discover the true identity. The edge is not just being early to virality; it is being early to the canonical version before rotation.
|
| 44 |
+
|
| 45 |
+
## Key Takeaways
|
| 46 |
+
1. Attention is the raw fuel, but each coin type converts it differently.
|
| 47 |
+
2. Vamping is structural because launchpads, creators, and traders all benefit from new alternatives.
|
| 48 |
+
3. Community coins can outlast event coins when the meme is timeless and the group works.
|
| 49 |
+
4. Utility trades can still be attention trades when the narrative is simple and obvious.
|
| 50 |
+
5. Before trading, classify the coin; then choose the correct research checklist and exit logic.
|
| 51 |
+
|
| 52 |
+
## Connects To
|
| 53 |
+
- **Ch 4**: explains how to find these opportunities through information streams.
|
| 54 |
+
- **Ch 8**: shows how market conditions change which coin type deserves risk.
|
| 55 |
+
- **Ch 9**: turns category-specific thesis into sizing and exit decisions.
|
skill/domains/memecoin-markets/chapters/ch04-how-to-find-good-trades.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 4: How to Find Good Trades
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Good trades come from better information infrastructure, not passive following. A trader improves by building groups, feeds, research habits, and a thesis process that finds and filters coins before the crowd.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Solo fast, together far**: trusted group chats multiply discovery and verification.
|
| 8 |
+
- When to use: when trying to improve trade sourcing.
|
| 9 |
+
- How: create or join small groups where members share contract addresses, theses, red flags, and follow-up research.
|
| 10 |
+
- **Think first, follow second**: original thinking creates edge; copying arrives late.
|
| 11 |
+
- When to use: whenever a call channel, KOL, or wallet alert suggests a trade.
|
| 12 |
+
- How: ask what the trade is, why now, what others missed, and what invalidates it.
|
| 13 |
+
- **Information deficiency edge**: profit comes from knowing relevant bullish or bearish facts before most buyers.
|
| 14 |
+
- When to use: after finding a fresh token or narrative.
|
| 15 |
+
- How: search X, verify dev identity, check LinkedIn/Discord/social links, cross-check wallets, ask trusted groups, and look for facts not yet public.
|
| 16 |
+
- **Two-sentence thesis rule**: if you cannot state why you are buying and what changes your mind, you should not buy.
|
| 17 |
+
- When to use: before every meaningful trade.
|
| 18 |
+
- How: write the thesis and invalidation in a note or chat before entry.
|
| 19 |
+
|
| 20 |
+
## Key Concepts
|
| 21 |
+
- **Group chat edge**: distributed research among trusted traders.
|
| 22 |
+
- **Scanning bot**: Telegram bot that summarizes contract and holder data.
|
| 23 |
+
- **CA search**: searching a token contract address on X to find human discussion.
|
| 24 |
+
- **Human posts**: posts with actual reasoning, not automated call-channel bait.
|
| 25 |
+
- **Thesis**: a clear reason the market should reprice the coin.
|
| 26 |
+
- **Information asymmetry**: one side of the trade knows more than the other.
|
| 27 |
+
|
| 28 |
+
## Mental Models
|
| 29 |
+
- Use **infrastructure before impulse**: build the chat/feed/bot setup before you need it.
|
| 30 |
+
- Think of **X as public narrative formation** and Telegram as real-time coordination.
|
| 31 |
+
- Treat **low-follower early thinkers** as potentially more valuable than late large accounts.
|
| 32 |
+
- Use **would new information make buyers care?** as the standard for whether research matters.
|
| 33 |
+
|
| 34 |
+
## Anti-patterns
|
| 35 |
+
- **Waiting for someone bigger to tell you what to buy**: the follower is late by design.
|
| 36 |
+
- **Joining only public call channels**: they surface trades but rarely protect you from timing and exit mistakes.
|
| 37 |
+
- **Mistaking activity for edge**: more notifications do not equal better decisions.
|
| 38 |
+
- **Keeping a stale thesis**: if the reasons for holding changed, update size or exit.
|
| 39 |
+
|
| 40 |
+
## Worked Example
|
| 41 |
+
A fresh coin launches from an account claiming to build a neobank. Instead of aping the chart, research the dev's identity, mutual followers, LinkedIn history, related projects, whether the account is hacked, and comparable market caps. If credible information supports a valuation gap and the market has not priced it yet, the edge is real; if the facts are already public and price is high, the trade has changed.
|
| 42 |
+
|
| 43 |
+
## Key Takeaways
|
| 44 |
+
1. Build trusted information streams before deploying serious capital.
|
| 45 |
+
2. Search both contract address and ticker, and separate human posts from bots.
|
| 46 |
+
3. A clear thesis must precede the trade.
|
| 47 |
+
4. New information should constantly update whether you hold, reduce, or exit.
|
| 48 |
+
5. Good trading is repeated pattern recognition, not one lucky call.
|
| 49 |
+
|
| 50 |
+
## Connects To
|
| 51 |
+
- **Ch 5**: clarifies how to use influencers without borrowing conviction.
|
| 52 |
+
- **Ch 6**: adds tools for wallet and chain verification.
|
| 53 |
+
- **Ch 9**: converts thesis quality into sizing and management.
|
skill/domains/memecoin-markets/chapters/ch05-kols-influencers-trust.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 5: KOLs, Influencers & Trust
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Follower count is a weak proxy for trading skill. Influencers and call channels are useful only as information streams; the decision must come from your own research, track record assessment, and thesis.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Track record over followers**: judge a KOL by repeated behavior, not audience size.
|
| 8 |
+
- When to use: before taking any public call seriously.
|
| 9 |
+
- How: monitor calls over time, note deleted posts, updates, transparency, and whether losses are acknowledged.
|
| 10 |
+
- **Paid-deal awareness**: promotion can be compensated with money or token supply.
|
| 11 |
+
- When to use: when several accounts suddenly post the same coin.
|
| 12 |
+
- How: ask who was positioned first, whether the posts feel coordinated, and who benefits from your entry.
|
| 13 |
+
- **Do not borrow conviction**: public conviction is usually late and incomplete.
|
| 14 |
+
- When to use: whenever someone else's confidence makes you want to buy.
|
| 15 |
+
- How: reconstruct their possible entry, exit, size, and incentives; if you cannot, downgrade the signal.
|
| 16 |
+
- **Information stream, not buy signal**: KOLs can surface coins you missed.
|
| 17 |
+
- When to use: when following X profiles, Telegram channels, or app leaders.
|
| 18 |
+
- How: collect the lead, then run your own checklist before acting.
|
| 19 |
+
|
| 20 |
+
## Key Concepts
|
| 21 |
+
- **KOL**: key opinion leader or crypto influencer.
|
| 22 |
+
- **Call channel**: a feed where coins are posted as possible trades.
|
| 23 |
+
- **Exit liquidity**: buyers used by earlier holders to sell profitably.
|
| 24 |
+
- **Coordinated push**: multiple accounts posting to simulate organic attention.
|
| 25 |
+
- **Borrowed conviction**: trading from another person's thesis without the underlying reasoning.
|
| 26 |
+
|
| 27 |
+
## Mental Models
|
| 28 |
+
- Treat **large followings as liquidity**, not proof.
|
| 29 |
+
- Think of **public calls as delayed information**: by the time conviction is posted, positioning may already be complete.
|
| 30 |
+
- Use **behavioral audits**: deleted calls, no bearish updates, and constant wins-only posting are red flags.
|
| 31 |
+
- Prefer **transparent thesis writers** over accounts that only post green candles.
|
| 32 |
+
|
| 33 |
+
## Anti-patterns
|
| 34 |
+
- **Blind aping favorite channels**: even good channels can be wrong or late.
|
| 35 |
+
- **Trusting one viral win**: a lottery-ticket trade can manufacture credibility.
|
| 36 |
+
- **Ignoring incentives**: paid or supply-backed promotion changes the meaning of a post.
|
| 37 |
+
- **Following engagement metrics**: bot activity can simulate consensus.
|
| 38 |
+
|
| 39 |
+
## Worked Example
|
| 40 |
+
Two influencers post trades. One posts a coin at low market cap, explains why, updates with new information, and leaves losing calls visible. Another posts a coin, it spikes, crashes, and the post disappears. The first can become an information source; the second should be muted or blocked. Neither should replace your own thesis.
|
| 41 |
+
|
| 42 |
+
## Key Takeaways
|
| 43 |
+
1. Good KOLs are proven by time and transparency.
|
| 44 |
+
2. Followers and engagement are easy to misread.
|
| 45 |
+
3. Public conviction often means someone else is already positioned.
|
| 46 |
+
4. Use channels to discover, not decide.
|
| 47 |
+
5. If you cannot explain the trade independently, you do not own the conviction.
|
| 48 |
+
|
| 49 |
+
## Connects To
|
| 50 |
+
- **Ch 4**: explains how to build better information streams.
|
| 51 |
+
- **Ch 6**: shows social trading features and how they can be abused.
|
| 52 |
+
- **Ch 9**: requires independent thesis before entry.
|
skill/domains/memecoin-markets/chapters/ch06-trading-platforms-tools.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 6: Trading Platforms & Tools
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Tools should reduce friction and improve information quality, but they become dangerous when treated as automatic buy signals. Use trading terminals, wallet apps, explorers, and social feeds to verify, not outsource judgment.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Friction reduction stack**: a beginner-friendly terminal can simplify cross-chain buying and social discovery.
|
| 8 |
+
- When to use: when setting up trading infrastructure.
|
| 9 |
+
- How: use the app for execution, social notes, holdings visibility, and chain abstraction while keeping key backups secure.
|
| 10 |
+
- **Wallet discovery workflow**: identify a trader's wallet from app holdings and chain explorer data.
|
| 11 |
+
- When to use: when you want to monitor a credible trader or whale.
|
| 12 |
+
- How: find token chain, copy CA, inspect holders on the chain explorer, match token amount and recent transactions.
|
| 13 |
+
- **Blockchain workshop separation**: keep trading wallets separate from wallets used to connect to random dapps.
|
| 14 |
+
- When to use: before browsing dapps, claiming rent, or testing tools.
|
| 15 |
+
- How: use a separate Phantom or similar wallet for exploration; keep your active trading wallet limited.
|
| 16 |
+
- **Social-layer skepticism**: app follows and notifications are information, not orders.
|
| 17 |
+
- When to use: when a high-followed trader buy notification hits.
|
| 18 |
+
- How: consider side wallets, private positions, and the possibility that public app activity is used to create exit liquidity.
|
| 19 |
+
|
| 20 |
+
## Key Concepts
|
| 21 |
+
- **Trading terminal**: app or web interface used for buying, selling, charting, and discovery.
|
| 22 |
+
- **Bridge**: mechanism to move value across chains.
|
| 23 |
+
- **Solscan/Etherscan**: chain explorers for inspecting wallets, transactions, and token holders.
|
| 24 |
+
- **Token account**: Solana account created to hold a specific token for a wallet.
|
| 25 |
+
- **Rent reclaim**: closing empty token accounts to recover locked SOL.
|
| 26 |
+
- **Private key export**: obtaining wallet keys for backup or import into another wallet app.
|
| 27 |
+
|
| 28 |
+
## Mental Models
|
| 29 |
+
- Treat **apps as dashboards**, not brains.
|
| 30 |
+
- Use **chain explorers as ground truth** when people make claims.
|
| 31 |
+
- Think of **wallet separation as blast-radius control**: one compromised wallet should not drain the whole setup.
|
| 32 |
+
- Treat **public buys by followed accounts as potentially staged** until verified.
|
| 33 |
+
|
| 34 |
+
## Anti-patterns
|
| 35 |
+
- **Not backing up private keys**: losing login access can strand funds if keys are not saved.
|
| 36 |
+
- **Using one wallet for everything**: trading, browsing, dapps, and long-term storage should not share the same risk surface.
|
| 37 |
+
- **Copying app notifications**: visible buys can be used to move followers while side wallets sell.
|
| 38 |
+
- **Clicking search-result dapps**: official links should be verified through trusted channels and URL checks.
|
| 39 |
+
|
| 40 |
+
## Worked Example
|
| 41 |
+
You notice a large app user holding a token. To find the wallet, identify the chain, copy the token CA, open the chain explorer, go to holders, and match the user's displayed token amount. Then verify with recent transactions. This lets you monitor behavior directly instead of relying on social claims.
|
| 42 |
+
|
| 43 |
+
## Key Takeaways
|
| 44 |
+
1. Use terminals for execution and discovery, but keep decision-making separate.
|
| 45 |
+
2. Export and store keys before funding meaningful amounts.
|
| 46 |
+
3. Learn to read chain explorers; wallet activity is harder to fake than posts.
|
| 47 |
+
4. Separate trading, browsing, and long-term custody wallets.
|
| 48 |
+
5. Social feeds are useful but can be gamed.
|
| 49 |
+
|
| 50 |
+
## Connects To
|
| 51 |
+
- **Ch 2**: provides the token and wallet concepts needed for explorer work.
|
| 52 |
+
- **Ch 5**: explains why public social signals need incentive analysis.
|
| 53 |
+
- **Ch 12**: gives the broader safety model for wallet and link risk.
|
skill/domains/memecoin-markets/chapters/ch07-reading-charts.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 7: Reading Charts
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Chart reading starts with one question: is price going up, going down, going sideways, or transitioning? Market structure is the foundation; indicators and drawings only help when they clarify that answer.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Market structure**: trends are made of higher highs/lows or lower highs/lows.
|
| 8 |
+
- When to use: before buying or selling based on price action.
|
| 9 |
+
- How: identify recent swing highs/lows and whether the pattern has broken.
|
| 10 |
+
- **Timeframe fit**: chart timeframe must match the asset and holding period.
|
| 11 |
+
- When to use: before drawing levels.
|
| 12 |
+
- How: use high timeframes for long holds, very low timeframes for fresh launches, and more meaningful levels only after enough price history exists.
|
| 13 |
+
- **Fibonacci retracement zone**: use 0.5 to 0.786 as a pullback entry zone in directional moves.
|
| 14 |
+
- When to use: after a clean impulse has formed.
|
| 15 |
+
- How: draw from higher low to higher high in an uptrend; use body-to-body on low-liquidity memecoins.
|
| 16 |
+
- **Confluence and invalidation**: levels matter more when multiple signals align and the setup has a defined failure point.
|
| 17 |
+
- When to use: before entering or holding a technical setup.
|
| 18 |
+
- How: combine fibs with support/resistance, trendlines, round numbers, volume, and thesis; exit or reduce when structure breaks.
|
| 19 |
+
|
| 20 |
+
## Key Concepts
|
| 21 |
+
- **Higher high / higher low**: uptrend structure.
|
| 22 |
+
- **Lower high / lower low**: downtrend structure.
|
| 23 |
+
- **Break of structure**: price violates the swing point that should have held.
|
| 24 |
+
- **Retracement**: pullback within a broader trend.
|
| 25 |
+
- **0.618**: key Fibonacci level often called the golden zone.
|
| 26 |
+
- **Confluence**: multiple independent signals pointing to the same zone.
|
| 27 |
+
- **Invalidation**: the point where the trade idea no longer makes sense.
|
| 28 |
+
- **Wick vs body**: extreme price tail versus open/close region of a candle.
|
| 29 |
+
|
| 30 |
+
## Mental Models
|
| 31 |
+
- Use **late confirmation over early hopium**: a confirmed uptrend is safer than guessing a bottom.
|
| 32 |
+
- Treat **charts as one information stream**, not the whole thesis.
|
| 33 |
+
- Think **body-to-body in memecoins** because single buyers can create misleading wicks.
|
| 34 |
+
- Use **zoom out when panicking**: higher timeframes separate noise from structural change.
|
| 35 |
+
|
| 36 |
+
## Anti-patterns
|
| 37 |
+
- **Drawing on newborn charts**: fresh launches do not yet have meaningful levels.
|
| 38 |
+
- **Catching bottoms**: buying downtrends without strength is hope, not structure.
|
| 39 |
+
- **Using fibs inside ranges**: no impulse means no meaningful retracement.
|
| 40 |
+
- **Refusing invalidation**: a setup that breaks must be re-evaluated, not defended.
|
| 41 |
+
|
| 42 |
+
## Worked Example
|
| 43 |
+
A coin prints a clean high, pulls back, and the 0.618 retracement aligns with a prior all-time-high support zone. That is stronger than a naked fib level. If price later closes below the deeper retracement and retests it from underneath as resistance, the setup is likely dead and should be cut or reduced.
|
| 44 |
+
|
| 45 |
+
## Key Takeaways
|
| 46 |
+
1. Uptrend, downtrend, sideways, transition: answer this first.
|
| 47 |
+
2. Market structure is more important than indicators.
|
| 48 |
+
3. You do not need to buy the exact bottom to make serious money.
|
| 49 |
+
4. Fibonacci helps only after a clean move exists.
|
| 50 |
+
5. Thesis first, chart for entry and challenge.
|
| 51 |
+
|
| 52 |
+
## Connects To
|
| 53 |
+
- **Ch 8**: market conditions determine how much to trust and pursue setups.
|
| 54 |
+
- **Ch 9**: trade execution uses invalidation and entry planning.
|
| 55 |
+
- **Ch 3**: narrative strength affects how technical levels should be weighted.
|
skill/domains/memecoin-markets/chapters/ch08-reading-the-market.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 8: Reading the Market
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Trade behavior must change with market conditions. The same setup that works in a hot bull market can become a donation in a cold market, so the trader's risk dial has to move with liquidity, activity, and cycle phase.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Market condition scan**: read BTC/ETH/SOL and on-chain trench activity together.
|
| 8 |
+
- When to use: at the start of trading days or weeks.
|
| 9 |
+
- How: check whether majors are trending, fresh launches are reaching meaningful market caps, groups are active, and outsiders are paying attention.
|
| 10 |
+
- **Risk dial**: adjust asset type and size to conditions.
|
| 11 |
+
- When to use: before deciding how aggressive to be.
|
| 12 |
+
- How: strong bull -> more memecoin/fresh narrative risk; worsening conditions -> utility, ownership, stables, cash, or no trade.
|
| 13 |
+
- **Cycles within cycles**: even bull markets have cold patches.
|
| 14 |
+
- When to use: after a run of failed or flat setups.
|
| 15 |
+
- How: reduce activity when volume and follow-through disappear instead of pushing harder.
|
| 16 |
+
- **Skill-gap awareness**: the on-chain game gets harder as tools and participants improve.
|
| 17 |
+
- When to use: when comparing current opportunities to older stories.
|
| 18 |
+
- How: assume bots, insiders, and experienced traders are faster; build edge through research, timing, and specialization.
|
| 19 |
+
|
| 20 |
+
## Key Concepts
|
| 21 |
+
- **Trenches**: chaotic fresh-launch memecoin trading environment.
|
| 22 |
+
- **Bull market**: expanding majors, high volume, active groups, and frequent runners.
|
| 23 |
+
- **Bear market**: declining majors, low volume, quiet groups, and low ceilings.
|
| 24 |
+
- **Risk-on / risk-off**: willingness to hold high-variance assets versus safety.
|
| 25 |
+
- **Efficient finance**: crypto improving existing systems like payments, tokenization, and stablecoins.
|
| 26 |
+
- **Cypher-capitalism**: crypto creating new systems such as memes, NFTs, DAOs, and internet capital formation.
|
| 27 |
+
|
| 28 |
+
## Mental Models
|
| 29 |
+
- Use **do less when the market gives less**.
|
| 30 |
+
- Treat **capital protection as the main bear-market job**.
|
| 31 |
+
- Think of **risk as a dial, not a switch**.
|
| 32 |
+
- Use **market ceilings**: if fresh coins now top at 500K instead of 5M, your profit targets and sizes must shrink.
|
| 33 |
+
|
| 34 |
+
## Anti-patterns
|
| 35 |
+
- **Fighting bad conditions**: forcing more trades because fewer good ones exist.
|
| 36 |
+
- **Keeping memecoin aggression in bear markets**: wrong instrument for the environment.
|
| 37 |
+
- **Blaming yourself for every cold week**: sometimes the market is not in giving mode.
|
| 38 |
+
- **Stopping learning**: narratives and tooling evolve too fast for static edge.
|
| 39 |
+
|
| 40 |
+
## Worked Example
|
| 41 |
+
Your groups were finding multiple runners weekly, but suddenly volume dries up, launches fail earlier, and no coin holds gains. The wrong response is to trade more and size up. The right response is to slow down, protect capital, improve research, and wait until conditions show follow-through again.
|
| 42 |
+
|
| 43 |
+
## Key Takeaways
|
| 44 |
+
1. Market conditions decide how much risk your setup deserves.
|
| 45 |
+
2. Bull and bear signals are practical observations, not labels to debate.
|
| 46 |
+
3. A dead market punishes effort when effort means forced trades.
|
| 47 |
+
4. Rotate the risk dial as conditions deteriorate.
|
| 48 |
+
5. The long-term edge is adaptability.
|
| 49 |
+
|
| 50 |
+
## Connects To
|
| 51 |
+
- **Ch 3**: different coin types sit at different places on the risk dial.
|
| 52 |
+
- **Ch 7**: chart structure helps identify macro and local condition changes.
|
| 53 |
+
- **Ch 9**: sizing and profit targets must reflect current market ceiling.
|
skill/domains/memecoin-markets/chapters/ch09-trade-execution.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 9: Trade Execution
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Finding a good coin is only half the game. Most money is won or lost through thesis clarity, sizing, entries, profit-taking, loss cutting, and journaling.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Know why before buying**: a trade must have a written thesis and invalidation.
|
| 8 |
+
- When to use: before every meaningful entry.
|
| 9 |
+
- How: write why you are buying, why now, what would make you sell, and how new information changes the trade.
|
| 10 |
+
- **Current-size test**: compare what you hold now to what you would buy now.
|
| 11 |
+
- When to use: after price or information changes.
|
| 12 |
+
- How: if you would buy less at the current price, reduce the difference.
|
| 13 |
+
- **Sizing by conviction and survivability**: size enough to matter but not enough to damage the next decision.
|
| 14 |
+
- When to use: before entering.
|
| 15 |
+
- How: combine portfolio percentage, liquidity, confidence, information edge, and emotional tolerance.
|
| 16 |
+
- **Gradual profit-taking**: secure gains as the trade moves in your favor.
|
| 17 |
+
- When to use: on significant unrealized profit.
|
| 18 |
+
- How: sell portions into strength, derisk, and leave a runner only if the thesis still justifies it.
|
| 19 |
+
- **Loss-to-rule conversion**: every significant loss should produce a specific process rule.
|
| 20 |
+
- When to use: after a bad trade.
|
| 21 |
+
- How: identify oversizing, ignored red flags, poor exit plan, emotional entry, or missed information; write a constraint that prevents repeat damage.
|
| 22 |
+
|
| 23 |
+
## Key Concepts
|
| 24 |
+
- **Information deficiency edge**: relevant facts not yet priced by most traders.
|
| 25 |
+
- **Position sizing**: determining how much capital a trade deserves.
|
| 26 |
+
- **FOMO entry**: buying because price urgency overwhelms thesis.
|
| 27 |
+
- **Profit scaling**: selling portions over time instead of all at once.
|
| 28 |
+
- **Stop/invalidation**: condition that proves the trade idea wrong.
|
| 29 |
+
- **Journaling**: documenting trades and lessons to accelerate pattern recognition.
|
| 30 |
+
|
| 31 |
+
## Mental Models
|
| 32 |
+
- Use **if this goes to zero, can I trade normally tomorrow?** as a sizing gate.
|
| 33 |
+
- Think **confidence is not edge** unless backed by information.
|
| 34 |
+
- Use **would I buy this now?** to avoid holding stale launch theses.
|
| 35 |
+
- Treat **withdrawn profit as real profit**; wallet numbers can disappear.
|
| 36 |
+
|
| 37 |
+
## Anti-patterns
|
| 38 |
+
- **Oversizing on confidence**: one bad trade can create emotional and financial damage.
|
| 39 |
+
- **Spreading across too many coins**: diluted focus and diluted upside.
|
| 40 |
+
- **Chasing green candles without thesis**: urgency is not information.
|
| 41 |
+
- **Trying to make money back**: revenge trading anchors decisions to the past.
|
| 42 |
+
- **Vague post-loss lessons**: "be careful" does not change behavior.
|
| 43 |
+
|
| 44 |
+
## Worked Example
|
| 45 |
+
A coin bought on a fresh-launch information edge is up after several days. The original reasons have played out. Ask: would I buy this exact amount today at this price? If not, sell the difference. If you still hold, it must be because a new thesis exists, such as team execution, community growth, or product launch, not because the old entry story felt good.
|
| 46 |
+
|
| 47 |
+
## Key Takeaways
|
| 48 |
+
1. Trade management is more important than entry.
|
| 49 |
+
2. Size by portfolio, conviction, liquidity, and emotional tolerance.
|
| 50 |
+
3. Define entry and invalidation before the excitement starts.
|
| 51 |
+
4. Take profits while they are available.
|
| 52 |
+
5. Journal wins, losses, and missed trades that taught something.
|
| 53 |
+
|
| 54 |
+
## Connects To
|
| 55 |
+
- **Ch 4**: thesis formation begins during research.
|
| 56 |
+
- **Ch 7**: entries and invalidation use chart structure.
|
| 57 |
+
- **Ch 10**: psychology explains why execution fails under pressure.
|
skill/domains/memecoin-markets/chapters/ch10-psychology-of-trading.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 10: The Psychology of Trading
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Trading decisions fail when fear, scarcity, revenge, missed opportunities, or ego take control. The goal is not emotionless perfection; it is recognizing psychological failure modes early enough to reduce damage.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Fish & Monkey Methodology**: traders have different natural risk profiles.
|
| 8 |
+
- When to use: when your style feels forced or your regrets repeat.
|
| 9 |
+
- How: decide whether you naturally prefer steady compounding or high-variance moonshots; adapt tactically without betraying your core temperament.
|
| 10 |
+
- **Scarcity brain**: financial pressure makes every trade feel like the only chance.
|
| 11 |
+
- When to use: when you hold too long, panic-sell, oversize, or refuse to redeploy.
|
| 12 |
+
- How: build a financial floor, size like future opportunities are abundant, and stop trading from survival pressure.
|
| 13 |
+
- **Fumble spiral**: missing a winner damages the next trades.
|
| 14 |
+
- When to use: after selling too early, not buying, or missing a huge runner.
|
| 15 |
+
- How: pause, identify whether urgency is driving you, and return to process before entering again.
|
| 16 |
+
- **Awareness versus learning**: lessons become real only when applied during pressure.
|
| 17 |
+
- When to use: after repeating a known mistake.
|
| 18 |
+
- How: turn recognition into a rule and reduce the damage faster next time.
|
| 19 |
+
- **Accountability habit**: missed trades count as data, not just losses.
|
| 20 |
+
- When to use: after any meaningful miss or fumble.
|
| 21 |
+
- How: diagnose why it happened and change one behavior.
|
| 22 |
+
|
| 23 |
+
## Key Concepts
|
| 24 |
+
- **Fish**: trader type focused on steady gains and risk control.
|
| 25 |
+
- **Monkey**: trader type built for high-risk, high-reward conviction.
|
| 26 |
+
- **Revenge trading**: trying to recover losses quickly through worse trades.
|
| 27 |
+
- **Scarcity mindset**: belief that opportunities are rare and must be maximized or forced.
|
| 28 |
+
- **Fumble**: missing or mishandling a major opportunity.
|
| 29 |
+
- **Delusional optimism**: strong belief that continued effort will eventually find opportunity, balanced with risk control.
|
| 30 |
+
|
| 31 |
+
## Mental Models
|
| 32 |
+
- Use **build the floor first**: if survival pressure drives trading, step back and create income or savings outside crypto.
|
| 33 |
+
- Treat **missed runners as part of the job**, not proof that the next trade must be forced.
|
| 34 |
+
- Think **you are not making money back; you are making money**.
|
| 35 |
+
- Use **fun and flow**: stable, engaged traders notice more and last longer.
|
| 36 |
+
|
| 37 |
+
## Anti-patterns
|
| 38 |
+
- **Trading against your nature**: a fish pretending to be a monkey or vice versa.
|
| 39 |
+
- **Letting a missed trade dictate the next trade**: FOMO becomes strategy.
|
| 40 |
+
- **Calling awareness enough**: repeated mistakes need rule changes.
|
| 41 |
+
- **Ignoring life pressure**: trading while desperate makes clean decision-making nearly impossible.
|
| 42 |
+
|
| 43 |
+
## Worked Example
|
| 44 |
+
After a major loss, a trader feels pressure to recover quickly and starts buying weaker setups. The repair path is not a motivational speech: stop trading, identify the specific process failure, create a financial or emotional safety floor if needed, and only return to high-conviction trades with written sizing and invalidation rules.
|
| 45 |
+
|
| 46 |
+
## Key Takeaways
|
| 47 |
+
1. Know your trader temperament and stop copying incompatible styles.
|
| 48 |
+
2. Scarcity brain can distort both wins and losses.
|
| 49 |
+
3. Missing a trade is dangerous mainly because of what it does to your next decisions.
|
| 50 |
+
4. Every significant miss deserves honest review.
|
| 51 |
+
5. Optimism is useful when paired with process and risk control.
|
| 52 |
+
|
| 53 |
+
## Connects To
|
| 54 |
+
- **Ch 1**: awareness versus learning starts the guide.
|
| 55 |
+
- **Ch 9**: execution rules protect against emotional decisions.
|
| 56 |
+
- **Ch 11**: life pressure and financial goals shape trading psychology.
|
skill/domains/memecoin-markets/chapters/ch11-life-money-perspective.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 11: Life, Money & Perspective
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Crypto is attractive because traditional paths to financial security feel broken for many people. The right response is not reckless gambling, but deliberate asymmetric bets that can buy time, security, and freedom.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Define the actual goal**: "make money" is too vague.
|
| 8 |
+
- When to use: before life-changing gains arrive.
|
| 9 |
+
- How: name the target, such as debt removal, down payment, mortgage reduction, business runway, or family security.
|
| 10 |
+
- **Mortgage freedom frame**: reducing the largest long-term financial constraint can change a life more than status spending.
|
| 11 |
+
- When to use: after major profit.
|
| 12 |
+
- How: compare speculative upside against decades of interest, job dependency, and stress removed.
|
| 13 |
+
- **Prison of financial mediocrity**: people take high-variance bets because conventional progress feels capped.
|
| 14 |
+
- When to use: when judging your own risk appetite.
|
| 15 |
+
- How: acknowledge the pressure without letting it justify bad sizing.
|
| 16 |
+
- **Asymmetric life bets**: seek survivable downside and transformative upside beyond trading too.
|
| 17 |
+
- When to use: career, business, brand, skills, and network decisions.
|
| 18 |
+
- How: take repeated structured risks that compound knowledge, reputation, network, or capital.
|
| 19 |
+
|
| 20 |
+
## Key Concepts
|
| 21 |
+
- **Asymmetry**: limited downside with large upside.
|
| 22 |
+
- **Financial mediocrity**: surviving without a realistic path to freedom.
|
| 23 |
+
- **Mortgage drag**: long-term interest and job dependency created by debt.
|
| 24 |
+
- **Safety net**: protected assets or income that reduces desperate decision-making.
|
| 25 |
+
- **Status spending**: purchases meant to impress rather than improve life.
|
| 26 |
+
|
| 27 |
+
## Mental Models
|
| 28 |
+
- Use **money as a tool, not destination**.
|
| 29 |
+
- Think **one million vs two million**: once a gain changes your life, risking it for marginal extra status can be irrational.
|
| 30 |
+
- Treat **profits as freedom only when protected**.
|
| 31 |
+
- Keep **presence**: the life being built is still happening now.
|
| 32 |
+
|
| 33 |
+
## Anti-patterns
|
| 34 |
+
- **Feeling guilty for asymmetric bets**: the system changed; risk can be rational if structured.
|
| 35 |
+
- **Letting money corrupt relationships or identity**: status can create anxiety and fake social signals.
|
| 36 |
+
- **Waiting to define the plan until after the gain**: emotions will be loudest then.
|
| 37 |
+
- **Sacrificing all present life to future achievement**: money loses meaning if it destroys presence.
|
| 38 |
+
|
| 39 |
+
## Worked Example
|
| 40 |
+
A trader reaches a life-changing unrealized gain and considers holding for another multiple. The life-first decision is to ask what the current money can permanently fix: mortgage, debt, runway, safety, or family needs. Secure the freedom first; only then decide how much risk remains acceptable.
|
| 41 |
+
|
| 42 |
+
## Key Takeaways
|
| 43 |
+
1. Define what crypto profits are supposed to buy before they arrive.
|
| 44 |
+
2. Reducing major debt can create more freedom than luxury spending.
|
| 45 |
+
3. High-variance bets are rational only when downside is survivable.
|
| 46 |
+
4. Build safety before status.
|
| 47 |
+
5. Do not let the screen become your whole life.
|
| 48 |
+
|
| 49 |
+
## Connects To
|
| 50 |
+
- **Ch 9**: profit-taking converts gains into actual life outcomes.
|
| 51 |
+
- **Ch 10**: scarcity brain and life pressure distort trading.
|
| 52 |
+
- **Ch 13**: first withdrawals make wins real and reinforce protection.
|
skill/domains/memecoin-markets/chapters/ch12-staying-safe-in-crypto.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 12: Staying Safe in Crypto
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Crypto has little forgiveness and little insurance. Security must be treated as a daily habit that limits damage from phishing, malicious contracts, compromised accounts, bad custody, and social engineering.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Custody layering**: split funds by purpose and risk.
|
| 8 |
+
- When to use: before holding meaningful amounts.
|
| 9 |
+
- How: keep trading funds hot, long-term funds cold, browsing wallets separate, and large holdings diversified or multisig.
|
| 10 |
+
- **URL and source verification**: links are attack surfaces.
|
| 11 |
+
- When to use: before connecting a wallet or downloading anything.
|
| 12 |
+
- How: use official channels, bookmarks, mutuals, comments, and exact URL checks; distrust ads and unsolicited links.
|
| 13 |
+
- **Seed phrase survivability**: backups must resist theft, fire, water, memory loss, and panic.
|
| 14 |
+
- When to use: when creating any wallet.
|
| 15 |
+
- How: write on paper or metal, store copies separately, avoid cloud/photos/notes, and test recovery.
|
| 16 |
+
- **Social engineering skepticism**: unsolicited friendliness can be a long scam.
|
| 17 |
+
- When to use: in DMs, community groups, job offers, "alpha" sharing, bot testing, or support messages.
|
| 18 |
+
- How: slow down, ask a trusted person, verify independently, and never share seed/private keys.
|
| 19 |
+
|
| 20 |
+
## Key Concepts
|
| 21 |
+
- **CEX**: centralized exchange; convenient but not self-custody.
|
| 22 |
+
- **Hot wallet**: internet-connected wallet used for active trading and dapps.
|
| 23 |
+
- **Cold wallet**: hardware/offline key storage for significant holdings.
|
| 24 |
+
- **Seed phrase**: 12-24 word master recovery key.
|
| 25 |
+
- **Multisig**: wallet requiring multiple approvals.
|
| 26 |
+
- **Phishing**: fake link/site designed to steal funds or signatures.
|
| 27 |
+
- **Fake support**: scammer impersonating help staff.
|
| 28 |
+
- **Hacked account**: trusted social account used by an attacker.
|
| 29 |
+
- **Fake airdrop**: token or link bait that triggers malicious interaction.
|
| 30 |
+
|
| 31 |
+
## Mental Models
|
| 32 |
+
- Use **only the paranoid survive** as the default security posture.
|
| 33 |
+
- Think **blast radius**: if one wallet is drained, what survives?
|
| 34 |
+
- Treat **every wallet signature as a transaction with consequences**.
|
| 35 |
+
- Use **privacy as security**: portfolio size should not be public gossip.
|
| 36 |
+
|
| 37 |
+
## Anti-patterns
|
| 38 |
+
- **Keeping all funds on exchanges**: freezes, hacks, and bankruptcies can trap assets.
|
| 39 |
+
- **Storing seed phrases digitally**: notes apps, cloud drives, and screenshots are common leak points.
|
| 40 |
+
- **Connecting main wallets to unknown sites**: one bad approval can drain funds.
|
| 41 |
+
- **Trusting checkmarks or familiar accounts alone**: verification badges and hacked accounts are not safety.
|
| 42 |
+
- **Interacting with mystery tokens**: unknown airdrops can be malicious.
|
| 43 |
+
|
| 44 |
+
## Worked Example
|
| 45 |
+
A community post claims the dev is live and links to a launchpad lookalike. Before connecting, inspect the URL character by character, verify the link from the project's official profile and other channels, read comments for organic validation, and use a low-value browsing wallet if interaction is truly necessary. If anything feels rushed or too good, do nothing.
|
| 46 |
+
|
| 47 |
+
## Key Takeaways
|
| 48 |
+
1. Keep only necessary funds in hot wallets and exchanges.
|
| 49 |
+
2. Use cold wallets for meaningful long-term holdings.
|
| 50 |
+
3. Store seed phrases offline, redundantly, and carefully.
|
| 51 |
+
4. Verify URLs and sources before connecting wallets.
|
| 52 |
+
5. Be deeply cautious with DMs, downloads, job offers, fake alpha, and support requests.
|
| 53 |
+
|
| 54 |
+
## Connects To
|
| 55 |
+
- **Ch 2**: explains wallet, LP, and authority risks.
|
| 56 |
+
- **Ch 6**: recommends wallet separation and explorer use.
|
| 57 |
+
- **Ch 13**: turns safety into the beginner setup sequence.
|
skill/domains/memecoin-markets/chapters/ch13-your-first-steps.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Chapter 13: Your First Steps
|
| 2 |
+
|
| 3 |
+
## Core Idea
|
| 4 |
+
Beginners should set up infrastructure, safety, information streams, and practice habits before risking meaningful money. The order matters because early mistakes compound quickly in crypto.
|
| 5 |
+
|
| 6 |
+
## Frameworks Introduced
|
| 7 |
+
- **Setup before speculation**: do not fund or trade before wallets and backups are ready.
|
| 8 |
+
- When to use: when onboarding from zero.
|
| 9 |
+
- How: set up trading app, export keys, create separate wallet, back up seed phrase, then fund small.
|
| 10 |
+
- **Feed-building as training**: a good X feed teaches narratives and pattern recognition.
|
| 11 |
+
- When to use: before relying on calls.
|
| 12 |
+
- How: follow gradually, prioritize thoughtful researchers, post your own thoughts, and avoid wins-only shillers.
|
| 13 |
+
- **Private group first**: build or join a small trust network before chasing public channels.
|
| 14 |
+
- When to use: after creating Telegram.
|
| 15 |
+
- How: add a scanner bot, invite genuine traders over time, and use the group to share theses and checks.
|
| 16 |
+
- **Observe before risking**: paper trading teaches process without tuition.
|
| 17 |
+
- When to use: before first real memecoin trades.
|
| 18 |
+
- How: write hypothetical entry, thesis, invalidation, and management; then follow the outcome.
|
| 19 |
+
- **First withdrawal rule**: make early wins real.
|
| 20 |
+
- When to use: after first meaningful profit.
|
| 21 |
+
- How: withdraw some to a bank or protected storage to feel and protect the win.
|
| 22 |
+
|
| 23 |
+
## Key Concepts
|
| 24 |
+
- **Trading wallet**: wallet used for active app execution.
|
| 25 |
+
- **Navigation wallet**: separate wallet used for dapps and exploration.
|
| 26 |
+
- **USDC/cash balance**: stable value used to deploy across opportunities.
|
| 27 |
+
- **X feed**: narrative discovery stream.
|
| 28 |
+
- **Telegram group**: real-time research and coordination channel.
|
| 29 |
+
- **Paper trading**: simulated trades tracked without risking money.
|
| 30 |
+
|
| 31 |
+
## Mental Models
|
| 32 |
+
- Use **first deposits as tuition**, not income.
|
| 33 |
+
- Think **20 follows at a time** when building a feed; quality and account safety matter.
|
| 34 |
+
- Treat **posting as thesis practice** even with no followers.
|
| 35 |
+
- Use **withdrawal as psychological anchoring**: it proves profit is real and worth protecting.
|
| 36 |
+
|
| 37 |
+
## Anti-patterns
|
| 38 |
+
- **Skipping key backups**: funding wallets before exporting or storing recovery material.
|
| 39 |
+
- **Following everyone at once**: noisy feeds and platform limits reduce quality.
|
| 40 |
+
- **Starting with public call channels**: beginners often lack timing and exit skill.
|
| 41 |
+
- **Paper trading casually**: it only works if entries, exits, and reasons are written.
|
| 42 |
+
- **Compounding every win immediately**: never feeling real profit makes it easier to lose it all.
|
| 43 |
+
|
| 44 |
+
## Worked Example
|
| 45 |
+
From zero: install the trading app, export and store keys, create a separate Phantom wallet with seed backups, fund only an amount you can lose, build an X feed gradually, create a Telegram group with a bot, paper trade until thesis writing feels natural, then take small real trades. On the first meaningful win, withdraw some profit.
|
| 46 |
+
|
| 47 |
+
## Key Takeaways
|
| 48 |
+
1. Do not reorder setup, safety, funding, feed, group, observation, and trading.
|
| 49 |
+
2. Start small enough that losses teach rather than harm.
|
| 50 |
+
3. Build original thought by posting and paper trading.
|
| 51 |
+
4. Use public channels as later supplements, not beginner foundations.
|
| 52 |
+
5. Protect the first win so the process becomes real.
|
| 53 |
+
|
| 54 |
+
## Connects To
|
| 55 |
+
- **Ch 6**: details the trading and wallet tools.
|
| 56 |
+
- **Ch 12**: provides the safety rules behind setup.
|
| 57 |
+
- **Ch 9**: turns paper trades into executable trade process.
|
skill/domains/memecoin-markets/cheatsheet.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Cheatsheet
|
| 2 |
+
|
| 3 |
+
## Pre-Trade Decision Rules
|
| 4 |
+
|
| 5 |
+
| Question | If yes | If no |
|
| 6 |
+
|---|---|---|
|
| 7 |
+
| Can I explain the buy in two sentences? | Continue checklist. | Do not buy. |
|
| 8 |
+
| Is the edge information, timing, narrative, community, or chart? | Size according to strength. | Treat as FOMO. |
|
| 9 |
+
| Would new buyers care about this information? | Edge may be tradable. | Information may be irrelevant. |
|
| 10 |
+
| Is the coin type clear? | Use matching exit logic. | Classify before entering. |
|
| 11 |
+
| Can I trade normally tomorrow if it goes to zero? | Size may be acceptable. | Size is too large. |
|
| 12 |
+
| Do I know what invalidates the trade? | Enter only if reward/risk fits. | No trade. |
|
| 13 |
+
|
| 14 |
+
## Coin-Type Logic
|
| 15 |
+
|
| 16 |
+
| Type | What drives value | Research priority | Holding mistake |
|
| 17 |
+
|---|---|---|---|
|
| 18 |
+
| Viral memecoin | Raw attention and narrative speed | Canonical identity, virality, supply risk | Holding after attention dies |
|
| 19 |
+
| Community coin | Persistent social coordination | Active members, content, raids, holder quality | Mistaking pump-only activity for community |
|
| 20 |
+
| Utility coin | Attention plus product/value mechanics | Team, product, revenue, tokenomics, narrative simplicity | Treating complex fundamentals as a pure meme |
|
| 21 |
+
| Ownership coin | Company valuation exposure concept | Company growth, terms, liquidity event logic | Selling like a memecoin too early |
|
| 22 |
+
|
| 23 |
+
## Bundling Red Flags
|
| 24 |
+
|
| 25 |
+
| Signal | Interpretation |
|
| 26 |
+
|---|---|
|
| 27 |
+
| One cluster controls large supply | Hidden single actor can dump |
|
| 28 |
+
| Top holder above ~3.5% in fresh trenches | Single sell can heavily damage chart |
|
| 29 |
+
| Many fresh wallets | Possible coordinated launch/control |
|
| 30 |
+
| Same funding origin/time | Wallets may share operator |
|
| 31 |
+
| Smooth up-only low-volume chart | Possible honeypot or controlled pump |
|
| 32 |
+
| Volume much lower than market cap on young coin | Supply may be tightly controlled |
|
| 33 |
+
|
| 34 |
+
## Market Risk Dial
|
| 35 |
+
|
| 36 |
+
| Conditions | Behavior |
|
| 37 |
+
|---|---|
|
| 38 |
+
| Majors strong, groups active, fresh coins reach high MC, outside attention rising | More aggressive, but still thesis-led |
|
| 39 |
+
| Mixed market, runners selective, narratives fragmented | Smaller size, higher standards |
|
| 40 |
+
| Majors down, volume dry, groups quiet, launches die early | Protect capital, trade less or not at all |
|
| 41 |
+
| After missed/fumbled big trade | Pause; avoid revenge entries |
|
| 42 |
+
|
| 43 |
+
## Chart Rules
|
| 44 |
+
|
| 45 |
+
| Setup | Action |
|
| 46 |
+
|---|---|
|
| 47 |
+
| Higher highs and higher lows | Uptrend; look for pullback entries |
|
| 48 |
+
| Lower highs and lower lows | Downtrend; avoid bottom-catching |
|
| 49 |
+
| Break above lower high | Possible bullish transition |
|
| 50 |
+
| Break below higher low | Bearish structure change |
|
| 51 |
+
| Clean impulse then pullback to 0.5-0.786 plus support | Potential entry zone |
|
| 52 |
+
| Fib drawn in sideways chop | Ignore the fib |
|
| 53 |
+
| Support breaks, retests, rejects | Setup likely invalid |
|
| 54 |
+
|
| 55 |
+
## Profit and Loss Rules
|
| 56 |
+
|
| 57 |
+
| Situation | Default |
|
| 58 |
+
|---|---|
|
| 59 |
+
| Up meaningfully and imagining bigger numbers | Sell some |
|
| 60 |
+
| Life-changing money on screen | Secure it now |
|
| 61 |
+
| Would not buy current size today | Reduce to justified size |
|
| 62 |
+
| Thesis broken | Exit or reduce |
|
| 63 |
+
| Loss creates urge to recover fast | Stop and review |
|
| 64 |
+
| Same mistake repeats | Create a concrete rule, not a vague intention |
|
| 65 |
+
|
| 66 |
+
## Security Rules
|
| 67 |
+
|
| 68 |
+
| Situation | Rule |
|
| 69 |
+
|---|---|
|
| 70 |
+
| New wallet | Write seed offline, make redundant backups |
|
| 71 |
+
| Significant holdings | Use cold wallet; consider multisig for very large amounts |
|
| 72 |
+
| Unknown dapp/link | Verify URL through official channels; use browsing wallet |
|
| 73 |
+
| Support DM asks for seed | Scam |
|
| 74 |
+
| Friend or KOL sends urgent link/CA | Verify through multiple channels |
|
| 75 |
+
| Mystery airdrop token | Do not interact until verified |
|
| 76 |
+
| Public portfolio brag | Security risk; avoid |
|
skill/domains/memecoin-markets/glossary.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Glossary
|
| 2 |
+
|
| 3 |
+
**Accountability habit** - Reviewing misses and losses to identify a specific process failure and rule. (Ch 10)
|
| 4 |
+
|
| 5 |
+
**Attention arbitrage** - Trading the gap between a narrative gaining attention and the market fully repricing the right asset. (Ch 3)
|
| 6 |
+
|
| 7 |
+
**Bear market** - Conditions where majors trend down, on-chain volume dries up, groups get quiet, and fresh launches top lower. (Ch 8)
|
| 8 |
+
|
| 9 |
+
**Borrowed conviction** - Buying because another person is confident without understanding their thesis, entry, size, or exit. (Ch 5)
|
| 10 |
+
|
| 11 |
+
**Break of structure** - A chart violating the swing high or low that should have held if the trend remained intact. (Ch 7)
|
| 12 |
+
|
| 13 |
+
**Bundling** - One entity controlling token supply through multiple wallets. (Ch 2)
|
| 14 |
+
|
| 15 |
+
**CA / Contract Address** - Unique address used to identify a token or pool. (Ch 2, Ch 4)
|
| 16 |
+
|
| 17 |
+
**CEX** - Centralized exchange; convenient custody that can freeze or lose user access. (Ch 12)
|
| 18 |
+
|
| 19 |
+
**Cold wallet** - Offline or hardware wallet used to protect significant holdings. (Ch 12)
|
| 20 |
+
|
| 21 |
+
**Community coin** - Coin whose value depends on persistent community coordination, content, raids, and onboarding. (Ch 3)
|
| 22 |
+
|
| 23 |
+
**Confluence** - Multiple independent signals aligning around the same trade zone or thesis. (Ch 7)
|
| 24 |
+
|
| 25 |
+
**CTO** - Community takeover after the original developer or team abandons the coin. (Ch 3)
|
| 26 |
+
|
| 27 |
+
**DYOR** - Do your own research; verify before acting. (Ch 1, Ch 4)
|
| 28 |
+
|
| 29 |
+
**Exit liquidity** - Buyers who allow earlier holders to sell profitably. (Ch 5)
|
| 30 |
+
|
| 31 |
+
**Fibonacci retracement** - Technical tool using pullback levels such as 0.5, 0.618, and 0.786. (Ch 7)
|
| 32 |
+
|
| 33 |
+
**Fish** - Trader type focused on steady, lower-variance compounding. (Ch 10)
|
| 34 |
+
|
| 35 |
+
**FOMO entry** - Buying from urgency caused by price movement rather than thesis. (Ch 9)
|
| 36 |
+
|
| 37 |
+
**Fumble spiral** - Emotional deterioration after missing or mishandling a major winner. (Ch 10)
|
| 38 |
+
|
| 39 |
+
**Gas fee** - Cost paid to submit a transaction. (Ch 2)
|
| 40 |
+
|
| 41 |
+
**Honeypot** - Token setup that lures buys and prevents or punishes selling. (Ch 2, Ch 12)
|
| 42 |
+
|
| 43 |
+
**Hot wallet** - Internet-connected wallet used for active trading or dapp interaction. (Ch 12)
|
| 44 |
+
|
| 45 |
+
**Information deficiency edge** - Advantage from knowing relevant information before most market participants. (Ch 4, Ch 9)
|
| 46 |
+
|
| 47 |
+
**Invalidation** - Condition where the trade idea no longer makes sense. (Ch 7, Ch 9)
|
| 48 |
+
|
| 49 |
+
**KOL** - Key Opinion Leader; crypto influencer or public caller. (Ch 5)
|
| 50 |
+
|
| 51 |
+
**Liquidity Pool / LP** - Paired assets that enable token swaps and determine price impact. (Ch 2)
|
| 52 |
+
|
| 53 |
+
**Market cap / MC** - Price multiplied by token supply. (Ch 2)
|
| 54 |
+
|
| 55 |
+
**Market structure** - Pattern of highs and lows used to identify trend direction. (Ch 7)
|
| 56 |
+
|
| 57 |
+
**Mint authority** - Permission to create more tokens. (Ch 2)
|
| 58 |
+
|
| 59 |
+
**Monkey** - Trader type built for high-variance moonshot trades. (Ch 10)
|
| 60 |
+
|
| 61 |
+
**Multisig** - Wallet setup requiring multiple approvals to move funds. (Ch 12)
|
| 62 |
+
|
| 63 |
+
**NFA** - Not financial advice. (Ch 1)
|
| 64 |
+
|
| 65 |
+
**On-chain sleuthing** - Using explorers and wallet history to verify claims and behavior. (Ch 2, Ch 6)
|
| 66 |
+
|
| 67 |
+
**Ownership coin** - Token model tied conceptually to company valuation or equity-like debt exposure. (Ch 3)
|
| 68 |
+
|
| 69 |
+
**Paper trading** - Tracking hypothetical trades without risking real capital. (Ch 13)
|
| 70 |
+
|
| 71 |
+
**Phishing** - Fake site, link, or message designed to steal keys, signatures, or funds. (Ch 12)
|
| 72 |
+
|
| 73 |
+
**Position sizing** - Choosing how much capital a trade deserves. (Ch 9)
|
| 74 |
+
|
| 75 |
+
**Risk dial** - Adjusting aggressiveness and asset type based on market conditions. (Ch 8)
|
| 76 |
+
|
| 77 |
+
**Roundtripping** - Letting major unrealized profit return toward entry or loss. (Ch 1, Ch 9)
|
| 78 |
+
|
| 79 |
+
**Scarcity brain** - Fear-based mindset that treats every trade as rare and irreplaceable. (Ch 10)
|
| 80 |
+
|
| 81 |
+
**Seed phrase** - 12-24 word master recovery key for a wallet. (Ch 2, Ch 12)
|
| 82 |
+
|
| 83 |
+
**Slippage** - Price difference caused by execution impact or other trades moving before yours. (Ch 2)
|
| 84 |
+
|
| 85 |
+
**Telegram call channel** - Channel that posts coin calls or market leads. (Ch 4, Ch 5)
|
| 86 |
+
|
| 87 |
+
**Thesis** - The reason a trade should work, plus what would invalidate it. (Ch 4, Ch 9)
|
| 88 |
+
|
| 89 |
+
**Token account** - Solana account used to hold a specific token for a wallet. (Ch 6)
|
| 90 |
+
|
| 91 |
+
**Total Value Locked / TVL** - Value held in a pool or protocol. (Ch 2)
|
| 92 |
+
|
| 93 |
+
**Trenches** - Fast, chaotic fresh-launch memecoin trading environment. (Ch 8)
|
| 94 |
+
|
| 95 |
+
**Utility coin** - Token with product, access, revenue, burn, buyback, or usage mechanics. (Ch 3)
|
| 96 |
+
|
| 97 |
+
**Vamping** - A rival coin stealing attention and liquidity from the coin initially tied to a narrative. (Ch 3)
|
| 98 |
+
|
| 99 |
+
**Wallet tracker** - Tool or habit for monitoring another trader's wallet activity. (Ch 6)
|
skill/domains/memecoin-markets/patterns.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Patterns
|
| 2 |
+
|
| 3 |
+
## Pre-Trade Thesis Gate
|
| 4 |
+
**When to use**: Before entering any meaningful trade.
|
| 5 |
+
**How**: Write: why this coin, why now, what information is underpriced, what invalidates the trade, how much you will risk, and when you will take profit.
|
| 6 |
+
**Trade-offs**: Slower than impulse buying, but it prevents fog-brain entries and improves post-trade review.
|
| 7 |
+
|
| 8 |
+
## Fresh Coin Safety Scan
|
| 9 |
+
**When to use**: Before buying low-cap or newly launched tokens.
|
| 10 |
+
**How**: Check LP lock, mint/freeze authority, holder concentration, bundling signs, funding origin, volume-to-market-cap, and chart shape.
|
| 11 |
+
**Trade-offs**: May make you miss some fast trades, but avoids the fastest paths to zero.
|
| 12 |
+
|
| 13 |
+
## Bundling Detection Stack
|
| 14 |
+
**When to use**: When supply distribution looks suspicious or chart action is too clean.
|
| 15 |
+
**How**: Combine Bubblemaps clusters, top-holder percentages, fresh wallet labels, bundler icons, funding origin, bot-like candles, MC vs volume, and fees paid.
|
| 16 |
+
**Trade-offs**: No single signal proves malicious intent; use the stack to price risk.
|
| 17 |
+
|
| 18 |
+
## Narrative Canonicality Check
|
| 19 |
+
**When to use**: During viral animal, celebrity, news, or phrase trades.
|
| 20 |
+
**How**: Identify the exact name/source, official or dominant coin, chain, launchpad, and community. Avoid vague placeholder coins if better identity evidence is pending.
|
| 21 |
+
**Trade-offs**: Waiting for clarity may cost early entry, but reduces vamping risk.
|
| 22 |
+
|
| 23 |
+
## X Contract Search
|
| 24 |
+
**When to use**: When researching a coin's social narrative.
|
| 25 |
+
**How**: Search both CA and ticker in Top and Latest. Skip bot/call-channel spam. Look for human theses, credible early posters, communities, dev accounts, and contradictory evidence.
|
| 26 |
+
**Trade-offs**: Noisy, but often reveals why price is moving.
|
| 27 |
+
|
| 28 |
+
## Dev/Project Legitimacy Trace
|
| 29 |
+
**When to use**: For utility, team, or product-linked tokens.
|
| 30 |
+
**How**: Verify account history, mutuals, LinkedIn, Discord, old posts, prior projects, hacked-account risk, and confirmation from trusted sources.
|
| 31 |
+
**Trade-offs**: Deep research takes time; the edge decays as facts become public.
|
| 32 |
+
|
| 33 |
+
## KOL Trust Audit
|
| 34 |
+
**When to use**: Before using an influencer as a source.
|
| 35 |
+
**How**: Track calls over time. Note deleted posts, honesty about losses, update quality, paid-promo patterns, and whether they post reasoning or only results.
|
| 36 |
+
**Trade-offs**: Requires patience; avoids mistaking audience for skill.
|
| 37 |
+
|
| 38 |
+
## Wallet Discovery via Explorer
|
| 39 |
+
**When to use**: To verify or monitor a trader/holder.
|
| 40 |
+
**How**: Find the token chain, copy CA, open the explorer, inspect holders, match token balance to app display, and confirm with recent transactions.
|
| 41 |
+
**Trade-offs**: Wallets may be partial or decoys; do not copy-trade blindly.
|
| 42 |
+
|
| 43 |
+
## Market Structure Read
|
| 44 |
+
**When to use**: Before technical entries or exits.
|
| 45 |
+
**How**: Identify higher highs/lows or lower highs/lows. Look for break of structure to confirm trend change.
|
| 46 |
+
**Trade-offs**: Simple but not perfect; combine with thesis and market conditions.
|
| 47 |
+
|
| 48 |
+
## Fib Confluence Entry
|
| 49 |
+
**When to use**: After a clean directional impulse.
|
| 50 |
+
**How**: Draw body-to-body in memecoins from swing low to high. Watch 0.5, 0.618, and 0.786 zones. Prefer entries where fib aligns with support/resistance, trendlines, round numbers, or high-volume areas.
|
| 51 |
+
**Trade-offs**: Invalid in chop or unfinished moves.
|
| 52 |
+
|
| 53 |
+
## Risk Dial Adjustment
|
| 54 |
+
**When to use**: Weekly, daily, or whenever conditions shift.
|
| 55 |
+
**How**: Assess majors, on-chain volume, fresh-launch ceilings, group activity, and outside attention. Increase risk in strong conditions; reduce size or stop trading in weak ones.
|
| 56 |
+
**Trade-offs**: Can feel boring in cold markets; preserves capital for real opportunity.
|
| 57 |
+
|
| 58 |
+
## Current-Size Test
|
| 59 |
+
**When to use**: After a position moves or the thesis changes.
|
| 60 |
+
**How**: Ask: if I found this coin today at this price, how much would I buy? Sell the difference between current holdings and current justified size.
|
| 61 |
+
**Trade-offs**: May exit before further upside; prevents stale thesis exposure.
|
| 62 |
+
|
| 63 |
+
## Profit Scaling
|
| 64 |
+
**When to use**: On large unrealized gains.
|
| 65 |
+
**How**: Sell portions into strength, especially when euphoria appears or the gain changes your life. Keep a runner only if the thesis still supports it.
|
| 66 |
+
**Trade-offs**: You will never sell the exact top; that is the point.
|
| 67 |
+
|
| 68 |
+
## Loss-to-Rule Review
|
| 69 |
+
**When to use**: After a significant loss or missed trade.
|
| 70 |
+
**How**: Identify the precise failure and write one concrete rule. Examples: max size under low MC, reduce on uncertain bearish news, no entry without thesis, no trading after major fumble.
|
| 71 |
+
**Trade-offs**: Emotionally uncomfortable; accelerates real learning.
|
| 72 |
+
|
| 73 |
+
## Wallet Blast-Radius Design
|
| 74 |
+
**When to use**: Before storing or trading meaningful amounts.
|
| 75 |
+
**How**: Separate active trading wallet, browsing/dapp wallet, long-term cold wallet, and optionally multisig/extra cold storage for very large holdings.
|
| 76 |
+
**Trade-offs**: More operational complexity; sharply reduces single-failure risk.
|
skill/domains/robinhood-chain.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Domain Pack: Robinhood Chain
|
| 2 |
+
|
| 3 |
+
Use this pack when the question involves Robinhood Chain, a Stock Token, a chain-native launch, or an agent acting on the chain.
|
| 4 |
+
|
| 5 |
+
## Facts To Anchor On
|
| 6 |
+
|
| 7 |
+
| Item | Mainnet | Testnet |
|
| 8 |
+
| --- | --- | --- |
|
| 9 |
+
| Chain ID | 4663 | 46630 |
|
| 10 |
+
| Public RPC | `https://rpc.mainnet.chain.robinhood.com` | `https://rpc.testnet.chain.robinhood.com` |
|
| 11 |
+
| Explorer | `https://robinhoodchain.blockscout.com` | `https://explorer.testnet.chain.robinhood.com` |
|
| 12 |
+
| Gas token | ETH | ETH |
|
| 13 |
+
|
| 14 |
+
Robinhood Chain launched on mainnet in July 2026. Treat anything that predates that as pre-launch or testnet and label it.
|
| 15 |
+
|
| 16 |
+
## Primary Sources, In Order Of Trust
|
| 17 |
+
|
| 18 |
+
1. Chain state: Blockscout API (`/api/v2/tokens/{address}`, `/api/v2/addresses/{address}`, `/api/v2/tokens/{address}/holders`, `/api/v2/search?q=`), or `eth_call` against the public RPC. This is the only category that can confirm a contract exists, its supply, its holders, and its transfers.
|
| 19 |
+
2. Price feeds: Chainlink feeds on-chain for Stock Tokens; DEX price from Uniswap v3 pools. The gap between them is the premium or discount and is a claim worth triangulating.
|
| 20 |
+
3. Market aggregators: GeckoTerminal (pools, volume, liquidity), DefiLlama (chain TVL, protocol TVL). These are indexers, not primary state. Cite them as such.
|
| 21 |
+
4. Robinhood's own announcements and docs: project-reported. Useful for intent and product claims; not proof of usage.
|
| 22 |
+
5. Social and news: interested or secondary. Never the only source for a claim.
|
| 23 |
+
|
| 24 |
+
## Verify First
|
| 25 |
+
|
| 26 |
+
- Contract identity. Tickers collide on purpose. Resolve the ticker through the explorer or a registry, confirm the address, and check creation date and verified source before anything else.
|
| 27 |
+
- What a Stock Token represents. Tokenized equity exposure is not direct share ownership unless the issuer documentation proves it. State what the token holder actually has a claim on and cite the document.
|
| 28 |
+
- Multipliers and splits. Stock Token balances may carry a multiplier. A raw balance is not a share count until the multiplier is applied.
|
| 29 |
+
- Liquidity depth versus headline price. A price from a thin pool is a low-confidence price. Report liquidity alongside it.
|
| 30 |
+
- Oracle versus DEX. If the two disagree by more than a few percent, that is a finding, not noise.
|
| 31 |
+
|
| 32 |
+
## Traps
|
| 33 |
+
|
| 34 |
+
- Recently deployed tokens that reuse an existing ticker. Treat ticker matches as candidates until the contract address is confirmed against an official registry.
|
| 35 |
+
- Headline volume without liquidity context. Report pool count and reserves alongside it.
|
| 36 |
+
- Confusing Robinhood the broker, Robinhood Chain the network, and Robinhood MCP the agent tooling. Say which one the claim is about.
|
| 37 |
+
- Assuming a launch platform's listing is a quality signal. It is only proof of a deployment.
|
| 38 |
+
|
| 39 |
+
## Existing Agent Tooling
|
| 40 |
+
|
| 41 |
+
Read-only MCP servers already exist for the chain (`robinhood-chain-mcp`, `hood-mcp`). They return chain state, token metadata, quotes, and pairs. They do not verify claims or grade evidence. Seeri sits above them: use their output as source category 1 or 2 and grade it.
|
| 42 |
+
|
| 43 |
+
## Output Additions
|
| 44 |
+
|
| 45 |
+
When the subject is on Robinhood Chain, the evidence grid must include rows for: contract identity, what the token represents, on-chain holders and supply, oracle price, DEX price and liquidity, and the premium or discount between them.
|
skill/evidence-grid.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Evidence Grid
|
| 2 |
+
|
| 3 |
+
Use for findings, confidence, and contradiction tracking.
|
| 4 |
+
|
| 5 |
+
## Grid Columns
|
| 6 |
+
|
| 7 |
+
| Sub-question | Source(s) | Finding | Confidence | Contradictions or gaps |
|
| 8 |
+
|---|---|---|---|---|
|
| 9 |
+
|
| 10 |
+
## Confidence Scoring
|
| 11 |
+
|
| 12 |
+
High:
|
| 13 |
+
|
| 14 |
+
- Recent primary evidence
|
| 15 |
+
- Independent corroboration
|
| 16 |
+
- Clear definitions
|
| 17 |
+
- No unresolved contradiction
|
| 18 |
+
|
| 19 |
+
Medium:
|
| 20 |
+
|
| 21 |
+
- One strong source
|
| 22 |
+
- Multiple interested sources that agree
|
| 23 |
+
- Recent but not independently verified
|
| 24 |
+
- Clear caveats
|
| 25 |
+
|
| 26 |
+
Low:
|
| 27 |
+
|
| 28 |
+
- Stale data
|
| 29 |
+
- Indirect evidence
|
| 30 |
+
- Ambiguous definitions
|
| 31 |
+
- Contradicted sources
|
| 32 |
+
- Incentive-heavy claim without corroboration
|
| 33 |
+
|
| 34 |
+
## Required Caveat Types
|
| 35 |
+
|
| 36 |
+
For onchain finance, check whether the finding depends on:
|
| 37 |
+
|
| 38 |
+
- Token holder rights
|
| 39 |
+
- Jurisdictional eligibility
|
| 40 |
+
- Custody or issuer risk
|
| 41 |
+
- Liquidity incentives
|
| 42 |
+
- Dashboard methodology
|
| 43 |
+
- Market hours versus 24/7 trading
|
| 44 |
+
- Oracle or RFQ pricing quality
|
| 45 |
+
- Redemption and settlement path
|
| 46 |
+
|
| 47 |
+
## Contradiction Handling
|
| 48 |
+
|
| 49 |
+
If sources disagree:
|
| 50 |
+
|
| 51 |
+
1. Name the contradiction.
|
| 52 |
+
2. Prefer primary mechanics over marketing language.
|
| 53 |
+
3. Prefer direct data over summaries.
|
| 54 |
+
4. Lower confidence until resolved.
|
| 55 |
+
5. State what evidence would resolve it.
|
skill/hackathon-submission.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Hackathon Submission
|
| 2 |
+
|
| 3 |
+
Use when packaging research for Track 1 and Track 2.
|
| 4 |
+
|
| 5 |
+
## Track 1: Research Article
|
| 6 |
+
|
| 7 |
+
Output:
|
| 8 |
+
|
| 9 |
+
- Title
|
| 10 |
+
- One-sentence thesis
|
| 11 |
+
- 5-7 section outline
|
| 12 |
+
- Findings grid summary
|
| 13 |
+
- Caveats
|
| 14 |
+
- Source list
|
| 15 |
+
- X post draft
|
| 16 |
+
|
| 17 |
+
Quality bar:
|
| 18 |
+
|
| 19 |
+
- Clear position
|
| 20 |
+
- Recent market move
|
| 21 |
+
- Evidence-backed explanation
|
| 22 |
+
- Original angle
|
| 23 |
+
- Honest uncertainty
|
| 24 |
+
|
| 25 |
+
## Track 2: Research Agent Or Workflow
|
| 26 |
+
|
| 27 |
+
Output:
|
| 28 |
+
|
| 29 |
+
- What the skill does
|
| 30 |
+
- Why it is useful
|
| 31 |
+
- How it works
|
| 32 |
+
- Repository structure
|
| 33 |
+
- One live example
|
| 34 |
+
- Demo prompt
|
| 35 |
+
- Expected output
|
| 36 |
+
|
| 37 |
+
Quality bar:
|
| 38 |
+
|
| 39 |
+
- The workflow must be reusable beyond one article.
|
| 40 |
+
- The live example must show decomposition, source mapping, triangulation, and synthesis.
|
| 41 |
+
- The demo must include at least one caveat that weakens the thesis.
|
| 42 |
+
|
| 43 |
+
## Live Demo Script
|
| 44 |
+
|
| 45 |
+
1. Show the messy question.
|
| 46 |
+
2. Run intake.
|
| 47 |
+
3. Decompose into sub-questions.
|
| 48 |
+
4. Assign source categories.
|
| 49 |
+
5. Triangulate the highest-stakes claim.
|
| 50 |
+
6. Fill the findings grid.
|
| 51 |
+
7. Generate the thesis and article outline.
|
| 52 |
+
8. Show how the same result becomes the Track 1 article.
|
| 53 |
+
|
| 54 |
+
## Submission Checklist
|
| 55 |
+
|
| 56 |
+
- README explains problem and usage
|
| 57 |
+
- `skill/SKILL.md` has clear frontmatter
|
| 58 |
+
- Modules are linked from the entry point
|
| 59 |
+
- Installers are non-destructive
|
| 60 |
+
- Validator passes
|
| 61 |
+
- Demo prompt is included
|
| 62 |
+
- No fabricated metrics or claims
|
skill/reasoning-serv.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Reasoning With SERV
|
| 2 |
+
|
| 3 |
+
Seeri uses SERV Reasoning (OpenServ) for the steps that require judgment: decomposing a question, classifying sources, grading confidence, spotting contradictions, and synthesizing a thesis. SERV is an inference API with a reasoning compiler; it is OpenAI- and Claude-SDK compatible, so it is a base URL and key change.
|
| 4 |
+
|
| 5 |
+
SERV does not fetch evidence. Evidence always comes from the sources in [source-map.md](source-map.md) and the domain packs. SERV organizes and grades what those sources return.
|
| 6 |
+
|
| 7 |
+
## Setup
|
| 8 |
+
|
| 9 |
+
The user is expected to have a key already exported in their shell:
|
| 10 |
+
|
| 11 |
+
```bash
|
| 12 |
+
export SERV_API_KEY="..." # from console.openserv.ai
|
| 13 |
+
export SERV_MODEL="gpt-5.4-mini" # optional, any model in the SERV catalog
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
Check for the key before any reasoning call. If `SERV_API_KEY` is missing:
|
| 17 |
+
|
| 18 |
+
1. Say so in one line and point to `console.openserv.ai`.
|
| 19 |
+
2. Continue the workflow using your own reasoning. Do not block the research.
|
| 20 |
+
3. Mark the output header `reasoning: local` instead of `reasoning: serv`.
|
| 21 |
+
|
| 22 |
+
Never ask the user to paste the key into chat. Never write the key into any file in the repo.
|
| 23 |
+
|
| 24 |
+
## Endpoints
|
| 25 |
+
|
| 26 |
+
Base URL: `https://inference-api.openserv.ai`
|
| 27 |
+
|
| 28 |
+
| Path | Format | Use |
|
| 29 |
+
| --- | --- | --- |
|
| 30 |
+
| `POST /v1/chat/completions` | OpenAI Chat Completions | Default. Works with every model in the catalog. |
|
| 31 |
+
| `POST /v1/responses` | OpenAI Responses | OpenAI models only. Use when the reasoning trace is wanted. |
|
| 32 |
+
| `POST /v1/messages` | Messages format (Claude SDK) | Claude-shaped clients. |
|
| 33 |
+
|
| 34 |
+
Rules that trip people up:
|
| 35 |
+
|
| 36 |
+
- Every request must include a system prompt (`system` message, `instructions`, or developer message). Requests without one are rejected.
|
| 37 |
+
- OpenAI-shape SDKs take `/v1` in the base URL. The official Claude SDK does not; it appends `/v1/messages` itself.
|
| 38 |
+
- Auth is `Authorization: Bearer $SERV_API_KEY` in every format.
|
| 39 |
+
|
| 40 |
+
Minimal call:
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
curl https://inference-api.openserv.ai/v1/chat/completions \
|
| 44 |
+
-H "Authorization: Bearer $SERV_API_KEY" \
|
| 45 |
+
-H "Content-Type: application/json" \
|
| 46 |
+
-d '{
|
| 47 |
+
"model": "gpt-5.4-mini",
|
| 48 |
+
"messages": [
|
| 49 |
+
{"role": "system", "content": "You are Seeri, a research analyst. Return JSON only."},
|
| 50 |
+
{"role": "user", "content": "Decompose: Is HOOD stock token on Robinhood Chain trading at a premium to the underlying?"}
|
| 51 |
+
]
|
| 52 |
+
}'
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Where SERV Is Used In The Workflow
|
| 56 |
+
|
| 57 |
+
| Workflow step | SERV call | Output contract |
|
| 58 |
+
| --- | --- | --- |
|
| 59 |
+
| Decompose question | `decompose` | 5-8 sub-questions, each with `why_it_matters` and `source_categories` (at least 3 across the set) |
|
| 60 |
+
| Classify a source | `classify_source` | `category`, `interest` (independent / interested / project-reported), `freshness` |
|
| 61 |
+
| Grade a claim | `grade_claim` | `confidence` (high / medium / low), `basis`, `contradictions`, `gaps` |
|
| 62 |
+
| Synthesize | `synthesize` | `thesis`, `caveats`, `what_would_change_my_mind`, `next_checks` |
|
| 63 |
+
|
| 64 |
+
Every call gets the same system prompt core:
|
| 65 |
+
|
| 66 |
+
> You are Seeri, a verifiable research analyst. You reason over evidence supplied to you. You never invent facts, numbers, sources, or URLs. If evidence is missing you say so and lower confidence. Label project-reported and interested-party claims. Never give investment, legal, or tax advice. Return only the JSON schema requested.
|
| 67 |
+
|
| 68 |
+
Attach the step-specific instructions and the evidence payload as the user message. Ask for JSON and validate it. If the JSON fails to parse, retry once with "Return valid JSON only"; then fall back to local reasoning and flag it.
|
| 69 |
+
|
| 70 |
+
## Audit Trail
|
| 71 |
+
|
| 72 |
+
Record for every SERV call: step name, model, prompt token count, completion token count, and whether the response validated. Put the totals in the output footer so a reader can see how much of the report was machine-graded.
|
| 73 |
+
|
| 74 |
+
## Boundaries
|
| 75 |
+
|
| 76 |
+
- SERV output is never cited as a source.
|
| 77 |
+
- A high confidence grade from SERV still requires the underlying evidence to meet the rules in [evidence-grid.md](evidence-grid.md).
|
| 78 |
+
- If SERV and your own reading disagree on a grade, keep the lower confidence and note the disagreement.
|
skill/research-workflow.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Research Workflow
|
| 2 |
+
|
| 3 |
+
Use for full research runs.
|
| 4 |
+
|
| 5 |
+
## Step 0: Intake
|
| 6 |
+
|
| 7 |
+
Record:
|
| 8 |
+
|
| 9 |
+
- Original question
|
| 10 |
+
- Decision this informs
|
| 11 |
+
- Deadline
|
| 12 |
+
- Cost of being wrong
|
| 13 |
+
- Expected output
|
| 14 |
+
|
| 15 |
+
## Step 1: Decompose
|
| 16 |
+
|
| 17 |
+
Break the question into 5-8 sub-questions. Each should target one evidence type:
|
| 18 |
+
|
| 19 |
+
- Market data
|
| 20 |
+
- Protocol mechanics
|
| 21 |
+
- Regulatory or legal-status risk
|
| 22 |
+
- Competitive context
|
| 23 |
+
- User demand
|
| 24 |
+
- Technical architecture
|
| 25 |
+
- Counterargument
|
| 26 |
+
- Operational feasibility
|
| 27 |
+
|
| 28 |
+
If a sub-question still answers "it depends," split it again.
|
| 29 |
+
|
| 30 |
+
## Step 2: Assign Sources
|
| 31 |
+
|
| 32 |
+
Use at least three categories:
|
| 33 |
+
|
| 34 |
+
- Primary project/protocol docs
|
| 35 |
+
- Onchain or market-data dashboards
|
| 36 |
+
- Regulator or legal source
|
| 37 |
+
- Independent reporting
|
| 38 |
+
- User/community signal
|
| 39 |
+
- Internal docs or supplied files
|
| 40 |
+
|
| 41 |
+
## Step 3: Triangulate
|
| 42 |
+
|
| 43 |
+
Pick the claim most likely to flip the thesis. Check it through two different source categories and record both results.
|
| 44 |
+
|
| 45 |
+
## Step 4: Evaluate
|
| 46 |
+
|
| 47 |
+
For each finding:
|
| 48 |
+
|
| 49 |
+
- Source type: primary or secondary?
|
| 50 |
+
- Recency: when was it published or measured?
|
| 51 |
+
- Incentive: who benefits if readers believe it?
|
| 52 |
+
- Contradiction: what source would disagree?
|
| 53 |
+
- Citation check: does the source directly support the sentence?
|
| 54 |
+
|
| 55 |
+
## Step 5: Synthesize
|
| 56 |
+
|
| 57 |
+
Produce:
|
| 58 |
+
|
| 59 |
+
- Findings grid
|
| 60 |
+
- One-sentence thesis
|
| 61 |
+
- Caveats
|
| 62 |
+
- What would change the conclusion
|
| 63 |
+
- Open questions
|
| 64 |
+
- Source list
|
| 65 |
+
|
| 66 |
+
Stop when confidence is high enough to act for the stated decision, not when the report looks polished.
|
skill/resources.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Resources
|
| 2 |
+
|
| 3 |
+
Use for source-of-truth links and the bundled Mantle live example.
|
| 4 |
+
|
| 5 |
+
## Mantle Live Example
|
| 6 |
+
|
| 7 |
+
Research question:
|
| 8 |
+
|
| 9 |
+
> Is Mantle's recent RWA/tokenized-equity push mainly an issuance story, or is the real shift distribution and market structure?
|
| 10 |
+
|
| 11 |
+
Expected synthesis:
|
| 12 |
+
|
| 13 |
+
> Mantle's strongest story is not that it can host tokenized assets. Its stronger story is that it is assembling the distribution, execution, liquidity, and agent infrastructure that tokenized assets need to become usable markets.
|
| 14 |
+
|
| 15 |
+
Core caveats:
|
| 16 |
+
|
| 17 |
+
- Tokenized equities may provide price exposure rather than direct ownership.
|
| 18 |
+
- Jurisdictional access is restricted.
|
| 19 |
+
- High-demand listings can face allocation or supply failures.
|
| 20 |
+
- Interested-party numbers should be labeled unless independently verified.
|
| 21 |
+
|
| 22 |
+
## Source Links
|
| 23 |
+
|
| 24 |
+
- Mantle H1 2026 release: https://www.prnewswire.com/news-releases/mantle-h1-2026-building-the-financial-system-in-full-force-for-real-world-assets-302816927.html
|
| 25 |
+
- Mantle Q1 2026/Messari release: https://www.prnewswire.com/news-releases/mantle-posts-27-rwa-growth-in-q1-2026--reaching-247-5m-according-to-messari-302795228.html
|
| 26 |
+
- Mantle, Bybit, Fluxion Atomic RFQ release: https://www.prnewswire.com/apac/news-releases/mantle-bybit-and-fluxion-bring-xstocks-tokenized-equities-to-institutional-standard-with-atomic-rfq-302765662.html
|
| 27 |
+
- Mantle USPXx release: https://www.prnewswire.com/news-releases/mantle-becomes-one-of-the-first-ethereum-l2s-to-bring-franklin-templetons-uspx-etf-on-chain-with-xstocks-302808048.html
|
| 28 |
+
- Mantle InsightX release: https://www.prnewswire.com/news-releases/mantle-launches-first-ai-native-prediction-market-with-insightx-ahead-of-the-2026-world-cup-302799165.html
|
| 29 |
+
- Mantle SPCXx release mirror: https://www.tradingview.com/news/chainwire:e1a81e8c8094b:0-mantle-and-xstocks-bring-tokenized-spacex-spcxx-to-fluxion-merchant-moe-as-history-s-largest-ipo-goes-live/
|
| 30 |
+
- xStocks one-year update: https://xstocks.fi/news/one-year-of-xstocks-the-tokenized-equities-framework-that-made-a-market
|
| 31 |
+
- Kraken SpaceX IPO Access docs: https://support.kraken.com/articles/spacex-ipo
|
| 32 |
+
- SEC statement on tokenized securities: https://www.sec.gov/newsroom/speeches-statements/corp-fin-statement-tokenized-securities-012826-statement-tokenized-securities
|
| 33 |
+
- RWA.xyz tokenized stocks page: https://app.rwa.xyz/stocks
|
| 34 |
+
- CoinGecko RWA Report 2026: https://www.coingecko.com/research/publications/rwa-report-2026
|
| 35 |
+
- ERC-8004 draft: https://eips.ethereum.org/EIPS/eip-8004
|
| 36 |
+
- x402 FAQ: https://docs.x402.org/faq
|
| 37 |
+
- Questflow x402 facilitator docs: https://facilitator.questflow.ai/
|
skill/source-map.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Source Map
|
| 2 |
+
|
| 3 |
+
Use when planning searches or verifying a claim.
|
| 4 |
+
|
| 5 |
+
## Source Categories
|
| 6 |
+
|
| 7 |
+
| Category | Use For | Caution |
|
| 8 |
+
|---|---|---|
|
| 9 |
+
| Primary project docs | Launch details, product mechanics, stated roadmap | Interested-party framing |
|
| 10 |
+
| Protocol docs | Contract behavior, API flows, standards, implementation details | May omit market adoption |
|
| 11 |
+
| Market dashboards | TVL, holders, volume, active addresses, transfer activity | Definitions vary by provider |
|
| 12 |
+
| Regulator sources | Legal taxonomy, investor warnings, compliance framing | Jurisdiction-specific, not personalized advice |
|
| 13 |
+
| Independent reporting | Incidents, contradictions, external context | May be paywalled or time-lagged |
|
| 14 |
+
| Community signal | User pain, sentiment, adoption anecdotes | Noisy and easy to overfit |
|
| 15 |
+
| Supplied files | User-specific context and constraints | May be incomplete or stale |
|
| 16 |
+
|
| 17 |
+
## Search Plan Template
|
| 18 |
+
|
| 19 |
+
For each sub-question, write:
|
| 20 |
+
|
| 21 |
+
- Claim to check:
|
| 22 |
+
- Primary source:
|
| 23 |
+
- Corroborating source:
|
| 24 |
+
- Search query:
|
| 25 |
+
- Expected failure mode:
|
| 26 |
+
- Confidence threshold:
|
| 27 |
+
|
| 28 |
+
## Highest-Stakes Claim
|
| 29 |
+
|
| 30 |
+
The highest-stakes claim usually concerns:
|
| 31 |
+
|
| 32 |
+
- Whether demand is real
|
| 33 |
+
- Whether liquidity is deep enough
|
| 34 |
+
- Whether the token gives the rights implied
|
| 35 |
+
- Whether a reported number is comparable across competitors
|
| 36 |
+
- Whether a launch is live rather than announced
|
| 37 |
+
- Whether a regulatory or jurisdictional restriction changes the conclusion
|
| 38 |
+
|
| 39 |
+
Triangulate that claim before drafting the thesis.
|
sync_skill.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Vendors the repo skill into mcp/skill/ so the Hugging Face Space (which only
|
| 3 |
+
# contains mcp/) serves the same method files. Run after editing skill/.
|
| 4 |
+
set -euo pipefail
|
| 5 |
+
|
| 6 |
+
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
| 7 |
+
rsync -a --delete "$HERE/../skill/" "$HERE/skill/"
|
| 8 |
+
echo "Synced $HERE/../skill -> $HERE/skill"
|