一键导入
md-to-wechat-and-web
Convert Markdown files to styled HTML web pages and WeChat public account articles with inline styles, batch processing support
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert Markdown files to styled HTML web pages and WeChat public account articles with inline styles, batch processing support
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Consolidate scattered utility scripts into a centralized directory with comprehensive documentation, then publish to version control.
Debug cron job execution failures — check job status, session logs, gateway errors, model availability, and stale gateway code
Hermes gateway port 8642 is WebSocket-based only — NOT a REST API. Do NOT try to send WeChat/Weixin alerts via curl HTTP POST to the gateway. Understanding this prevents wasted time debugging "404 on all endpoints" when trying to send alerts from cron jobs.
Karpathy's LLM Wiki — build and maintain a persistent, interlinked markdown knowledge base. Ingest sources, query compiled knowledge, and lint for consistency.
A股每日/每周收盘行情汇总报告生成 — 东方财富 API 为主,AKShare (Sina + 同花顺) 兜底
每日美股收盘行情汇总 — 主要指数、板块轮动、个股亮点、宏观消息面、技术分析
| name | md-to-wechat-and-web |
| description | Convert Markdown files to styled HTML web pages and WeChat public account articles with inline styles, batch processing support |
A unified Python CLI tool (report.py) for converting Markdown into styled web pages and/or WeChat public account (公众号) articles. Supports single files and batch processing.
market-reports/report.py
pip install markdown
# Single file, default: generates both html + wechat
python3 report.py weekly/2026-W16.md
# Only one format
python3 report.py weekly/2026-W16.md -f html
python3 report.py weekly/2026-W16.md -f wechat
# Batch: entire directory
python3 report.py daily/
# Batch: multiple directories + recursive
python3 report.py daily/ weekly/ -r
# Output to specific directory
python3 report.py weekly/ -o dist/
# Full combo
python3 report.py . -r -f wechat -o dist/
| Flag | Description | Default |
|---|---|---|
inputs | File(s) or directory(ies) | required |
-f | Format: html, wechat, all | all |
-r | Recursive subdirectories | off |
-o | Output directory | same as source |
For input report.md:
report.html — web page versionreport.wechat.html — WeChat version<style> block with CSS variablesWeChat editor rejects <style> blocks and external CSS. All styling must be inline.
style="..." attributes on every element-apple-system, 'PingFang SC', 'Microsoft YaHei'<link>, no <script>, no external resourcesbackground: linear-gradient).wechat.html in browserEdit SECTION_EMOJIS dict in report.py:
SECTION_EMOJIS = {
"主要指数": "📊",
"板块轮动": "🔄",
# add more...
}
Edit WC_STYLES dict (WeChat) or HTML_CSS string (web) in report.py.
Edit colorize() and colorize_to_spans() functions. Currently:
+X.XX% → #d93025 (red, A-share: up)-X.XX% → #0d904f (green, A-share: down)markdown library auto-escapes some HTML entities in table cells — the colorize function runs post-conversion to avoid conflicts