article-drafts

批量提交或获取 mixdao 文章初稿(文件路径入参、列表)。需 MIXDAO_API_KEY。触发:更新初稿、获取初稿列表、article-drafts。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "article-drafts" with this command: npx skills add shadowcz007/skills/shadowcz007-skills-article-drafts

Article Drafts(文章初稿)

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

脚本

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

环境变量

变量说明
MIXDAO_API_KEY必填。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,便于后续处理。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

qq-email

No summary provided by upstream source.

Repository SourceNeeds Review
General

solo-scope

No summary provided by upstream source.

Repository SourceNeeds Review
General

daily-briefing

No summary provided by upstream source.

Repository SourceNeeds Review
General

todo-list

No summary provided by upstream source.

Repository SourceNeeds Review