MatrixFlow
一个素材,三平台差异化文案,一条命令。
零依赖 Python CLI:输入素材(调研笔记),输出小红书 / 知乎 / 公众号三平台差异化文案 + 红线扫描自检报告。
定位:用户只负责想选题 + 最终定稿;MatrixFlow 负责差异化生成、红线扫描、去 AI 味润色。
安装
pip install matrixflow-cli
# 或直接运行: python matrixflow.py
需要 DEEPSEEK_API_KEY 环境变量(DeepSeek 开放平台获取)。
用法
# 生成三平台初稿(默认 xhs,zhihu,gzh)
matrixflow gen "主题标题" --material 素材.md
# 指定平台
matrixflow gen "主题" --material 素材.md --platforms zhihu,gzh
# 去 AI 味润色(保真合同校验:数字与引用标注前后必须一致)
matrixflow polish output/zhihu-主题-日期.md
# 红线扫描(六项:人称/红线/引用对应/文献干净度/小红书专项)
matrixflow scan output/
完整流水线:素材 → gen(初稿)→ scan → polish(润色)→ scan → 人工定稿
设计
- 素材 = 颜料盘:采集(调研 + 引用)→ 匹配(案例精讲)→ 成稿,引用制度从采集阶段生效
- 平台模板:
templates/*.md独立可编辑(风格 + 红线 + 反AI味 + few-shot 终稿示例) - 红线规则:
rules/sensitive.json(通用 + 小红书专项,零容忍) - 润色轮:16 类 AI 味模式清单 + 保真合同(数字/事实/引用标注不可变),参考文献不进润色范围
- 扫描引擎:
scripts/check_rules.py(六项检查,平台自动识别) - 坦诚原则:不虚构流行度(「最近都在说」类开场)、不夸大结论、不引导互动——事实与判断分开,相信读者
开发状态
- M1 骨架 / M2 生成闭环 / M2.5 润色轮 / M3 红线扫描 ✅(2026-08-18 三平台实测 + 人工定稿通过)
- M4 开源(本仓库)/ M5 内容侧(开发记录系列)进行中
- 路线图与决策记录见 PLAN.md
License
MIT
Metadata
Release files for matrixflow-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| matrixflow_cli-0.1.0.tar.gz | 21.7 kB | Without provenance | Details for matrixflow_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matrixflow_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for matrixflow_cli-0.1.0-py3-none-any.whl |
Total release size: 47.7 kB
Release files / matrixflow_cli-0.1.0.tar.gz
| Download URL | matrixflow_cli-0.1.0.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a3b783f5527dedc3bd0fe300db8b29f9f68346cf65bb7b8ccc414109c28adbb
|
|
BLAKE2b-256 checksum How to use checksums |
6e76b0ecb84303a249152c1a6125babcf1fc1fb78826140216f761b6321a248b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / matrixflow_cli-0.1.0-py3-none-any.whl
| Download URL | matrixflow_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f66e2e66e1f0b6370907cc51750e8de0e421b65185060bc9f53f04b1de3a3941
|
|
BLAKE2b-256 checksum How to use checksums |
2b052adaad318bc5d30927a594f8d63eb0359f35527de26d5b46e300d3892dee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for matrixflow-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.