tradeflow-paper
Build and operate a paper-mode self-improving trading agent for BTC/USDT with parametric strategy optimization and safety gates.
Skill by percymcn
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/percymcn-tradeflow-paper
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: research, finance, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/tradeflow-paper
What's inside
- Skill name
tradeflow-paper- Description
- Build and operate a paper-mode self-improving trading agent for BTC/USDT with parametric strategy optimization and safety gates.
- License
- MIT
- Instructions
- 164 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: references/felix-browser-task-api.md, references/telegram-notification-workaround.md, references/communication_style_validation.md, references/fstring_syntax_fix.md, references/exchange_restrictions_workaround.md
Files (1)
- SKILL.md
SKILL.md (first lines)
# TradeFlow Paper Trading Agent Skill
This skill creates and manages a paper-trading agent for BTC/USDT that continuously improves its strategy through reflection loops, with strict safety gates to prevent accidental live deployment.
## Overview
The tradeflow-paper skill sets up a self-improving trading agent that:
- Trades BTC/USDT in paper mode only (no live broker)
- Uses a parametric strategy with EMA, RSI, ATR-based stops and targets
- Improves via reflection loops every 25 closed trades (adjusting one parameter at a time)
- Includes multiple safety layers: mode gate, kill switch, Telegram heartbeat
- Persists strategy, trade journal, and reflection history
- Provides observability via status subcommand and logs
## Directory Structure
After installation, the skill creates:
- `~/.hermes/skills/tradeflow-paper/` - Skill files (this directory)
- `~/felix-revenue/tradeflow-paper/` - Worker code and runtime data
## Installation
This skill is installed via the Hermes skill system. Once installed, it provides:
- `/skill tradeflow-paper` - Load the skill in session
- `hermes cron create ...` - To schedule the worker (see Usage)
## Usage
### 1. Start the Paper Trading Worker
The skill includes a cron job template to run the worker continuously. To start:
```bash
hermes cron create "every 5m" \
--name "tradeflow-paper-worker" \
--prompt "Run the tradeflow-paper worker: cd ~/felix-revenue/tradeflow-paper && python3 worker.py --mode paper" \
--skills tradeflow-paper \
--deliver local
```
### 2. Check Status
```bash
cd ~/felix-revenue/tradeflow-paper && python3 worker.py --status
```
### 3. View Logs
Logs are stored in `~/felix-revenue/tradeflow-paper/logs/`
### 4. Manual Reflection Trigger
```bash
cd ~/felix-revenue/tradeflow-paper && python3 worker.py --reflect
```
### 5. Kill Switch
To stop trading immediately, create the halt file:
```bash
touch ~/felix-revenue/tradeflow-paper/.halt
```
Remove it to resume:
```bash
rm ~/felix-revenue/tradeflow-paper/.halt
```
## Configuration
The skill requires no initial configuration. All parameters are defined in the strategy.yaml file that gets created on first run.
## Safety Features
### Mode Gate (Paper-Only Default)
- The agent starts in paper mode and remains there unless all three live-mode conditions are met:
1. Rolling 60-day paper Sharpe > 1.0
2. Total return beats BTC HODL by ≥200 bps
3. Signed approval file exists for the current strategy version
- No environment variable can override this gate.
### Kill Switch
- Presence of `~/felix-revenue/tradeflow-paper/.halt` stops the worker immediately.
### Telegram Heartbeat
- The worker sends a heartbeat via the existing hermes_comms bridge on each reflection cycle.
## Persistence
- `strategy.yaml` - Current parameter values (git-tracked in the project)
- `journal.jsonl` - Every paper trade (entry, exit, PnL, timestamps)
- `state/history/` - Archived strategy.yaml versions after each reflection
- `state/reflections.md` - Rationale for each parameter change
## Reflection Loop
- Triggered every 25 closed paper trades
- Reads last 25 trades + current strategy.yaml
- Proposes a change to ONE parameter (knob) within its bounds
- Writes rationale and commits new strategy.yaml
- Never changes multiple knobs simultaneously
## Strategy Template (Parametric)
- Entry: EMA(fast) crosses above EMA(slow) AND RSI(period) > rsi_min
- Exit: ATR-based stop at entry − atr_mult×ATR, take-profit at entry + tp_mult×ATR
- Sizing: fixed fraction of paper equity per trade
- Tunable knobs with bounds:
ema_fast [3, 25], ema_slow [10, 100], rsi_period [5, 30],
rsi_min [40, 70], atr_mult [0.5, 5.0], tp_mult [1.0, 10.0],
fraction [0.005, 0.05]
- Initial values: ema_fast=12, ema_slow=26, rsi_period=14, rsi_min=50, atr_mult=1.5, tp_mult=3.0, fraction=0.02
## Worker Code
The skill includes a template for the worker code that gets copied to `~/felix-revenue/tradeflow-paper/worker.py` on first run. The worker implements:
- CCXT paper trading for BTC/USDT
- Strategy engine with the parametric template
- Trade execution and journalingFrom percymcn/agent-cookbook, MIT.
More from percymcn/agent-cookbook
- 0.471score
apple-ecosystem
percymcn
Apple/macOS ecosystem umbrella: Apple Notes, Reminders, iMessage/SMS, Find My, and macOS background computer-use automation.
SkillCFreshness: CClaude Code +9 - 0.471score
autonomous-idea-pipeline
percymcn
Build and operate fully autonomous systems for continuously discovering, validating, and preparing business opportunities from multiple data sources without…
SkillCFreshness: CClaude Code +9 - 0.471score
external-coding-agents
percymcn
Umbrella for delegating software work to external coding-agent CLIs: Claude Code, OpenAI Codex, and OpenCode.
SkillCFreshness: CClaude Code +9 - 0.468score
prospect-response-monitoring
percymcn
Monitors outreach logs for new prospect responses and sends urgent notifications via Telegram when responses are detected.
SkillCFreshness: CClaude Code +9 - 0.468score
agent-os
percymcn
Agent Operating System — Hermes is the command hub on Telegram.
SkillCFreshness: CClaude Code +9 - 0.468score
business-factory-oss-stack
percymcn
Use Purse's installed open-source business factory stack from the 2026-05-21 hot GitHub repos PDF: CodeGraph, Bun, Supertonic, CloakBrowser, AgentMemory, and…
SkillCFreshness: CClaude Code +9 - 0.468score
autonomous-business-system
percymcn
A fully automated system for discovering, analyzing, and generating business plans from YouTube channels and Reddit pain points
SkillCFreshness: CClaude Code +9 - 0.464score
gideon-autonomous-prospector
percymcn
Interact with Gideon's autonomous prospector system for researching and identifying new prospects across target niches for AI content repurposing business
SkillCFreshness: CClaude Code +9 - 0.464score
gumroad-operations
percymcn
Manage Purse's Gumroad store through the local Gumroad CLI and MCP server: products, sales, offer codes, subscribers, licenses, webhooks, reports, and guarded…
SkillCFreshness: CClaude Code +9 - 0.464score
ai-pdf-guide-business
percymcn
Build and operate an autonomous AI-powered PDF guide generation and sales business that creates valuable guides from trending topics and sells them…
SkillCFreshness: CClaude Code +9 - 0.461score
delegate-to-claude-code
percymcn
Delegate complex coding/reasoning tasks to Claude Code CLI via the call_claude_code Python wrapper.
SkillCFreshness: CClaude Code +9 - 0.251score
advanced-evaluation
percymcn
No description from the publisher yet.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 2
- Last commit (this folder)
- Jun 12, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/percymcn/agent-cookbook
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from percymcn
- 0.471score
autonomous-idea-pipeline
percymcn
Build and operate fully autonomous systems for continuously discovering, validating, and preparing business opportunities from multiple data sources without…
SkillCFreshness: CClaude Code +9 - 0.471score
external-coding-agents
percymcn
Umbrella for delegating software work to external coding-agent CLIs: Claude Code, OpenAI Codex, and OpenCode.
SkillCFreshness: CClaude Code +9 - 0.471score
apple-ecosystem
percymcn
Apple/macOS ecosystem umbrella: Apple Notes, Reminders, iMessage/SMS, Find My, and macOS background computer-use automation.
SkillCFreshness: CClaude Code +9 - 0.468score
autonomous-business-system
percymcn
A fully automated system for discovering, analyzing, and generating business plans from YouTube channels and Reddit pain points
SkillCFreshness: CClaude Code +9 - 0.468score
prospect-response-monitoring
percymcn
Monitors outreach logs for new prospect responses and sends urgent notifications via Telegram when responses are detected.
SkillCFreshness: CClaude Code +9 - 0.468score
business-factory-oss-stack
percymcn
Use Purse's installed open-source business factory stack from the 2026-05-21 hot GitHub repos PDF: CodeGraph, Bun, Supertonic, CloakBrowser, AgentMemory, and…
SkillCFreshness: CClaude Code +9
Cite this page
tradeflow-paper skill. Agent Mart. https://agentmart.dev/skills/percymcn-tradeflow-paper (last updated 2026-10-24)