pre-publish-post-assistant

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Pre-publish Post Assistant Skill

博客文章发布前助手Skill

Purpose

用途

This skill helps prepare blog posts for publication by providing intelligent suggestions for:
  1. Categories - From existing site categories, with distribution awareness
  2. Tags - From existing tags, avoiding tag pollution
  3. SEO Metadata - Title, meta description, and focus keyphrase
All suggestions include rationale explaining the reasoning.
该Skill可通过提供以下智能建议,帮助用户为博客文章发布做好准备:
  1. 分类 - 从网站现有分类中选择,兼顾分类分布平衡
  2. 标签 - 从现有标签中选取,避免标签冗余
  3. SEO元数据 - 标题、元描述和核心关键词
所有建议均附带解释理由。

When to Use This Skill

使用场景

  • User says "classify this post" or "suggest categories/tags"
  • User asks to "prepare this post for publishing"
  • User wants "SEO suggestions" for a draft
  • User provides a draft post and asks for taxonomy suggestions
  • User mentions "new blog post" and needs categorization help
  • 用户说“为这篇文章分类”或“建议分类/标签”
  • 用户要求“为这篇文章做好发布准备”
  • 用户需要为草稿提供“SEO建议”
  • 用户提供文章草稿并寻求分类体系建议
  • 用户提及“新博客文章”并需要分类帮助

Key Principles

核心原则

Category Selection

分类选择

  • Limit to 1-2 categories per post (primary + optional secondary)
  • Prefer categories with moderate post counts (avoid over/under-populated)
  • Match content theme, not just keywords
  • Consider category hierarchy if applicable
  • 每篇文章限制1-2个分类(主分类+可选副分类)
  • 优先选择文章数量适中的分类(避免分类下文章过多或过少)
  • 匹配内容主题,而非仅关键词
  • 如有分类层级,需考虑层级关系

Tag Selection

标签选择

  • Limit to 3-5 tags per post
  • Only use existing tags (no new tag creation unless explicitly requested)
  • Avoid tag pollution (tags with only 1-2 posts are low value)
  • Prefer tags that group related content meaningfully
  • Consider tag search potential
  • 每篇文章限制3-5个标签
  • 仅使用现有标签(除非明确要求,否则不创建新标签)
  • 避免标签冗余(仅关联1-2篇文章的标签价值较低)
  • 优先选择能有意义地关联相关内容的标签
  • 考虑标签的搜索潜力

SEO Metadata

SEO元数据

  • Title: 50-60 characters, include primary keyword, compelling
  • Meta Description: 150-160 characters, summarize value proposition, include CTA
  • Focus Keyphrase: 2-4 words, searchable, relevant to content
  • 标题:50-60字符,包含核心关键词,具有吸引力
  • 元描述:150-160字符,总结价值主张,包含行动号召(CTA)
  • 核心关键词:2-4个词,具备搜索量且与内容相关

Input Formats

输入格式

The skill accepts draft content in multiple formats:
undefined
该Skill支持多种格式的草稿内容:
undefined

File path

文件路径

"Classify this post: /path/to/draft.md"
"为这篇文章分类:/path/to/draft.md"

URL (for already-published posts needing optimization)

URL(针对已发布但需要优化的文章)

Inline text

内联文本

"Here's my draft: [content]... What categories fit?"
undefined
"这是我的草稿:[内容]... 适合什么分类?"
undefined

Data Sources

数据来源

Categories and Tags

分类与标签

Can be retrieved from:
  1. WordPress GraphQL - Live data from WP
  2. Static dist folder - Parse from built site (
    /category/
    ,
    /tag/
    pages)
  3. Cached taxonomy file - Pre-generated
    taxonomy.json
可从以下渠道获取:
  1. WordPress GraphQL - 来自WordPress的实时数据
  2. 静态dist文件夹 - 从已构建的网站(
    /category/
    /tag/
    页面)中解析
  3. 缓存分类文件 - 预先生成的
    taxonomy.json

Distribution Data

分布数据

For balanced suggestions, the skill needs post counts per category/tag:
  • Categories: Aim for even distribution, flag if category would become oversized
  • Tags: Prefer tags with 5+ posts, warn about orphan tags
为给出均衡的建议,该Skill需要每个分类/标签下的文章数量数据:
  • 分类:目标是均衡分布,若某个分类下文章会过多则发出提示
  • 标签:优先选择关联5篇以上文章的标签,对孤立标签发出警告

Output Format

输出格式

markdown
undefined
markdown
undefined

Suggested Categories

建议分类

CategoryPost CountConfidenceRationale
personal-development245HighCore theme matches self-improvement focus
productivity-effectiveness89MediumSecondary theme around habits and routines
Recommendation: Use "personal-development" as primary category.

分类文章数量置信度理由
personal-development245核心主题与自我提升方向匹配
productivity-effectiveness89次要主题围绕习惯和日常流程
推荐:使用“personal-development”作为主分类。

Suggested Tags

建议标签

TagPost CountConfidenceRationale
habits45HighCentral topic of the post
productivity67HighDirectly discussed
morning-routine12MediumSpecific example in content
Recommendation: Use all 3 tags. Avoid creating new tags.

标签文章数量置信度理由
habits45文章核心话题
productivity67直接讨论的内容
morning-routine12内容中的具体示例
推荐:使用全部3个标签。避免创建新标签。

SEO Metadata

SEO元数据

Title (58 chars):
How to Build Morning Habits That Actually Stick | Your Blog
Meta Description (156 chars):
Discover the science-backed approach to building morning habits that last. Learn the 3-step framework used by high performers. Start your transformation today.
Focus Keyphrase:
morning habits
Rationale:
  • "morning habits" has good search volume and matches user intent
  • Title includes keyphrase naturally at the beginning
  • Description creates urgency and promises specific value
