[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M748YR3JQST2NK8THBEN2C7N":3,"skill-same:01M748YR3JQST2NK8THBEN2C7N":52},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M748YR3JQST2NK8THBEN2C7N","substack-draft-status",null,"Show pending Substack drafts and reconcile them against local ~\u002F.mph-substack-cache workspaces. Flags local-only drafts older than 3 days as stale (the \"wait did I actually save this on substack\" problem). Read-only — never publishes. Triggers on \"did I save that draft\", \"is that saved on substack\", \"what drafts do I have\", \"show my substack drafts\", \"are my drafts pushed\", \"\u002Fsubstack-status\", \"\u002Fdraft-status\".","mphinance\u002Falpha-skills","mphinance","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F217996678?v=4","01M71VQC89A6CMFACD2J1CJW6E","Michael H","01M71VQC9B4C0BJ7XXKT8RWRV9",32,"MIT","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsubstack-draft-status\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: substack-draft-status\ndescription: Show pending Substack drafts and reconcile them against local ~\u002F.mph-substack-cache workspaces. Flags local-only drafts older than 3 days as stale (the \"wait did I actually save this on substack\" problem). Read-only — never publishes. Triggers on \"did I save that draft\", \"is that saved on substack\", \"what drafts do I have\", \"show my substack drafts\", \"are my drafts pushed\", \"\u002Fsubstack-status\", \"\u002Fdraft-status\".\n---\n\n# Substack Draft Status\n\nReconciles two sources of \"what drafts do I have\":\n- Local workspaces under `~\u002F.mph-substack-cache\u002F\u003Cslug>\u002F` (rendered images + post.md)\n- Server drafts at `https:\u002F\u002Fmphinance.substack.com\u002Fapi\u002Fv1\u002Fdrafts`\n\nThe \"did I save that yesterday\" anxiety usually means: a local workspace exists but it never got pushed. This skill makes that visible in 5 seconds.\n\n## When to invoke\n\n- User asks \"did I save that draft\" \u002F \"is that on substack\" \u002F \"what drafts do I have\"\n- User mentions a recent post by date or topic and wants to confirm its state\n- Before forging a new substack post, sanity-check that an older one isn't sitting half-pushed\n\n## Flow\n\n1. Run the worker:\n   ```\n   python ~\u002F.claude\u002Fskills\u002Fsubstack-draft-status\u002Fscripts\u002Fstatus.py\n   ```\n2. The script reads `SUBSTACK_SID` from `C:\\Users\\mphan\\OneDrive\\Documents\\GitHub\\mphinance\\secrets.env` (or the `SUBSTACK_SID` env var) and hits `GET \u002Fapi\u002Fv1\u002Fdrafts?limit=20`.\n3. It walks `~\u002F.mph-substack-cache\u002F` and matches each workspace against server drafts by date-prefix and title.\n4. Output is grouped:\n   - **Pushed** — local workspace AND matching server draft (shows edit URL)\n   - **Server-only** — draft on substack with no local workspace (created via web)\n   - **Local-only fresh** — workspace exists, no server match, post.md mtime within 3 days\n   - **Local-only STALE** — workspace exists, no server match, post.md mtime older than 3 days. These are the \"forgotten\" drafts.\n5. Surface the table verbatim to the user. If any STALE entries exist, offer to push them via `mph-substack-publish` (do not push automatically).\n\n## Hard rules\n\n- **Read-only.** Never call `POST \u002Fapi\u002Fv1\u002Fdrafts\u002F...\u002Fpublish`. Never modify local workspaces. Publishing is mph-substack-publish's job and requires explicit confirmation there.\n- Reuse the existing `secrets.env` auth pattern from `create_draft_from_md.py`. Do not invent a new auth flow.\n- Do not commit `~\u002F.mph-substack-cache\u002F` contents to git. Those workspaces are local-only by user policy.\n- If `SUBSTACK_SID` is missing, print a clear error pointing at `secrets.env` and exit 2. Do not try to interactively prompt for credentials.\n- Stale threshold = 3 days. If user wants a different threshold, pass `--stale-days N`.\n\n## Out of scope\n\n- Pushing, publishing, or editing drafts (use mph-substack-publish for the push)\n- Listing published posts (the API endpoint is different and not interesting for the \"did I save it\" problem)\n- Multi-publication support (only mphinance.substack.com)\n- Anything that requires network calls beyond the single GET to \u002Fapi\u002Fv1\u002Fdrafts\n","# Substack Draft Status\n\nReconciles two sources of \"what drafts do I have\":\n- Local workspaces under `~\u002F.mph-substack-cache\u002F\u003Cslug>\u002F` (rendered images + post.md)\n- Server drafts at `https:\u002F\u002Fmphinance.substack.com\u002Fapi\u002Fv1\u002Fdrafts`\n\nThe \"did I save that yesterday\" anxiety usually means: a local workspace exists but it never got pushed. This skill makes that visible in 5 seconds.\n\n## When to invoke\n\n- User asks \"did I save that draft\" \u002F \"is that on substack\" \u002F \"what drafts do I have\"\n- User mentions a recent post by date or topic and wants to confirm its state\n- Before forging a new substack post, sanity-check that an older one isn't sitting half-pushed\n\n## Flow\n\n1. Run the worker:\n   ```\n   python ~\u002F.claude\u002Fskills\u002Fsubstack-draft-status\u002Fscripts\u002Fstatus.py\n   ```\n2. The script reads `SUBSTACK_SID` from `C:\\Users\\mphan\\OneDrive\\Documents\\GitHub\\mphinance\\secrets.env` (or the `SUBSTACK_SID` env var) and hits `GET \u002Fapi\u002Fv1\u002Fdrafts?limit=20`.\n3. It walks `~\u002F.mph-substack-cache\u002F` and matches each workspace against server drafts by date-prefix and title.\n4. Output is grouped:\n   - **Pushed** — local workspace AND matching server draft (shows edit URL)\n   - **Server-only** — draft on substack with no local workspace (created via web)\n   - **Local-only fresh** — workspace exists, no server match, post.md mtime within 3 days\n   - **Local-only STALE** — workspace exists, no server match, post.md mtime older than 3 days. These are the \"forgotten\" drafts.\n5. Surface the table verbatim to the user. If any STALE entries exist, offer to push them via `mph-substack-publish` (do not push automatically).\n\n## Hard rules\n\n- **Read-only.** Never call `POST \u002Fapi\u002Fv1\u002Fdrafts\u002F...\u002Fpublish`. Never modify local workspaces. Publishing is mph-substack-publish's job and requires explicit confirmation there.\n- Reuse the existing `secrets.env` auth pattern from `create_draft_from_md.py`. Do not invent a new auth flow.\n- Do not commit `~\u002F.mph-substack-cache\u002F` contents to git. Those workspaces are local-only by user policy.\n- If `SUBSTACK_SID` is missing, print a clear error pointing at `secrets.env` and exit 2. Do not try to interactively prompt for credentials.\n- Stale threshold = 3 days. If user wants a different threshold, pass `--stale-days N`.\n\n## Out of scope\n\n- Pushing, publishing, or editing drafts (use mph-substack-publish for the push)\n- Listing published posts (the API endpoint is different and not interesting for the \"did I save it\" problem)\n- Multi-publication support (only mphinance.substack.com)\n- Anything that requires network calls beyond the single GET to \u002Fapi\u002Fv1\u002Fdrafts\n",{"name":5,"description":7},"main","78b6ee6816aca6e5660cc7f0382650e9e7687086","skills\u002Fsubstack-draft-status",6,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills","https:\u002F\u002Fgithub.com\u002Fmphinance","https:\u002F\u002Fmphinance.com","2026-11-13 05:04:11",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add mphinance\u002Falpha-skills --skill substack-draft-status",{"tool":38,"command":39},"bunx","bunx skills add mphinance\u002Falpha-skills --skill substack-draft-status",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mphinance\u002Falpha-skills --skill substack-draft-status","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsubstack-draft-status\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"scripts\u002Fstatus.py","SCRIPT","脚本",10606,"https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsubstack-draft-status\u002Fscripts\u002Fstatus.py",[53,61,66,73,80,87],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":60},"01M7BANC8ZXMVWWHSY3E31AAC3","order-lifecycle-safety","Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Forder-lifecycle-safety\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":62,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":60},"01M7BAMZ37XP7XM8YDXWWSX0T9","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fquant-skills\u002Fskills\u002Forder-lifecycle-safety\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M74928K9ZC74YQ1GMYB4N2Q0","write-a-skill","Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M749259PAEA22A891D0EJTKK","wireframe-sketch","A hand-drawn wireframe exploration — graph-paper background, marker \u002F\npencil tone, multiple tab labels for variants, sticky-note annotations,\nscribbled chart placeholders, hatched fills. Reads like a designer's\nwhiteboard before any pixels are committed. Use when the brief asks for\n\"wireframe\", \"sketch wireframe\", \"hand-drawn\", \"lo-fi\", \"whiteboard\",\n\"草稿\", or \"手绘原型\".","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwireframe-sketch\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M74920ZWJS5Q1JRVJ8TSTQ5A","weekly-update","Single-file horizontal-swipe slide deck for a weekly team update —\nshipped, in flight, blocked, metrics, asks. 6–8 slides. Use when the\nbrief mentions \"weekly update\", \"team update slides\", \"weekly status\",\n\"周报演示\".","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweekly-update\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7491YFRHYFV5QPS0MJ3DSNP","webull-openapi","Trade stocks, options, futures, crypto, and event contracts on Webull. Query real-time and historical market data. Manage accounts and positions. Supports US, HK, JP, SG, TH, MY, UK, MX, BR, EU, ZA, and AU regions with configurable risk controls.","https:\u002F\u002Fgithub.com\u002Fmphinance\u002Falpha-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebull-openapi\u002FSKILL.md",[],[]]