[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78BWWVQMHC27AE8NZ2Y63P4":3,"skill-same:01M78BWWVQMHC27AE8NZ2Y63P4":47},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78BWWVQMHC27AE8NZ2Y63P4","dflow-kalshi-portfolio",null,"View what a wallet holds on DFlow's Kalshi prediction markets — current positions, unrealized mark-to-market, realized P&L, activity history, and redeemable winners. Use when the user asks \"what are my positions?\", \"what do I own?\", \"am I up or down?\", \"what's my fill history?\", \"what can I redeem?\", \"mark my portfolio to market\", or \"show me this wallet's DFlow activity\". Read-only. Do NOT use to place sells or redemptions (use `dflow-kalshi-trading`), for market-wide data unrelated to a wallet (use `dflow-kalshi-market-data`), or to discover new markets (use `dflow-kalshi-market-scanner`).","Solizardking\u002Fskillhub-main","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786NYYXSZK1D05WM8JQPC48",0,"MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fdflow-kalshi-portfolio\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: dflow-kalshi-portfolio\ndescription: View what a wallet holds on DFlow's Kalshi prediction markets — current positions, unrealized mark-to-market, realized P&L, activity history, and redeemable winners. Use when the user asks \"what are my positions?\", \"what do I own?\", \"am I up or down?\", \"what's my fill history?\", \"what can I redeem?\", \"mark my portfolio to market\", or \"show me this wallet's DFlow activity\". Read-only. Do NOT use to place sells or redemptions (use `dflow-kalshi-trading`), for market-wide data unrelated to a wallet (use `dflow-kalshi-market-data`), or to discover new markets (use `dflow-kalshi-market-scanner`).\n---\n\n# DFlow Kalshi Portfolio\n\nRead-only views on a wallet's Kalshi activity — holdings, mark-to-market valuations, realized P&L, fill history, redeemable positions.\n\n## Prerequisites\n\n- **DFlow docs MCP** (`https:\u002F\u002Fpond.dflow.net\u002Fmcp`) — install per the [repo README](..\u002F..\u002FREADME.md#recommended-install-the-dflow-docs-mcp). This skill is the recipe; the MCP is the reference. Look up exact response shapes, pagination, and batch-endpoint payloads via `search_d_flow` \u002F `query_docs_filesystem_d_flow` — don't guess.\n- **`dflow` CLI** (optional, for the fast-path holdings view) — install per the [repo README](..\u002F..\u002FREADME.md#recommended-install-the-dflow-cli).\n\n## Surface\n\n**There is no `\u002Fpositions` endpoint.** A portfolio is assembled by hand from onchain wallet balances + metadata joins. Two ways to do it:\n\n- **CLI — `dflow positions`** — one command, dumps spot + outcome tokens for the **active vault wallet** with balances and market labels. Covers \"what do I hold right now?\" on the CLI, and the stablecoin `uiAmount` already reads as USD. Doesn't carry mark prices for outcome tokens, `redemptionStatus`, or fill history, so outcome-token valuation, redemption checks, and P&L still need the API pipeline. Active-vault only.\n- **API — build-your-own pipeline** — needed whenever the user wants any of: mark-to-market, P&L, activity history, redemption eligibility, *or* to inspect a wallet that isn't the CLI's active vault.\n\n## Quick path: `dflow positions` (CLI)\n\nOutput (single JSON envelope, same on every wallet):\n\n```json\n{\n  \"ok\": true,\n  \"data\": {\n    \"wallet\": \"\u003Cpubkey>\",\n    \"positions\": [\n      { \"type\": \"spot\",    \"mint\": \"...\", \"symbol\": \"USDC\", \"amount\": \"1326161\", \"uiAmount\": 1.326161, \"decimals\": 6 },\n      { \"type\": \"outcome\", \"mint\": \"...\", \"symbol\": \"DFlowYU0192\", \"amount\": \"2000000\", \"uiAmount\": 2.0, \"decimals\": 6,\n        \"side\": \"yes\", \"market\": { \"title\": \"...\", \"status\": \"active\" } }\n    ]\n  }\n}\n```\n\n- `type: \"spot\"` — SOL, USDC, CASH, and anything else in the wallet.\n- `type: \"outcome\"` — Kalshi outcome token; additionally carries `side` (`\"yes\"` | `\"no\"`) and a minimal `market` (`title`, `status`).\n- No flag to inspect another wallet. For that, use the API pipeline.\n\n## Full path: build-your-own (API)\n\nThe canonical pipeline, from the DFlow recipe [`\u002Fbuild\u002Frecipes\u002Fprediction-markets\u002Ftrack-positions`](https:\u002F\u002Fpond.dflow.net\u002Fbuild\u002Frecipes\u002Fprediction-markets\u002Ftrack-positions):\n\n1. **Read wallet balances via Solana RPC** — `getParsedTokenAccountsByOwner(wallet, { programId: TOKEN_2022_PROGRAM_ID })`. Outcome tokens are Token-2022. (For stablecoin balances, also query the classic SPL token program.)\n2. **`POST \u002Fapi\u002Fv1\u002Ffilter_outcome_mints`** — send the wallet's mint list, get back just the PM outcome mints.\n3. **`POST \u002Fapi\u002Fv1\u002Fmarkets\u002Fbatch`** — fetch full market metadata for those outcome mints (title, status, closeTime, `yesBid` \u002F `yesAsk` \u002F `noBid` \u002F `noAsk`, `redemptionStatus`, `accounts.yesMint` \u002F `noMint`).\n4. **Join** — map each holding to its market; determine YES vs NO by matching the held mint against `accounts.yesMint` \u002F `accounts.noMint`.\n\nField-level detail (response envelopes, pagination) → docs MCP.\n\n## Views on top of the pipeline\n\n### Current positions\nOutput of the pipeline above. Optionally attach current mark price per position (`yesBid` for YES holdings, `noBid` for NO holdings — see mark-to-market below).\n\n### Unrealized mark-to-market\nValue each outcome holding at the **bid on its side** (what you could sell it for), not the ask:\n- Long YES → `uiAmount * parseFloat(yesBid)`\n- Long NO → `uiAmount * parseFloat(noBid)`\n\nSum across positions for a wallet-level unrealized value. Subtract cost basis (below) for unrealized P&L.\n\n### Realized activity and P&L\n`GET \u002Fapi\u002Fv1\u002Fonchain-trades?wallet=\u003Cpubkey>&sortBy=createdAt&sortOrder=desc&limit=N` — DFlow-indexed view of the wallet's onchain fills.\n\n- **Activity feed**: each row has `createdAt`, `marketTicker`, `side`, `inputAmount`, `outputAmount`, `transactionSignature`.\n- **Cost basis per market**: track net settlement-mint flow per outcome mint (settlement-in on buys minus settlement-out on sells).\n- **Fees**: sum `feeAmount` across fills in the settlement mint.\n\n### Redeemable sweep\nA holding is redeemable iff **all three**:\n- market `status` is `determined` or `finalized`,\n- market `redemptionStatus` is `\"open\"`,\n- the held outcome mint is the **winning** side (from market `result`).\n\nTo redeem, hand off to `dflow-kalshi-trading` (redemption is a sell of the winning side back to the settlement mint).\n\n### Pending order check\nIf the app submitted the order itself, persist the `orderAddress` returned at submission and poll `GET \u002Forder-status?orderAddress=\u003Caddr>` until terminal. There's no list-by-wallet endpoint. Most fills terminate well under the CLI's 120s poll budget, so this is rarely a user-facing concern — but outside the maintenance window, don't assume a specific fill time.\n\n## What to ASK the user (and what NOT to ask)\n\n**View shape — infer if unambiguous, confirm if not:**\n\n1. **Which view** — holdings \u002F mark-to-market \u002F realized P&L \u002F activity \u002F redeemable.\n2. **Wallet pubkey** — API only (CLI uses the active vault wallet).\n\n**Infra — always ask, never infer (HTTP\u002FRPC pipeline only; the `dflow positions` quick path needs neither):**\n\n3. **DFlow API key** (only when the script is hitting the Metadata API directly — `markets\u002Fbatch`, `onchain-trades`, etc.). The CLI quick path (`dflow positions`) doesn't need one — it uses the CLI's stored config. **For the HTTP pipeline, ask with a clean, neutral question: *\"Do you have a DFlow API key?\"*** Don't presuppose where the key lives — phrasings like *\"do you have it in env?\"* or *\"is `DFLOW_API_KEY` set?\"* nudge the user toward env-var defaults they didn't ask for. Surface the choice; don't silently fall back to env or to dev. It's **one DFlow key everywhere** — same `x-api-key` unlocks Metadata + Trade APIs. Yes → prod host `https:\u002F\u002Fprediction-markets-api.dflow.net` with `x-api-key`. No → dev host `https:\u002F\u002Fdev-prediction-markets-api.dflow.net`, rate-limited. Pointer: `https:\u002F\u002Fpond.dflow.net\u002Fbuild\u002Fapi-key`. **When you generate a script, log the resolved host + key-presence at startup.**\n4. **RPC URL** — **yes, ask here**, unlike spot\u002FPM trading or market-data. The HTTP pipeline reads token accounts directly via RPC; there's no wallet in the loop to do it for you. Recommend [Helius](https:\u002F\u002Fhelius.dev). CLI users on the `dflow positions` quick path don't need one — `dflow setup` already configured it.\n\n**Do NOT ask about:**\n- Settlement mint, slippage, fees, signing — read-only skill. If the user pivots to acting on a position, hand off to `dflow-kalshi-trading`.\n\n## Gotchas (the docs MCP won't volunteer these)\n\n- **No `\u002Fpositions` endpoint.** Portfolio = wallet balances + metadata joins. Don't hunt the API for a shortcut.\n- **Token-2022 program for outcome tokens.** `TOKEN_2022_PROGRAM_ID`, not the classic token program. Query the classic program separately for USDC\u002FSOL\u002FCASH.\n- **Mark-to-market = bid, not ask.** Long YES → `yesBid`. Long NO → `noBid`. Marking on the ask overstates the portfolio.\n- **Two POST endpoints.** `filter_outcome_mints` and `markets\u002Fbatch` both take a POST body with an address list. Easy to default to GET and fail.\n- **Stablecoins aren't outcome mints.** `filter_outcome_mints` strips them out (they're settlement, not positions). Track USDC \u002F CASH balances separately from the PM view.\n- **Redemption readiness is three ANDed conditions**, not just \"market closed.\" Surface a redeemable list only when status + `redemptionStatus` + winning side all line up.\n- **Balance lag after fill.** A fill that just landed onchain may not show up immediately on a non-indexed RPC — the token account update propagates after the transaction finalizes. Debounce rapid refreshes, and if the user expected a balance change and doesn't see it, retry before assuming failure.\n- **`dflow positions` is active-vault only.** No `--wallet` flag; switching wallets means `dflow setup` or the API pipeline.\n- **`dflow positions` returns balances, not mark prices.** You get `amount` \u002F `uiAmount` \u002F `decimals` plus `side` + `market.title` + `market.status` on outcome tokens. That already gets you close to dollar value for USDC and CASH (their `uiAmount` ≈ USD modulo depeg), but **outcome tokens** need `yesBid` \u002F `noBid` from `markets\u002Fbatch` to mark, and **other spot tokens** (SOL, etc.) need an outside spot price. No `redemptionStatus` and no cost basis in the output either — pair with `markets\u002Fbatch` for redemption eligibility, `\u002Fonchain-trades` for P&L.\n- **Closed outcome token accounts.** After a full sell or redeem, the token account may be closed (rent reclaimed) and will no longer show up on the wallet. That's expected — check onchain-trades history if you need the record.\n- **Same market, different rail = separate position.** Every Kalshi market on DFlow has a USDC rail and a CASH rail, each with its own `yesMint` \u002F `noMint`. A wallet can hold YES on both rails of the same market — those are two rows in the portfolio, two redemption flows, and their mark-to-market sums independently. Rare in practice (most users stick to one rail) but worth handling if it shows up.\n- **Two surfaces, two auth paths.** `dflow positions` shells out through the CLI and uses its stored config (key, wallet, RPC) — the script plumbs nothing for that call. The build-your-own HTTP pipeline (`markets\u002Fbatch`, `onchain-trades`, RPC `getParsedTokenAccountsByOwner`) is plain HTTP\u002FRPC and needs the DFlow API key + RPC URL plumbed in explicitly. They're independent: the CLI's stored key isn't reachable from a sibling HTTP client. Only ask about API key + RPC for the HTTP pipeline.\n\n## When something doesn't fit\n\nFor anything not covered above — full response envelopes for `filter_outcome_mints` \u002F `markets\u002Fbatch` \u002F `onchain-trades`, pagination params, Proof state in the picture, edge cases in `redemptionStatus` transitions, order-status terminal states — query the docs MCP (`search_d_flow`, `query_docs_filesystem_d_flow`). Don't guess.\n\nFor runnable reference code, point at [`\u002Fbuild\u002Frecipes\u002Fprediction-markets\u002Ftrack-positions`](https:\u002F\u002Fpond.dflow.net\u002Fbuild\u002Frecipes\u002Fprediction-markets\u002Ftrack-positions) (and its Cookbook Repo link).\n\n## Sibling skills\n\n- `dflow-kalshi-trading` — sell, redeem, or otherwise act on a position you see here.\n- `dflow-kalshi-market-data` — market-centric data (orderbook, trades, candles, in-game) for a position you're watching.\n- `dflow-kalshi-market-scanner` — find new markets to open positions in.\n- `dflow-proof-kyc` — verify a wallet before it can buy into new positions.\n","# DFlow Kalshi Portfolio\n\nRead-only views on a wallet's Kalshi activity — holdings, mark-to-market valuations, realized P&L, fill history, redeemable positions.\n\n## Prerequisites\n\n- **DFlow docs MCP** (`https:\u002F\u002Fpond.dflow.net\u002Fmcp`) — install per the [repo README](..\u002F..\u002FREADME.md#recommended-install-the-dflow-docs-mcp). This skill is the recipe; the MCP is the reference. Look up exact response shapes, pagination, and batch-endpoint payloads via `search_d_flow` \u002F `query_docs_filesystem_d_flow` — don't guess.\n- **`dflow` CLI** (optional, for the fast-path holdings view) — install per the [repo README](..\u002F..\u002FREADME.md#recommended-install-the-dflow-cli).\n\n## Surface\n\n**There is no `\u002Fpositions` endpoint.** A portfolio is assembled by hand from onchain wallet balances + metadata joins. Two ways to do it:\n\n- **CLI — `dflow positions`** — one command, dumps spot + outcome tokens for the **active vault wallet** with balances and market labels. Covers \"what do I hold right now?\" on the CLI, and the stablecoin `uiAmount` already reads as USD. Doesn't carry mark prices for outcome tokens, `redemptionStatus`, or fill history, so outcome-token valuation, redemption checks, and P&L still need the API pipeline. Active-vault only.\n- **API — build-your-own pipeline** — needed whenever the user wants any of: mark-to-market, P&L, activity history, redemption eligibility, *or* to inspect a wallet that isn't the CLI's active vault.\n\n## Quick path: `dflow positions` (CLI)\n\nOutput (single JSON envelope, same on every wallet):\n\n```json\n{\n  \"ok\": true,\n  \"data\": {\n    \"wallet\": \"\u003Cpubkey>\",\n    \"positions\": [\n      { \"type\": \"spot\",    \"mint\": \"...\", \"symbol\": \"USDC\", \"amount\": \"1326161\", \"uiAmount\": 1.326161, \"decimals\": 6 },\n      { \"type\": \"outcome\", \"mint\": \"...\", \"symbol\": \"DFlowYU0192\", \"amount\": \"2000000\", \"uiAmount\": 2.0, \"decimals\": 6,\n        \"side\": \"yes\", \"market\": { \"title\": \"...\", \"status\": \"active\" } }\n    ]\n  }\n}\n```\n\n- `type: \"spot\"` — SOL, USDC, CASH, and anything else in the wallet.\n- `type: \"outcome\"` — Kalshi outcome token; additionally carries `side` (`\"yes\"` | `\"no\"`) and a minimal `market` (`title`, `status`).\n- No flag to inspect another wallet. For that, use the API pipeline.\n\n## Full path: build-your-own (API)\n\nThe canonical pipeline, from the DFlow recipe [`\u002Fbuild\u002Frecipes\u002Fprediction-markets\u002Ftrack-positions`](https:\u002F\u002Fpond.dflow.net\u002Fbuild\u002Frecipes\u002Fprediction-markets\u002Ftrack-positions):\n\n1. **Read wallet balances via Solana RPC** — `getParsedTokenAccountsByOwner(wallet, { programId: TOKEN_2022_PROGRAM_ID })`. Outcome tokens are Token-2022. (For stablecoin balances, also query the classic SPL token program.)\n2. **`POST \u002Fapi\u002Fv1\u002Ffilter_outcome_mints`** — send the wallet's mint list, get back just the PM outcome mints.\n3. **`POST \u002Fapi\u002Fv1\u002Fmarkets\u002Fbatch`** — fetch full market metadata for those outcome mints (title, status, closeTime, `yesBid` \u002F `yesAsk` \u002F `noBid` \u002F `noAsk`, `redemptionStatus`, `accounts.yesMint` \u002F `noMint`).\n4. **Join** — map each holding to its market; determine YES vs NO by matching the held mint against `accounts.yesMint` \u002F `accounts.noMint`.\n\nField-level detail (response envelopes, pagination) → docs MCP.\n\n## Views on top of the pipeline\n\n### Current positions\nOutput of the pipeline above. Optionally attach current mark price per position (`yesBid` for YES holdings, `noBid` for NO holdings — see mark-to-market below).\n\n### Unrealized mark-to-market\nValue each outcome holding at the **bid on its side** (what you could sell it for), not the ask:\n- Long YES → `uiAmount * parseFloat(yesBid)`\n- Long NO → `uiAmount * parseFloat(noBid)`\n\nSum across positions for a wallet-level unrealized value. Subtract cost basis (below) for unrealized P&L.\n\n### Realized activity and P&L\n`GET \u002Fapi\u002Fv1\u002Fonchain-trades?wallet=\u003Cpubkey>&sortBy=createdAt&sortOrder=desc&limit=N` — DFlow-indexed view of the wallet's onchain fills.\n\n- **Activity feed**: each row has `createdAt`, `marketTicker`, `side`, `inputAmount`, `outputAmount`, `transactionSignature`.\n- **Cost basis per market**: track net settlement-mint flow per outcome mint (settlement-in on buys minus settlement-out on sells).\n- **Fees**: sum `feeAmount` across fills in the settlement mint.\n\n### Redeemable sweep\nA holding is redeemable iff **all three**:\n- market `status` is `determined` or `finalized`,\n- market `redemptionStatus` is `\"open\"`,\n- the held outcome mint is the **winning** side (from market `result`).\n\nTo redeem, hand off to `dflow-kalshi-trading` (redemption is a sell of the winning side back to the settlement mint).\n\n### Pending order check\nIf the app submitted the order itself, persist the `orderAddress` returned at submission and poll `GET \u002Forder-status?orderAddress=\u003Caddr>` until terminal. There's no list-by-wallet endpoint. Most fills terminate well under the CLI's 120s poll budget, so this is rarely a user-facing concern — but outside the maintenance window, don't assume a specific fill time.\n\n## What to ASK the user (and what NOT to ask)\n\n**View shape — infer if unambiguous, confirm if not:**\n\n1. **Which view** — holdings \u002F mark-to-market \u002F realized P&L \u002F activity \u002F redeemable.\n2. **Wallet pubkey** — API only (CLI uses the active vault wallet).\n\n**Infra — always ask, never infer (HTTP\u002FRPC pipeline only; the `dflow positions` quick path needs neither):**\n\n3. **DFlow API key** (only when the script is hitting the Metadata API directly — `markets\u002Fbatch`, `onchain-trades`, etc.). The CLI quick path (`dflow positions`) doesn't need one — it uses the CLI's stored config. **For the HTTP pipeline, ask with a clean, neutral question: *\"Do you have a DFlow API key?\"*** Don't presuppose where the key lives — phrasings like *\"do you have it in env?\"* or *\"is `DFLOW_API_KEY` set?\"* nudge the user toward env-var defaults they didn't ask for. Surface the choice; don't silently fall back to env or to dev. It's **one DFlow key everywhere** — same `x-api-key` unlocks Metadata + Trade APIs. Yes → prod host `https:\u002F\u002Fprediction-markets-api.dflow.net` with `x-api-key`. No → dev host `https:\u002F\u002Fdev-prediction-markets-api.dflow.net`, rate-limited. Pointer: `https:\u002F\u002Fpond.dflow.net\u002Fbuild\u002Fapi-key`. **When you generate a script, log the resolved host + key-presence at startup.**\n4. **RPC URL** — **yes, ask here**, unlike spot\u002FPM trading or market-data. The HTTP pipeline reads token accounts directly via RPC; there's no wallet in the loop to do it for you. Recommend [Helius](https:\u002F\u002Fhelius.dev). CLI users on the `dflow positions` quick path don't need one — `dflow setup` already configured it.\n\n**Do NOT ask about:**\n- Settlement mint, slippage, fees, signing — read-only skill. If the user pivots to acting on a position, hand off to `dflow-kalshi-trading`.\n\n## Gotchas (the docs MCP won't volunteer these)\n\n- **No `\u002Fpositions` endpoint.** Portfolio = wallet balances + metadata joins. Don't hunt the API for a shortcut.\n- **Token-2022 program for outcome tokens.** `TOKEN_2022_PROGRAM_ID`, not the classic token program. Query the classic program separately for USDC\u002FSOL\u002FCASH.\n- **Mark-to-market = bid, not ask.** Long YES → `yesBid`. Long NO → `noBid`. Marking on the ask overstates the portfolio.\n- **Two POST endpoints.** `filter_outcome_mints` and `markets\u002Fbatch` both take a POST body with an address list. Easy to default to GET and fail.\n- **Stablecoins aren't outcome mints.** `filter_outcome_mints` strips them out (they're settlement, not positions). Track USDC \u002F CASH balances separately from the PM view.\n- **Redemption readiness is three ANDed conditions**, not just \"market closed.\" Surface a redeemable list only when status + `redemptionStatus` + winning side all line up.\n- **Balance lag after fill.** A fill that just landed onchain may not show up immediately on a non-indexed RPC — the token account update propagates after the transaction finalizes. Debounce rapid refreshes, and if the user expected a balance change and doesn't see it, retry before assuming failure.\n- **`dflow positions` is active-vault only.** No `--wallet` flag; switching wallets means `dflow setup` or the API pipeline.\n- **`dflow positions` returns balances, not mark prices.** You get `amount` \u002F `uiAmount` \u002F `decimals` plus `side` + `market.title` + `market.status` on outcome tokens. That already gets you close to dollar value for USDC and CASH (their `uiAmount` ≈ USD modulo depeg), but **outcome tokens** need `yesBid` \u002F `noBid` from `markets\u002Fbatch` to mark, and **other spot tokens** (SOL, etc.) need an outside spot price. No `redemptionStatus` and no cost basis in the output either — pair with `markets\u002Fbatch` for redemption eligibility, `\u002Fonchain-trades` for P&L.\n- **Closed outcome token accounts.** After a full sell or redeem, the token account may be closed (rent reclaimed) and will no longer show up on the wallet. That's expected — check onchain-trades history if you need the record.\n- **Same market, different rail = separate position.** Every Kalshi market on DFlow has a USDC rail and a CASH rail, each with its own `yesMint` \u002F `noMint`. A wallet can hold YES on both rails of the same market — those are two rows in the portfolio, two redemption flows, and their mark-to-market sums independently. Rare in practice (most users stick to one rail) but worth handling if it shows up.\n- **Two surfaces, two auth paths.** `dflow positions` shells out through the CLI and uses its stored config (key, wallet, RPC) — the script plumbs nothing for that call. The build-your-own HTTP pipeline (`markets\u002Fbatch`, `onchain-trades`, RPC `getParsedTokenAccountsByOwner`) is plain HTTP\u002FRPC and needs the DFlow API key + RPC URL plumbed in explicitly. They're independent: the CLI's stored key isn't reachable from a sibling HTTP client. Only ask about API key + RPC for the HTTP pipeline.\n\n## When something doesn't fit\n\nFor anything not covered above — full response envelopes for `filter_outcome_mints` \u002F `markets\u002Fbatch` \u002F `onchain-trades`, pagination params, Proof state in the picture, edge cases in `redemptionStatus` transitions, order-status terminal states — query the docs MCP (`search_d_flow`, `query_docs_filesystem_d_flow`). Don't guess.\n\nFor runnable reference code, point at [`\u002Fbuild\u002Frecipes\u002Fprediction-markets\u002Ftrack-positions`](https:\u002F\u002Fpond.dflow.net\u002Fbuild\u002Frecipes\u002Fprediction-markets\u002Ftrack-positions) (and its Cookbook Repo link).\n\n## Sibling skills\n\n- `dflow-kalshi-trading` — sell, redeem, or otherwise act on a position you see here.\n- `dflow-kalshi-market-data` — market-centric data (orderbook, trades, candles, in-game) for a position you're watching.\n- `dflow-kalshi-market-scanner` — find new markets to open positions in.\n- `dflow-proof-kyc` — verify a wallet before it can buy into new positions.\n",{"name":5,"description":7},"main","be3de0244dc1a57e323d8160787ebb40fb64930e","skills\u002Fdflow-kalshi-portfolio","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main","https:\u002F\u002Fskills.x402.wtf","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 23:20:13",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Solizardking\u002Fskillhub-main --skill dflow-kalshi-portfolio",{"tool":39,"command":40},"bunx","bunx skills add Solizardking\u002Fskillhub-main --skill dflow-kalshi-portfolio",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Solizardking\u002Fskillhub-main --skill dflow-kalshi-portfolio","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fdflow-kalshi-portfolio\u002FSKILL.md",true,[],[48,55,62,69,76,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M78E0TGCAMNPS207BA3G07S7","zkrouter","Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzkrouter\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M78E0R1Z8BDT6EDTHY17MTNB","zk","For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M78E0P3ZTZ1YWF8MD5MM23QE","zk-omni-messaging","Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk-omni-messaging\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M78E0JXZ2PNB1896VXAGDBWD","zerion-wallet-data","Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzerion-wallet-data\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M78E0G14FH9GRRTQYMKD5E59","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M78E0C2ZYA99CFFDNB7ZMK5S","yield-optimization","Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit\u002Fwithdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter\u002Fexit a position, or check portfolio balances.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyield-optimization\u002FSKILL.md",[],[]]