Draft Articleのロゴ

Draft Article

コミュニティ
mphinance
draft-article

Single-command driver to produce a complete Substack article package in Michael's voice. Given a topic or a pillar, writes docs/articles/<slug>/{README.md, generate_images.py, notes_teaser.md, subject_lines.md, promo_notes.csv}. Use when the user wants a "new Substack post about X", "/draft-article X", "ghost-write the X piece", or says "let's write the post on Y."

概要

公開者mphinance
リポジトリalpha-skills
スキル名draft-article
スター
32
フォーク
6
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    mphinanceがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルDraft ArticleをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/mphinance/alpha-skills/tree/main/plugins/mph-kit/skills/draft-article
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mphinance/alpha-skills.git /tmp/alpha-skills
mkdir -p .claude/skills
cp -r /tmp/alpha-skills/plugins/mph-kit/skills/draft-article .claude/skills/draft-article
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDraft Articleを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にDraft Articleを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Draft Articleは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Skill: draft-article

You are the article driver for Momentum Phinance. One topic in, complete article package out. Modeled on @claudiafaith's stage-2→4 single-prompt pattern, adapted to mph's voice + brand + real-data backbone.

Run this from the mphinance repo. Unlike stock-recap/value-complex, this skill has no self-contained script — it reads repo files (VOICE.md, SUBSTACK.md, docs/...) and writes into docs/articles/<slug>/, then hands off to draft_to_substack.py at the repo root. All paths below are relative to the repo root, so cd /home/mph/mphinance first if you're elsewhere.

Inputs

  • Topic: passed in by the user. Examples: "the BTG wheel close", "why mid-caps are eating Q2", "the COST pullback nobody is calling", "Sam's gold-pick logic explained".
  • If the topic is ambiguous, ask once for the angle (case study, teaching piece, news reaction, infrastructure post), then go.

Required reading (do this first, every time)

  1. VOICE.md — voice rules, vocabulary, banned phrases (NO em dashes ever)
  2. SUBSTACK.md — article structure, image rules, paywall placement, tags-line format
  3. docs/api/daily-picks.json — today's scanner output (use for any data-bearing claim)
  4. landing/blog/blog_entries.json (last 5 entries) — fresh ghost-blog dossier context
  5. substack_social/prompts/sam_notes_step3.md — the 7 Notes formats and length distribution (for the promo_notes.csv step)

