shadowcz007/skills

article-drafts

批量提交或获取 mixdao 文章初稿(文件路径?

First seen Feb 28, 2026

Installation

$ npx skills add shadowcz007/skills --skill article-drafts

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from shadowcz007/skills · top by installs.

npx skills add shadowcz007/skills

Browse all from shadowcz007/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,428 B
  • docs SUMMARY.md 182 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 7 installs

SKILL.md

Article Drafts(文章初稿)

通过 mixdao API 获取或更新文章初稿。仅支持批量提交,以「文件路径」为入参:每条从路径读文件,文件名(不含扩展名) 作为标题,正文为文件内容,slug 由 title+content 自动计算。

脚本

脚本 作用
scripts/patch-draft.js 批量创建/更新初稿:入参为多个文件路径,从路径读正文、用文件名作 title 并提交。
scripts/list-drafts.js 获取初稿列表:GET /api/article-drafts(无参数为最新日期);可传日期参数获取指定日期列表。

环境变量

变量 说明
MIXDAOAPIKEY 必填。mixdao API 的 Bearer token。

批量创建/更新初稿

node scripts/patch-draft.js [--date 2026-02-15] path/to/article1.md path/to/article2.md
  • --date:可选,格式 YYYY-MM-DD;不传则当天(Asia/Shanghai)。
  • 其余参数为文件路径。

获取初稿列表

最新日期的初稿列表:

node scripts/list-drafts.js

指定日期的初稿列表:

node scripts/list-drafts.js 2026-02-15

输出为 JSON,便于后续处理。