Agent skill

Publish Weekly

by miantiao-me in miantiao-me/aigc-weekly

使用 Payload REST API 将周刊写入 CMS(发布为草稿),通过 users API Key 认证. An agent skill from miantiao-me/aigc-weekly.

AGPL-3.0Auto-check passedBackend & APIs

Install Publish Weekly

skills CLI
$ npx skills add miantiao-me/aigc-weekly --skill publish-weekly -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install miantiao-me/aigc-weekly publish-weekly --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/miantiao-me/aigc-weekly.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agent/.opencode/skills/publish-weekly .claude/skills/publish-weekly && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
publish-weekly
GitHub stars
562
Token cost
~719 tokens
SKILL.md length
194 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
AGPL-3.0

At a glance

使用 Payload REST API 将周刊写入 CMS(发布为草稿),通过 users API Key 认证. An agent skill from miantiao-me/aigc-weekly.

  • Works in 5 steps: 幂等:优先按 issueNumber == week_id 查询 → 保持草稿:无论是创建还是更新,都必须写入 status: "draft"。 → 产物落盘:将创建/更新成功的响应 JSON 保存为… → …
  • Tasks that involve REST APIs
  • SKILL.md covers 前置条件, 输入, 发布目标 and 认证方式(HTTP Header), plus 3 more sections
  • Reaches aigc-weekly.agi.li; needs PAYLOAD_API_KEY

What it does

Publish Weekly is an agent skill from miantiao-me/aigc-weekly. 使用 Payload REST API 将周刊写入 CMS(发布为草稿),通过 users API Key 认证。

Its SKILL.md is about 720 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering REST APIs. It works with Payload CMS and Cloudflare. The repository describes itself as: Agili 的 AIGC 周刊 - 一个由 Agentic AI Agent 驱动的 AIGC(人工智能生成内容)精选周刊。 The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve REST APIs

Example prompts

  • “/publish-weekly”

Requirements

  • A credential in PAYLOAD_API_KEY

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. 幂等:优先按 issueNumber == week_id 查询
  2. 保持草稿:无论是创建还是更新,都必须写入 status: "draft"。
  3. 产物落盘:将创建/更新成功的响应 JSON 保存为 published/{week_id}.json,用于后续恢复与审计。
  4. 失败可诊断:若请求失败,输出:HTTP 状态码、响应 body(若有)、请求的 URL(不要泄露 PAYLOAD_API_KEY)。
  5. 草稿通知:仅在 Payload POST/PATCH 成功且响应已保存到 published/{week_id}.json 后执行

What it can do on your machine

Read from SKILL.md and the folder at commit c789b52. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • aigc-weekly.agi.li

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • PAYLOAD_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Publish Weekly loads about 719 tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 194 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~18
When it runs · the whole SKILL.md, loaded when a task matches
~719

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from miantiao-me/aigc-weekly at commit c789b52, republished under its AGPL-3.0 licence (© miantiao-me). 194 words, ~719 tokens.

