Agent Trading Predictor
ruvnet/ruflo
Agent skill for trading-predictor - invoke with $agent-trading-predictor
Trade history tracking, sync, and performance analytics. An agent skill from alsk1992/CloddsBot.
$ npx skills add alsk1992/CloddsBot --skill history -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install alsk1992/CloddsBot history --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/alsk1992/CloddsBot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/bundled/history .claude/skills/history && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "history" agent skill from https://github.com/alsk1992/CloddsBot/tree/main/src/skills/bundled/history into .claude/skills/history/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "history", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/alsk1992/CloddsBot/tree/main/src/skills/bundled/historyType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add alsk1992/CloddsBot --skill history -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install alsk1992/CloddsBot history --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alsk1992/CloddsBot.git skills-src && mkdir -p .agents/skills && cp -r skills-src/src/skills/bundled/history .agents/skills/history && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "history" agent skill from https://github.com/alsk1992/CloddsBot/tree/main/src/skills/bundled/history into .agents/skills/history/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "history", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alsk1992/CloddsBot --skill history -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install alsk1992/CloddsBot history --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alsk1992/CloddsBot.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/src/skills/bundled/history .cursor/skills/history && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "history" agent skill from https://github.com/alsk1992/CloddsBot/tree/main/src/skills/bundled/history into .cursor/skills/history/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "history", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/alsk1992/CloddsBot.git --path src/skills/bundled/history--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add alsk1992/CloddsBot --skill history -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install alsk1992/CloddsBot history --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alsk1992/CloddsBot.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/src/skills/bundled/history .gemini/skills/history && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "history" agent skill from https://github.com/alsk1992/CloddsBot/tree/main/src/skills/bundled/history into .gemini/skills/history/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "history", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install alsk1992/CloddsBot historyInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add alsk1992/CloddsBot --skill history -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/alsk1992/CloddsBot.git skills-src && mkdir -p .github/skills && cp -r skills-src/src/skills/bundled/history .github/skills/history && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "history" agent skill from https://github.com/alsk1992/CloddsBot/tree/main/src/skills/bundled/history into .github/skills/history/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "history", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add alsk1992/CloddsBot --skill history -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install alsk1992/CloddsBot history --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/alsk1992/CloddsBot.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/src/skills/bundled/history .opencode/skills/history && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "history" agent skill from https://github.com/alsk1992/CloddsBot/tree/main/src/skills/bundled/history into .opencode/skills/history/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "history", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
historyTrade history tracking, sync, and performance analytics. An agent skill from alsk1992/CloddsBot.
History is an agent skill from alsk1992/CloddsBot. Trade history tracking, sync, and performance analytics
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `index.ts`).
The repository describes itself as: Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes… The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit c930628. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (TypeScript), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
POLY_API_KEYKALSHI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
History loads about 1.6k tokens when it runs. Until then it costs about 16 tokens; SKILL.md has 93 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from alsk1992/CloddsBot at commit c930628, republished under its MIT licence (© alsk1992). 93 words, ~1,632 tokens.
.claude/skills/history/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Fetch, sync, and analyze trade history from Polymarket and Kalshi with detailed performance metrics.
/history fetch # Fetch all trades from APIs
/history fetch poly # Fetch Polymarket only
/history fetch --from 2024-01-01 # From specific date
/history sync # Sync to local database/history list # Recent trades
/history list --limit 50 # Last 50 trades
/history list --platform poly # Polymarket only
/history list --market <id> # Specific market/history stats # Overall statistics
/history stats --period 30d # Last 30 days
/history stats --platform kalshi # Platform-specific/history daily-pnl # Daily P&L
/history weekly-pnl # Weekly P&L
/history monthly-pnl # Monthly P&L
/history by-market # P&L by market category/history export # Export to CSV
/history export --format json # Export as JSON
/history export --from 2024-01-01 # Date range/history filter --side buy # Only buys
/history filter --pnl positive # Only winners
/history filter --pnl negative # Only losers
/history filter --min-size 100 # Min $100 tradesimport { createTradeHistoryService } from 'clodds/history';
const history = createTradeHistoryService({
polymarket: {
apiKey: process.env.POLY_API_KEY,
address: process.env.POLY_ADDRESS,
},
kalshi: {
apiKey: process.env.KALSHI_API_KEY,
},
// Local storage
dbPath: './trade-history.db',
});// Fetch all trades from exchange APIs
const trades = await history.fetchTrades({
platforms: ['polymarket', 'kalshi'],
from: '2024-01-01',
});
console.log(`Fetched ${trades.length} trades`);
// Fetch from specific platform
const polyTrades = await history.fetchTrades({
platforms: ['polymarket'],
limit: 100,
});// Sync fetched trades to local database
await history.syncToDatabase();
console.log('Trades synced to database');// Get trades from local storage
const trades = await history.getTrades({
platform: 'polymarket',
from: '2024-01-01',
to: '2024-12-31',
limit: 100,
});
for (const trade of trades) {
console.log(`${trade.timestamp}: ${trade.side} ${trade.market}`);
console.log(` Size: $${trade.size}`);
console.log(` Price: ${trade.price}`);
console.log(` P&L: $${trade.pnl?.toFixed(2) || 'open'}`);
}// Get comprehensive statistics
const stats = await history.getStats({
period: '30d',
platform: 'polymarket',
});
console.log(`=== Trading Statistics (30d) ===`);
console.log(`Total trades: ${stats.totalTrades}`);
console.log(`Winning trades: ${stats.winningTrades}`);
console.log(`Losing trades: ${stats.losingTrades}`);
console.log(`Win rate: ${(stats.winRate * 100).toFixed(1)}%`);
console.log(`\nP&L:`);
console.log(` Total: $${stats.totalPnl.toLocaleString()}`);
console.log(` Gross profit: $${stats.grossProfit.toLocaleString()}`);
console.log(` Gross loss: $${stats.grossLoss.toLocaleString()}`);
console.log(` Profit factor: ${stats.profitFactor.toFixed(2)}`);
console.log(`\nTrade sizes:`);
console.log(` Average: $${stats.avgTradeSize.toFixed(2)}`);
console.log(` Largest win: $${stats.largestWin.toFixed(2)}`);
console.log(` Largest loss: $${stats.largestLoss.toFixed(2)}`);
console.log(`\nRisk metrics:`);
console.log(` Sharpe ratio: ${stats.sharpeRatio.toFixed(2)}`);
console.log(` Max drawdown: ${(stats.maxDrawdown * 100).toFixed(1)}%`);// Get daily P&L breakdown
const dailyPnl = await history.getDailyPnL({
days: 30,
platform: 'polymarket',
});
console.log('=== Daily P&L ===');
for (const day of dailyPnl) {
const sign = day.pnl >= 0 ? '+' : '';
const bar = day.pnl >= 0
? '█'.repeat(Math.min(Math.floor(day.pnl / 10), 20))
: '▓'.repeat(Math.min(Math.floor(Math.abs(day.pnl) / 10), 20));
console.log(`${day.date} | ${sign}$${day.pnl.toFixed(2).padStart(8)} | ${bar}`);
}// Get performance breakdown by market category
const byMarket = await history.getPerformanceByMarket({
period: '30d',
});
console.log('=== Performance by Market Category ===');
for (const [category, data] of Object.entries(byMarket)) {
console.log(`\n${category}:`);
console.log(` Trades: ${data.trades}`);
console.log(` Win rate: ${(data.winRate * 100).toFixed(1)}%`);
console.log(` P&L: $${data.pnl.toLocaleString()}`);
console.log(` Avg trade: $${data.avgTrade.toFixed(2)}`);
}// Export to CSV
await history.exportCsv({
path: './trades.csv',
from: '2024-01-01',
to: '2024-12-31',
columns: ['timestamp', 'platform', 'market', 'side', 'size', 'price', 'pnl'],
});
// Export to JSON
const json = await history.exportJson({
from: '2024-01-01',
});CREATE TABLE trades (
id TEXT PRIMARY KEY,
platform TEXT NOT NULL,
market_id TEXT NOT NULL,
market_question TEXT,
side TEXT NOT NULL, -- 'buy' or 'sell'
outcome TEXT, -- 'YES' or 'NO'
size REAL NOT NULL,
price REAL NOT NULL,
fee REAL DEFAULT 0,
pnl REAL,
timestamp INTEGER NOT NULL,
created_at INTEGER DEFAULT (strftime('%s', 'now'))
);
CREATE INDEX idx_trades_platform ON trades(platform);
CREATE INDEX idx_trades_timestamp ON trades(timestamp);
CREATE INDEX idx_trades_market ON trades(market_id);© alsk1992, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in src/skills/bundled/history of alsk1992/CloddsBot.
Open the folder on GitHubat commit c930628
History next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| History this skillalsk1992/CloddsBot | 3k | — | ~1.6k | Automated safety check: Pass | MIT | |
| Agent Trading Predictorruvnet/ruflo | 74k | 2 repos | ~2.5k | Automated safety check: Pass | MIT | |
| AI-Trader Trade SyncHKUDS/AI-Trader | 23k | — | ~1.1k | Automated safety check: Pass | None | |
| LLM Trading Agent Securityaffaan-m/ECC | 276k | 2 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Trade Journal AnalysisHKUDS/Vibe-Trading | 35k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Trading Ledgersickn33/agentic-awesome-skills | 47k | 1 repos | ~2.2k | Automated safety check: Pass | MIT |
ruvnet/ruflo
Agent skill for trading-predictor - invoke with $agent-trading-predictor
HKUDS/AI-Trader
Uploads positions and trade history to the AI-Trader copy-trading platform and pushes real-time buy, sell, short and cover signals to followers.
affaan-m/ECC
Security patterns for autonomous trading agents with wallet or transaction authority.
HKUDS/Vibe-Trading
Reads a broker export of your trades (CSV or Excel), builds a trading profile and runs four behavior checks: disposition effect, overtrading, chasing and anchoring.
sickn33/agentic-awesome-skills
A trading journal that captures the decision, not just the fill: thesis, plan, and emotion at the moment of entry, written to the user's own Notion database; reviews grade decisions, not P&L.
affaan-m/ECC
Track and report Claude Code token usage, spending, and budgets from the local ECC cost-tracker metrics log.
alsk1992/CloddsBot
Local hybrid search for markdown notes and docs. An agent skill from alsk1992/CloddsBot.
alsk1992/CloddsBot
AI Strategy - natural language to trades. An agent skill from alsk1992/CloddsBot.
alsk1992/CloddsBot
Create and manage price alerts for prediction markets. An agent skill from alsk1992/CloddsBot.
alsk1992/CloddsBot
Performance attribution, trade analytics, and strategy optimization
alsk1992/CloddsBot
Automated cross-platform arbitrage detection and monitoring. An agent skill from alsk1992/CloddsBot.
alsk1992/CloddsBot
Automatic response rules, patterns, and scheduled messages. An agent skill from alsk1992/CloddsBot.
Trade history tracking, sync, and performance analytics. An agent skill from alsk1992/CloddsBot. History is an agent skill from alsk1992/CloddsBot.
Run `npx skills add alsk1992/CloddsBot --skill history -a claude-code`. Or copy the skill folder (src/skills/bundled/history in alsk1992/CloddsBot) into .claude/skills/history in your project. Claude Code loads it when a task matches its description.
Run `npx skills add alsk1992/CloddsBot --skill history -a codex`. Or copy the skill folder (src/skills/bundled/history in alsk1992/CloddsBot) into .agents/skills/history in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alsk1992/CloddsBot --skill history -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/history, .gemini/skills/history, .github/skills/history and .opencode/skills/history in your project.
Going by SKILL.md and its folder, History needs TypeScript for the scripts in its folder and credentials named POLY_API_KEY and KALSHI_API_KEY. Our summary lists: Node.js; A credential in POLY_API_KEY; A credential in KALSHI_API_KEY.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
History is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with History: Agent Trading Predictor (ruvnet/ruflo, 74k stars), AI-Trader Trade Sync (HKUDS/AI-Trader, 23k stars), LLM Trading Agent Security (affaan-m/ECC, 276k stars) and Trade Journal Analysis (HKUDS/Vibe-Trading, 35k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
alsk1992 (a GitHub user) maintains it in alsk1992/CloddsBot, which has 2,951 GitHub stars. The repository holds 116 skills in this directory. The repository was last updated on October 2, 2026.
Source: alsk1992/CloddsBot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.