Blog Publish 标志

Blog Publish

社区热门
huytieu
blog-publish

Write and publish a post to your own static blog end to end: content checklist (embedded links, optional TL;DR), per-post ASCII art, an agent-readable markdown twin, deploy, and social distribution. Use when you say "write a blog post", "publish this to my blog", or "push this post to socials".

Add to TypingMind

概览

发布者huytieu
代码仓库COG-second-brain
技能名称blog-publish
星标数
1.3K
复刻数
162
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 huytieu 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Blog Publish AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/huytieu/COG-second-brain/tree/main/.claude/skills/blog-publish
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huytieu/COG-second-brain.git /tmp/COG-second-brain
mkdir -p .claude/skills
cp -r /tmp/COG-second-brain/.claude/skills/blog-publish .claude/skills/blog-publish
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Blog Publish,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Blog Publish。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Blog Publish 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

blog-publish: static blog post pipeline

Configuration

Set these once (kit.toml, .env or arguments).

SettingMeaningExample
BLOG_DIRRepo folder of your static blog./my-blog/
POSTS_DIRMarkdown posts, relative to BLOG_DIRcontent/posts/
BUILD_CMDCommand that builds the sitepython3 build.py
SITE_DIRBuild output foldersite/
BLOG_URLPublic base URLhttps://blog.example.com
POST_PATHURL pattern for a post/blog/<slug>/
DEPLOY_CMDYour deploy commandsee Deploy
SOCIAL_HANDLESAccounts used for distributionper platform

The steps below assume a build script that renders POSTS_DIR/<slug>.md into SITE_DIR. Adjust names to your generator (Hugo, Eleventy, Astro, a custom script).

Content checklist (every post)

  1. Front matter with title, subtitle, slug, date, description, tags, author, published. Match existing posts. If the subtitle renders under the H1, keep it to one sentence stating what the post is about.
  2. TL;DR is optional. Narrative, build and essay posts open problem-first with no summary box (see Narrative arc). Reserve a TL;DR for reference-style or scannable how-to posts, and then use a one or two sentence hook plus bullets, never one long paragraph.
  3. Embedded links for every reference. Each tool, repo, prior post or source gets an inline link on first mention. Link your own posts with root-relative paths (/blog/<slug>/).
  4. Figures in most major sections. Use diagrams, charts and product screenshots where they carry evidence. The editorial-illustrations skill generates meaning-carrying figures. Keep ASCII for header art (see below).
  5. No em dashes. Use colons, commas or parentheses.
  6. Voice. First person, concrete numbers and stories, no AI-slop vocabulary.
  7. Literal example prompts. When a post walks through an AI tool, quote the actual prompt in a blockquote or fenced block instead of paraphrasing it.
  8. Final anti-slop pass (required). Before deploy, run the draft through the no-ai-slop skill and self-check against its eval. Keep a contrast or colon setup only when it is a real reframe. Preserve your voice and make the smallest effective edit.

Narrative arc (default for substantial posts)

Document what happened instead of writing a prescriptive summary:

  1. Open on the problem. A confession, a bug, a bold claim or an observed pattern. Make the reader feel why the status quo breaks before any solution appears. A single diagram as an early anchor is fine.
  2. Narrate the process, including dead ends. Show the first version, what broke, what you learned and what you changed. Bugs become features. Admit scope creep and reversed decisions.
  3. Cite prior art warmly and inline. Link by author and work at the natural reading point. Treat references as conceptual anchors, not footnotes.
  4. Prove it with evidence. Counts, costs, before/after deltas, traces, real artifacts, screenshots, all from the actual run. If the argument is theoretical, say so.
  5. Close reflectively. End with a quiet claim, an open question or a few diagnostic questions the reader can apply. No call to action, no summary box.

Voice: first person, conversational but technically dense, understated. Short declaratives mixed with longer explanations. Headings are short and descriptive. Length follows the material.

Per-post ASCII art

Each post gets an entry in an ASCII-frames table in your build script, keyed by slug: a list of 2 to 5 frames that loop (a cursor typing, a rocket lifting, a gear turning). Pad frames to a common size automatically so they need no hand alignment. Use pure ASCII, no Unicode box drawing.

