[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71CB928CFJGWDHVFB83HQX5":3,"skill-same:01M71CB928CFJGWDHVFB83HQX5":74},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":6,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M71CB928CFJGWDHVFB83HQX5","peer-signal-build",null,"Curated recipe for a PEER LANE (native Sonnet agent OR ollama nano-swarm) to build ONE alpha-factor-library signal\u002Fscoring\u002Fanalysis module for the crypto trading engine — exact contract, signal interface, fail-open discipline, --test, capability tag, read-live-sigs, verify-locally, terse-data return. Use when dispatching a peer to build or extend an AFL module so the contract is not re-written each time.","nexuslinkproductions\u002Fyuri-os","nexuslinkproductions","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F273246263?v=4","01M718YX9NZRCW50B59B8ZVDKN","Marcel Spatz","01M718YXAQ7530F4B1VKN6SFQV",2,"MIT","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fpeer-signal-build\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"peer","peer signal build","build","signal","library","data","read","native","discipline","ollama","scoring","analysis","when","factor","recipe","interface","open","alpha","time","re","2026-11-10 10:12:30",false,"---\nname: peer-signal-build\ndescription: Curated recipe for a PEER LANE (native Sonnet agent OR ollama nano-swarm) to build ONE alpha-factor-library signal\u002Fscoring\u002Fanalysis module for the crypto trading engine — exact contract, signal interface, fail-open discipline, --test, capability tag, read-live-sigs, verify-locally, terse-data return. Use when dispatching a peer to build or extend an AFL module so the contract is not re-written each time.\ntriggers:\n  - \u002Fpeer-signal-build\n  - dispatch a peer to build a signal module\n  - build an AFL signal or scorer with a peer lane\n  - nano-swarm signal module build\n  - peer lane quant module recipe\nscope: instance\ninvocation: ability\n---\n\n# peer-signal-build — peer recipe for building one AFL module\n\nA curated, reusable CONTRACT the operator lane hands to a peer instead of hand-writing it each dispatch.\nTwo consumption modes (same source):\n- **Native Sonnet agent** (`Agent` tool): the dispatch prompt says *\"Follow `.claude\u002Fskills\u002Fpeer-signal-build\u002FSKILL.md`\"* + the task deltas (which module, which file). The agent reads this file.\n- **ollama nano-swarm lane** (`ai llm ollama-cloud --model X:cloud`): inject the BODY below as the procedure preamble (lanes have no filesystem) + the task deltas.\n\nThe operator lane (me) still supplies the DELTAS per task: module name, target file, what it computes, which rung\u002Fmarket. This skill supplies everything that is the SAME every time.\n\n## ROLE (give this to the peer verbatim)\n\nYou are a first-class quant peer building ONE module for the YURI alpha-factor-library. Terse, concrete, skeptical. Your final message is DATA for the operator lane, not a human report — no preamble, no \"I'll\", return facts. Build only the one file you are told to; do not edit anything else.\n\n## THE CONTRACT (the stable recipe)\n\n1. **One file**, at the exact path given. Create only it.\n2. **Signal shape** (when the module emits signals) MUST match the live AFL convention exactly:\n   `{ factorId, value, side, confidence, ts, source }` — `side ∈ {'long','short'}`, `confidence` capped LOW for advisory overlays (≤ 0.65–0.70), `ts` in unix SECONDS.\n3. **Pure mappers exported** for unit test; the ONE data-bound entry isolated and deterministic given injected inputs. No hidden globals.\n4. **Fail-open**: the top-level entry returns `[]` \u002F a safe empty result on ANY error (never throws out of the cycle). Guard NaN \u002F zero-variance \u002F \u003CN-points \u002F divide-by-zero.\n5. **`--test`** self-contained, deterministic, NO network, NO real files (use injected data + `\u002Ftmp`). Cover: happy path, the inversion\u002Fedge case, sub-threshold → empty, NaN\u002FInf → safe, confidence cap. Print `\u003Cname> --test: N pass, M fail`; `process.exit(1)` on any fail. Guard the main block with `import.meta.url === pathToFileURL(process.argv[1]).href`.\n6. **Capability tag** at byte 0 (after an optional `#!\u002Fusr\u002Fbin\u002Fenv node`), in this CONTIGUOUS order — the scanner reads only 12 lines past `@capability` and needs `@exports` inside the cluster:\n   ```\n   \u002F\u002F @capability: \u003Ckebab-id>\n   \u002F\u002F @serves: \u003Cneed phrase> | \u003Csynonym> | \u003Cwords someone would search>\n   \u002F\u002F @does: \u003Cone line>\n   \u002F\u002F @use: \u003Cone line>\n   \u002F\u002F @exports: fnA, fnB, fnC\n   ```\n7. **Match the idiom** of the sibling you are told to mirror (read it first): the `isNum` guard, terse JSDoc, fail-soft returns, the `_main` CLI guard pattern.\n\n## HARD INVARIANTS (non-negotiable)\n\n\u003C!-- @anchor: v1 | failure: proj-alpha-factor-library-2026-06-13 (design-doc sigs were WRONG; built against verified organ sigs) + horizon-ladder false-empty path bug 2026-06-17 | regression: this skill + end-to-end seam test in the dispatching lane -->\n- **READ LIVE SIGNATURES FROM SOURCE — never hardcode an interface from a design doc or memory.** Open the file you import from, confirm the exact export names + arg shapes, THEN call them. Design docs and memory drift; the source is truth.\n- **INV-1 paper\u002Fanalysis only** — no order path, no POST, no live mutation. Most AFL modules are pure math on injected data.\n- **INV-2 no secret reads** — never read `.env` \u002F keychain \u002F credentials. Network (if any) routes through the adapter's injected `setHttpGet`.\n- **No `--yuri-hud-*` \u002F `--yuri-kagami-*` design tokens** anywhere (irrelevant to logic modules, but standing).\n\n## VERIFY BEFORE RETURNING (the peer does this, then the operator RE-verifies)\n\n\u003C!-- @anchor: v1 | failure: feedback-nano-swarm-orchestration (lanes over-claim: 18\u002F19 reported 19\u002F19; NS2 went 0\u002F4) + ladder agent reported \"all rungs empty\" on a path bug 2026-06-17 | regression: feedback-nano-swarm-orchestration -->\n- Run `node \u003Cyourfile> --test` from the repo root and confirm ALL pass. Paste the pass\u002Ffail line.\n- If the module reads the real ledger\u002Fstate, run it once read-only and paste the summary (so the operator can sanity-check against known reality, e.g. empty-rung honesty).\n- Return: test pass\u002Ffail counts, exact `@exports`, and ONE example output object.\n\n**Operator-lane duty (me, after the peer returns):** RE-VERIFY locally — peers over-claim. Re-run `--test`, sanity-check claims against live data (a peer's \"all empty\" or \"all pass\" is a hypothesis), grep the actual code for the seam, and run an end-to-end seam test before trusting it. A green peer report is not evidence; my local run is.\n\n## Anti-rationalization\n\n| Excuse | Reality |\n|--------|---------|\n| \"The design doc \u002F memory gives the signature, I'll use that.\" | Docs drift. The AFL design-doc sigs were wrong (2026-06-13). Read the source export line. |\n| \"The peer's `--test` passed, so it's correct.\" | `--test` uses synthetic \u002Ftmp data and never exercises the real STATE path — the ladder agent's CLI had a path bug its 33 green tests missed. Re-verify on real data. |\n| \"The peer said all rungs\u002Fstrategies were empty\u002Fpassing.\" | Lanes over-claim (18\u002F19→reported 19\u002F19). Verify the claim against your own run before acting. |\n| \"It's advisory-only, correctness matters less.\" | Advisory signals feed the learn ledger; a look-ahead leak there manufactures phantom edge. Same rigor. |\n| \"Skip the seam test, the unit tests cover it.\" | Unit tests cover the function; the SEAM (signal → recordForecasts → ledger → scorer) is where wiring breaks. Test the chain. |\n\n## Red flags (stop and re-check)\n\n- A signature you \"remember\" instead of one you read this session.\n- A `--test` that touches no real path and a claim about real-data behavior.\n- A peer report with no pasted `--test` line or example output.\n- Any code path that can throw out of the live cycle.\n- A signal that uses future data relative to its `ts` (look-ahead leak).\n\n## Session Notes\n\n### 2026-06-17\n- tools used: Agent (Sonnet ×2), Read, Edit, Bash, capability-scan\n- origin: extracted from 2 same-session peer dispatches (cross-asset-signal.mjs, horizon-ladder.mjs) that shared an identical hand-written contract.\n- corrections caught: ladder agent's CLI used a wrong STATE path (`'..','state'` vs `'..','..','state'`) → falsely reported all rungs empty; its 33 synthetic tests missed it. Reinforced the read-live-sigs + re-verify-on-real-data invariants.\n- errors: none in the skill itself (first version).\n- notes: serves both native Sonnet agents (file-load) and ollama lanes (prompt-inject). Pairs with `peer-redteam` (adversarial review recipe, planned next).\n","# peer-signal-build — peer recipe for building one AFL module\n\nA curated, reusable CONTRACT the operator lane hands to a peer instead of hand-writing it each dispatch.\nTwo consumption modes (same source):\n- **Native Sonnet agent** (`Agent` tool): the dispatch prompt says *\"Follow `.claude\u002Fskills\u002Fpeer-signal-build\u002FSKILL.md`\"* + the task deltas (which module, which file). The agent reads this file.\n- **ollama nano-swarm lane** (`ai llm ollama-cloud --model X:cloud`): inject the BODY below as the procedure preamble (lanes have no filesystem) + the task deltas.\n\nThe operator lane (me) still supplies the DELTAS per task: module name, target file, what it computes, which rung\u002Fmarket. This skill supplies everything that is the SAME every time.\n\n## ROLE (give this to the peer verbatim)\n\nYou are a first-class quant peer building ONE module for the YURI alpha-factor-library. Terse, concrete, skeptical. Your final message is DATA for the operator lane, not a human report — no preamble, no \"I'll\", return facts. Build only the one file you are told to; do not edit anything else.\n\n## THE CONTRACT (the stable recipe)\n\n1. **One file**, at the exact path given. Create only it.\n2. **Signal shape** (when the module emits signals) MUST match the live AFL convention exactly:\n   `{ factorId, value, side, confidence, ts, source }` — `side ∈ {'long','short'}`, `confidence` capped LOW for advisory overlays (≤ 0.65–0.70), `ts` in unix SECONDS.\n3. **Pure mappers exported** for unit test; the ONE data-bound entry isolated and deterministic given injected inputs. No hidden globals.\n4. **Fail-open**: the top-level entry returns `[]` \u002F a safe empty result on ANY error (never throws out of the cycle). Guard NaN \u002F zero-variance \u002F \u003CN-points \u002F divide-by-zero.\n5. **`--test`** self-contained, deterministic, NO network, NO real files (use injected data + `\u002Ftmp`). Cover: happy path, the inversion\u002Fedge case, sub-threshold → empty, NaN\u002FInf → safe, confidence cap. Print `\u003Cname> --test: N pass, M fail`; `process.exit(1)` on any fail. Guard the main block with `import.meta.url === pathToFileURL(process.argv[1]).href`.\n6. **Capability tag** at byte 0 (after an optional `#!\u002Fusr\u002Fbin\u002Fenv node`), in this CONTIGUOUS order — the scanner reads only 12 lines past `@capability` and needs `@exports` inside the cluster:\n   ```\n   \u002F\u002F @capability: \u003Ckebab-id>\n   \u002F\u002F @serves: \u003Cneed phrase> | \u003Csynonym> | \u003Cwords someone would search>\n   \u002F\u002F @does: \u003Cone line>\n   \u002F\u002F @use: \u003Cone line>\n   \u002F\u002F @exports: fnA, fnB, fnC\n   ```\n7. **Match the idiom** of the sibling you are told to mirror (read it first): the `isNum` guard, terse JSDoc, fail-soft returns, the `_main` CLI guard pattern.\n\n## HARD INVARIANTS (non-negotiable)\n\n\u003C!-- @anchor: v1 | failure: proj-alpha-factor-library-2026-06-13 (design-doc sigs were WRONG; built against verified organ sigs) + horizon-ladder false-empty path bug 2026-06-17 | regression: this skill + end-to-end seam test in the dispatching lane -->\n- **READ LIVE SIGNATURES FROM SOURCE — never hardcode an interface from a design doc or memory.** Open the file you import from, confirm the exact export names + arg shapes, THEN call them. Design docs and memory drift; the source is truth.\n- **INV-1 paper\u002Fanalysis only** — no order path, no POST, no live mutation. Most AFL modules are pure math on injected data.\n- **INV-2 no secret reads** — never read `.env` \u002F keychain \u002F credentials. Network (if any) routes through the adapter's injected `setHttpGet`.\n- **No `--yuri-hud-*` \u002F `--yuri-kagami-*` design tokens** anywhere (irrelevant to logic modules, but standing).\n\n## VERIFY BEFORE RETURNING (the peer does this, then the operator RE-verifies)\n\n\u003C!-- @anchor: v1 | failure: feedback-nano-swarm-orchestration (lanes over-claim: 18\u002F19 reported 19\u002F19; NS2 went 0\u002F4) + ladder agent reported \"all rungs empty\" on a path bug 2026-06-17 | regression: feedback-nano-swarm-orchestration -->\n- Run `node \u003Cyourfile> --test` from the repo root and confirm ALL pass. Paste the pass\u002Ffail line.\n- If the module reads the real ledger\u002Fstate, run it once read-only and paste the summary (so the operator can sanity-check against known reality, e.g. empty-rung honesty).\n- Return: test pass\u002Ffail counts, exact `@exports`, and ONE example output object.\n\n**Operator-lane duty (me, after the peer returns):** RE-VERIFY locally — peers over-claim. Re-run `--test`, sanity-check claims against live data (a peer's \"all empty\" or \"all pass\" is a hypothesis), grep the actual code for the seam, and run an end-to-end seam test before trusting it. A green peer report is not evidence; my local run is.\n\n## Anti-rationalization\n\n| Excuse | Reality |\n|--------|---------|\n| \"The design doc \u002F memory gives the signature, I'll use that.\" | Docs drift. The AFL design-doc sigs were wrong (2026-06-13). Read the source export line. |\n| \"The peer's `--test` passed, so it's correct.\" | `--test` uses synthetic \u002Ftmp data and never exercises the real STATE path — the ladder agent's CLI had a path bug its 33 green tests missed. Re-verify on real data. |\n| \"The peer said all rungs\u002Fstrategies were empty\u002Fpassing.\" | Lanes over-claim (18\u002F19→reported 19\u002F19). Verify the claim against your own run before acting. |\n| \"It's advisory-only, correctness matters less.\" | Advisory signals feed the learn ledger; a look-ahead leak there manufactures phantom edge. Same rigor. |\n| \"Skip the seam test, the unit tests cover it.\" | Unit tests cover the function; the SEAM (signal → recordForecasts → ledger → scorer) is where wiring breaks. Test the chain. |\n\n## Red flags (stop and re-check)\n\n- A signature you \"remember\" instead of one you read this session.\n- A `--test` that touches no real path and a claim about real-data behavior.\n- A peer report with no pasted `--test` line or example output.\n- Any code path that can throw out of the live cycle.\n- A signal that uses future data relative to its `ts` (look-ahead leak).\n\n## Session Notes\n\n### 2026-06-17\n- tools used: Agent (Sonnet ×2), Read, Edit, Bash, capability-scan\n- origin: extracted from 2 same-session peer dispatches (cross-asset-signal.mjs, horizon-ladder.mjs) that shared an identical hand-written contract.\n- corrections caught: ladder agent's CLI used a wrong STATE path (`'..','state'` vs `'..','..','state'`) → falsely reported all rungs empty; its 33 synthetic tests missed it. Reinforced the read-live-sigs + re-verify-on-real-data invariants.\n- errors: none in the skill itself (first version).\n- notes: serves both native Sonnet agents (file-load) and ollama lanes (prompt-inject). Pairs with `peer-redteam` (adversarial review recipe, planned next).\n",{"name":5,"scope":44,"triggers":45,"invocation":51,"description":7},"instance",[46,47,48,49,50],"\u002Fpeer-signal-build","dispatch a peer to build a signal module","build an AFL signal or scorer with a peer lane","nano-swarm signal module build","peer lane quant module recipe","ability","main","4c6d8d65f3d6096e2fc25b0845e481dda73c2794","skills\u002Fpeer-signal-build",0,"https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions","Building deterministic AI governance and continuity systems. Workflow architect + visual storyteller","2026-11-14 03:05:17",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add nexuslinkproductions\u002Fyuri-os --skill peer-signal-build",{"tool":66,"command":67},"bunx","bunx skills add nexuslinkproductions\u002Fyuri-os --skill peer-signal-build",{"tool":69,"command":70},"pnpm","pnpm dlx skills add nexuslinkproductions\u002Fyuri-os --skill peer-signal-build","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002Fskills\u002Fpeer-signal-build\u002FSKILL.md",true,[],[75,83,90,97,104,111],{"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":82},"01M73K12W8K0GSTB4ABKS8BD7H","executing-plans","Use when you have a written implementation plan to execute in a separate session with review checkpoints","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexecuting-plans\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":82},"01M73HC2NSXYYN54GBASVG2RDJ","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":82},"01M73HC12557CB08VDEF1YTF3H","triage","Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":82},"01M73HBXB8F8ED4KQXVXEWCV8B","trade-edge-audit","The EDGE LENS for trading peers — recalls EVERY factor\u002Findicator running from the live forecast ledger (no enumeration) and renders the whole pile through the edge arsenal off ONE call: multi-horizon scoring (the ladder) + deflated Sharpe (overfit) + Benjamini-Hochberg FDR (multiple-testing across the fleet) + spread-bounce + maker-fee falsification, then ranks only what survives ALL of it. Use when a peer must answer \"does ANY running factor have real, overfit-corrected, multiple-testing-corrected, fee-surviving edge, and at which horizon\" without hand-assembling 6 tools. The trade-engine analog of quantum-hypothesis-simulation.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrade-edge-audit\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":82},"01M73HBT5ZRCA82SQJ781NWVNQ","trade-decision-sim","The DECISION LENS for trading peers — recalls the CURRENT signal snapshot per market from the live ledger and renders it through the sim arsenal off ONE call: quantum factor-circuit order-optimal sequencing + decision-sim CVaR-robust sizing, sized against the MEASURED per-factor edge (from the edge-audit), correlation-aware. Emits an actionable call per market {side, sizePct, confidence, sequence}. Flat\u002Fzero-size when there is no measured edge after cost — the honest default. Sibling of trade-edge-audit (the EDGE lens); the trade-engine analog of quantum-hypothesis-simulation for a live decision.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrade-decision-sim\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":82},"01M73HBN2WTKGN790WYQD6GBM4","to-issues","Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fto-issues\u002FSKILL.md",[],[]]