Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:whaojie797-design/diagram-drift
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Detect drift between a Mermaid architecture diagram and the codebase it describes.
架构图漂移检测器:给 Agent 一份 Mermaid 架构图(
graph/flowchart)和一个代码库,check会精准报告「图里画的节点代码里还有没有、图中断言的依赖关系代码里是否成立」。

Before — An architecture diagram is decoration. Nobody re-checks it against the code, so it slowly lies: a deleted module is still drawn, an edge claims a dependency that no longer exists.
After — A precise drift report: which nodes in the diagram have no matching definition in code, which diagram edges the code doesn't actually honor, and which real modules the diagram forgot to draw.
check — parse a Mermaid graph/flowchart, scan the codebase for
definitions (class/def/module names) and import/call relationships, then
classify every node and edge.report — re-render the last DRIFT_REPORT.md from the store.DRIFT_REPORT.md (human) + drift-state.json (machine-readable, so
an agent can read it directly).ast,
JS/TS/Go and other languages use regex heuristics. No pip install.| Type | Meaning | Severity |
|---|---|---|
missing-in-code |
A diagram node has no matching definition/module in the code | HIGH |
stale-edge |
A diagram edge A → B where A does not import/call B | HIGH |
missing-in-diagram |
A real top-level module is absent from the diagram | INFO |
ok |
Consistent | — |
Clone into your agent's skills directory. No pip install required.
Codex
git clone https://github.com/whaojie797-design/diagram-drift ~/.codex/skills/diagram-drift
Claude Code
git clone https://github.com/whaojie797-design/diagram-drift ~/.claude/skills/diagram-drift
Cursor
git clone https://github.com/whaojie797-design/diagram-drift ~/.cursor/skills/diagram-drift
# 1. point at a diagram (a .md with a ```mermaid block, or a .mmd) and a codebase
python scripts/drift.py check --diagram arch.md --root ./src --store .driftstore
# 2. later, re-check after the code changed
python scripts/drift.py check --diagram arch.md --root ./src --store .driftstore
# 3. re-render the last report
python scripts/drift.py report --store .driftstore
--ignore dir1,dir2 skips extra directories on top of the built-in ignores
(node_modules, dist, tests, __pycache__, …).
$ python scripts/drift.py check --diagram arch.md --root code_drifted --store .ds
Parsed diagram: 5 nodes, 5 edges
[OK] node — Gateway
[OK] node — AuthService
[OK] node — BillingService
[HIGH] node — NotifyService — no definition or module matches 'Notify Service'
[OK] node — Database
[OK] edge — Gateway -> AuthService
[OK] edge — Gateway -> BillingService
[OK] edge — AuthService -> Database
[OK] edge — BillingService -> Database
[HIGH] edge — BillingService -> NotifyService — BillingService does not import/call NotifyService
[INFO] module — analytics — module 'analytics' exists in code but is absent from the diagram
5 nodes · 5 edges · 2 drift (HIGH) · 8 consistent
Against a codebase that still matches the diagram, the same command reports
0 drift (HIGH) · 10 consistent.
```mermaid block, or a raw
graph/flowchart string).-->, -.->, ==>, labeled and & chains).ast; other languages via regex.AuthService ≡ auth_service).DRIFT_REPORT.md + drift-state.json.Everything is deterministic; the test suite runs entirely against local
fixtures (tests/fixtures/code_clean vs code_drifted).
missing-in-code.scanner.py if you need deeper coverage for a specific language.MIT © 2026 whaojie797-design
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: im。