Crypto Self-Learning

Self-learning system for crypto trading. Logs trades with full context (indicators, market conditions), analyzes patterns of wins/losses, and auto-updates trading rules. Use to log trades, analyze performance, identify what works/fails, and continuously improve trading accuracy.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
11 · 4.4k · 9 current installs · 14 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The package implements local trade logging, analysis, rule generation, and a memory-update feature which aligns with the 'self-learning' description. However the manifest/SKILL.md declares 'jq' as a required binary while none of the provided Python scripts call jq. The SKILL.md references a weekly_review.py script that is not present in the file manifest (missing file). These are inconsistencies (likely sloppy packaging) but not themselves malicious.
!
Instruction Scope
Runtime instructions direct the agent/user to run local Python scripts that read/write files under the skill's data directory and to call update_memory.py with an arbitrary --memory-path. update_memory.py will open, modify and overwrite whatever file path you provide (commonly agent MEMORY.md), thereby injecting auto-generated 'learned rules' into agent memory. The instructions also mention a weekly_review.py (not included). There are no network calls in the scripts and no access to other system credentials, but the ability to append content into an agent memory file can materially change agent behavior and should be treated as a high-impact action.
Install Mechanism
No install spec is provided (instruction-only with local Python scripts), so nothing arbitrary will be downloaded or installed by the registry. This is low-risk. Note: metadata lists 'jq' as required but the code doesn't use it—remove or correct this requirement.
Credentials
The skill requests no environment variables or external credentials. All data is read/written to local files (data/trades.json and data/learned_rules.json). This is proportionate to the stated purpose.
Persistence & Privilege
The skill does not request always:true and does not modify other skills' configs. However, update_memory.py intentionally writes to an arbitrary MEMORY.md path supplied by the user. That gives the skill the ability to inject content into an agent's memory/persistent configuration if the user points it there — a normal feature for this use-case but a behavioral privilege that can influence agent decisions.
What to consider before installing
This skill appears to implement the advertised local trade-logging and analysis features, but review these before installing or running it: - Missing and unnecessary items: SKILL.md references weekly_review.py which is not present; metadata requires jq but none of the scripts call it. These are packaging issues — ask the publisher to correct them or remove the jq requirement. - HIGH-IMPACT action: update_memory.py will overwrite whatever file you point it at. Do NOT pass your real agent MEMORY.md, credentials file, or other sensitive files without first inspecting generated output. Instead: run generate_rules.py, inspect data/learned_rules.json, use update_memory.py --dry-run to preview changes, and back up the target MEMORY.md before writing. - Local-only behavior: the code contains no network calls or secret-exfiltration code; trades and generated rules are saved locally under data/. Still, treat any tool that writes to agent memory as trusted—review rules it would add to avoid unexpected automation changes. - Operational advice: run the scripts in an isolated environment or with a backup of your agent memory, inspect learned_rules.json before applying, and correct/remove the jq requirement. If you rely on a 'weekly review' feature, request the missing script from the author or avoid following that step until it is provided. Given these inconsistencies and the write-to-memory capability (which is powerful but could be legitimate), I rate the package as 'suspicious' pending the small fixes and extra user checks above.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk97e236beh6r55qyw7d0tm53h980c4kc

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

🧠 Clawdis
Binsjq, python3

SKILL.md

Crypto Self-Learning 🧠

AI-powered self-improvement system for crypto trading. Learn from every trade to increase accuracy over time.

🎯 Core Concept

Every trade is a lesson. This skill:

  1. Logs every trade with full context
  2. Analyzes patterns in wins vs losses
  3. Generates rules from real data
  4. Updates memory automatically

📝 Log a Trade

After EVERY trade (win or loss), log it:

python3 {baseDir}/scripts/log_trade.py \
  --symbol BTCUSDT \
  --direction LONG \
  --entry 78000 \
  --exit 79500 \
  --pnl_percent 1.92 \
  --leverage 5 \
  --reason "RSI oversold + support bounce" \
  --indicators '{"rsi": 28, "macd": "bullish_cross", "ma_position": "above_50"}' \
  --market_context '{"btc_trend": "up", "dxy": 104.5, "russell": "up", "day": "tuesday", "hour": 14}' \
  --result WIN \
  --notes "Clean setup, followed the plan"

Required Fields:

FieldDescriptionExample
--symbolTrading pairBTCUSDT
--directionLONG or SHORTLONG
--entryEntry price78000
--exitExit price79500
--pnl_percentProfit/Loss %1.92 or -2.5
--resultWIN or LOSSWIN

Optional but Recommended:

FieldDescription
--leverageLeverage used
--reasonWhy you entered
--indicatorsJSON with indicators at entry
--market_contextJSON with macro conditions
--notesPost-trade observations

📊 Analyze Performance

Run analysis to discover patterns:

python3 {baseDir}/scripts/analyze.py

Outputs:

  • Win rate by direction (LONG vs SHORT)
  • Win rate by day of week
  • Win rate by RSI ranges
  • Win rate by leverage
  • Best/worst setups identified
  • Suggested rules

Analyze Specific Filters:

python3 {baseDir}/scripts/analyze.py --symbol BTCUSDT
python3 {baseDir}/scripts/analyze.py --direction LONG
python3 {baseDir}/scripts/analyze.py --min-trades 10

🧠 Generate Rules

Extract actionable rules from your trade history:

python3 {baseDir}/scripts/generate_rules.py

This analyzes patterns and outputs rules like:

🚫 AVOID: LONG when RSI > 70 (win rate: 23%, n=13)
✅ PREFER: SHORT on Mondays (win rate: 78%, n=9)
⚠️ CAUTION: Trades with leverage > 10x (win rate: 35%, n=20)

📈 Auto-Update Memory

Apply learned rules to agent memory:

python3 {baseDir}/scripts/update_memory.py --memory-path /path/to/MEMORY.md

This appends a "## 🧠 Learned Rules" section with data-driven insights.

Dry Run (preview changes):

python3 {baseDir}/scripts/update_memory.py --memory-path /path/to/MEMORY.md --dry-run

📋 View Trade History

python3 {baseDir}/scripts/log_trade.py --list
python3 {baseDir}/scripts/log_trade.py --list --last 10
python3 {baseDir}/scripts/log_trade.py --stats

🔄 Weekly Review

Run weekly to see progress:

python3 {baseDir}/scripts/weekly_review.py

Generates:

  • This week's performance vs last week
  • New patterns discovered
  • Rules that worked/failed
  • Recommendations for next week

📁 Data Storage

Trades are stored in {baseDir}/data/trades.json:

{
  "trades": [
    {
      "id": "uuid",
      "timestamp": "2026-02-02T13:00:00Z",
      "symbol": "BTCUSDT",
      "direction": "LONG",
      "entry": 78000,
      "exit": 79500,
      "pnl_percent": 1.92,
      "result": "WIN",
      "indicators": {...},
      "market_context": {...}
    }
  ]
}

🎯 Best Practices

  1. Log EVERY trade - Wins AND losses
  2. Be honest - Don't skip bad trades
  3. Add context - More data = better patterns
  4. Review weekly - Patterns emerge over time
  5. Trust the data - If data says avoid something, AVOID IT

🔗 Integration with tess-cripto

Add to tess-cripto's workflow:

  1. Before trade: Check rules in MEMORY.md
  2. After trade: Log with full context
  3. Weekly: Run analysis and update memory

Skill by Total Easy Software - Learn from every trade 🧠📈

Files

6 total
Select a file
Select a file to preview.

Comments

Loading comments…