smithery/flawlessv

article-formatter

为指定的 Markdown 文章添加完整的 frontmatter 头信息,?

Installation

$ npx skills add smithery/flawlessv --skill article-formatter

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 smithery/flawlessv.

npx skills add smithery/flawlessv

Browse all from smithery/flawlessv

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 Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,330 B
  • docs SUMMARY.md 225 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Markdown 文章格式化器

为 Markdown 文章添加标准的 frontmatter 头信息。

功能

  • 自动生成标题 - 从内容提取或使用文件名
  • 生成 slug - 自动转换为 URL 友好格式
  • 识别分类 - 根据文件所在目录
  • 计算阅读时间 - 根据字数自动计算
  • 添加封面图 - 可选参数

使用方法

# 格式化文章(不含封面图)
python3 .claude/skills/article-formatter/format.py "docs/templates/essay/article.md"

# 格式化文章(含封面图)
python3 .claude/skills/article-formatter/format.py "docs/templates/essay/article.md" "https://example.com/cover.jpg"

生成的 Frontmatter

---
title: 文章标题
slug: article-slug
published: true
featured: false
category: 分类
publishedAt: 2026-01-18
readingTime: 10
coverImage: https://example.com/cover.jpg # 可选
---

分类映射

目录 分类
AI/ ai
js/ javascript
React/ react
essay/ essay
其他 目录名小写