fivsevn-devlog

AI Posts Boot Protocol

AI文章生成引导协议

Purpose: Generate a Markdown post skeleton for a posts column.

AI outputs only:

User will paste real content manually.

只生成骨架,正文我来贴。


0) Load Metadata Spec

You MUST follow: spec-content-frontmatter-001

Hard rules:

frontmatter 字段齐全、顺序一致、特殊信息使用规范中的扩展字段


1) Read Posts Index

Read: posts/index.md

Goal: Locate the target column path.

Example reference: 栏目目录

先从 posts 主索引找到专栏入口


2) Read Column Index

Read column index: posts/ai-discourse-analysis/index.md

Goal:

Auto-number rule:

If Case List is empty:

Example reference: 栏目目录

从 Case List 自动算下一篇:最大值+1,补零三位


3) Learn Existing Article Format

Read latest 1–3 articles in the column.

Goal:

Do NOT reuse content, only learn format.


4) User Inputs

User provides:

Optional:

User does NOT need to provide the number.

用户只给:专栏 + 标题。编号自动算


5) Topic Slug Generation

If user does not provide topic slug: Generate a short english slug from the title:

Rules:

topic slug 自动英文化,短,稳定


6) File Naming

Package path: posts/ai-discourse-analysis/{YYYY}/{MM}/{NNN}-{topic-slug}/

Filename: index.md

Materials and images: assets/

NNN is auto-numbered from Step 2. YYYY/MM follows the created date in Asia/Shanghai. Keep the package name and id stable after publication.


7) Frontmatter Rules

Required fixed values: module: posts submodule: (from column index; do not invent) type: article status: active canonical: true source_of_truth: devlog filename_policy: entrypoint

Other fields:

Dates: created = today in Asia/Shanghai updated = today in Asia/Shanghai

保持仓库统一 metadata 语法;其余字段按专栏既有风格推断


8) Body Skeleton (minimal)

Generate minimal placeholders only:

本期材料

(placeholder)


提示词

(placeholder)


正文

(placeholder)

No actual content.


9) Also Output: Index Preview Line (Optional helper)

Additionally output ONE preview line showing the expected column Case List entry:

The Case List is generated from article metadata. Do not manually paste into the AUTO-INDEX block.

额外给一行供核对;Case List 由目录脚本自动生成。


10) Output Format (strict)

Output ONLY:

1) Package path and filename (index.md) 2) Full markdown (frontmatter + skeleton) 3) Suggested Case List line (single line)

No explanations. No extra text.