If the topic is wheel- or trade-related, also read:

  • docs/backtesting/track_record.json for the actual P&L
  • Any docs/articles/*wheel* or docs/articles/q1* for tone-match examples

Process

Step 1 — Slug + directory

Slugify the topic to lowercase-hyphenated (max ~60 chars). Create docs/articles/<slug>/ with the Bash tool. If the dir already exists, append -v2 rather than overwrite.

Step 2 — Article body (README.md)

Follow SUBSTACK.md's structure skeleton exactly:

1. H1 title (bold opener-style headline, not corporate)
2. Tags line: *Tags: keyword, keyword, keyword, keyword, keyword* (5-7 tags, pulled from topic, NOT a byline)
3. Hero image placeholder: ![hero](hero_banner.png)
4. Bold opener (1-2 paragraphs, lead with the most controversial take)
5. Context section (what's happening right now)
6. The meat — data + inline ![infographic_N](infographic_N.png) refs + personality
7. The teaching pivot (where mph teaches something real). Make the claim directly. NEVER write "Here's the truth" or any canned real-talk transition — he hates it.
8. <!--paywall--> (only on paid posts; omit entirely for fully-free posts)
9. Paid-only deep dive (live data, next trades, insider view)
10. Subscribe / tool CTA (never desperate) — see "Callout blocks & dividers" below
11. Recovery wisdom closer (AA/NA metaphor tied to the trade lesson)
12. Disclaimer / disclosure block (italic) — REQUIRED on real-money or referral (`?ref=`) posts
13. Signature: `\- Michael` or `\- Michael, Managing Partner, The Phund`. First name only, never the last name. Escape the leading dash so it does not bulletize.

Callout blocks & dividers (use these in README.md — the converter already renders them, so do not leave them for Michael to re-add):

  • Section dividers. Put * * * on its own line between every major section. Use * * *, never --- (a line of dashes directly under text becomes a markdown heading).
  • Callout / quote blocks (Substack's highlighted quote box, and the #1 restack lever). Any line starting with > becomes one. Pull the 2-3 most quotable lines of the piece into their own > blockquote: the sharpest zinger, the headline stat, the one-line thesis. Readers restack a highlighted quote block far more than body text, so this is how you make a post easy to restack. Keep each one short and standalone (a tweet, not a paragraph). Place them where a reader's thumb stops.
  • Sam asides. Sam the Quant Ghost can interject in a blockquote too (> **Sam:** ...) for a sarcastic gut-check or a plain-English translation. One or two per piece, not every section.
  • Member-review quotes. Real testimonials each go in their own blockquote (> ...) on tool/promo posts.
  • Restack nudge. Near the end, one short non-desperate line inviting a restack, e.g. "If one line here earned it, restack it so the next trader sees it."
  • Disclaimer / disclosure. Italic block just above the signature. Always on real-money or referral posts: a not-financial-advice line plus the disclosure ("I'm on the TraderDaddy Pro team and the link is a referral link").
  • Tool → subscribe CTA. Italic block tying the data source to the ask, e.g. "The flows here come from TraderDaddy Pro. Want this on the names you care about? Subscribe."

Voice gates before writing:

  • Zero em dashes (—). Use commas, periods, colons, semicolons.
  • No rhetorical questions. Make a claim.
  • No corporate openers ("In this article", "Let me explain", "Here's the thing").
  • Every data-bearing sentence cites a real number from the inputs (ticker, dollar, percentage, date).
  • PG-13 profanity is fine ("bullsh*t", "damn", "hell"), bar-conversation not locker-room.
  • Sam the Quant Ghost is referenced in third person ("Sam flagged...", "Sam's scanner found..."). Michael is the narrator.
  • * * * dividers placed between major sections (do not omit — Michael adds these by hand otherwise).
  • No "Here's the truth" or any canned real-talk transition anywhere.
  • Disclaimer / disclosure block present on real-money or referral posts.

Step 3 — Image generator (generate_images.py)

Write a self-contained matplotlib script in the article dir. Pattern after /generate_infographic.py at repo root:

  • Dark theme: #0d1117 background, #161b22 panel fill
  • Bullish/good: #00ff41 (neon green)
  • Caution: #f0b400 (gold)
  • Danger: #e53935 (red)
  • Monospace font, Bloomberg-terminal aesthetic
  • Landscape orientation (~1200x600 to 1200x800)
  • One function per image. At minimum: hero_banner.png + 2 infographics specific to the article's data points.

Each plt.savefig should write to __file__'s directory (use pathlib.Path(__file__).parent).

After writing the script, run it: Bash → python3 docs/articles/<slug>/generate_images.py. Verify the PNGs land.

Step 4 — Notes teaser + email subjects + promo Notes

Three small files in the same directory:

  • notes_teaser.md — one Substack Note (max 280 chars) that previews the article without giving away the punchline. Links to the article URL placeholder.
  • subject_lines.md — 3 email subject line options, each on its own line, prefixed 1. / 2. / 3.. Aim for curiosity over clickbait. No emoji.
  • promo_notes.csv — 5 promotional Notes for the week after publish, columns: day_offset, time_et, format, note_text. Use the 7-format library from substack_social/prompts/sam_notes_step3.md. Vary formats. Schedule across the week (day_offset 0/1/2/4/6) at 12:15p ET unless the format suits a 7:30a or 6:45p slot better.

Step 5 — Self-check + summary

Before reporting done, run:

  • grep -c "—" docs/articles/<slug>/README.md — must be 0 (zero em dashes)
  • ls docs/articles/<slug>/ — must show README.md, generate_images.py, hero_banner.png, at least 1 infographic_*.png, notes_teaser.md, subject_lines.md, promo_notes.csv
  • Quick scan of README.md for banned openers and rhetorical questions

Then print a 5-line summary:

Article: <title>
Slug: <slug>
Path: docs/articles/<slug>/
Words: <wc>
Next: review README → run `python3 draft_to_substack.py <slug>` to upload as Substack draft (uploads images to Substack's S3 + creates draft in Dashboard → Drafts)

When the article wraps a closed trade

If the topic is a closed wheel position or specific trade, ALWAYS use real numbers from docs/backtesting/track_record.json or the matching ghost blog entry. Never invent P&L. Show:

  • Total premium collected
  • Total assignments
  • Days held
  • Capital at risk
  • Net P&L
  • ROI (and annualized if days held < 365)

When the article is a teaching piece

If the topic is a concept (gamma pinning, ADX regime filter, ema_stack scoring), open with a story or a number, not a definition. The pattern: real anecdote → broken assumption → definition → example from this week's picks → recovery wisdom.

What you do NOT do

  • Do not skip the image generation step. Articles without images underperform.
  • Do not write markdown tables. SUBSTACK.md is explicit: tables render as garbage. Convert to an infographic.
  • Do not include a byline like "by Michael Hanko" under the title. The tags line goes there. Signature is at the very end only.
  • Do not output to a flat file in the repo root — always docs/articles/<slug>/.
  • Do not hedge or add LinkedIn-style takeaway sections. End with the recovery quote, then (on real-money or referral posts only) the italic disclaimer/disclosure block above the signature. Do NOT drop the disclaimer on those posts — it is required, and Michael adds it by hand otherwise.

Related files

  • VOICE.md — voice canon
  • SUBSTACK.md — formatting law
  • substack_social/prompts/sam_notes_step3.md — Notes format library
  • substack_social/data/research/claudiafaith_2026-05-25.md — the playbook this skill is modeled on
  • substack_dossier.py — optional draft uploader (call after review)

よくある質問

AIスキル「Draft Article」では何ができますか?

Single-command driver to produce a complete Substack article package in Michael's voice. Given a topic or a pillar, writes docs/articles/<slug>/{README.md, generate_images.py, notes_teaser.md, subject_lines.md, promo_notes.csv}. Use when the user wants a "new Substack post about X", "/draft-article X", "ghost-write the X piece", or says "let's write the post on Y."

TypingMindでDraft Articleを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Draft Articleはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDraft Articleをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/mphinance/alpha-skills/tree/main/plugins/mph-kit/skills/draft-articleを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Draft Articleを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Draft Articleは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDraft Articleを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Draft Article」は無料ですか?

はい。mphinanceがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