undefined
标题(58字符):
如何建立真正能坚持的晨间习惯 | 你的博客
元描述(156字符):
发现有科学依据的晨间习惯养成方法。学习高效人士使用的3步框架。今天就开始你的转变。
核心关键词
晨间习惯
理由
  • “晨间习惯”具备不错的搜索量且匹配用户意图
  • 标题开头自然融入核心关键词
  • 描述制造紧迫感并承诺具体价值
undefined

Workflow

工作流程

1. Analyze Content

1. 内容分析

  • Extract main themes and topics
  • Identify key concepts and terminology
  • Determine content type (how-to, opinion, review, etc.)
  • 提取主要主题和话题
  • 识别核心概念和术语
  • 确定内容类型(教程、观点、评测等)

2. Load Taxonomy

2. 加载分类体系

  • Fetch existing categories with post counts
  • Fetch existing tags with post counts
  • Identify distribution patterns
  • 获取带文章数量的现有分类
  • 获取带文章数量的现有标签
  • 识别分布模式

3. Match & Score

3. 匹配与评分

  • Score each category/tag by relevance
  • Consider distribution balance
  • Flag potential issues (orphan tags, oversized categories)
  • 根据相关性为每个分类/标签评分
  • 考虑分布平衡
  • 标记潜在问题(孤立标签、分类下文章过多)

4. Generate SEO

4. 生成SEO内容

  • Craft title with primary keyword
  • Write compelling meta description
  • Suggest focus keyphrase
  • 撰写包含核心关键词的标题
  • 编写有吸引力的元描述
  • 建议核心关键词

5. Present with Rationale

5. 附带理由展示

  • Show recommendations in table format
  • Explain reasoning for each suggestion
  • Highlight any concerns or alternatives
  • 以表格形式展示建议
  • 解释每个建议的理由
  • 突出任何注意事项或替代方案

Configuration

配置

json
{
  "taxonomy_source": "graphql|dist|file",
  "dist_path": "./dist",
  "taxonomy_file": "./taxonomy.json",
  "graphql_endpoint": "https://wp.example.com/graphql",
  "limits": {
    "max_categories": 2,
    "max_tags": 5,
    "min_tag_posts": 3
  },
  "seo": {
    "title_max_length": 60,
    "description_max_length": 160,
    "site_name": "Your Blog"
  }
}
json
{
  "taxonomy_source": "graphql|dist|file",
  "dist_path": "./dist",
  "taxonomy_file": "./taxonomy.json",
  "graphql_endpoint": "https://wp.example.com/graphql",
  "limits": {
    "max_categories": 2,
    "max_tags": 5,
    "min_tag_posts": 3
  },
  "seo": {
    "title_max_length": 60,
    "description_max_length": 160,
    "site_name": "Your Blog"
  }
}

Example Usage

使用示例

Basic Classification

基础分类

User: "Classify this post for me: /content/drafts/morning-routine-guide.md"

Claude: [Reads file, analyzes content, fetches taxonomy]
        [Presents category/tag suggestions with rationale]
        [Generates SEO metadata]
用户:“帮我分类这篇文章:/content/drafts/morning-routine-guide.md”

Claude: [读取文件、分析内容、获取分类体系]
        [展示带理由的分类/标签建议]
        [生成SEO元数据]

Quick Tag Check

快速标签检查

User: "What tags should I use for a post about Bitcoin ETFs and institutional adoption?"

Claude: [Analyzes topic, checks existing tags]
        "Based on your existing tags, I recommend:
        - bitcoin (89 posts) - primary topic
        - cryptocurrency (45 posts) - broader category
        - investing (23 posts) - relevant angle

        Avoid creating new tags like 'etf' or 'institutional' unless you plan
        to write more content on these specific topics."
用户:“关于比特币ETF和机构采用的文章,我应该用什么标签?”

Claude: [分析话题、检查现有标签]
        “根据你的现有标签,我建议:
        - bitcoin(89篇文章)- 核心话题
        - cryptocurrency(45篇文章)- 更广泛的分类
        - investing(23篇文章)- 相关角度

        除非你计划撰写更多关于这些特定主题的内容,否则避免创建如'etf'或'institutional'的新标签。”

SEO Focus

SEO优化重点

User: "Generate SEO metadata for my post about productivity apps for remote workers"

Claude: [Analyzes topic and search intent]

        Title: "Best Productivity Apps for Remote Workers in 2025 | Your Blog"

        Description: "Discover the top productivity apps that remote workers
        swear by. From task management to focus tools, find the perfect
        stack for your home office."

        Focus Keyphrase: "productivity apps remote workers"
用户:“为我那篇关于远程工作者生产力应用的文章生成SEO元数据”

Claude: [分析话题和搜索意图]

        标题:“2025年最适合远程工作者的生产力应用 | 你的博客”

        描述:“发现远程工作者推崇的顶级生产力应用。从任务管理到专注工具,为你的家庭办公室找到完美的工具组合。”

        核心关键词:“远程工作者生产力应用”

Best Practices Enforced

强制执行的最佳实践

  1. No tag pollution - Won't suggest creating new tags unless justified
  2. Balanced distribution - Warns if category is becoming oversized
  3. SEO compliance - Enforces character limits and keyword placement
  4. Existing taxonomy - Always checks against actual site data
  5. Transparent reasoning - Every suggestion includes rationale
  1. 无标签冗余 - 除非有充分理由,否则不建议创建新标签
  2. 均衡分布 - 若分类下文章会过多则发出警告
  3. SEO合规 - 强制执行字符限制和关键词放置规则
  4. 现有分类体系 - 始终对照网站实际数据进行检查
  5. 透明化理由 - 每个建议均附带解释理由