mr-li-writer
Verified面向中文内容创作的编辑判断、研究、策划、写作与平台原生交付工作流。根据标题、素材、参考资料、核心想法或模糊灵感,先识别读者任务、材料条件和创新必要性,再按需完成语境扫描、可写性判断与方向校准,并区分发布平台与内容目标,进行事实检索、观点设计、平台原生正文写作、标题策划和对应交付。适用于公众号文章、知乎回答、小红书原生笔记、官网/网页、个人博客、行业解读、实用指南和基于素材的扩展研究写作。
scripts/gzh_component_inventory.py
View on GitHub#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""List the WeChat layout components vendored from gzh-design-skill."""
import os
import re
import sys
THEME_HEADING = re.compile(r"^#\s+公众号排版组件库\s+——\s+(.+)$", re.M)
COMPONENT_HEADING = re.compile(r"^##\s+组件\s+\d+\s+(.+)$", re.M)
def references_dir(root):
candidates = [
os.path.join(root, "assets", "gzh-design", "references"),
os.path.join(root, "references"),
]
for path in candidates:
if os.path.isdir(path):
return path
return candidates[0]
def main():
root = os.path.abspath(sys.argv[1] if len(sys.argv) > 1 else ".")
ref_dir = references_dir(root)
if not os.path.isdir(ref_dir):
print("未找到公众号组件库目录: %s" % ref_dir, file=sys.stderr)
return 1
files = sorted(
name for name in os.listdir(ref_dir)
if name.startswith("theme-")
and name.endswith(".md")
and name not in {"theme-index.md", "theme-generator.md"}
)
if not files:
print("未找到公众号主题组件库: %s" % ref_dir, file=sys.stderr)
return 1
total = 0
print("公众号组件库清单: %s" % ref_dir)
for name in files:
path = os.path.join(ref_dir, name)
text = open(path, encoding="utf-8", errors="replace").read()
theme_match = THEME_HEADING.search(text)
theme_name = theme_match.group(1).strip() if theme_match else name
components = COMPONENT_HEADING.findall(text)
total += len(components)
print("\n%s (%s): %d 个组件" % (theme_name, name, len(components)))
for item in components:
print(" - %s" % item.strip())
print("\n总计: %d 套主题, %d 个组件" % (len(files), total))
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |