Sweety Post To Juejin logo

Sweety Post To Juejin

Community
threerocks
sweety-post-to-juejin

Use when the user asks to publish, draft, or prepare a Markdown article for Juejin/掘金. Creates a safe browser-based Juejin draft from the original Markdown, supports cover image, category, tags, and brief, and defaults to stopping before final publish unless explicitly requested.

Overview

Publisherthreerocks
Repositorysweety-skills
Skill namesweety-post-to-juejin
Stars
42
Forks
5
Bundled files
11
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by threerocks on GitHub. Read the source before you install it.

Installation

Install the Sweety Post To Juejin AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/threerocks/sweety-skills/tree/main/skills/sweety-post-to-juejin
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/threerocks/sweety-skills.git /tmp/sweety-skills
mkdir -p .claude/skills
cp -r /tmp/sweety-skills/skills/sweety-post-to-juejin .claude/skills/sweety-post-to-juejin
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sweety Post To Juejin in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sweety Post To Juejin on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sweety Post To Juejin is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

发布到掘金

这个 skill 把本地 Markdown 或 X/纯文本长文准备成掘金草稿,并补齐标题、简介、分类、标签和封面。默认只准备草稿和发布设置,不点击最终发布。

安全边界

  • 默认使用真实 Chrome 浏览器和用户登录态,不保存 Cookie。
  • 默认不调用掘金私有发布 API。
  • 默认不发布,只停在可人工审核的发布设置状态。
  • 只有用户明确要求发布,或 CLI 显式传 --publish,才点击最终发布控件。
  • 已有 Markdown 结构时保留原文;纯文本/X 长文只增加 Markdown 排版结构,不改可见正文文字。
  • 不自动优化标题、简介、分类或标签。
  • 如果提供了封面但无法确认上传成功,必须停止并报错,不能把半成品当成可发布草稿。

脚本目录

以本 SKILL.md 所在目录为 {baseDir}。运行时解析 ${BUN_X}:若已安装 bun,使用 bun;否则若有 npx,使用 npx -y bun。

脚本用途
scripts/juejin-browser.ts打开掘金编辑器并填入 Markdown、封面、分类、标签、简介
scripts/check-permissions.ts检查 Chrome 和默认 profile 位置
scripts/juejin-draft.ts解析 Markdown frontmatter、校验字段、为纯文本增加掘金 Markdown 排版

输入字段

推荐在 Markdown frontmatter 中写:

yaml
---
title: 文章标题
brief: 100 字以内简介
category: 开发工具
tags: AI编程, OpenAI, AIGC
cover: ./cover.jpg
---

CLI 参数会覆盖 frontmatter:

bash
${BUN_X} {baseDir}/scripts/juejin-browser.ts article.md \
  --title "文章标题" \
  --brief "100 字以内简介" \
  --category "开发工具" \
  --tag "AI编程" \
  --tag "OpenAI" \
  --cover ./cover.jpg

字段规则:

  • title 必填,最长 80 字。
  • brief 必填,最长 100 字。
  • category 必填。
  • tags 必填,1 到 5 个。
  • cover 可选,支持相对 Markdown 文件目录的路径。

正文排版

  • 如果正文已经包含标题、引用、代码块、列表或表格等 Markdown 结构,保持原样。
  • 如果正文是 X 长文/纯文本段落,自动做保守排版:
    • 独立公式或成本计算行转为 text 代码块。
    • 问句或明显分节句转为二级标题。
    • 普通短句不强行转标题。
  • 排版只添加 Markdown 标记,不改正文可见文字。

Chrome 登录态

发布模式

默认草稿/人工审核:

bash
${BUN_X} {baseDir}/scripts/juejin-browser.ts article.md

显式最终发布:

bash
${BUN_X} {baseDir}/scripts/juejin-browser.ts article.md --publish

除非用户明确要求 --publish,不要代替用户点击最终发布。

首次使用

bash
${BUN_X} {baseDir}/scripts/check-permissions.ts

如果脚本打开后无法进入编辑器,说明脚本使用的 Chrome profile 未登录掘金。让用户在打开的浏览器里登录 https://juejin.cn,然后重试。

如果用户明确说“普通 Chrome 已登录掘金”,优先使用 Codex Chrome 插件控制现有 Chrome 标签页;不要改用默认隔离 profile。若必须使用脚本,传 --profile 指向已登录且可被 CDP 启动的 profile。

使用普通 Chrome 登录态时,如果 Codex Chrome Extension 通信失败或连续超时,必须停止并要求恢复扩展连接;不要切回默认隔离 profile 假装继续完成,因为隔离 profile 通常没有用户的掘金登录态。

封面上传有两条路径:

  • juejin-browser.ts 的 CDP 路径使用 DOM.setFileInputFiles,给了 cover 就必须验证上传成功。
  • Codex Chrome 插件路径如果上传本地文件失败,提示用户在 chrome://extensions 为 Codex extension 打开 Allow access to file URLs,然后重试;不要继续报告“完整可发布”。

参考资料

  • 字段和限制:见 references/fields.md
  • 编辑器行为:见 references/editor-behavior.md
  • 停止条件:见 references/stop-conditions.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Sweety Post To Juejin AI skill do?

Use when the user asks to publish, draft, or prepare a Markdown article for Juejin/掘金. Creates a safe browser-based Juejin draft from the original Markdown, supports cover image, category, tags, and brief, and defaults to stopping before final publish unless explicitly requested.

Why use Sweety Post To Juejin on TypingMind?

Because you install it once and use it with any model. Sweety Post To Juejin is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sweety Post To Juejin in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/threerocks/sweety-skills/tree/main/skills/sweety-post-to-juejin. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Sweety Post To Juejin?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sweety Post To Juejin?

As many as you like. As long as a model supports skills, you can use Sweety Post To Juejin with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sweety Post To Juejin AI skill free?

It is published on GitHub by threerocks. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