# Send Charts to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "charts",
    "name": "Charts",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/ryandeangraves/charts",
    "canonicalUrl": "https://clawhub.ai/ryandeangraves/charts",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/charts",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=charts",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "_meta.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "charts",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T04:40:51.952Z",
      "expiresAt": "2026-05-06T04:40:51.952Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=charts",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=charts",
        "contentDisposition": "attachment; filename=\"charts-1.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "charts"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/charts"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/charts",
    "downloadUrl": "https://openagent3.xyz/downloads/charts",
    "agentUrl": "https://openagent3.xyz/skills/charts/agent",
    "manifestUrl": "https://openagent3.xyz/skills/charts/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/charts/agent.md"
  }
}
```
## Documentation

### Purpose

Generate professional technical analysis charts with candlesticks, Fibonacci retracement, moving averages (SMA 20/50), RSI, and pattern detection. Uses the local crypto_charts.py module.

### When to Use

Boss Man asks "show me the BTC chart" or "run TA on silver"
You need visual charts for market analysis or reporting
Morning protocol chart generation
Any request for technical analysis with visuals

### Generate All Charts (Full Suite)

Generates charts for all 6 tracked assets: BTC, ETH, XRP, SUI, Gold, Silver.
Warning: Takes 2-3 minutes due to API rate limits between requests.

cd ~/clawd && python3 -c "
import json
from crypto_charts import generate_all_charts, cleanup_old_charts
cleanup_old_charts()
report = generate_all_charts(output_dir=os.path.expanduser('~/clawd/charts'))
print(json.dumps(report, indent=2, default=str))
" 2>&1

Charts saved to: ~/clawd/charts/chart_btc.png, chart_eth.png, etc.

### Generate Single Chart

For a quick single-asset chart without waiting for the full suite:

cd ~/clawd && python3 -c "
import os, json
from crypto_charts import (
    fetch_yfinance, fetch_ohlc, fetch_market_data,
    calc_moving_averages, calc_rsi, calc_fibonacci,
    detect_patterns, generate_chart, COINS
)

coin_id = 'COIN_ID'  # bitcoin, ethereum, ripple, sui, gold, silver
info = COINS[coin_id]

# Fetch data (Yahoo Finance first, CoinGecko fallback)
df = fetch_yfinance(coin_id)
if df is None or len(df) < 10:
    df = fetch_ohlc(coin_id)
if df is None or len(df) < 10:
    df = fetch_market_data(coin_id)

if df is not None and len(df) >= 5:
    df = calc_moving_averages(df)
    df = calc_rsi(df)
    fib = calc_fibonacci(df)
    patterns = detect_patterns(df)

    chart_path = os.path.expanduser(f'~/clawd/charts/chart_{info[\\"symbol\\"].lower()}.png')
    generate_chart(coin_id, df, fib, chart_path)

    print(f'Chart: {chart_path}')
    print(f'Price: \\${df[\\"close\\"].iloc[-1]:,.2f}')
    print(f'RSI: {df[\\"rsi\\"].iloc[-1]:.1f}')
    print('Patterns:')
    for p in patterns:
        print(f'  - {p}')
else:
    print('Not enough data to generate chart')
"

### Tracked Assets

coin_idSymbolChart ColorData SourcebitcoinBTC#F7931AYahoo Finance → CoinGeckoethereumETH#627EEAYahoo Finance → CoinGeckorippleXRP#00AAE4Yahoo Finance → CoinGeckosuiSUI#6FBCF0Yahoo Finance → CoinGeckogoldXAU#FFD700Yahoo FinancesilverXAG#C0C0C0Yahoo Finance

### What the Charts Include

Candlestick bars (green up / red down) — 90 days of daily data
20 SMA (blue) and 50 SMA (gold) — trend and support/resistance
Fibonacci retracement levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%)
RSI subplot (purple) — with overbought (70) and oversold (30) lines
Current price marker — dot + horizontal line in the asset's accent color

### Pattern Detection (Automatic)

The module auto-detects and reports:

SMA crossovers (Golden Cross / Death Cross)
Head & Shoulders / Inverse H&S
Fibonacci zone positioning
Trend strength (7-day momentum)
RSI condition (overbought/oversold/neutral)
Price position within 90-day range

### Sending Charts via Telegram

After generating, send the chart image using Clawdbot's native message command:

message (Telegram, target="7887978276") [attach ~/clawd/charts/chart_btc.png]

### Rules

Charts use 90 days of history — enough for meaningful TA
Yahoo Finance is tried first (free, reliable), CoinGecko is fallback
Rate limit: 8-second delays between coins, 20-second batch cooldowns
Always run cleanup_old_charts() first to avoid disk buildup
Chart images are ~150 DPI, dark theme (#0f172a background)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ryandeangraves
- Version: 1.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T04:40:51.952Z
- Expires at: 2026-05-06T04:40:51.952Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/charts)
- [Send to Agent page](https://openagent3.xyz/skills/charts/agent)
- [JSON manifest](https://openagent3.xyz/skills/charts/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/charts/agent.md)
- [Download page](https://openagent3.xyz/downloads/charts)