{
  "schemaVersion": "1.0",
  "item": {
    "slug": "trade-memory",
    "name": "Trade Memory",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/newbienodes/trade-memory",
    "canonicalUrl": "https://clawhub.ai/newbienodes/trade-memory",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/trade-memory",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=trade-memory",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/trade-memory"
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/trade-memory",
    "agentPageUrl": "https://openagent3.xyz/skills/trade-memory/agent",
    "manifestUrl": "https://openagent3.xyz/skills/trade-memory/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/trade-memory/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Trade Memory",
        "body": "Append confirmed trade signals or executed trades to a local JSONL log file for persistent memory and history tracking."
      },
      {
        "title": "When to Use",
        "body": "User says: \"simpan trade ini\"\nUser says: \"catat sinyal BTC tadi\"\nUser says: \"log trade BUY BTC entry 94500\"\nAgent wants to record a signal after btc-analyzer returns a result\nUser says: \"tambahkan ke trade history\""
      },
      {
        "title": "How It Works",
        "body": "This skill runs a local Python script that:\n\nAccepts a JSON object as input (symbol, side, entry, sl, tp, note, source, ts).\nValidates the input is proper JSON.\nAppends the trade as a single line to trades.jsonl (creates file and directory if not exists).\nReturns a JSON confirmation object."
      },
      {
        "title": "Workflow",
        "body": "Step 1 — Collect trade data from user or agent:\n\nsymbol: trading pair (e.g. BTCUSDT)\nside: BUY or SELL\nentry: entry price (number)\nsl: stop loss price (number)\ntp: take profit price (number)\nnote: optional description or reason\nsource: origin of signal (e.g. btc-analyzer, manual, telegram)\nts: ISO timestamp (auto-filled if not provided)\n\nStep 2 — Run the save script via bash tool:\npython3 ~/.npm-global/lib/node_modules/openclaw/skills/trade-memory/save.py '<JSON_INPUT>'\n\nStep 3 — Confirm to user that trade was saved successfully."
      },
      {
        "title": "Input Format",
        "body": "{\n\"symbol\": \"BTCUSDT\",\n\"side\": \"BUY\",\n\"entry\": 94500,\n\"sl\": 94000,\n\"tp\": 95500,\n\"note\": \"sweep+fvg signal, RSI 58\",\n\"source\": \"btc-analyzer\",\n\"ts\": \"2026-02-23T00:00:00Z\"\n}"
      },
      {
        "title": "Output Format",
        "body": "{\"ok\": true, \"path\": \"/home/windows_11/.openclaw/polymarket-workspace/trades.jsonl\", \"appended\": 1, \"trade\": {...}}"
      },
      {
        "title": "Log File Location",
        "body": "/home/windows_11/.openclaw/polymarket-workspace/trades.jsonl\n\nEach line is one JSON object representing one trade event."
      },
      {
        "title": "Error Handling",
        "body": "If input is not valid JSON:\n{\"ok\": false, \"error\": \"Invalid JSON: <error detail>\"}"
      },
      {
        "title": "Guardrails",
        "body": "Always APPEND to the file, never overwrite existing trades.\nCreate directory and file automatically if they do not exist.\nAlways run the script — never simulate or fake a save confirmation.\nTimestamp (ts) is auto-generated in UTC if not provided by user.\nOutput must be JSON only."
      }
    ],
    "body": "Trade Memory\n\nAppend confirmed trade signals or executed trades to a local JSONL log file for persistent memory and history tracking.\n\nWhen to Use\nUser says: \"simpan trade ini\"\nUser says: \"catat sinyal BTC tadi\"\nUser says: \"log trade BUY BTC entry 94500\"\nAgent wants to record a signal after btc-analyzer returns a result\nUser says: \"tambahkan ke trade history\"\nHow It Works\n\nThis skill runs a local Python script that:\n\nAccepts a JSON object as input (symbol, side, entry, sl, tp, note, source, ts).\nValidates the input is proper JSON.\nAppends the trade as a single line to trades.jsonl (creates file and directory if not exists).\nReturns a JSON confirmation object.\nWorkflow\n\nStep 1 — Collect trade data from user or agent:\n\nsymbol: trading pair (e.g. BTCUSDT)\nside: BUY or SELL\nentry: entry price (number)\nsl: stop loss price (number)\ntp: take profit price (number)\nnote: optional description or reason\nsource: origin of signal (e.g. btc-analyzer, manual, telegram)\nts: ISO timestamp (auto-filled if not provided)\n\nStep 2 — Run the save script via bash tool: python3 ~/.npm-global/lib/node_modules/openclaw/skills/trade-memory/save.py '<JSON_INPUT>'\n\nStep 3 — Confirm to user that trade was saved successfully.\n\nInput Format\n\n{ \"symbol\": \"BTCUSDT\", \"side\": \"BUY\", \"entry\": 94500, \"sl\": 94000, \"tp\": 95500, \"note\": \"sweep+fvg signal, RSI 58\", \"source\": \"btc-analyzer\", \"ts\": \"2026-02-23T00:00:00Z\" }\n\nOutput Format\n\n{\"ok\": true, \"path\": \"/home/windows_11/.openclaw/polymarket-workspace/trades.jsonl\", \"appended\": 1, \"trade\": {...}}\n\nLog File Location\n\n/home/windows_11/.openclaw/polymarket-workspace/trades.jsonl\n\nEach line is one JSON object representing one trade event.\n\nError Handling\n\nIf input is not valid JSON: {\"ok\": false, \"error\": \"Invalid JSON: <error detail>\"}\n\nGuardrails\nAlways APPEND to the file, never overwrite existing trades.\nCreate directory and file automatically if they do not exist.\nAlways run the script — never simulate or fake a save confirmation.\nTimestamp (ts) is auto-generated in UTC if not provided by user.\nOutput must be JSON only."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/newbienodes/trade-memory",
    "publisherUrl": "https://clawhub.ai/newbienodes/trade-memory",
    "owner": "newbienodes",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/trade-memory",
    "downloadUrl": "https://openagent3.xyz/downloads/trade-memory",
    "agentUrl": "https://openagent3.xyz/skills/trade-memory/agent",
    "manifestUrl": "https://openagent3.xyz/skills/trade-memory/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/trade-memory/agent.md"
  }
}