trade-report
Skill0 starsChanged 14 days agoMITView on GitHub
Generate a human-readable session or daily report from positions and trade logs (fills, PnL, open risk, skips). Use when the user asks for a daily summary, PnL report, what happened today, or implementing report.py. Trigger phrases: "trading report", "daily PnL", "summarize trades", "what did the bot do".
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- backtestSkill
- binance-spot-tradeSkill
- crypto-news-collectSkill
- daily-trading-runSkill
- news-judgeSkill
- security-checkSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Read bot state (paths.positions_file, paths.trades_log) and produce a markdown or JSON report for a date (default: today in …
- Distinctive: line 20
After a manual cycle
- Very specific: line 33
Write under paths.report_dir and print a short summary.
- Distinctive: line 34
Never include API keys, secrets, or full account balances beyond bot-tracked positions unless the user asks.
- Distinctive: line 52
Do not give investment advice in the report footer beyond restating that past cycle results are not predictive
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Trade report
Overview
Read bot state (paths.positions_file, paths.trades_log) and produce a markdown or JSON report for a date (default: today in schedule.timezone). No API keys required for log-only reports; optional live marks via public ticker.
When to use
- End of day / session
- After a manual cycle
- Auditing behavior before going live
Instructions
- Parse
data/trades.log(or configured path) for the target date. - Load open positions; mark with last price if available.
- Summarize:
- Buys / sells count and quote volume
- Realized PnL (fees if logged)
- Unrealized PnL for open positions
- Skips /
ASK_USERcounts if logged - Cap utilization vs
risk.max_total_cost_quote(show config key, not a hardcoded number)
- Write under
paths.report_dirand print a short summary. - Never include API keys, secrets, or full account balances beyond bot-tracked positions unless the user asks.
Suggested CLI
python report.py # today in schedule.timezone
python report.py YYYY-MM-DD
python report.py --jsonFailure handling
- Missing log file → empty report with warning
- Corrupt line → skip line, count errors
Guidelines
- Reports are for the operator; keep tone factual
- Do not give investment advice in the report footer beyond restating that past cycle results are not predictive
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