Render it two ways from the one source:

  • On the page, a <pre class="post-ascii" data-frames="..."> element cycles frames with a small inline script (about 420 ms per frame) and shows a static first frame under prefers-reduced-motion.
  • In the social card, an animated GIF (1200x630) where only the ASCII region changes per frame. Some chat apps animate it, others show the first frame. Set og:image:type to image/gif.

A playful frame set beats a corporate one. Never ship the generic fallback; add bespoke frames.

Agent-readable output (automatic, but verify)

Have the build generate a clean markdown twin at /blog/<slug>/index.md and list every post in /llms.txt. After building, confirm both include the new post:

bash
grep -i "<title fragment>" $SITE_DIR/llms.txt && head -5 "$SITE_DIR/blog/<slug>/index.md"

Build and deploy

bash
cd $BLOG_DIR && $BUILD_CMD

Deploy with your own command (DEPLOY_CMD). Examples, pick the one that matches your host:

  • Railway: railway up --detach
  • Netlify: netlify deploy --prod --dir=$SITE_DIR
  • Vercel: vercel deploy --prod
  • Cloudflare Pages: wrangler pages deploy $SITE_DIR
  • GitHub Pages or any git-push host: commit SITE_DIR or push the source and let CI build.

Post-condition: fetch the live page and confirm the new post is there before reporting success: curl -s $BLOG_URL/blog/<slug>/ | grep '<title>'. Builds can take a few minutes.

Social distribution (after the post is live)

Voice follows your publish-social command if you have one. The social-media-kit skill covers asset recipes and upload mechanics, and youtube-video-kit covers video.

Media is mandatory on every platform post. Build the asset kit (teaser video cut, padded-card hero image, terminal GIF) and attach per platform before posting. On X, the thread root gets the strongest asset, and the canonical URL moves to the final reply so the link card still renders.

Durable articles beat feed posts. For substantive posts, publish an article on the platform (X Articles, LinkedIn "Write article") with the full body and the canonical blog link as the source. A short thread or feed post is fine as a pointer to it.

  • X: prefer the Articles composer. For a thread, post tweet 1 and build the rest as self-replies (open each new tweet's detail page, use the reply box). The composer's multi-tweet flow can silently lose drafts. Two traps: typing an @mention opens an autocomplete that can swallow the submit click (press Escape first), and a link preview card can push the Reply button below the fold (scroll it into view before clicking). Screenshot every step and re-check the profile to confirm the final tweet posted.
  • LinkedIn: prefer "Write article". For a feed post, type the full content with real paragraph breaks, wait for the link preview, then post, and confirm the success toast. Mentions only become links when picked from the autocomplete dropdown.
  • Reddit: one genuine post in a relevant subreddit, not a mass crosspost. Check whether the subreddit requires flair before submitting.
  • Hacker News and IndieHackers: if there is no logged-in session, stop at the auth wall, never type credentials, and hand the prepared title and URL to the user to submit.

Include the canonical URL in every platform's content and screenshot each post after submitting to verify it.

X field notes

  • Use a browser tool that can attach files to X's file input. Some embedded browser panes cannot, because the platform blocks fetching local images and clipboard paste does nothing.
  • The compose route opens a modal over the home feed and a file-input lookup may return the inline composer's input. Close the empty modal and use the inline composer.
  • Type the whole post in one call. Pressing Escape to close the mention menu can move the cursor and scramble the text.
  • A banner can appear after typing and push the Post button down. Re-screenshot before clicking Post, and confirm the "Your post was sent" toast.
  • Count length with URLs as 23 characters and stay at or under 280.

常见问题

Blog Publish AI 技能有什么作用?

Write and publish a post to your own static blog end to end: content checklist (embedded links, optional TL;DR), per-post ASCII art, an agent-readable markdown twin, deploy, and social distribution. Use when you say "write a blog post", "publish this to my blog", or "push this post to socials".

为什么在 TypingMind 中使用 Blog Publish?

因为您只需安装一次,就能搭配任何模型使用。Blog Publish 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Blog Publish?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/huytieu/COG-second-brain/tree/main/.claude/skills/blog-publish。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Blog Publish?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Blog Publish 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Blog Publish 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Blog Publish AI 技能免费吗?

是的。huytieu 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