Download SKILL.mdSave it as .claude/skills/publish-weekly/SKILL.md (or your agent's skills folder).
name
publish-weekly
description
使用 Payload REST API 将周刊写入 CMS(发布为草稿),通过 users API Key 认证。

Publish Weekly(草稿发布)

此技能用于将本地生成的周刊 Markdown 文件发布到 Payload CMS 的 weekly 集合中,并保持为 草稿(status: draft)。

前置条件

  • 环境变量 PAYLOAD_API_KEY:来自 Payload users 集合为某个用户生成的 API Key。
  • 环境变量 PAYLOAD_BASE_URL(推荐):Payload/Next.js 服务的公开地址(例如 http://localhost:3000)。
  • 环境变量 BARK_PUSH_URL(可选):完整的 Bark 推送端点(例如 https://push.example.com/push/token/);未配置时跳过通知。

输入

从 /weekly 命令的参数块中获取:

  • week_id:如 Y26W12(写入 issueNumber)
  • title:写入 title
  • filename:周刊 Markdown 文件名(从工作目录读取该文件内容,写入 content)
  • current_date:写入 publishDate(ISO 日期字符串)

可选:

  • summary:周刊描述/摘要(写入 summary)。若未提供则从 content 提炼。
  • tags:标签(字符串数组,例如 ["模型", "工具"])。写入 tags 数组字段。
  • links:链接列表(对象数组,形如 [{ label, url }]),写入 links。

发布目标

  • Collection: weekly
  • REST Endpoint:
    • 查询:GET {BASE_URL}/api/weekly?where[issueNumber][equals]={week_id}&limit=1
    • 创建:POST {BASE_URL}/api/weekly
    • 更新:PATCH {BASE_URL}/api/weekly/{id}

认证方式(HTTP Header)

必须使用 Payload 的 API Key 认证头:

Authorization: users API-Key {PAYLOAD_API_KEY}
Content-Type: application/json

字段映射

发布/更新时写入以下字段:

  • title(text, required): {title}
  • summary(textarea, required):
    • 若提供了 {summary}:直接使用
    • 否则:从 content 提炼 1-2 句话(不超过 200 字);如果文章开头已包含“摘要/导语”,优先复用
  • content(textarea, required): 读取 {filename} 的完整 Markdown 内容
  • issueNumber(text, required, unique): {week_id}
  • status(select, required): 固定写入 draft
  • publishDate(date, required): {current_date}(建议 YYYY-MM-DD)

可选字段(若无就留空/不传):

  • links(array): {links},元素结构为 { label: string, url: string }
  • tags(array): 将 {tags}(字符串数组)转换为 [{ value: string }]

请求 Body 示例

json
{
  "title": "Agili 的 AIGC 周刊(Y26W12)",
  "issueNumber": "Y26W12",
  "publishDate": "2026-03-25",
  "status": "draft",
  "summary": "本期聚焦推理模型的工程化落地,以及一批值得试用的生产力工具。",
  "content": "# ...完整 Markdown...",
  "links": [{ "label": "在线阅读", "url": "https://aigc-weekly.agi.li" }],
  "tags": [{ "value": "模型" }, { "value": "工具" }]
}

行为约束

  1. 幂等:优先按 issueNumber == week_id 查询:
    • 若已存在:用 PATCH 更新(覆盖 title/summary/content/publishDate/status/links/tags)。
    • 若不存在:用 POST 创建。
  2. 保持草稿:无论是创建还是更新,都必须写入 status: "draft"。
  3. 产物落盘:将创建/更新成功的响应 JSON 保存为 published/{week_id}.json,用于后续恢复与审计。
  4. 失败可诊断:若请求失败,输出:HTTP 状态码、响应 body(若有)、请求的 URL(不要泄露 PAYLOAD_API_KEY)。
  5. 草稿通知:仅在 Payload POST/PATCH 成功且响应已保存到 published/{week_id}.json 后执行:
    • 若未配置 BARK_PUSH_URL,直接跳过。
    • 向 BARK_PUSH_URL POST JSON,5 秒超时:title 为 {week_id}|周刊草稿已生成,body 为 {title},url 为 {PAYLOAD_BASE_URL 去掉末尾斜杠}/admin/collections/weekly/{CMS 响应中的文档 id}。
    • 必须用 JSON 序列化工具构造请求体,不得用字符串拼接生成 JSON;同时要求 HTTP 成功且响应 JSON 的 code === 200。
    • 通知失败只输出超时、HTTP 状态或响应码等诊断,不打印 BARK_PUSH_URL 或任何凭据;不得将已成功写入的草稿判为失败,也不得删除审计产物。

© miantiao-me, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in agent/.opencode/skills/publish-weekly of miantiao-me/aigc-weekly.

Open the folder on GitHubat commit c789b52

Compare with similar skills

Publish Weekly next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Publish Weekly compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Publish Weekly this skillmiantiao-me/aigc-weekly562—~719Automated safety check: PassAGPL-3.0
Cloudflare Email Servicehodgef/apiker1272 repos~2kAutomated safety check: PassMIT
Apikerhodgef/apiker127—~1.4kAutomated safety check: PassMIT
Cloudflare Email Serviceswyxio/skills176—~684Automated safety check: PassMIT
Openmaopenma-ai/open-managed-agents315—~854Automated safety check: PassApache-2.0
Cloudflare Browser Renderingeinverne/dotfiles121—~4.9kAutomated safety check: PassGPL-3.0

Similar skills

  • Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing).

    127 GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • Apiker

    hodgef/apiker

    Develop, review, and extend the Apiker library — a framework for building serverless REST APIs on Cloudflare Workers + Durable Objects.

    127 GitHub stars~1.4k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Implement or debug Cloudflare Email Service sending, Email Routing, or an Agents SDK email handler.

    176 GitHub stars~684 tokensUpdated 6 days ago
    Backend & APIsAuto-check passed
  • Openma

    openma-ai/open-managed-agents

    Use the openma platform to build, deploy, and manage AI agents.

    315 GitHub stars~854 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Guide for implementing Cloudflare Browser Rendering - a headless browser automation API for screenshots, PDFs, web scraping, and testing.

    121 GitHub stars~4.9k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed
  • Paperclip

    paperclipai/paperclip

    Interact with the Paperclip control plane API for task coordination and governance.

    100k GitHub stars~9.6k tokensUpdated today
    Backend & APIsAuto-check passed

More from miantiao-me/aigc-weekly

  • Batch Research

    miantiao-me/aigc-weekly

    批量数据采集技能,负责分批并发调度 researcher agent 抓取所有数据源. An agent skill from miantiao-me/aigc-weekly.

    562 GitHub stars~883 tokensUpdated 20 days ago
    Auto-check passed
  • Chinese Writing

    miantiao-me/aigc-weekly

    专注科技周刊的中文写作与审稿技能指南,指导大模型生成与审核清晰、克制、无 AI 味的高质量周刊内容. An agent skill from miantiao-me/aigc-weekly.

    562 GitHub stars~1.2k tokensUpdated 20 days ago
    Auto-check passed

Categories

Questions about Publish Weekly

What does Publish Weekly do?

使用 Payload REST API 将周刊写入 CMS(发布为草稿),通过 users API Key 认证. An agent skill from miantiao-me/aigc-weekly. Publish Weekly is an agent skill from miantiao-me/aigc-weekly.

When should I use Publish Weekly?

Publish Weekly fits situations like: tasks that involve REST APIs.

How do I install Publish Weekly in Claude Code?

Run `npx skills add miantiao-me/aigc-weekly --skill publish-weekly -a claude-code`. Or copy the skill folder (agent/.opencode/skills/publish-weekly in miantiao-me/aigc-weekly) into .claude/skills/publish-weekly in your project. Claude Code loads it when a task matches its description.

How do I install Publish Weekly in Codex?

Run `npx skills add miantiao-me/aigc-weekly --skill publish-weekly -a codex`. Or copy the skill folder (agent/.opencode/skills/publish-weekly in miantiao-me/aigc-weekly) into .agents/skills/publish-weekly in your project. Codex loads it when a task matches its description.

Can I use Publish Weekly in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add miantiao-me/aigc-weekly --skill publish-weekly -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/publish-weekly, .gemini/skills/publish-weekly, .github/skills/publish-weekly and .opencode/skills/publish-weekly in your project.

What does Publish Weekly need to run?

Going by SKILL.md and its folder, Publish Weekly needs credentials named PAYLOAD_API_KEY. Our summary lists: A credential in PAYLOAD_API_KEY.

Does Publish Weekly access the network?

SKILL.md names 1 domain. In commands or code: aigc-weekly.agi.li; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Publish Weekly safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Publish Weekly use?

Publish Weekly is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Publish Weekly use?

About 719 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Publish Weekly?

Skills that share tags, products or a category with Publish Weekly: Cloudflare Email Service (hodgef/apiker, 127 stars), Apiker (hodgef/apiker, 127 stars), Cloudflare Email Service (swyxio/skills, 176 stars) and Openma (openma-ai/open-managed-agents, 315 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Publish Weekly?

miantiao-me (a GitHub user) maintains it in miantiao-me/aigc-weekly, which has 562 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 21, 2026.

Source: miantiao-me/aigc-weekly on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.