DESIGN.md@docsA

DESIGN.md@docs from geekjourneyx/md2wechat-skill is a DESIGN.md file: the design rules coding agents follow in that repo.

Install it, pinned
mdr add geekjourneyx/md2wechat-skill/docs/DESIGN.md@git:20260319.1e4d509

Pins git:20260319.1e4d509 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
DESIGN.md file
Repository
geekjourneyx/md2wechat-skill
Path
docs/DESIGN.md
Versions recorded
1
Latest version
git:20260319.1e4d509, committed Mar 19, 2026
Size
1,693 bytes
Repository stars
3,774
License
a license file GitHub does not identify

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 设计原则

本文档记录 md2wechat-skill 当前采用的设计原则,而不是历史实现草图。

如果你要了解当前模块边界,请优先阅读 [架构说明](ARCHITECTURE.md)。

## 一等目标

这个项目最重要的不是“生成 HTML”,而是:

1. 稳定地产生可发布内容
2. 让失败可观测、可阻断
3. 让 CLI 输出可被自动化稳定消费
4. 让平台差异停留在 adapter 边界

## 设计约束

### 1. 命令层只做命令层的事

`cmd/` 负责:

- 参数解析
- 输入装配
- 输出渲染
- 退出码和 JSON envelope

它不负责业务编排。

### 2. 应用层负责编排

`internal/publish` 负责:

- 发布主流程
- 图片帖子主流程
- 资产处理
- draft 保存与创建流程

### 3. 平台层只负责平台

`internal/draft` / `internal/wechat` 只做:

- 微信草稿结构映射
- 微信 API 调用
- 上传、重试、平台约束

它们不负责 Markdown 解析、图片提取或命令分支判断。

### 4. 图片链必须单一路径

图片是发布主链的硬依赖,所以:

- 本地图
- 网络图
- AI 图

都要通过统一的 `AssetPipeline` 进入发布系统,不能为某个命令维护第二套上传与回填逻辑。

### 5. 文档描述当前事实

文档只描述已实现、已验证、已进入 release 路径的能力。

## 什么时候继续重构

只有满足下列条件之一,才值得继续做更深的架构拆分:

1. 出现第二个正式发布后端
2. `AssetPipeline` 出现跨两个独立业务域的重复逻辑
3. 真实 smoke/staging 暴露出当前边界无法承接的新约束

如果只是为了“更抽象”,当前阶段不应该继续拆。

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add geekjourneyx/md2wechat-skill/docs/DESIGN.md@sha256:4473b3c15af25e5f

The line at the top of this page pins the label git:20260319.1e4d509, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_kpknjiri2izoz3zp.svg)](https://markdownregistry.com/a/art_kpknjiri2izoz3zp)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Mar 19, 2026.

versioncommittedcommitsizeaudit
git:20260319.1e4d509 latest2026-03-19 1e4d509 1,693 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (1693 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

geekjourneyx/md2wechat-skill · 3,774 stars · license a license file GitHub does not identify · pushed 2026-10-14 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_kpknjiri2izoz3zp
GET https://markdownregistry.com/api/v1/resolve?ref=geekjourneyx/md2wechat-skill/docs/DESIGN.md
GET https://markdownregistry.com/api/v1/blob/4473b3c15af25e5f408062792ae577ee572399cad3fab6b8a2d9ee5f4357eb3b

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what DESIGN.md is and how agents use it · which agent file does what.

More from geekjourneyx/md2wechat-skill

AGENTS.md AGENTS.md file
geekjourneyx/md2wechat-skill · AGENTS.md
git:20260924.d6fd3df · audit A · 3,774 stars
CLAUDE.md CLAUDE.md file
geekjourneyx/md2wechat-skill · CLAUDE.md
git:20260715.04e574f · audit A · 3,774 stars
md2wechat SKILL.md skill
geekjourneyx/md2wechat-skill · platforms/openclaw/md2wechat/SKILL.md · Convert Markdown to WeChat Official Account HTML, inspect supported providers/themes/prompts, generate article images…
git:20260924.d6fd3df · audit A · 3,774 stars
md2wechat SKILL.md skill
geekjourneyx/md2wechat-skill · skills/md2wechat/SKILL.md · Convert Markdown to WeChat Official Account HTML. Use this whenever the user wants WeChat article formatting, article…
git:20260924.d6fd3df · audit A · 3,774 stars

Every file in geekjourneyx/md2wechat-skill

Other files named DESIGN.md@docs

DESIGN.md@docs DESIGN.md file
mvschwarz/openrig · docs/DESIGN.md
git:20261005.f6358a2 · audit A · 8,501 stars
DESIGN.md@docs DESIGN.md file
keli-wen/agy-staff · docs/DESIGN.md
git:20261007.65a1ab4 · audit A · 802 stars
DESIGN.md@docs DESIGN.md file
1ay1/agentty · docs/DESIGN.md
git:20261010.227e92e · audit A · 619 stars
DESIGN.md@docs DESIGN.md file
vintlin/skill-flow · docs/DESIGN.md · A compact macOS operations workspace built from layered neutral surfaces, user-selectable accents, reusable group…
beta · audit A · 264 stars
DESIGN.md@docs DESIGN.md file
mobileaidev/ai-app-bridge · docs/DESIGN.md
git:20261012.3200529 · audit A · 226 stars
DESIGN.md@docs DESIGN.md file
shellishack/infinite-pokemon · docs/DESIGN.md
git:20260914.2f240d9 · audit A · 166 stars
DESIGN.md@docs DESIGN.md file
ghalebdweikat/winnow · docs/DESIGN.md
git:20261006.4547a81 · audit A · 115 stars
DESIGN.md@docs DESIGN.md file
viy1204/recruiting-copilot · docs/DESIGN.md
git:20261027.3ccc761 · audit A · 104 stars

Browse by kind, by grade A, or by owner.