# topmindspace/topmind-writing-skills architecture

> Architecture diagram of the GitHub repository topmindspace/topmind-writing-skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/topmindspace/topmind-writing-skills
- Repository: https://github.com/topmindspace/topmind-writing-skills

## Overview

TopMind Writing Skills is a collection of seven writing and publishing-preparation skills, distributed through a CLI. The principal workflow is a writer selecting a skill, producing a draft, optionally revising and checking it, then generating platform-specific output or visual assets; publishing itself is manual. README documents several distinct skill branches, including WeChat and X articles, short-form content, formatting, revision, covers, and poster rendering. Source excerpts show linting and revision-check internals, but most skill implementations are unsampled, so their internal links are documented at a capability level only where the README supports them.

Main entry points: [`bin/topmind-writing-skills.js`](https://github.com/topmindspace/topmind-writing-skills/blob/main/bin/topmind-writing-skills.js) (Skill CLI), [`topmind-revise/scripts/revise_check.py`](https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-revise/scripts/revise_check.py) (Revision checks), [`topmind-wechat-post`](https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-wechat-post) (WeChat articles), [`topmind-x-article`](https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-x-article) (X articles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Writing skills"]
  node_wechat["WeChat articles"]
  node_xarticle["X articles"]
  node_briefs["Useful briefs"]
  node_viral["Viral posts"]
  node_format["Text formatting"]
  node_wechatrender["WeChat layout<br/>[md2wechat.py]"]
  node_xhtml["X HTML output<br/>[md2x-html.py]"]
end

subgraph group_quality["Review tools"]
  node_revise["Revision checks<br/>[revise_check.py]"]
  node_xlint["X post lint<br/>[lint_x_post.py]"]
  node_ailint["AI-style lint<br/>[de_ai_lint.py]"]
  node_design["Design hints"]
end

subgraph group_visual["Visual output"]
  node_cover["Cover creation<br/>[title-engine.py]"]
  node_poster["Poster rendering<br/>[render_poster.py]"]
end

subgraph group_runtime["Skill distribution"]
  node_cli["Skill CLI"]
end

node_writer(("Writer"))
node_result["Drafts and assets"]

node_writer -->|"selects skill"| node_cli
node_cli -->|"installs skill"| node_wechat
node_cli -->|"installs skill"| node_xarticle
node_cli -->|"installs skill"| node_briefs
node_cli -->|"installs skill"| node_viral
node_cli -->|"installs skill"| node_format
node_writer -->|"creates articles"| node_wechat
node_writer -->|"creates articles"| node_xarticle
node_writer -->|"creates briefs"| node_briefs
node_writer -->|"creates posts"| node_viral
node_writer -->|"formats text"| node_format
node_writer -->|"requests review"| node_revise
node_revise -->|"checks style"| node_ailint
node_revise -->|"checks layout"| node_design
node_xlint -->|"imports rules"| node_ailint
node_wechat -.->|"uses revision"| node_revise
node_xarticle -.->|"uses revision"| node_revise
node_wechat -->|"renders layout"| node_wechatrender
node_xarticle -->|"derives HTML"| node_xhtml
node_writer -->|"requests cover"| node_cover
node_writer -->|"renders poster"| node_poster
node_wechatrender -->|"outputs package"| node_result
node_xhtml -->|"outputs HTML"| node_result
node_cover -->|"outputs image"| node_result
node_poster -->|"outputs images"| node_result
node_revise -->|"reports changes"| node_result

click node_cli "https://github.com/topmindspace/topmind-writing-skills/blob/main/bin/topmind-writing-skills.js"
click node_wechat "https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-wechat-post"
click node_xarticle "https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-x-article"
click node_briefs "https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-briefs"
click node_viral "https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-viral-posts"
click node_format "https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-format"
click node_revise "https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-revise/scripts/revise_check.py"
click node_xlint "https://github.com/topmindspace/topmind-writing-skills/blob/main/shared/scripts/lint_x_post.py"
click node_ailint "https://github.com/topmindspace/topmind-writing-skills/blob/main/shared/scripts/de_ai_lint.py"
click node_design "https://github.com/topmindspace/topmind-writing-skills/blob/main/shared/scripts/info_design_hints.py"
click node_cover "https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-cover/scripts/title-engine.py"
click node_poster "https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-poster/scripts/render_poster.py"
click node_wechatrender "https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-wechat-post/scripts/md2wechat.py"
click node_xhtml "https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-x-article/scripts/md2x-html.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_wechat,node_xarticle,node_briefs,node_viral,node_format,node_wechatrender,node_xhtml toneBlue
class node_revise,node_xlint,node_ailint,node_design toneAmber
class node_cover,node_poster toneMint
class node_cli toneRose
class node_writer,node_result toneIndigo
```

## Components

### Writing skills

- [WeChat articles](https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-wechat-post): `topmind-wechat-post`
- [X articles](https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-x-article): `topmind-x-article`
- [Useful briefs](https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-briefs): `topmind-briefs`
- [Viral posts](https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-viral-posts): `topmind-viral-posts`
- [Text formatting](https://github.com/topmindspace/topmind-writing-skills/tree/main/topmind-format): `topmind-format`
- [WeChat layout](https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-wechat-post/scripts/md2wechat.py): `topmind-wechat-post/scripts/md2wechat.py`
- [X HTML output](https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-x-article/scripts/md2x-html.py): `topmind-x-article/scripts/md2x-html.py`

### Review tools

- [Revision checks](https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-revise/scripts/revise_check.py): `topmind-revise/scripts/revise_check.py`
- [X post lint](https://github.com/topmindspace/topmind-writing-skills/blob/main/shared/scripts/lint_x_post.py): `shared/scripts/lint_x_post.py`
- [AI-style lint](https://github.com/topmindspace/topmind-writing-skills/blob/main/shared/scripts/de_ai_lint.py): `shared/scripts/de_ai_lint.py`
- [Design hints](https://github.com/topmindspace/topmind-writing-skills/blob/main/shared/scripts/info_design_hints.py): `shared/scripts/info_design_hints.py`

### Visual output

- [Cover creation](https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-cover/scripts/title-engine.py): `topmind-cover/scripts/title-engine.py`
- [Poster rendering](https://github.com/topmindspace/topmind-writing-skills/blob/main/topmind-poster/scripts/render_poster.py): `topmind-poster/scripts/render_poster.py`

### Skill distribution

- [Skill CLI](https://github.com/topmindspace/topmind-writing-skills/blob/main/bin/topmind-writing-skills.js): `bin/topmind-writing-skills.js`

### Other components

- **Writer**
- **Drafts and assets**

## Connections

- Writer → Skill CLI: selects skill (evidence: `README.md`)
- Skill CLI → WeChat articles: installs skill
- Skill CLI → X articles: installs skill
- Skill CLI → Useful briefs: installs skill
- Skill CLI → Viral posts: installs skill
- Skill CLI → Text formatting: installs skill
- Writer → WeChat articles: creates articles (evidence: `README.md`)
- Writer → X articles: creates articles (evidence: `README.md`)
- Writer → Useful briefs: creates briefs (evidence: `README.md`)
- Writer → Viral posts: creates posts (evidence: `README.md`)
- Writer → Text formatting: formats text (evidence: `README.md`)
- Writer → Revision checks: requests review (evidence: `README.md`)
- Revision checks → AI-style lint: checks style (evidence: `topmind-revise/scripts/revise_check.py`)
- Revision checks → Design hints: checks layout (evidence: `topmind-revise/scripts/revise_check.py`)
- X post lint → AI-style lint: imports rules (evidence: `shared/scripts/lint_x_post.py`)
- WeChat articles → Revision checks: uses revision (evidence: `README.md`)
- X articles → Revision checks: uses revision (evidence: `README.md`)
- WeChat articles → WeChat layout: renders layout (evidence: `README.md`)
- X articles → X HTML output: derives HTML (evidence: `README.md`)
- Writer → Cover creation: requests cover (evidence: `README.md`)
- Writer → Poster rendering: renders poster (evidence: `README.md`)
- WeChat layout → Drafts and assets: outputs package (evidence: `README.md`)
- X HTML output → Drafts and assets: outputs HTML (evidence: `README.md`)
- Cover creation → Drafts and assets: outputs image (evidence: `README.md`)
- Poster rendering → Drafts and assets: outputs images (evidence: `README.md`)
- Revision checks → Drafts and assets: reports changes (evidence: `README.md`)
