[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FCRPRM0QRWG3GRPPRZ4FGC":3,"skill-same:01M7FCRPRM0QRWG3GRPPRZ4FGC":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7FCRPRM0QRWG3GRPPRZ4FGC","trader-backtest",null,"Run a historical backtest using npx neural-trader with Rust\u002FNAPI engine (8-19x faster) and walk-forward validation; Ed25519-sign the result for paper→live tamper evidence (ADR-126 Phase 4)","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Ftrader-backtest\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: trader-backtest\ndescription: Run a historical backtest using npx neural-trader with Rust\u002FNAPI engine (8-19x faster) and walk-forward validation; Ed25519-sign the result for paper→live tamper evidence (ADR-126 Phase 4)\nallowed-tools: Bash Read mcp__plugin_ruflo-core_ruflo__memory_store mcp__plugin_ruflo-core_ruflo__memory_retrieve mcp__plugin_ruflo-core_ruflo__memory_search mcp__plugin_ruflo-core_ruflo__memory_delete mcp__plugin_ruflo-core_ruflo__neural_train mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store\nargument-hint: \"\u003Cstrategy-name> --symbol \u003CTICKER> [--period 2020-2024]\"\n---\nRun a historical backtest using the `neural-trader` Rust\u002FNAPI engine, then Ed25519-sign the result so the paper→live promotion gate has cryptographic tamper evidence (ADR-126 Phase 4 + CWE-347 pattern).\n\nSteps:\n1. Ensure neural-trader is available:\n   `npm ls neural-trader 2>\u002Fdev\u002Fnull || npm install --ignore-scripts neural-trader`\n2. Check for saved strategy config:\n   `mcp__plugin_ruflo-core_ruflo__memory_retrieve({ key: \"strategy-STRATEGY_NAME\", namespace: \"trading-strategies\" })`\n   If not found, list available: `mcp__plugin_ruflo-core_ruflo__memory_search({ query: \"strategy\", namespace: \"trading-strategies\", limit: 10 })`\n3. Run backtest via neural-trader CLI:\n   ```bash\n   npx neural-trader --backtest --strategy \u003Cname> --symbol \u003CTICKER> --period \u003Crange> --walk-forward\n   ```\n   For multi-indicator strategies:\n   ```bash\n   npx neural-trader --backtest --strategy multi-indicator --position-sizing kelly --symbol SPY --period 2020-2024\n   ```\n4. Capture performance metrics from output: total return, annualized return, Sharpe ratio, Sortino ratio, max drawdown, win rate, profit factor, number of trades.\n5. Dedup prior backtests for the same `(strategyId, paramsHash)` before storing the fresh one (ADR-125 lifecycle \u002F ADR-126 Phase 2 — `keep-newest` semantics):\n   - Search: `mcp__plugin_ruflo-core_ruflo__memory_search({ query: \"backtest STRATEGY paramsHash:PARAMS_HASH\", namespace: \"trading-backtests\", limit: 10 })`\n   - For each hit whose key matches `backtest-STRATEGY-*` AND whose stored `paramsHash` equals the current run's hash, delete it: `mcp__plugin_ruflo-core_ruflo__memory_delete({ key: \"OLD_KEY\", namespace: \"trading-backtests\" })`\n   - (Note: even without this proactive step, the `MemoryConsolidator.dedup('keep-newest')` background pass introduced in `@claude-flow\u002Fmemory@3.0.0-alpha.18` runs every 6h and will eventually converge. Doing it inline keeps `memory_search` results deterministic immediately after a re-run.)\n6. **Sign the artifact (ADR-126 Phase 4):**\n   - Build the `SignedBacktestArtifact` body — `{ strategyId, paramsHash, dataRange: {from,to}, metrics, runsHash, generatedAt }` — where `paramsHash = sha256(canonical params JSON)`, `runsHash = sha256(canonical runs array JSON)`, and `generatedAt = new Date().toISOString()`.\n   - Resolve the witness signing key. The skill reads the key path in this order; the FIRST that resolves wins:\n     1. `RUFLO_WITNESS_KEY_PATH` env var — points to a JSON file with `{ \"privateKey\": \"\u003Chex>\" }`.\n     2. `verification\u002Fwitness-key.json` (the ADR-103 default path, if present).\n   - If the key resolves: call `signBacktestArtifact(body, privateKeyHex)` from `plugins\u002Fruflo-neural-trader\u002Fsrc\u002Fsigned-artifact.mjs`. The returned value is a `SignedBacktestArtifact` with `schema`, `witnessPublicKey: \"ed25519:\u003Chex>\"`, and `witnessSignature: \"\u003Chex>\"` populated.\n   - If NEITHER path resolves: log a loud warning — `\"[WARN] ruflo-neural-trader: no witness signing key found (RUFLO_WITNESS_KEY_PATH unset, verification\u002Fwitness-key.json missing) — storing backtest artifact in UNSIGNED degraded mode. paper→live promotion will be refused by trader-cloud-backtest until a signed artifact replaces this one.\"` — and store the body unsigned. NEVER silently fall back.\n7. **Store the (possibly signed) artifact** to the canonical `trading-backtests` namespace:\n   `mcp__plugin_ruflo-core_ruflo__memory_store({ key: \"backtest-STRATEGY-TIMESTAMP\", value: JSON.stringify(signedArtifact), namespace: \"trading-backtests\" })`\n   The stored value contains `witnessSignature` + `witnessPublicKey` when signed; downstream consumers (`trader-cloud-backtest`) MUST call `verifyBacktestArtifact(artifact, trustedPublicKey)` before promoting any artifact to live.\n8. If Sharpe > 1.5, store as successful pattern:\n   `mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store({ pattern: \"profitable-STRATEGY_TYPE\", data: \"PARAMS_AND_RESULTS\" })`\n9. Train SONA on the outcome:\n   `mcp__plugin_ruflo-core_ruflo__neural_train({ patternType: \"trading-strategy\", epochs: 10 })`\n\n### Key sourcing & key rotation (ADR-103)\n\n- The witness key is a 32-byte Ed25519 private key, stored as `{ \"privateKey\": \"\u003C64-hex-chars>\" }` in a JSON file referenced by `RUFLO_WITNESS_KEY_PATH`. Keep it OUT of the repo. For local development, generate one once with `node -e \"import('@noble\u002Fed25519').then(async ed=>{const sk=crypto.getRandomValues(new Uint8Array(32));console.log(Buffer.from(sk).toString('hex'))})\"` and write it to `~\u002F.ruflo\u002Fwitness-key.json`.\n- Production deployments pin the corresponding PUBLIC key in project config and supply it as `trustedPublicKey` to `verifyBacktestArtifact(...)` — never trust the `witnessPublicKey` field on the artifact itself (CWE-347 \u002F #1922).\n- Key rotation: re-sign existing backtest entries with the new key OR explicitly mark pre-rotation artifacts as non-promotable. Same pattern as ADR-103.\n","Run a historical backtest using the `neural-trader` Rust\u002FNAPI engine, then Ed25519-sign the result so the paper→live promotion gate has cryptographic tamper evidence (ADR-126 Phase 4 + CWE-347 pattern).\n\nSteps:\n1. Ensure neural-trader is available:\n   `npm ls neural-trader 2>\u002Fdev\u002Fnull || npm install --ignore-scripts neural-trader`\n2. Check for saved strategy config:\n   `mcp__plugin_ruflo-core_ruflo__memory_retrieve({ key: \"strategy-STRATEGY_NAME\", namespace: \"trading-strategies\" })`\n   If not found, list available: `mcp__plugin_ruflo-core_ruflo__memory_search({ query: \"strategy\", namespace: \"trading-strategies\", limit: 10 })`\n3. Run backtest via neural-trader CLI:\n   ```bash\n   npx neural-trader --backtest --strategy \u003Cname> --symbol \u003CTICKER> --period \u003Crange> --walk-forward\n   ```\n   For multi-indicator strategies:\n   ```bash\n   npx neural-trader --backtest --strategy multi-indicator --position-sizing kelly --symbol SPY --period 2020-2024\n   ```\n4. Capture performance metrics from output: total return, annualized return, Sharpe ratio, Sortino ratio, max drawdown, win rate, profit factor, number of trades.\n5. Dedup prior backtests for the same `(strategyId, paramsHash)` before storing the fresh one (ADR-125 lifecycle \u002F ADR-126 Phase 2 — `keep-newest` semantics):\n   - Search: `mcp__plugin_ruflo-core_ruflo__memory_search({ query: \"backtest STRATEGY paramsHash:PARAMS_HASH\", namespace: \"trading-backtests\", limit: 10 })`\n   - For each hit whose key matches `backtest-STRATEGY-*` AND whose stored `paramsHash` equals the current run's hash, delete it: `mcp__plugin_ruflo-core_ruflo__memory_delete({ key: \"OLD_KEY\", namespace: \"trading-backtests\" })`\n   - (Note: even without this proactive step, the `MemoryConsolidator.dedup('keep-newest')` background pass introduced in `@claude-flow\u002Fmemory@3.0.0-alpha.18` runs every 6h and will eventually converge. Doing it inline keeps `memory_search` results deterministic immediately after a re-run.)\n6. **Sign the artifact (ADR-126 Phase 4):**\n   - Build the `SignedBacktestArtifact` body — `{ strategyId, paramsHash, dataRange: {from,to}, metrics, runsHash, generatedAt }` — where `paramsHash = sha256(canonical params JSON)`, `runsHash = sha256(canonical runs array JSON)`, and `generatedAt = new Date().toISOString()`.\n   - Resolve the witness signing key. The skill reads the key path in this order; the FIRST that resolves wins:\n     1. `RUFLO_WITNESS_KEY_PATH` env var — points to a JSON file with `{ \"privateKey\": \"\u003Chex>\" }`.\n     2. `verification\u002Fwitness-key.json` (the ADR-103 default path, if present).\n   - If the key resolves: call `signBacktestArtifact(body, privateKeyHex)` from `plugins\u002Fruflo-neural-trader\u002Fsrc\u002Fsigned-artifact.mjs`. The returned value is a `SignedBacktestArtifact` with `schema`, `witnessPublicKey: \"ed25519:\u003Chex>\"`, and `witnessSignature: \"\u003Chex>\"` populated.\n   - If NEITHER path resolves: log a loud warning — `\"[WARN] ruflo-neural-trader: no witness signing key found (RUFLO_WITNESS_KEY_PATH unset, verification\u002Fwitness-key.json missing) — storing backtest artifact in UNSIGNED degraded mode. paper→live promotion will be refused by trader-cloud-backtest until a signed artifact replaces this one.\"` — and store the body unsigned. NEVER silently fall back.\n7. **Store the (possibly signed) artifact** to the canonical `trading-backtests` namespace:\n   `mcp__plugin_ruflo-core_ruflo__memory_store({ key: \"backtest-STRATEGY-TIMESTAMP\", value: JSON.stringify(signedArtifact), namespace: \"trading-backtests\" })`\n   The stored value contains `witnessSignature` + `witnessPublicKey` when signed; downstream consumers (`trader-cloud-backtest`) MUST call `verifyBacktestArtifact(artifact, trustedPublicKey)` before promoting any artifact to live.\n8. If Sharpe > 1.5, store as successful pattern:\n   `mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store({ pattern: \"profitable-STRATEGY_TYPE\", data: \"PARAMS_AND_RESULTS\" })`\n9. Train SONA on the outcome:\n   `mcp__plugin_ruflo-core_ruflo__neural_train({ patternType: \"trading-strategy\", epochs: 10 })`\n\n### Key sourcing & key rotation (ADR-103)\n\n- The witness key is a 32-byte Ed25519 private key, stored as `{ \"privateKey\": \"\u003C64-hex-chars>\" }` in a JSON file referenced by `RUFLO_WITNESS_KEY_PATH`. Keep it OUT of the repo. For local development, generate one once with `node -e \"import('@noble\u002Fed25519').then(async ed=>{const sk=crypto.getRandomValues(new Uint8Array(32));console.log(Buffer.from(sk).toString('hex'))})\"` and write it to `~\u002F.ruflo\u002Fwitness-key.json`.\n- Production deployments pin the corresponding PUBLIC key in project config and supply it as `trustedPublicKey` to `verifyBacktestArtifact(...)` — never trust the `witnessPublicKey` field on the artifact itself (CWE-347 \u002F #1922).\n- Key rotation: re-sign existing backtest entries with the new key OR explicitly mark pre-rotation artifacts as non-promotable. Same pattern as ADR-103.\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25},"Bash Read mcp__plugin_ruflo-core_ruflo__memory_store mcp__plugin_ruflo-core_ruflo__memory_retrieve mcp__plugin_ruflo-core_ruflo__memory_search mcp__plugin_ruflo-core_ruflo__memory_delete mcp__plugin_ruflo-core_ruflo__neural_train mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store","\u003Cstrategy-name> --symbol \u003CTICKER> [--period 2020-2024]","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Ftrader-backtest",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill trader-backtest",{"tool":40,"command":41},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill trader-backtest",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill trader-backtest","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Ftrader-backtest\u002FSKILL.md",true,[],[49,56,61,68,75,82],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":57,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]