summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Pocock <mattpocockvoice@gmail.com>2026-10-12 09:46:46 +0100
committerMatt Pocock <mattpocockvoice@gmail.com>2026-10-12 09:46:46 +0100
commitd518fb8ffa6cde6f1b85c3a63ead67b7144ef867 (patch)
tree84beafd6a73ef5b2c51337a401b5641c2723380a
parent49dd158d1076134a641b33efb035946536778336 (diff)
improve-codebase-architecture: write Mermaid edge labels in pipe formimprove-codebase-architecture-mermaid-labels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--.changeset/improve-codebase-architecture-mermaid-labels.md5
-rw-r--r--skills/engineering/improve-codebase-architecture/HTML-REPORT.md4
2 files changed, 8 insertions, 1 deletions
diff --git a/.changeset/improve-codebase-architecture-mermaid-labels.md b/.changeset/improve-codebase-architecture-mermaid-labels.md
new file mode 100644
index 0000000..a2fa8d7
--- /dev/null
+++ b/.changeset/improve-codebase-architecture-mermaid-labels.md
@@ -0,0 +1,5 @@
+---
+"mattpocock-skills": patch
+---
+
+`improve-codebase-architecture` now writes Mermaid edge labels in the pipe form (`-.->|"..."|`), so a label containing a period no longer breaks the report's diagram (#1256).
diff --git a/skills/engineering/improve-codebase-architecture/HTML-REPORT.md b/skills/engineering/improve-codebase-architecture/HTML-REPORT.md
index e39e825..098c2e4 100644
--- a/skills/engineering/improve-codebase-architecture/HTML-REPORT.md
+++ b/skills/engineering/improve-codebase-architecture/HTML-REPORT.md
@@ -68,13 +68,15 @@ Use a Mermaid `flowchart` or `graph` when the point is "X calls Y calls Z, and l
flowchart LR
A[OrderHandler] --> B[OrderValidator]
B --> C[OrderRepo]
- C -.leak.-> D[PricingClient]
+ C -.->|"leak"| D[PricingClient]
classDef leak stroke:#dc2626,stroke-width:2px;
class C,D leak
</pre>
</div>
```
+Always write edge labels in the pipe form (`-->|"..."|`, `-.->|"..."|`), since an inline label ends at its first period.
+
### Hand-built boxes-and-arrows (when Mermaid's layout fights you)
Modules as `<div>`s with borders and labels. Arrows as inline SVG `<line>` or `<path>` elements positioned absolutely over a relative container. Reach for this when you want the "after" diagram to feel like one thick-bordered deep module with greyed-out internals, since Mermaid won't render that with the right weight.